Index
» Projekty
» phpMyEdit
» Fórum
» Logging user actions (change log) |
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-11-11 01:17
Návrat hore
Odpovedať s citátom
|
As regards data saved in the change log table, I hacked the class file to substitute a session variable for the user name. It might be good to add a new variable which the user can set for their custom variables, e.g. $_SESSION['sess_user_name']
Kód: |
function get_server_var($name) /* {{{ */
{
// 2010-11-09 hack for change log REMOTE_USER
if($name == 'REMOTE_USER'){
if(isset($_SESSION['sess_user_name'])){
return $_SESSION['sess_user_name'];
}
}
// Original
if (isset($_SERVER[$name])) {
return $_SERVER[$name];
}
global $HTTP_SERVER_VARS;
if (isset($HTTP_SERVER_VARS[$name])) {
return $HTTP_SERVER_VARS[$name];
}
global $$name;
if (isset($$name)) {
return $$name;
}
return null;
}; |
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.logging.html
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|