View Single Post
  #1  
Old 07-10-2009, 06:44 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 15,731
Ashje
Default Extra Options for ROOT Admins

On the accounts page I want ROOT Admins to have a link that gives them access to the admin.php page. I have this:
PHP Code:
if($usersgroup == 1) and ($act == ""){

// Group 1, Root Admins

$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a><br>
<a href='admin.php'>Go to the ACP</a>"
;
}
else if(
$act == ""){

// No action specified

$article_title $loggedinname."'s Account";
$article_content $lang_account_manage."<br><br>
<b><u>Account Settings:</u></b><br><br>
<a href='myadopts.php'>Manage Adoptables</a><br>
<a href='profile.php?user="
.$loggedinname."'>View Profile</a><br>
<a href='account.php?act=changeemail'>Change Email Address</a><br>
<a href='account.php?act=changepass'>Change Password</a><br>
<a href='account.php?act=changesettings'>Change Settings and Profile Info</a>"
;


But it's giving me a:
Code:
Parse error: syntax error, unexpected T_LOGICAL_AND in /home/------/public_html/account.php on line 77
Can someone help me with this please?
Reply With Quote