Jump to content
MakeWebGames

[mccode v2] Full user details


mentaljason

Recommended Posts

Re: Full user details

 

make a page called fulldets.php

add

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

It's pretty crap but it's an extra page lol

I agree with the "pretty crap". I suppose it works but I like the updated version above my post.

Link to comment
Share on other sites

  • 4 weeks later...

Re: Full user details

 

Updated version

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Fatal error: Function name must be a string in /home/gamagang/public_html/fullinfo.php on line 35

Line:35 $pos_array(1, 2, 3, 4, 5);

Link to comment
Share on other sites

Re: Full user details

 

<?php

include "globals.php";

/*

CHANGE LOG

Number values put through number_format()

Text values (Where needed) put through mysql_real_escape_string() and stripslashes()

$ir['strengh'] changed to the correct name $ir['strength']

Jobs and User level will now show text values, instead of the number value associated with it.

Some spelling errors corrected

Capitalised letters where needed

*/

echo '<h1>Full user details</h1>';

echo 'Name: ' . $gn . $u . ' [' . $ir['userid'] . '] ' . $d . '

';

echo 'Money: $' . number_format($fm, "") . '

';

echo 'Credit Card: $' . number_format($ir['creditcard'], "") . '

';

echo 'Bank money: $' . number_format($ir['bankmoney'], "") . '

';

echo 'Cyber Bank: $' . number_format($ir['cybermoney'], "") . '

';

echo 'Email: ' . mysql_real_escape_string(stripslashes($ir['email'])) . '

';

echo 'Level: ' . number_format($ir['level'], "") . '

';

echo 'Crystals: ' . number_format($ir['crystals'], "") . '

';

echo 'IP: ' . $ir['lastip'] . '

';

echo 'Current Job: ';

if ($ir['job'] == 0)

{

echo 'No job';

}

else

{

$get_job = mysql_query("SELECT `jNAME` FROM `jobs` WHERE `jID` = " . $ir['job']);

$gJ = mysql_fetch_object($get_job);

echo $gJ->jNAME;

}

echo '

';

echo 'Position: ';

$pos_array(1, 2, 3, 4, 5);

$nam_array('Member', 'Admin', 'Secretary', '', 'Assistant');

echo str_replace($pos_array, $nam_array, $ir['user_level']) . '

';

echo 'Gender: ' . $ir['gender'] . '

';

echo 'Exp: ' . number_format($ir['exp'], "") . '

';

echo 'Last online: ' . date("g:i:s a", $ir['laston']) . ' on ' . date("jS M y", $ir['laston']) . '

';

echo 'Current Energy: ' . number_format($ir['energy'], "") . '

';

echo 'Max Energy: ' . number_format($ir['maxenergy'], "") . '

';

echo 'Current Will: ' . number_format($ir['will'], "") . '

';

echo 'Max Will: ' . number_format($ir['maxwill'], "") . '

';

echo 'Current Brave: ' . number_format($ir['brave'], "") . '

';

echo 'Max Brave: ' . number_format($ir['maxbrave'], "") . '

';

echo 'Current Health: ' . number_format($ir['hp'], "") . '

';

echo 'Max Health: ' . number_format($ir['maxhp'], "") . '

';

$get_location = mysql_query("SELECT `cityname` FROM `cities` WHERE `cityid` = " . $ir['location']);

$gL = mysql_fetch_object($get_location);

echo 'Location: ' . $gL->cityname . '

';

echo 'Signed Up: ' . date("g:i:s a", $ir['signedup']) . ' on ' . date("jS M y", $ir['signedup']) . '

';

echo 'Duties: ' . mysql_real_escape_string(stripslashes($ir['duties'])) . '

';

echo 'Posts: ' . number_format($ir['posts'], "") . '

';

echo 'Strengh: ' . number_format($ir['strength'], "") . '

';

echo 'Agility: ' . number_format($ir['agility'], "") . '

';

echo 'Defence: ' . number_format($ir['defence'], "") . '

';

echo 'Labour: ' . number_formay($ir['labour'], "") . '

';

echo 'IQ: ' . number_format($ir['iq'], "") . '

';

$h->endpage();

?>

echo 'IP: ' . $ir['lastip'] . '

';

echo 'Current Job: ';

if ($ir['job'] == 0)

{

echo 'No job';

}

else

{

$get_job = mysql_query("SELECT `jNAME` FROM `jobs` WHERE `jID` = " . $ir['job']);

$gJ = mysql_fetch_object($get_job);

echo $gJ->jNAME;

}

echo '

';

echo 'Position: ';

$pos_array(1, 2, 3, 4, 5);

$nam_array('Member', 'Admin', 'Secretary', '', 'Assistant');

echo str_replace($pos_array, $nam_array, $ir['user_level']) . '

';

Your error is with the pink bit.

Link to comment
Share on other sites

  • 1 year later...

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...