include('inc/config_site.php'); if($zalogowany=='tak' && $acc=='root') { //wpis do .htaccess if($i!=1) { header("Location: http://conda.home.pl/download/index.php?i=1"); } $myFile = "../private2/.htaccess"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = ":Location *.(php|phtml)\n Use php4\n"; $stringData .= ":Location /* \n AuthName 'Download'\n"; $query_usermn = "SELECT * from conda_users2 where ('$akt_czas_userm' - dataw) <= '$time_out' and acc='root' order by id desc"; $result_usermn = mysql_query ($query_usermn) or die('(Blad bazy danych_0)'); while ($data = mysql_fetch_array ($result_usermn)) { $ip = $data['ip']; $stringData .= "Access allow " . $ip . " \n"; } $stringData .= "\n"; mysql_free_result ($result_usermn); fwrite($fh, $stringData); fclose($fh); // koniec wpisu mysql_close ($sql); header("Location: http://conda.pl/private2/"); } else { } ?>
include("inc/head_title.php"); include('inc/scripts.php'); ?>if($i==4) { $i=4; include('error/er.php'); } else { $i=3; include('error/er.php'); } include('logowanie/zawartosc.php'); ?> |