- 1
- 2
- 3
- 4
- 5
- 6
- 7
$f=file(substr($_SERVER["SCRIPT_NAME"],1));
if(substr($f[9],1,4)=="url=") {$f[9]='$url=\''.$_POST['def_dir']."';\r\n";}
if(substr($f[10],1,16)=="root_user_login=") {$f[10]='$root_user_login=\''.$_POST['adm_login']."';\r\n";}
if(substr($f[11],1,15)=="root_user_pass=") {$f[11]='$root_user_pass=\''.$_POST['adm_pass']."';\r\n";}
if(substr($f[12],1,12)=="maxfilesize=") {$f[12]='$maxfilesize=\''.$_POST['maxfilesize']."';\r\n";}
if(substr($f[13],1,20)=="delete_confirmation=") {$f[13]='$delete_confirmation='.$_POST['delete_confirmation'].";\r\n";}
fwrite(fopen(substr($_SERVER["SCRIPT_NAME"],1), "w"), join('', $f)); /// the script must be in root folder =( I'm too lazy to fix it
Комментарии (0) RSS
Добавить комментарий