sry for the double post but that doesn't work and i still get the same error, so this is the error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /---/---/---/---/---/---/---/ad_module.php on line 2
Parse error: parse error in /---/---/---/---/---/---/---/ad_module.php on line 2
this is the code
<?php
//password checker
session_start();
require('../config.php');
if($_SESSION['password']==$thepassword) {
// end password checker
//set variables
$pageedit = "on";
$path = "../";
$edit
//set files you can edit
if($pageedit==on){
if($edit==index) {
$file = "index.php";
$status = "Ready";
$linked = "yes";
}
$FileName="../lists/links.php";
$list=file($FileName);
foreach($list as $line) {
list($mname,$fname,$target) = explode("|^|",$line);
echo " else if(\$edit==".$mname.") {";
echo " \$file = \"".$fname."\"";
echo " \$status = \"Ready\"";
echo " \$linked = \"yes\"";
echo " }";
}
else{
echo "get lost you dont belong here";
}
if($mode == "update"){
$open_file = fopen($path.$file, "w");
fputs($open_file, stripslashes($message));
fclose($open_file);
$status = "$file Updated";
}
if($linked==yes) { ?>
<body bgcolor="#00538C">
<form name="form1" method="post" action="">
<input name="mode" type="hidden" value="update">
<div align="center">
<input name="" type="text" value="<? echo "$status"; ?>" readonly="true" style="color: #FFFFFF; border: 1px solid #000000; background-color: #00538C;">
<br>
<textarea name="message" cols="100" rows="30" style="color: #FFFFFF; border: 1px solid #000000; background-color: #00538C"><? readfile($path.$file); ?></textarea>
<br>
<input name="Submit" type="submit" value=" Save " style="color: #FFFFFF; border: 1px solid #000000; background-color: #00538C;">
</div>
</form>
<?
}
}
//password checker
}else{
echo "<body bgcolor=\"#00538C\">";
echo "<form action=\"login.php?action=login\" method=\"post\">";
echo "<input name=\"password\" type=\"password\" style=\"color: #FFFFFF; border: 1px solid #000000; background-color: #00538C\"> :Pass<br />";
echo "<input name=\"login\" type=\"submit\" value=\"Login\" style=\"color: #FFFFFF; border: 1px solid #000000; background-color: #00538C\">";
echo "</form>";
}
?>
unless there is some way of counting i don't know about, i do not see the "\" character in line 2. also, i do not think it is the password checker because it directly copied and pasted from other pages that work