Server IP : 103.119.228.120 / Your IP : 3.133.138.129 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/softaculous/dada/ |
Upload File : |
<?php ini_set('session.save_path',realpath('[[softdatadir]]/.dada_files/.tmp/php_sessions')); /** * Entry point for PHP connector, put your customizations here. * * @license MIT License * @author Pavel Solomienko <https://github.com/servocoder/> * @copyright Authors */ // only for debug // error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // ini_set('display_errors', '1'); require_once 'vendor/autoload.php'; require_once __DIR__ . '/events.php'; // fix display non-latin chars correctly // https://github.com/servocoder/RichFilemanager/issues/7 setlocale(LC_CTYPE, 'en_US.UTF-8'); // fix for undefined timezone in php.ini // https://github.com/servocoder/RichFilemanager/issues/43 if(!ini_get('date.timezone')) { date_default_timezone_set('GMT'); } // This function is called for every server connection. It must return true. // // Implement this function to authenticate the user, for example to check a // password login, or restrict client IP address. // // This function only authorizes the user to connect and/or load the initial page. // Authorization for individual files or dirs is provided by the two functions below. // // NOTE: If using session variables, the session must be started first (session_start()). function fm_authenticate() { session_start(); return isset($_SESSION['rfm_authenticated']) && $_SESSION['rfm_session_id'] == $_COOKIE["dadalogin"]; } // This function is called before any filesystem read operation, where // $filepath is the file or directory being read. It must return true, // otherwise the read operation will be denied. // // Implement this function to do custom individual-file permission checks, such as // user/group authorization from a database, or session variables, or any other custom logic. // // Note that this is not the only permissions check that must pass. The read operation // must also pass: // * Filesystem permissions (if any), e.g. POSIX `rwx` permissions on Linux // * The $filepath must be allowed according to config['patterns'] and config['extensions'] // function fm_has_read_permission($filepath) { // Customize this code as desired. return true; } // This function is called before any filesystem write operation, where // $filepath is the file or directory being written to. It must return true, // otherwise the write operation will be denied. // // Implement this function to do custom individual-file permission checks, such as // user/group authorization from a database, or session variables, or any other custom logic. // // Note that this is not the only permissions check that must pass. The write operation // must also pass: // * Filesystem permissions (if any), e.g. POSIX `rwx` permissions on Linux // * The $filepath must be allowed according to config['patterns'] and config['extensions'] // * config['read_only'] must be set to false, otherwise all writes are disabled // function fm_has_write_permission($filepath) { // Customize this code as desired. return true; } $config = []; // example to override the default config //$config = [ // 'security' => [ // 'readOnly' => true, // 'extensions' => [ // 'policy' => 'ALLOW_LIST', // 'restrictions' => [ // 'jpg', // 'jpe', // 'jpeg', // 'gif', // 'png', // ], // ], // ], //]; $app = new \RFM\Application(); // uncomment to use events //$app->registerEventsListeners(); $local = new \RFM\Repository\Local\Storage($config); // example to setup files root folder //$local->setRoot('userfiles', true, true); $app->setStorage($local); // set application API $app->api = new RFM\Api\LocalApi(); $app->run();