Jump to content
MakeWebGames

Recommended Posts

Posted

Could someone please modify this code so that the whole mainmenu.php in MCcodes v2.0 is aligned to the left, instead of centered. I have tried the HTML codes, though I can't get them to work.

<?php

global $db,$c,$ir, $set;

$hc=$set['hospital_count'];

$jc=$set['jail_count'];

$ec=$ir['new_events'];

$mc=$ir['new_mail'];

if($ir['hospital'])

{

print "Hospital ($hc)

Inventory

";

}

elseif($ir['jail'])

{

print "Jail ($jc)

";

}

else

{

print "Home

Inventory

";

}

if($ec > 0) { print "Events ($ec)

"; }

else { print "Events (0)

"; }

if($mc > 0) { print "Mailbox ($mc)

"; }

else { print "Mailbox (0)

"; }

if($ir['jail'] and !$ir['hospital'])

{

print "Jail Gym

Hospital ($hc)

";

}

else if (!$ir['hospital'])

{

print "Explore

Gym

Crimes

Your Job

Local School

Hospital ($hc)

Jail ($jc)

";

}

else

{

print "Jail ($jc)

";

}

print "Forums

";

if($ir['new_announcements'])

{

print "Announcements ({$ir['new_announcements']})

";

}

else

{

print "Announcements (0)

";

}

print "

Newspaper

Search

";

if(!$ir['jail'] && $ir['gang'])

{

print "Your Gang

";

}

if($ir['user_level'] > 1)

{

print "<hr />

Staff Panel

\n";

 

print "<hr />Staff Online:

";

$q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC");

while($r=$db->fetch_row($q))

{

$la=time()-$r['laston'];

$unit="secs";

if($la >= 60)

{

$la=(int) ($la/60);

$unit="mins";

}

if($la >= 60)

{

$la=(int) ($la/60);

$unit="hours";

if($la >= 24)

{

$la=(int) ($la/24);

$unit="days";

}

}

print "{$r['username']} ($la $unit)

";

}

}

if($ir['donatordays'])

{

print "<hr />

Donators Only

Friends List

Black List";

}

print "<hr />

Preferences

Player Report

Help Tutorial

Game Rules

My Profile

Logout

 

Time is now

";

echo date ('F j, Y')."

".date('g:i:s a');

?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...