New User, Quick Question. Parse Error.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   New User, Quick Question. Parse Error.
Sassafrood
CZ Newbie
Sassafrood has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 05, 2004
0.00 posts per day
Posts: 2
Points: 146
   
Help!

Parse error: parse error in /home/sassafro/.panel/web/portal/cms/index.php on line 3

<?
sql_query($sql);
$row = $db-&gt;
$sql_fetchrow($result);
$name = $row[main_module];
$home = 1;
if ($httpref==1) { $referer = $_SERVER["HTTP_REFERER"]; $referer =
check_html($referer, nohtml); if ($referer=="" OR eregi("^unknown",
$referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR
eregi("^bookmark",$referer)) { } else { $sql = "INSERT INTO
".$prefix."_referer VALUES (NULL, '$referer')"; $result =
$db-&gt;sql_query($sql); } $sql = "SELECT * FROM ".$prefix."_referer";
$result = $db-&gt;sql_query($sql); $numrows =
$db-&gt;sql_numrows($result); if($numrows&gt;=$httprefmax) { $sql =
"DELETE FROM ".$prefix."_referer"; $result = $db-&gt;sql_query($sql); }
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
$file = trim($file);
$mod_file = trim($mod_file);
$mop = trim($mop);
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file)
|| ereg("\.\.",$mop)) { echo "You are so cool...";
} else { $ThemeSel = get_theme(); if
(file_exists("themes/$ThemeSel/module.php")) {
include("themes/$ThemeSel/module.php"); if
(is_active("$default_module") AND
file_exists("modules/$default_module/$mod_file.php")) { $name =
$default_module; } } if
(file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
$modpath = "themes/$ThemeSel/"; } $modpath .=
"modules/$name/$mod_file.php"; if (file_exists($modpath)) {
include($modpath); } else { $index = 1; include("header.php");
OpenTable(); if (is_admin($admin)) { echo "<center><font class="\&quot;\&quot;"><b>"._HOMEPROBLEM."</b></font><br><br>[ <a href="%5C%22admin.php?op=modules%5C%22">"._ADDAHOME."</a> ]</center>";
} else {
echo "<center>"._HOMEPROBLEMUSER."</center>";
}
CloseTable();
include("footer.php");
}
}

?>

I attempted to change the background color number in the Traditional theme. Now the nuke's php has gone iffy. I am new to php and nuke, the software came with the IPowerweb suite, the file was opened with HTML Area 3.something..

[ Register or login to view links on this board. ]



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum