40 |
$this->pass=$_SESSION['g_pass']; |
$this->pass=$_SESSION['g_pass']; |
41 |
$this->valid=(isset ($_SESSION['isValid']))?1:0; |
$this->valid=(isset ($_SESSION['isValid']))?1:0; |
42 |
$this->db=$p_cn; |
$this->db=$p_cn; |
|
if ( isset($_SESSION['use_usertype']) ) |
|
|
$this->type=$_SESSION['use_usertype']; |
|
43 |
if ( isset($_SESSION['use_theme']) ) |
if ( isset($_SESSION['use_theme']) ) |
44 |
$this->theme=$_SESSION['use_theme']; |
$this->theme=$_SESSION['use_theme']; |
45 |
|
|
91 |
$cn=DbConnect(); |
$cn=DbConnect(); |
92 |
if ( $cn != false ) { |
if ( $cn != false ) { |
93 |
$sql="select ac_users.use_login,ac_users.use_active, ac_users.use_pass, |
$sql="select ac_users.use_login,ac_users.use_active, ac_users.use_pass, |
94 |
use_usertype,use_theme,use_admin,use_first_name,use_name |
use_theme,use_admin,use_first_name,use_name |
95 |
from ac_users |
from ac_users |
96 |
where ac_users.use_login='$this->id' |
where ac_users.use_login='$this->id' |
97 |
and ac_users.use_active=1 |
and ac_users.use_active=1 |
102 |
echo_debug(__FILE__,__LINE__,"Number of found rows : $res"); |
echo_debug(__FILE__,__LINE__,"Number of found rows : $res"); |
103 |
if ( $res >0 ) { |
if ( $res >0 ) { |
104 |
$r=pg_fetch_array($ret,0); |
$r=pg_fetch_array($ret,0); |
|
$_SESSION['use_usertype']=$r['use_usertype']; |
|
105 |
$_SESSION['use_theme']=$r['use_theme']; |
$_SESSION['use_theme']=$r['use_theme']; |
106 |
$_SESSION['use_admin']=$r['use_admin']; |
$_SESSION['use_admin']=$r['use_admin']; |
107 |
$_SESSION['use_name']=$r['use_name']; |
$_SESSION['use_name']=$r['use_name']; |
108 |
$_SESSION['use_first_name']=$r['use_first_name']; |
$_SESSION['use_first_name']=$r['use_first_name']; |
109 |
|
|
|
$this->type=$_SESSION['use_usertype']; |
|
110 |
$this->theme=$_SESSION['use_theme']; |
$this->theme=$_SESSION['use_theme']; |
111 |
$this->admin=$_SESSION['use_admin']; |
$this->admin=$_SESSION['use_admin']; |
112 |
$this->name=$_SESSION['use_name']; |
$this->name=$_SESSION['use_name']; |