corrected locations

This commit is contained in:
seek3r 2000-12-05 09:48:07 +00:00
parent 23717a00ff
commit 4b23402174

View File

@ -19,7 +19,7 @@
echo "</pre></body></html>"; echo "</pre></body></html>";
break; break;
case "write config": case "write config":
if(!is_writeable ($server_root."/header.inc.php")){ if(!is_writeable ("../header.inc.php")){
show_header("Error generating header.inc.php"); show_header("Error generating header.inc.php");
echo "Could not open header.inc.php for writing!<br>\n"; echo "Could not open header.inc.php for writing!<br>\n";
echo "Please check read/write permissions on directories or back up and use another option.<br>"; echo "Please check read/write permissions on directories or back up and use another option.<br>";
@ -27,7 +27,7 @@
}else{ }else{
show_header("Saved header.inc.php"); show_header("Saved header.inc.php");
$newheader = generate_header(); $newheader = generate_header();
$fsetup = fopen($server_root."/header.inc.php","w"); $fsetup = fopen("../header.inc.php","w");
fwrite($fsetup,$newheader); fwrite($fsetup,$newheader);
fclose($fsetup); fclose($fsetup);
echo "Created header.inc.php!<br>"; echo "Created header.inc.php!<br>";
@ -174,7 +174,7 @@
echo "<br>"; echo "<br>";
echo "<form>"; echo "<form>";
if(is_writeable ($server_root."/header.inc.php")){ if(is_writeable ("../header.inc.php")){
echo '<input type=submit name="action" value="write config">'; echo '<input type=submit name="action" value="write config">';
}else{ }else{
echo 'Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can '; echo 'Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can ';