!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/importoldindex/   drwxrwxr-x
Free 11.48 GB of 97.11 GB (11.82%)
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.05 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// 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_importoldindex extends DokuWiki_Action_Plugin {

    function 
getInfo(){
        return array(
            
'author' => 'Tom N Harris',
            
'email'  => 'tnharris@whoopdedo.org',
            
'date'   => '2006-11-09',
            
'name'   => 'Import Old Index',
            
'desc'   => 'Moves old index files to a new location, sorted by string length.',
            
'url'    => 'http://whoopdedo.org/doku/wiki'
            
);
    }

    function 
register(&$controller) {
        
$controller->register_hook('TEMPORARY_INDEX_UPGRADE_EVENT''BEFORE'$this'run_import');
    }

    function 
run_import(&$event$args) {
        global 
$conf;

        
touch($conf['indexdir'].'/index_importing'); // changelog importing lock
        // load old index
        
$word_idx file($conf['cachedir'].'/word.idx');
        
$idx file($conf['cachedir'].'/index.idx');
        
$words = array();
        for (
$lno=0;$lno<count($word_idx);$lno++){
            
$wlen strlen($word_idx[$lno])-1;
            
//if($wlen<3) continue;
            
if(!isset($words[$wlen])) $words[$wlen] = array();
            
$words[$wlen][] = $lno;
        }

        foreach (
array_keys($words) as $wlen) {
            
$new_words = array();
            
$new_idx = array();
            foreach (
$words[$wlen] as $lno) {
                
$new_words[] = $word_idx[$lno];
                
$new_idx[] = $idx[$lno];
            }
            
io_saveFile($conf['indexdir']."/w$wlen.idx"implode(''$new_words));
            
io_saveFile($conf['indexdir']."/i$wlen.idx"implode(''$new_idx));
        }

        @
copy($conf['cachedir'].'/page.idx'$conf['indexdir'].'/page.idx');
        if(
$conf['fperm']) chmod($conf['indexdir'].'/page.idx'$conf['fperm']);
        
unlink($conf['indexdir'].'/index_importing'); // changelog importing unlock
        
plugin_disable('importoldindex'); // only needs to run once
    
}

}


:: 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.0068 ]--