Вход Регистрация
Файл: _gladiators2_/gladiators2/gladiators/gladiators/includes/user_class.php
Строк: 64
<?php
class user
{
var 
$id;
var 
$login;
var 
$pass;
var 
$locate;
var 
$sex;
var 
$ups;
var 
$u;
var 
$g;
var 
$l;
var 
$z;
var 
$svoboda;
var 
$hp;
var 
$maxhp;
var 
$icon;
var 
$world;
var 
$num_up;
var 
$money;
var 
$exp;
var 
$vicory;
var 
$lose;
var 
$noone;
var 
$level;
var 
$city;
var 
$country;
var 
$name;
var 
$icq;
var 
$skype;
var 
$url;
var 
$chat_color;
var 
$hobby;
var 
$klan;
var 
$align;
var 
$email;
var 
$spec_knife;
var 
$spec_topor;
var 
$spec_dubina;
var 
$spec_mech;
var 
$spec_free;

function 
read($id)
{
 
$result = @mysql_query("select id,login,pass,locate,sex,ups,u,g,l,z,svoboda,hp,maxhp,icon,world,num_up,money,exp,victory,lose,noone,level,city,country,name,icq,skype,url,chat_color,hobby,klan,align,email,spec_knife,spec_topor,spec_dubina,spec_mech from users where id='".$id."'");
 if(!@
mysql_num_rows($result))
  return 
false;
 else
 {
    
$mass=mysql_fetch_array($result);
    
$this->login=$mass["login"];
    
$this->id=$mass["id"];
    
$this->pass=$mass["pass"];
    
$this->locate=$mass["locate"];
    
$this->sex=$mass["sex"];
    
$this->ups=$mass["ups"];
    
$this->u=$mass["u"];
    
$this->g=$mass["g"];
    
$this->l=$mass["l"];
    
$this->z=$mass["z"];
    
$this->svoboda=$mass["svoboda"];
    
$this->hp=$mass["hp"];
    
$this->maxhp=$mass["maxhp"];
    
$this->icon=$mass["icon"];
    
$this->world=$mass["world"];
    
$this->num_up=$mass["num_up"];
    
$this->money=$mass["money"];
    
$this->exp=$mass["exp"];
    
$this->victory=$mass["victory"];
    
$this->lose=$mass["lose"];
    
$this->noone=$mass["noone"];
    
$this->level=$mass["level"];
    
$this->city=$mass["city"];
    
$this->country=$mass["country"];
    
$this->name=$mass["name"];
    
$this->icq=$mass["icq"];
    
$this->skype=$mass["skype"];
    
$this->url=$mass["url"];
    
$this->chat_color=$mass["chat_color"];
    
$this->hobby=$mass["hobby"];
    
$this->klan=$mass["klan"];
    
$this->align=$mass["align"];
    
$this->email=$mass["email"];
    
$this->spec_knife=$mass["spec_knife"];
    
$this->spec_topor=$mass["spec_topor"];
    
$this->spec_dubina=$mass["spec_dubina"];
    
$this->spec_mech=$mass["spec_mech"];

    return 
true;
 }    
}

 function 
write()
 {
  @
mysql_query("update users set locate='$this->locate',sex='$this->sex', ups='$this->ups', u='$this->u', g='$this->g', l='$this->l', z='$this->z', svoboda='".$this->svoboda."', maxhp='$this->maxhp', icon='$this->icon', money='$this->money', exp='$this->exp', city='$this->city', country='$this->country', name='$this->name', icq='$this->icq', skype='$this->skype', url='$this->url', chat_color='$this->chat_color', hobby='$this->hobby', email='$this->email', pass='$this->pass' where id='".$this->id."'");
 }

}
?>
Онлайн: 2
Реклама