mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 13:46:13 +00:00
Soem fixes + also using the createPermissions() function of the module atm!
This commit is contained in:
parent
c5fc805294
commit
86033768fa
4 changed files with 7 additions and 5 deletions
|
@ -91,7 +91,7 @@ $TIME_FORMAT = "m-d-Y H:i:s";
|
||||||
//defines which ingame layout template should be used
|
//defines which ingame layout template should be used
|
||||||
$INGAME_LAYOUT = "basic";
|
$INGAME_LAYOUT = "basic";
|
||||||
|
|
||||||
$FORCE_INGAME = true;
|
$FORCE_INGAME = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -486,10 +486,10 @@ function createUser($values, $user_id)
|
||||||
//Create the user on the shard + in case shard is offline put copy of query in query db
|
//Create the user on the shard + in case shard is offline put copy of query in query db
|
||||||
//returns: ok, shardoffline or liboffline
|
//returns: ok, shardoffline or liboffline
|
||||||
$result = WebUsers::createUser($params, $user_id);
|
$result = WebUsers::createUser($params, $user_id);
|
||||||
//createPermissions(array($login));
|
createPermissions(array($login));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*function createPermissions($values) {
|
function createPermissions($values) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$hostname = variable_get('ryzommanage_serverurl', 'localhost');
|
$hostname = variable_get('ryzommanage_serverurl', 'localhost');
|
||||||
|
@ -536,7 +536,7 @@ function createUser($values, $user_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
function ryzommanage_user_login(&$edit, $account){
|
function ryzommanage_user_login(&$edit, $account){
|
||||||
$_SESSION['user'] = $account->name;
|
$_SESSION['user'] = $account->name;
|
||||||
|
@ -610,7 +610,7 @@ function top_bar()
|
||||||
// Logged in user
|
// Logged in user
|
||||||
//check permission, if user
|
//check permission, if user
|
||||||
if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
|
if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
|
||||||
return "<div class='ryzomuserbar'><a href='".$WEBPATH."?page=show_user&id=".$userId."'>Profile</a> |
|
return "<div class='ryzomuserbar'><a href='".$WEBPATH."?page=dashboard'>Dashboard</a> | <a href='".$WEBPATH."?page=show_user&id=".$userId."'>Profile</a> |
|
||||||
<a href='".$WEBPATH."?page=createticket&id=".$userId."'>Create Ticket</a> |
|
<a href='".$WEBPATH."?page=createticket&id=".$userId."'>Create Ticket</a> |
|
||||||
<a href='".$BASE_WEBPATH."/user/".$userId."/edit'>Settings</a> | <a href='".$WEBPATH."?page=userlist'>Users</a> |
|
<a href='".$BASE_WEBPATH."/user/".$userId."/edit'>Settings</a> | <a href='".$WEBPATH."?page=userlist'>Users</a> |
|
||||||
<a href='".$WEBPATH."?page=show_queue&get=todo'>Queues</a> |
|
<a href='".$WEBPATH."?page=show_queue&get=todo'>Queues</a> |
|
||||||
|
|
|
@ -91,3 +91,4 @@ function change_mail(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,3 +87,4 @@ function change_password(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue