 X-perienced ~PHP Nuke User~ Posts: 134
Next Group: 16 posts
godfirst wrote:hi there.
I have made some changes to my site tonight, which wasn't a good idea. Now completely the site is full of errors.
I am trying to find out what code I should change to get the site to work...
http://www.umfl.ultimatemadden.com
Basically there php code is used to allow stats and catergories to be used when uploading text documents. I wanted to change the type and number of stats kept and displayed so I edited (commented out some code) well now I get some errors. All the errors seem to be the same or in the same place. I'm trying to comment out the following section:
Blocking Stats. Now there are other pages to the code, so I would like to know the correct way to edit them out.
Code: |
$pageTitle = "Team Stats";
global $myFile;
$myFile = basename(__FILE__);
include("includes/btezfm_lib_inc.php");
include("includes/btezfm_header_inc.php");
include("includes/teamstats_inc.php");
if ($HTTP_GET_VARS["debug"] == "INFO")
phpinfo();
else if ($HTTP_GET_VARS["team"] == "")
{
if ($HTTP_GET_VARS["col"] != "")
$sortCol = (int)$HTTP_GET_VARS["col"];
else
$sortCol = 20; // TOTAL OFFENSE
$outputTable = getTeamStatsTable($sortCol);
if ($outputTable == false)
{
$log = TEAMS_DIRECTORY;
echo "<center><h2>The directory '$log' was not found</h2></center>";
echo $progamInfoTable;
$execTime = array_sum(explode(' ', microtime())) - $timeStart;
eval_html($footer);
exit();
}
$outputTableHTML = make_table($outputTable, "darkback", 26, "smallbold", $sortCol);
$outputTableHTML = str_replace_once("<tr ", $statSuperTitles . "<tr ", $outputTableHTML);
?>
<center>
<p>
<h1>Team Statistics</h1>
<div class="smallplain">
(click a title to sort by that category)<br>
(click a team image for that team's full stats)
</div>
</p>
<center>
<?php
echo $outputTableHTML;
}
else
{
$output = getSingleTeamStatsTable($HTTP_GET_VARS["team"]);
if ($output == 0)
{
$log = $HTTP_GET_VARS["team"];
echo "<center><h2>The teamlog '$log' was not found</h2></center>";
echo $progamInfoTable;
$execTime = array_sum(explode(' ', microtime())) - $timeStart;
eval_html($footer);
exit();
}
$teamName = $output[0];
$fullTeamName = $output[1];
$outputTables = $output[2];
$outputTables = editForTeamPage($outputTables);
$displayAll = $displayGeneral = $displaySchedule = $displayRoster = $displayIndividual = false;
$sectionSelection = $HTTP_GET_VARS["section"];
$teamFile = $HTTP_GET_VARS["team"];
if ($sectionSelection == "")
$displayAll = $displayGeneral = $displaySchedule = $displayRoster = $displayIndividual = true;
if ($sectionSelection == "general")
$displayGeneral = true;
if ($sectionSelection == "schedule")
$displaySchedule = true;
if ($sectionSelection == "roster")
$displayRoster = true;
if ($sectionSelection == "individual")
$displayIndividual = true;
outputTeamPageHeader($teamName, $fullTeamName, $sectionSelection, $teamFile, $displayAll);
if ($displayAll)
{
echo "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td valign=\"top\" width=\"50%\">\n";
}
else
{
echo "<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"400\" align=\"center\"><tr><td width=\"100%\" align=\"center\">\n";
}
if ($displayGeneral)
{
echo make_table($outputTables[GENERAL], $teamName, 1);
echo make_table($outputTables[TEAMSTATS], $teamName, 2);
}
if ($displayAll)
{
echo "</td>\n<td valign=\"top\" width=\"50%\">\n";
}
if ($displaySchedule)
{
echo make_table($outputTables[SCHEDULE], $teamName, 4);
echo make_table($outputTables[DIVISION], $teamName, 13);
}
if ($displayAll)
{
echo "</td>\n</tr><tr><td valign=\"top\">\n";
}
if ($displayRoster)
{
echo make_table($outputTables[ROSTER], $teamName, 9);
}
if ($displayAll)
{
echo "</td>\n<td valign=\"top\">\n";
}
if ($displayIndividual)
{
echo make_table($outputTables[PASSING], $teamName, 11);
echo make_table($outputTables[RUSHING], $teamName, 6);
echo make_table($outputTables[RECEIVING], $teamName, 7);
echo make_table($outputTables[BLOCKING], $teamName, 3);
echo make_table($outputTables[KICKING], $teamName, 11);
echo make_table($outputTables[PUNTING], $teamName, 8);
echo make_table($outputTables[KICKRETURNS], $teamName, 6);
echo make_table($outputTables[PUNTRETURNS], $teamName, 6);
echo make_table($outputTables[DEFENSE], $teamName, 13);
}
echo "</td>\n</tr>\n</table>\n";
}
echo $progamInfoTable;
$execTime = array_sum(explode(' ', microtime())) - $timeStart;
eval_html($footer);
?>
|
Posted: Thu Jan 19, 2006 10:51 pm
 X-perienced ~PHP Nuke User~Posts: 54
Next Group: 96 posts
jovanmaric wrote:the site works fine... only the left things dont work... btw
what php nuke do you have.... php nuke 7.6 with patch 3.1 is recommed.... and
Nuke evolution is the most recommed because he has all the hole's in php nuke fixed and is pre installed...
you can find phpnuke evo at.... http://www.nuke-evolution.com
Posted: Tue Jan 31, 2006 9:46 am
|
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
|
|
 |