!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)

/usr/share/roundcube/program/steps/utils/   drwxr-xr-x
Free 1.42 GB of 7.22 GB (19.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     save_pref.inc (2.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 +-----------------------------------------------------------------------+
 | program/steps/utils/save_pref.inc                                     |
 |                                                                       |
 | This file is part of the Roundcube Webmail client                     |
 | Copyright (C) 2005-2013, The Roundcube Dev Team                       |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Save preferences setting in database                                |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Aleksander Machniak <alec@alec.pl>                            |
 +-----------------------------------------------------------------------+
*/

$name     get_input_value('_name'RCUBE_INPUT_POST);
$value    get_input_value('_value'RCUBE_INPUT_POST);
$sessname get_input_value('_session'RCUBE_INPUT_POST);

// Whitelisted preferences and session variables, others
// can be added by plugins
$whitelist = array(
    
'preview_pane',
    
'list_cols',
    
'collapsed_folders',
    
'collapsed_abooks',
);
$whitelist_sess = array(
    
'list_attrib/columns',
);

$whitelist      array_merge($whitelist$RCMAIL->plugins->allowed_prefs);
$whitelist_sess array_merge($whitelist_sess$RCMAIL->plugins->allowed_session_prefs);

if (!
in_array($name$whitelist) || ($sessname && !in_array($sessname$whitelist_sess))) {
    
raise_error(array('code' => 500'type' => 'php',
        
'file' => __FILE__'line' => __LINE__,
        
'message' => sprintf("Hack attempt detected (user: %s)"$RCMAIL->get_user_name())),
        
truefalse);

    
$OUTPUT->reset();
    
$OUTPUT->send();
}

// save preference value
$RCMAIL->user->save_prefs(array($name => $value));

// update also session if requested
if ($sessname) {
    
// Support multidimensional arrays...
    
$vars explode('/'$sessname);

    
// ... up to 3 levels
    
if (count($vars) == 1)
        
$_SESSION[$vars[0]] = $value;
    else if (
count($vars) == 2)
        
$_SESSION[$vars[0]][$vars[1]] = $value;
    else if (
count($vars) == 3)
        
$_SESSION[$vars[0]][$vars[1]][$vars[2]] = $value;
}

$OUTPUT->reset();
$OUTPUT->send();

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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