mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Soem fixes + also using the createPermissions() function of the module atm!
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
59d417efb7
commit
a7cce8b94e
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
|
||||
$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
|
||||
//returns: ok, shardoffline or liboffline
|
||||
$result = WebUsers::createUser($params, $user_id);
|
||||
//createPermissions(array($login));
|
||||
createPermissions(array($login));
|
||||
}
|
||||
|
||||
/*function createPermissions($values) {
|
||||
function createPermissions($values) {
|
||||
|
||||
try {
|
||||
$hostname = variable_get('ryzommanage_serverurl', 'localhost');
|
||||
|
@ -536,7 +536,7 @@ function createUser($values, $user_id)
|
|||
}
|
||||
|
||||
return true;
|
||||
}*/
|
||||
}
|
||||
|
||||
function ryzommanage_user_login(&$edit, $account){
|
||||
$_SESSION['user'] = $account->name;
|
||||
|
@ -610,7 +610,7 @@ function top_bar()
|
|||
// Logged in user
|
||||
//check permission, if 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='".$BASE_WEBPATH."/user/".$userId."/edit'>Settings</a> | <a href='".$WEBPATH."?page=userlist'>Users</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