Log in

View Full Version : Error with this page. Any ideas?



jad9321
12-31-2006, 09:56 PM
Ok, When this script is viewed I get error:

Parse error: syntax error, unexpected $end in /home/reviews/public_html/pages/a_options.php on line 233


The thing that makes no sence to me, is that there is no line 233.



<?php

// Do NOT remove this text //
// COPYRIGHT 2006 CUSTOM CMS Gaming Script - CustomCMS.net. Created by Erik Hillis (erik@customcms.net) //
// Reproduction of this code without written permission is strictly forbidden //
// Custom CMS v3.1 (Game CMS) //

include "includes/access.php";
include "FCKEditor/fckeditor.php";

if ($access_cheats == '1') {

echo "<br><SPAN class=\"texthuge\">$lang_a_cheats</SPAN><br><br>";

if (!$_REQUEST[approve]) { } else {
mysql_query("UPDATE cheat SET approved='1' where id='$_REQUEST[approve]'");
}
if (!$_REQUEST[delete]) { } else {
mysql_query("DELETE from cheat where id='$_REQUEST[delete]'");
}
$thecheats = mysql_query("SELECT * from cheat where approved='0' order by id desc");
$cheatnumber = 1;

echo "<center>
<table width=98% $tablereg>";
while ($row = mysql_fetch_assoc($thecheats)) {

$id = $row[id];
$game = $row[game];
$platform = $row[platform];
$cheats = $row[cheats];
$tdate = $row[date];
$usr = $row[submitter];

echo "<tr>
<td width=100% $tdreg2><SPAN class=\"content\">&nbsp;";

echo "<img src=$imagepath/bullet1.jpg border=0></a> &nbsp;<strong>$game</strong> <font style=\"font-size: 10px\">(from <a href=\"profile-$usr.html\">$usr</a> on $tdate) [ <a class=\"content\" href=\"?page=Cheats&approve=$id\"><b>$lang_a_approve</b></a> | <a href=\"?page=Cheats&delete=$id\" class=\"content\"><b>$lang_a_delete</b></a> ]</td>
</tr>
<tr>
<td width=100% $tdreg><div class=\"padding10\"><SPAN class=\"contentlight\">$cheats</div></td>
</tr>";

$cheatnumber++;
}

$cheatcount = mysql_num_rows($thecheats);

if (!$cheatcount) {
echo "<tr>
<td width=100% $tdreg2><SPAN class=\"contentlight\"><center>$lang_a_nocheatsview</td>
</tr>";

}
echo "</table>";

?>

Twey
12-31-2006, 10:30 PM
This message means you have left a block open somewhere.

blm126
12-31-2006, 11:30 PM
Tyr this. If on 11 wasn't closed...


<?php

// Do NOT remove this text //
// COPYRIGHT 2006 CUSTOM CMS Gaming Script - CustomCMS.net. Created by Erik Hillis (erik@customcms.net) //
// Reproduction of this code without written permission is strictly forbidden //
// Custom CMS v3.1 (Game CMS) //

include "includes/access.php";
include "FCKEditor/fckeditor.php";

if ($access_cheats == '1') {

echo "<br><SPAN class=\"texthuge\">$lang_a_cheats</SPAN><br><br>";

if (!$_REQUEST[approve]) { } else {
mysql_query("UPDATE cheat SET approved='1' where id='$_REQUEST[approve]'");
}
if (!$_REQUEST[delete]) { } else {
mysql_query("DELETE from cheat where id='$_REQUEST[delete]'");
}
$thecheats = mysql_query("SELECT * from cheat where approved='0' order by id desc");
$cheatnumber = 1;

echo "<center>
<table width=98% $tablereg>";
while ($row = mysql_fetch_assoc($thecheats)) {

$id = $row[id];
$game = $row[game];
$platform = $row[platform];
$cheats = $row[cheats];
$tdate = $row[date];
$usr = $row[submitter];

echo "<tr>
<td width=100% $tdreg2><SPAN class=\"content\">&nbsp;";

echo "<img src=$imagepath/bullet1.jpg border=0></a> &nbsp;<strong>$game</strong> <font style=\"font-size: 10px\">(from <a href=\"profile-$usr.html\">$usr</a> on $tdate) [ <a class=\"content\" href=\"?page=Cheats&approve=$id\"><b>$lang_a_approve</b></a> | <a href=\"?page=Cheats&delete=$id\" class=\"content\"><b>$lang_a_delete</b></a> ]</td>
</tr>
<tr>
<td width=100% $tdreg><div class=\"padding10\"><SPAN class=\"contentlight\">$cheats</div></td>
</tr>";

$cheatnumber++;
}

$cheatcount = mysql_num_rows($thecheats);

if (!$cheatcount) {
echo "<tr>
<td width=100% $tdreg2><SPAN class=\"contentlight\"><center>$lang_a_nocheatsview</td>
</tr>";

}
echo "</table>";
}

?>

There was some really funny coding in there, not sure if I would use it.

D0ughboy
01-11-2007, 12:34 AM
If this individual purchased a license instead of downloading a nulled version off a warez board, I'm sure he would get help at the members section of the programs website.

BLiZZaRD
01-11-2007, 02:06 AM
Pot and the Kettle DB? A little quick to judge for your first post here eh?

D0ughboy
01-17-2007, 01:37 AM
I happen to be the creator of the software and those who have purchased the program (as opposed to downloading it off a warez board) know that the only place for support is the private member section of the cms forums.

The pirated version of my program has this error (and many others)... butchered by the nuller.

Twey
01-17-2007, 03:45 PM
Oh?
There was some really funny coding in there, not sure if I would use it.He's not wrong. Some of that code uses "features" (like automatic raw string conversion) that have never been recommended. I'd be surprised if it were all due to the method used to crack the restrictions...