 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/03/2007 6:10 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I copied all the files from the test folder to hard disk drive then uploaded them back to the root folder and imported a backup of the test mysql database into the live boards mysql database as well as changed the script_path and cookie_path back to the original values but when loading up the live board I’m getting this error
| Quote:
|
|
Parse error: syntax error, unexpected T_IF in /home/djpassio/public_html/djpassions/includes/constants_arcade.php on line 1
|
Oh bummer  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/03/2007 6:28 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
it's ok i've done it now, I had to remove the following code from constants_arcade.php that was all
| Quote:
|
if ( !defined('IN_PHPBB') || $HTTP_GET_VARS['phpbb_root_path'])
{
die("Hacking attempt");
}
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/03/2007 6:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
49593 |
| Word Cnt. |
2,756,445 |
| BDay |
Apr 22 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 PM
Location: Texas
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/03/2007 6:45 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
* bows gracefully  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 7:47 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
| Chris Powell wrote:
|
it's ok i've done it now, I had to remove the following code from constants_arcade.php that was all
| Quote:
|
if ( !defined('IN_PHPBB') || $HTTP_GET_VARS['phpbb_root_path'])
{
die("Hacking attempt");
}
|
|
Now why would you have to remove this code? If this worked on your Test board, then it shouldn't have been a problem on your Live board either. This code is there for a reason too, so you have removed a little security protection by removing this code...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 7:55 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Hmmm, yeah it the Test Board did work ok with that code but the Live Board didn't. As I thought the code wasn't needed I removed the code for both Boards  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 8:22 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
The code is there to help prevent hackers from running the code and bypassing the security. I can't see that they could do much if any damage from this, but you never know. Some are pretty clever...
This is probably an example why you should be installing the MODs on the Live board rather than copying the files back and forth. There is a whole lot more that can go wrong when copying so many files, folders, and data from one forum to another...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 8:37 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Ok, so I messed up a bit then. I shall update a board in future rather than copy forum to forum etc.
I suppose I can't fix what I changed because of the sql error telling me to remove the hacking attempt info etc
All it must have been was I Transferred everything from the test board to live but a certain query wasn’t updated in the live databse or something hence was I was told to remove the hacking attempt (at a guess anyway) |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 8:52 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
The error said that you had a parse error, not a database error. The parse error could be caused by a corrupt file if it occurred after uploading the files from one forum to another. So uploading the affected file can often correct the problem...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Help with installing games mod (can't find update [DB] in ACP that's all) |  |
Posted: 04/04/2007 9:01 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:26 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Oh ok, I can't remember what the code was so I can put it back  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|