Thread: NetManiack v1.6
View Single Post
  #120  
Old 30th June 2010, 19:22
Subzero's Avatar
Subzero Subzero is offline
Coder
 
Join Date: Jul 2008
P2P
Posts: 190
Default
If you don't know how to change the user classes i really wouldn't recommend this code (untill you have some php & Mysql knowledge behind you) as said before it has security holes everywhere.

But far be it for me to stop you lol.

so here you are

Go to include >> Global.php

find
PHP Code:
define ('UC_USER'0);
define ('UC_POWER_USER'1);
define ('UC_VIP'2);
define ('UC_UPLOADER'3);
define ('UC_GOLD'4);
define ('UC_MODERATOR'5);
define ('UC_ADMINISTRATOR'6);
define ('UC_SYSOP'7);

function 
get_user_class()
{
  global 
$CURUSER;
  return 
$CURUSER["class"];
}

function 
get_user_class_name($class)
{
  switch (
$class)
  {
    case 
UC_USER: return "User";

    case 
UC_POWER_USER: return "Power user";

    case 
UC_VIP: return "VIP";

    case 
UC_UPLOADER: return "Uploader";
    
    case 
UC_GOLD: return "Gold";

    case 
UC_MODERATOR: return "Moderator";

    case 
UC_ADMINISTRATOR: return "Administrator";

    case 
UC_SYSOP: return "SysOp";
  }
  return 
"";

and change as you like
Reply With Quote