| Author |
Message |
7777777s
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3
|
Posted:
Sun Jan 16, 2005 8:37 am |
  |
When I add:
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
to the mailfile.php and attemp to access my home page I get the following error:
Parse error: parse error, unexpected T_ELSE in /... /mainfile.php on line 444
I edited the javascript.php and header.php files already.
I am using phpnuke 76 and nuke sentinel 213
I am a beginner and could use some suggestions.
 |
|
|
    |
 |
HalJordan
Support Staff


Joined: Aug 07, 2004
Posts: 1117
Location: Somewhere around Hunan, China
|
Posted:
Sun Jan 16, 2005 9:21 am |
  |
|
      |
 |
7777777s
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3
|
Posted:
Sun Jan 16, 2005 9:33 am |
  |
The edited file looks like this:
<?php
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
/************************************************************************/ |
|
|
    |
 |
HalJordan
Support Staff


Joined: Aug 07, 2004
Posts: 1117
Location: Somewhere around Hunan, China
|
Posted:
Sun Jan 16, 2005 9:26 pm |
  |
Looks OK to me. What's around line 444? Post a few lines above and below that line and we'll check it out. |
_________________ Obedezco, pero no cumplo.
Proprietor, www.computernewbie.info
Support staff, www.nukecops.com |
|
      |
 |
7777777s
Nuke Cadet


Joined: Jan 05, 2005
Posts: 3
|
Posted:
Mon Jan 17, 2005 1:23 am |
  |
Thanks for the help, I was using notepad to edit the files; it caused problems with the file. I used DreamWeaver to edit a clean file and that solved it. |
|
|
    |
 |
vojo
Nuke Cadet


Joined: Aug 18, 2004
Posts: 2
|
Posted:
Sat May 28, 2005 1:14 pm |
  |
Hi all!
I have problem in forum admin
Parse error: parse error, unexpected $ in /home/balkanbe/public_html/muzika/modules/Forums/admin/index.php on line 630
line 629 in index.php is end with this code: <b>?></b>
please help me!
Thank's |
|
|
   |
 |
CaptDD
Corporal


Joined: Jan 02, 2005
Posts: 51
Location: Manistee, MI, USA
|
Posted:
Sat May 28, 2005 7:21 pm |
  |
Did you edit the index.php file? Seems to me that there is a bad line of code somewhere in the file. The error at the end just indicates that the code did not finish a set command and the server reached the end of code before it could complete the task. |
_________________
 |
|
      |
 |
vojo
Nuke Cadet


Joined: Aug 18, 2004
Posts: 2
|
Posted:
Sat May 28, 2005 10:16 pm |
  |
Hi CaptDD
I think index.php have edit server administration because Wurm Net-Worm.Perl.Santy, bad support is bad from my server
I have original file, but with original file i have again error  |
|
|
   |
 |
|
|