A l'installation permet de choisir le nom de l'administrateur, dans
les versions précédentes c'était phpcompta
This commit is contained in:
parent
2a06df770e
commit
30f84ace56
8 changed files with 78 additions and 34 deletions
|
|
@ -3245,7 +3245,7 @@ class Acc_Ledger extends jrn_def_sql
|
|||
echo Acc_Reconciliation::$javascript;
|
||||
html_page_start();
|
||||
$cn = Dossier::connect();
|
||||
$_SESSION['g_user'] = 'phpcompta';
|
||||
$_SESSION['g_user'] = NOALYSS_ADMINISTRATOR ;
|
||||
$_SESSION['g_pass'] = 'phpcompta';
|
||||
|
||||
$id = (isset($_REQUEST['p_jrn'])) ? $_REQUEST['p_jrn'] : -1;
|
||||
|
|
@ -3335,7 +3335,7 @@ class Acc_Ledger extends jrn_def_sql
|
|||
html_page_start();
|
||||
$cn = Dossier::connect();
|
||||
$ledger = new Acc_Ledger($cn, 0);
|
||||
$_SESSION['g_user'] = 'phpcompta';
|
||||
$_SESSION['g_user'] = NOALYSS_ADMINISTRATOR;
|
||||
$_SESSION['g_pass'] = 'phpcompta';
|
||||
echo $ledger->search_form('ALL');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -576,7 +576,7 @@ class Acc_Operation
|
|||
}
|
||||
static function test_me()
|
||||
{
|
||||
$_SESSION['g_user']='phpcompta';
|
||||
$_SESSION['g_user']=NOALYSS_ADMINISTRATOR;
|
||||
$_SESSION['g_pass']='dany';
|
||||
global $g_user;
|
||||
$cn=Dossier::connect();
|
||||
|
|
|
|||
|
|
@ -151,11 +151,11 @@ class Dossier
|
|||
join jnt_use_dos as jt on (jt.dos_id=ds.dos_id)
|
||||
group by jt.use_id) as dossier_name on (jt_use_id=ac.use_id)
|
||||
where
|
||||
use_login!='phpcompta'
|
||||
use_login!=$1
|
||||
$sql
|
||||
";
|
||||
|
||||
$res=$this->cn->get_array($sql);
|
||||
$res=$this->cn->get_array($sql,array(NOALYSS_ADMINISTRATOR));
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ class User
|
|||
function Admin()
|
||||
{
|
||||
$this->admin = 0;
|
||||
if ($this->login != 'phpcompta')
|
||||
if ($this->login != NOALYSS_ADMINISTRATOR )
|
||||
{
|
||||
$pass5 = md5($this->pass);
|
||||
$sql = "select use_admin from ac_users where use_login=$1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue