Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Logging user actions (change log)

phpMyEdit Features     Logging user actions (change log)
Post new topic   Reply to topic    
 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2010-11-11 01:17
Back to top  Reply with quote     

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']

Code:
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

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy