Просмотр файла blackgbs/postadminpage.php
- <?php
- include "config.php";
- if ($pass==$admin_pass)
- {
- $passadmin=$_POST['passadmin'];
- $mysite=$_POST['mysite'];
- $msg=$_POST['msg'];
- $zag=$_POST['zag'];
- $cop=$_POST['cop'];
- $file = fopen("./admin/config.dat","w");
- fputs($file,"$passadmin\r\n$mysite\r\n$msg\r\n$zag\r\n$cop\r\n");
- fclose($file);
- }
- $site='http://'.$_SERVER['HTTP_HOST'].''.str_replace('postadminpage.php','index.php',$_SERVER['PHP_SELF']);
- header ("Location: $site");
- ?>