Parašė PyccKuu· 2008 Rugp. 5 23:08:28
#8
Nebijok neužsibaninsiu .... Bet db dar viena problema kas blogai ?
administration/abc.php
Išmeta errora
Warning: file(../abc.txt) [function.file]: failed to open stream: No such file or directory in /usr/home/www1/ftp/Andriuxa/warez/administration/abc.php on line 17
Štai tas abc.php
<?php
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
require_once ADMIN."navigation.php";
if (SUPERADMIN) {
opentable("Adminkes Sarasa");
if (isset($_POST['valyti'])) {
$failas=BASEDIR."abc.txt";
$veiksmas=fopen($failas, "w");
redirect(FUSION_SELF.$aidlink);
}
echo "<div class='tbl2'><b>Veiksmai:</b> <form name='inputform' method='post' action='".FUSION_SELF.$aidlink."'><input type='submit' name='valyti' value='Valyti sarasa' class='button'></form></div><br><br>";
$failas=file(BASEDIR."abc.txt");
$a=sizeof($failas);
while(0 < $a){
$a=$a-1;
$b=explode("|", $failas[$a]);
echo("<hr>
<li><b>Laikas: </b>$b[0]</li>
<li><b>IP: </b>$b[1]</li>
<li><b>Nikas: </b>$b[2]</li>");
}
closetable();
} else { fallback(ADMIN."index.php".$aidlink); }
echo "</td>\n";
require_once BASEDIR."footer.php";
?>
17 eilutė:
$failas=file(BASEDIR."abc.txt");
Redagavo PyccKuu· 2008 Rugp. 5 23:08:41