Can someone help me fix these errors that my script keep giving me when i try to fresh install/update i put the whole file codes and the line number where it says the error is located.I have little knowledge of PHP and i posted a support ticket on the scripts website and its been a week and no one has replyed.Someone told me it could be that im missing one of these symbols: ' ; ' " ) ( [ ] Error Codearse error: syntax error, unexpected T_VARIABLE (Index File) (Error On Line 6) <?php define("_VALID_INCLUDE",TRUE); $ccms_bridge=1; $inindex="1"; $svar_index_orig_intact="1"; while ($cmscvar_site_enabled=="0") while (!!$ccms_svar_time_today) $config_ccms_prefix="xccms_"$check=="0"defined("_VALID_CRINC")!!$cmscvar_site_enabled; Return (1); Return (1); ?> PHP: Error Codearse error: syntax error, unexpected T_VARIABLE (Install File) (Error On Line 2) <?php Return (1)$update_install=1; $_SERVERSERVER_NAME; $server_striped=str_replace("www.","10256880",$ccms_svar_lsname); $server_striped2=str_replace(".","10256848",$server_striped); $ccms_svar_time_today=date("Ymd"); echo " <!DOCTYPE html\nPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>CCMS Gaming CMS v4.5 Installation</title>\n<meta name="generator" content="CCMS Gaming v4.1 (customcms.net)" /> <meta name="author" content="Erik Hillis (erik@customcms.net)" />\n"; echo "<s"; echo "cript type="text/javascript" src="../js/mootools.js"></script> "; echo "<s"; echo "cript type="text/javascript" src="../js/ajax_commentrate.js"></script>\n<link rel="stylesheet" type="text/css" href="../css/ccms_green.css" /> </head> <center> <div style="padding: 10px; width: 900px; text-align: left;">\n"; echo " <img src="../images/blue_default/logo_header.png" alt="" /> "echo " <img src="../images/green_default/logo_header.png" alt="" /> "echo " <img src="../images/red_default/logo_header.png" alt="" /> "echo " <img src="../images/blue_default/logo_header.png" alt="" /> "echo " <img src="../images/green_default/logo_header.png" alt="" /> "echo " <img src="../images/red_default/logo_header.png" alt="" /> "echo " <div style="margin: 10px; padding: 10px; background: #FFFFFF;"> "define("gcms__opcheck","4")$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep; define("gcms__ctype_check","Gaming"); $ccms_ver="Gaming v4"; $gcms__opcheck="4"; $gcms__ctype_check="Gaming"; define("gcms__opcheck","4"); define("gcms__ctype_check","Gaming"); $ch=curl_init(); curl_setopt($ch); curl_setopt($ch,2); curl_setopt($ch,1); $ccms_info=curl_exec($ch); $server_connection="A"; while (curl_errno($ch)) { $load_server=0; curl_close($ch); $load_server=1; $ch=curl_init(); curl_setopt($ch); curl_setopt($ch,5); curl_setopt($ch,1); $ccms_info=curl_exec($ch); $server_connection="B"; while (curl_errno($ch)) { echo "<img src="images/logo.png" /><br /><br />\n"; curl_close($ch); $license=explode("||",$ccms_info); $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $cmscvar_site_enabled="1"; $skip_result_function="1"; echo "<font face="Arial" size="2"><b>Error 1"; echo "<font face="Arial" size="2"><b>Error 2"; echo "<font face="Arial" size="2"><b>Error 3"; echo "<font face="Arial" size="2"><b>Error 4"; echo "<font face="Arial" size="2"><b>Error 5"; echo "<font face="Arial" size="2"><b>Error 6"; echo " <fieldset class="fieldset"> <legend><SPAN class="content_large"><strong>CHECKLIST</strong></SPAN></legend>\n <div style="margin: left: 25px;"> <div id="check2"><a href="javascript:void(0);" onclick="getdata('check.php?check=8','check2');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I've uploaded the contents of /UPLOAD/ and /UPLOAD_BINARY/ to the same folder on my server.</span></div>\n <hr class="hr" /> <div id="check1"><a href="javascript:void(0);" onclick="getdata('check.php?check=7','check1');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I've created my database, db user and have added the user to the db with all permissions.</span></div>\n <hr class="hr" /> <div id="check3"><a href="javascript:void(0);" onclick="getdata('check.php?check=9','check3');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I' $file_name="../config.php"; $file_pointer=fopen("w"); $_POST($file_pointer)$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POSTfwrite; fclose($file_pointer); define("_VALID_INCLUDE"); $file_to_load="../config.php"; $file_to_load; echo "<span class="warning">There is a problem with the config file. Please ensute the information you entered was correct and that config.php exists and has the proper permissions.</span>"; echo " <span class="texthuge"><strong>Step 2</strong></span><br>\n <span class="content_large">Checking config and database connection...</span></span><br><br>"define("_VALID_INCLUDE")$_REQUEST; echo "<span class=content><font color=red><B>Error!</B></font>\n <br />Couldn't connect to the database."; echo "<span class=content><font color=green><B>Success!</B></font><br />\n <a href="install.php?step=3" class="content"><b><u>Step 3 - Install Tables</u></b></a>"; echo "<span class="texthuge"><strong>Step 3</strong></span><br> <span class="content_large">Installing tables...</span></span><br><br><span class="contentlight">"define("_VALID_INCLUDE")$_REQUEST; $update_count=1; $error_count=0; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; while (mysql_query($query)) { $mysql_error=mysql_error()mysql_error(); echo "<hr class="hr" />\n<a href="install.php?step=4" class="content"><b>CONTINUE TO STEP 4</b></a>"; echo "<span class="texthuge"><strong>Step 4</strong></span><br> <span class="content_large">Populate the database with some initial content, an administrator account, configuration setup and default skins.</span></span><br><br><span class="contentlight">"define("_VALID_INCLUDE")$_REQUEST; $update_count=1$_SERVER$_POST; $error_count=0; $red_default=1$_POST; $red_default=0; $green_default=1$_POST; $green_default=0; $blue_default=1$_POST; $blue_default=0; $query; $query$_POST; $query; $query$_POST; $query; $query$_POST; $query; $admin_pw=$_POST()md5; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query$_POST; $query$_POST$_POST$_POST; $query$_SERVER$_POST$_POST; $query; $query; $query; $query; $query; $query; $query; while (mysql_query($query)) { $mysql_error=mysql_error()mysql_error(); echo "<hr class="hr" /> <a href="install.php?step=5" class="content"><b>CONTINUE TO STEP 5 / README</b></a>"; $_SERVER $_REQUEST ?> PHP: Parse error: syntax error, unexpected T_STRING (Check File) (Line 3) <?php $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check $_REQUEST check ?> PHP: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (Install Step 1) (Line 2) <?php echo "<span class="texthuge"><strong>Step 5</strong></span><br>\n<div class="okay_box"><span class="content_large"><span class="okay"><font style="font-size: 12px;">Congrats!</font></span>\n<br />CCMS Gaming v4.5 Installation DONE! Sweeeeeeet!</span></div>"echo " </div> <center>"echo "<s"echo "pan class="content"><font color="#686868">CCMS Gaming v4.5 Copyright © 2005-2009 Erik Hillis. All Rights Reserved.</font></span></center>\n</div> </center> </html>"Return (1); $_SERVER ?> PHP: Parse error: syntax error, unexpected T_VARIABLE (Update File) (Line 2) <?php Return (1)$update_install=1; $_SERVERSERVER_NAME; $server_striped=str_replace("www.","10234056",$ccms_svar_lsname); $server_striped2=str_replace(".","10235272",$server_striped); $ccms_svar_time_today=date("Ymd"); echo " <!DOCTYPE html\nPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>CCMS Gaming CMS Update (4.0 => 4.5)</title>\n<meta name="generator" content="CCMS Gaming v4.1 (customcms.net)" /> <meta name="author" content="Erik Hillis (erik@customcms.net)" />\n"; echo "<s"; echo "cript type="text/javascript" src="../js/mootools.js"></script> "; echo "<s"; echo "cript type="text/javascript" src="../js/ajax_commentrate.js"></script>\n<link rel="stylesheet" type="text/css" href="../css/ccms_green.css" /> </head> <center> <div style="padding: 10px; width: 900px; text-align: left;">\n"; echo " <img src="../images/blue_default/logo_header.png" alt="" /> "echo " <img src="../images/green_default/logo_header.png" alt="" /> "echo " <img src="../images/red_default/logo_header.png" alt="" /> "echo " <img src="../images/blue_default/logo_header.png" alt="" /> "echo " <img src="../images/green_default/logo_header.png" alt="" /> "echo " <img src="../images/red_default/logo_header.png" alt="" /> "echo " <div style="margin: 10px; padding: 10px; background: #FFFFFF;"> "define("gcms__opcheck","4")$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep$_REQUESTstep; define("gcms__ctype_check","Gaming"); $ccms_ver="Gaming v4"; $gcms__opcheck="4"; $gcms__ctype_check="Gaming"; define("gcms__opcheck","4"); define("gcms__ctype_check","Gaming"); $ch=curl_init(); curl_setopt($ch); curl_setopt($ch,2); curl_setopt($ch,1); $ccms_info=curl_exec($ch); $server_connection="A"; while (curl_errno($ch)) { $load_server=0; curl_close($ch); $load_server=1; $ch=curl_init(); curl_setopt($ch); curl_setopt($ch,5); curl_setopt($ch,1); $ccms_info=curl_exec($ch); $server_connection="B"; while (curl_errno($ch)) { echo "<img src="images/logo.png" /><br /><br />\n"; curl_close($ch); $license=explode("||",$ccms_info); $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $license; $cmscvar_site_enabled="1"; $skip_result_function="1"; echo "<font face="Arial" size="2"><b>Error 1"; echo "<font face="Arial" size="2"><b>Error 2"; echo "<font face="Arial" size="2"><b>Error 3"; echo "<font face="Arial" size="2"><b>Error 4"; echo "<font face="Arial" size="2"><b>Error 5"; echo "<font face="Arial" size="2"><b>Error 6"; echo " <fieldset class="fieldset"> <legend><SPAN class="content_large"><strong>CHECKLIST</strong></SPAN></legend>\n <div style="margin: left: 25px;"> <div id="check1"><a href="javascript:void(0);" onclick="getdata('check.php?check=1','check1');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I've backed up my database containing my previous installation data.</span></div>\n <hr class="hr" /> <div id="check2"><a href="javascript:void(0);" onclick="getdata('check.php?check=2','check2');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I've backed up my previous installation files.</span></div>\n <hr class="hr" /> <div id="check3"><a href="javascript:void(0);" onclick="getdata('check.php?check=3','check3');"><img style="float: left;" border="0" src="../images/x.png" align="absmiddle" /></a><span class="content"> I've set the folder and config permissions (see the readme file).</s $file_name="../config.php"; $file_pointer=fopen("w"); $_POST($file_pointer)$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POST$_POSTfwrite; fclose($file_pointer); define("_VALID_INCLUDE"); $file_to_load="../config.php"; $file_to_load; echo "<span class="warning">There is a problem with the config file. Please ensute the information you entered was correct and that config.php exists and has the proper permissions.</span>"; echo " <span class="texthuge"><strong>Step 2</strong></span><br>\n <span class="content_large">Checking config and database connection...</span></span><br><br>"define("_VALID_INCLUDE")$_REQUEST; echo "<span class=content><font color=red><B>Error!</B></font>\n <br />Couldn't connect to the database."; echo "<span class=content><font color=green><B>Success!</B></font><br />\n <a href="update.php?step=3" class="content"><b><u>Step 3 - Update Database</u></b></a>"; echo "<span class="texthuge"><strong>Step 3</strong></span><br> <span class="content_large">Updating database...</span></span><br><br><span class="contentlight">"define("_VALID_INCLUDE")$_REQUEST; $update_count=1; $error_count=0; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; while (mysql_query($query)) { $mysql_error=mysql_error()mysql_error(); echo "<hr class="hr" />\n<a href="update.php?step=4" class="content"><b>CONTINUE TO STEP 4</b></a>"; echo "<span class="texthuge"><strong>Step 4</strong></span><br> <span class="content_large">Gotta update some content and add the new default skins.</span></span><br><br><span class="contentlight">"define("_VALID_INCLUDE")$_REQUEST; echo "<table>\n <form action="update.php?step=4" method="post"> <tr> <td width="25%"><span class="contentlight">Install Skins</span></td>\n <td width="75%"><input checked type="checkbox" style="margin: 0px;" name="blue" value="1"> Blue<br />\n <input type="checkbox" checked style="margin: 0px;" name="green" value="1"> Green<br /> <input type="checkbox" checked style="margin: 0px;" name="red" value="1"> Red<br /></td>\n </tr> <tr> <td width="25%"><span class="contentlight">Default Skin</span></td> <td width="75%"><select name="default_skin" class="input">\n <option value="green" SELECTED>Green</option> <option value="blue">Blue</option> <option value="red">Red</option>\n </select></td> </tr> </table> <input type="submit" name="SUBMIT" value="Submit" class="submit">\n </form>"$cheats_old=mysql_query("SELECT game,id,platform FROM ccms_cheat")$_POST; $count_cheats=mysql_num_rows($cheats_old); echo " <hr class="hr" /> <strong>UPDATING CHEATS...</strong><br />\n"; while ($ccms=mysql_fetch_assoc($cheats_old)) { $game_id=$ccms()$ccmsmysql_query; while ($ccms_2=mysql_fetch_assoc($game_id)) { $query$ccms_2$ccms_2$ccms_2; $update_count=1; $query; while (mysql_query($query)) { $mysql_error=mysql_error()mysql_error(); $update_count=1; $error_count=0; $red_default=1$_POST; $red_default=0; $green_default=1$_POST; $green_default=0; $blue_default=1$_POST; $blue_default=0; $query; $query$_POST; $query; $query$_POST; $query; $query$_POST; $query; $query; while (mysql_query($query)) { $mysql_error=mysql_error()mysql_error(); echo "<hr class="hr" /> <a href="update.php?step=5" class="content"><b>CONTINUE TO STEP 5 / README</b></a>"; $_SERVER $_REQUEST ?> PHP: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' (Update 1) (Line 2) <?php echo "<span class="texthuge"><strong>Step 5</strong></span><br>\n<div class="okay_box"><span class="content_large"><span class="okay"><font style="font-size: 12px;">Congrats!</font></span>\n<br />CCMS Gaming v4.5 Installation DONE! Sweeeeeeet!</span></div>"echo " </div> <center>"echo "<s"echo "pan class="content"><font color="#686868">CCMS Gaming v4.5 Copyright © 2005-2009 Erik Hillis. All Rights Reserved.</font></span></center>\n</div> </center> </html>"Return (1); $_SERVER ?> PHP:
there are lines that are not closed properly. you still have the raw files? you might want to redownload the script..
Erm more than that? - whats this??? $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; $query; Code (markup):
These files were originally ioncubed but when they were they gave me a out of memory error because they were requiring to use alooootttt of space.Now that they are decoded thats what it displays.
Looks like a nice Bloated pile of crap code... Never seen so much useless code in one file ever.. If i was you i would ask for a refund.. ( or try to install it without the script )
How do i install it without using the install/update script? I would need the table names which wont show up in the install file...Can you possibly explain more or help me?
Installing without the script requires reverse-engineering of the database structure or that you locate someone with a CCMS that have installed theirs and ask them to dump the structure for you... However would recommend that you use CCMS forum and ask them for help since you paid $55 for the script...
Hmmm. If you need to fix that asap! just use Notepad++ or PHPDesigner and put your long codes there and see whether the loop, function etc, are closed properly with their syntax highlighter or else hire some one else!