Server IP : 149.255.58.128 / Your IP : 216.73.216.30
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /var/softaculous/dada//filemanager.php
<?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();
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
php53 | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
php56 | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
php71 | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
php81 | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
php82 | -- | May 08 2024 09:21:44 | 0 / root | 0755 | |
| | | | | |
.dada_config | 14.942 KB | November 20 2023 00:31:00 | 0 / root | 0644 | |
.htaccess | 0.77 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
Config.pm | 60.704 KB | November 20 2023 00:31:00 | 0 / root | 0644 | |
_dada_mail_config.js | 2.247 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
config.local.php | 9.305 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
dada_mail_config.js | 2.732 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
fileindex.php | 0.088 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
filemanager.config.json | 4.927 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
filemanager.php | 3.675 KB | October 04 2022 06:38:04 | 0 / root | 0644 | |
import.php | 3.062 KB | May 02 2024 05:57:34 | 0 / root | 0644 | |
info.xml | 3.484 KB | May 02 2024 05:25:50 | 0 / root | 0644 | |
install.js | 0.902 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 8.556 KB | May 02 2024 05:57:34 | 0 / root | 0644 | |
install.xml | 1.718 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
md5 | 6.324 KB | May 02 2024 05:57:34 | 0 / root | 0644 | |
notes.txt | 1.622 KB | November 20 2023 00:31:00 | 0 / root | 0644 | |
wwwindex.php | 0.022 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |