!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 

uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/doku/axrepos/axess/old/wiki/lib/plugins/loglog/   drwxrwxr-x
Free 11.49 GB of 97.11 GB (11.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     action.php (2.32 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Login/Logout logging plugin
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Andreas Gohr <gohr@cosmocode.de>
 */

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if(!
defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(
DOKU_PLUGIN.'action.php');

class 
action_plugin_loglog extends DokuWiki_Action_Plugin {

    var 
$islogin false;

    
/**
     * return some info
     */
    
function getInfo(){
        return array(
            
'author' => 'Andreas Gohr',
            
'email'  => 'andi@splitbrain.org',
            
'date'   => '2008-06-11',
            
'name'   => 'Login/Logout logging plugin',
            
'desc'   => 'Log logins and logouts of users to a file',
            
'url'    => 'http://wiki.splitbrain.org/plugin:loglog',
        );
    }

    
/**
     * register the eventhandlers
     */
    
function register(&$controller){
        
$controller->register_hook('ACTION_ACT_PREPROCESS',
                                   
'BEFORE',
                                   
$this,
                                   
'handle_before',
                                   array());
    }

    function 
_log($msg){
        global 
$conf;

        
$t   time();
        
$log $t."\t".strftime($conf['dformat'],$t)."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['REMOTE_USER']."\t".$msg;
        
io_saveFile($conf['cachedir'].'/loglog.log',"$log\n",true);
    }


    
/**
     * catch logouts
     */
    
function handle_before(&$event$param){
        
$act $this->_act_clean($event->data);
        if(
$act == 'logout'){
            
$this->_log('logged off');
        }elseif(
$_SERVER['REMOTE_USER'] && $act=='login'){
            if(
$_REQUEST['r']){
                
$this->_log('logged in permanently');
            }else{
                
$this->_log('logged in temporarily');
            }
        }
    }



    
/**
     * Pre-Sanitize the action command
     *
     * Similar to act_clean in action.php but simplified and without
     * error messages
     */
    
function _act_clean($act){
         
// check if the action was given as array key
         
if(is_array($act)){
           list(
$act) = array_keys($act);
         }

         
//remove all bad chars
         
$act strtolower($act);
         
$act preg_replace('/[^a-z_]+/','',$act);

         return 
$act;
     }
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.006 ]--