Ashje
07-10-2009, 06:44 PM
On the accounts page I want ROOT Admins to have a link that gives them access to the admin.php page. I have this:
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:
Parse error: syntax error, unexpected T_LOGICAL_AND in /home/------/public_html/account.php on line 77
Can someone help me with this please?
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:
Parse error: syntax error, unexpected T_LOGICAL_AND in /home/------/public_html/account.php on line 77
Can someone help me with this please?