error:
Parse error: syntax error, unexpected '=' in /home/homer090/public_html/global-european/SimpleCMS/Admin/config_edit.php3 on line 43
and the code of the file:
<?php
session_start();
$id = $_REQUEST['id'];
$scmsserver = $_POST['server'];
$scmsdbname = $_POST['dbname'];
$scmsdbuser = $_POST['dbuser'];
$scmsdbpass = $_POST['dbpass'];
$scmssitename = $_POST['site_name'];
$scmscontent = $_POST['content'];
$scmsmenus = $_POST['menus'];
$scmsusers = $_POST['users'];
$scmspms = $_POST['prims'];
$scmsfolder = $_POST['folder'];
$scmswebaddy = $_POST['webaddy'];
$scmstemplate = $_POST['template'];
if ($_SESSION['usrlvl'] == 1)
{
$input = "<?php
###############################################
## config.php3 #
## Author: Daniel Hill #
## Created: 1/3/06 #
## All code contained is this file is #
## Copyright Daniel Hill 2006 and must not be #
## edited or redistrubuted without permission #
## from the author #
###############################################
".
'$server' . " = \"$scmsserver\";\n".
'$db' . " = \"$scmsdbname\";\n".
'$user' . " = \"$scmsdbuser\";\n".
'$pass' . " = \"$scmsdbpass\";\n".
'$site_name' . " = \"$scmssitename\";\n".
'$table1' . " = \"$scmscontent\";\n".
'$table2' . " = \"$scmsmenus\";\n".
'$table3' . " = \"$scmsusers\";\n".
'$table4' . " = \"$scmspms\";\n".
'$folder' . " = \"$scmsfolder\";\n".
'$webaddress' . " = \"$scmswebaddy\";\n
'$template' . " = \"$scmstemplate\";\n <---- OFFENDING PEICE OF CODE!!!!!
?>";
//open the file and choose the mode
$fh = fopen("../config.php3", "w");
fwrite($fh, $input);
//close the file
fclose($fh);
echo "Your Config Has Succesfully Been Updated!! Click Here To Return To The Admin Menu";
}
else
{
echo "<fnt color='red'><b>Sorry But It Appears That You Are Not Of A User Level With Sufficient Privelidges To Access This Page Or You Aren't Logged In!!</b></font>";
exit();
}
?>