Results 1 to 7 of 7

Thread: Error with this page. Any ideas?

  1. #1
    Join Date
    Jun 2006
    Posts
    148
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Error with this page. Any ideas?

    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.


    Code:
    <?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>";
    
    ?>
    Cheap Webhosting At ONE TIME fees! Also offering Scripts, Software, Web Designs, and Graphic Designs. Outstanding Designs and Webhosting!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This message means you have left a block open somewhere.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Tyr this. If on 11 wasn't closed...
    PHP Code:
    <?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.

  4. #4
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Pot and the Kettle DB? A little quick to judge for your first post here eh?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Jan 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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...
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •