SMGames
07-24-2007, 08:44 AM
Hi, on my site i have more that one admin, i was wondering how i would start the $admin for more than 1 user.
This is how it works for just the 1 user:
<?php
if (@$_SESSION['loginname'] == 'SMgames')
{
$_SESSION['admin'] = 'true';}
else{$_SESSION['admin'] = 'false';}
if ($_SESSION['admin'] == 'true'){ ?>
ADMIN OPTIONS HERE
<?php ;} ?>
I was thinking would something like this work:
<?php
if (@$_SESSION['loginname'] == 'SMgames')
(@$_SESSION['loginname'] == 'Otheruser')
{
$_SESSION['admin'] = 'true';}
else{$_SESSION['admin'] = 'false';}
if ($_SESSION['admin'] == 'true'){ ?>
ADMIN OPTIONS HERE
<?php ;} ?>
If you have any ideas thanks.
This is how it works for just the 1 user:
<?php
if (@$_SESSION['loginname'] == 'SMgames')
{
$_SESSION['admin'] = 'true';}
else{$_SESSION['admin'] = 'false';}
if ($_SESSION['admin'] == 'true'){ ?>
ADMIN OPTIONS HERE
<?php ;} ?>
I was thinking would something like this work:
<?php
if (@$_SESSION['loginname'] == 'SMgames')
(@$_SESSION['loginname'] == 'Otheruser')
{
$_SESSION['admin'] = 'true';}
else{$_SESSION['admin'] = 'false';}
if ($_SESSION['admin'] == 'true'){ ?>
ADMIN OPTIONS HERE
<?php ;} ?>
If you have any ideas thanks.