commit
authorChris <chris@roojs.com>
Fri, 28 Sep 2012 06:58:28 +0000 (14:58 +0800)
committerChris <chris@roojs.com>
Fri, 28 Sep 2012 06:58:28 +0000 (14:58 +0800)
Pman.php
Pman/I18N.php [deleted file]

index 902158a..7673399 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -785,40 +785,6 @@ class Pman extends HTML_FlexyFramework_Page
         $wa = DB_DataObject::factory('core_watch');
         $wa->notifyEvent($e); // trigger any actions..
         
-        
-        $ff  = HTML_FlexyFramework::get();
-        if (empty($ff->Pman['event_log_dir'])) {
-            return $e;
-        }
-        
-        // add user (eg. www-data or local user if not..)
-        if (function_exists('posix_getpwuid')) {
-            $uinfo = posix_getpwuid( posix_getuid () ); 
-         
-            $user = $uinfo['name'];
-        } else {
-            $user = getenv('USERNAME'); // windows.
-        }
-         
-        $file = $ff->Pman['event_log_dir']. '/'. $user. date('/Y/m/d/'). $eid . ".php";
-        if (!file_exists(dirname($file))) {
-            mkdir(dirname($file),0700,true);
-        }
-        // Remove all the password from logs...
-        $p =  empty($_POST) ? array() : $_POST;
-        foreach(array('passwd', 'password', 'passwd2', 'password2') as $rm) {
-            if (isset($p[$rm])) {
-                $p['passwd'] = '******';
-            }
-        }
-        
-        
-        file_put_contents($file, var_export(array(
-            'REQUEST_URI' => empty($_SERVER['REQUEST_URI']) ? 'cli' : $_SERVER['REQUEST_URI'],
-            'GET' => empty($_GET) ? array() : $_GET,
-            'POST' =>$p,
-        ), true));
-         
         return $e;
         
     }
diff --git a/Pman/I18N.php b/Pman/I18N.php
deleted file mode 100644 (file)
index b39928b..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-/// provide language data!!!
-// DEPRECIATED - moved to Pman_Core_I18N
-/**
- * 
- * 
- */
-
-require_once 'Pman/Core/I18n.php';
-class Pman_I18N extends Pman_Core_I18n
-{
-     
-    
-    
-     
-    /*
-    
-    function setSession($au)
-    {
-        $this->authUser = $au;
-        $lbits = implode('_', $this->guessUsersLanguage());
-        if (empty($_SESSION['Pman_I18N'])) {
-            $_SESSION['Pman_I18N']  = array();
-        }
-        
-        $_SESSION['Pman_I18N'][$lbits] = array(
-            'l' => $this->getList('l', $lbits),
-            'c' => $this->getList('c', $lbits),
-            'm' => $this->getList('m', $lbits),
-        );
-        
-        
-    }
-      
-   
-     
-   
-   
-    */
-     
-    
-}