Server IP : 149.255.58.128 / Your IP : 216.73.216.231
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/sp//sign_on_func.php
<?php
// Allows the user to login straight to SitePas
function __sp_sign_on(){
global $__settings, $error, $software, $globals, $notes, $softpanel;
// Lets fill in the necessary stuff
$abc['username'] = $softpanel->user['name'];
$abc['email'] = $__settings['email'];
// BRANDING OPTIONS
if(!empty($globals['sm_brand'])){
$abc['sm_brand'] = $globals['sm_brand'];
}
if(!empty($globals['sm_brand_url'])){
$abc['sm_brand_url'] = $globals['sm_brand_url'];
}
if(!empty($globals['sm_brand_editor'])){
$abc['sm_brand_editor'] = $globals['sm_brand_editor'];
}
if(!empty($globals['sm_logo_url'])){
$abc['sm_brand_logo'] = $globals['sm_logo_url'];
}
if(!empty($globals['sm_sitename'])){
$abc['sm_brand_app'] = $globals['sm_sitename'];
}
if(!empty($globals['sm_brand_demos'])){
// We need the http:// prefix
$abc['sm_brand_demos'] = substr($globals['sm_brand_demos'], 0, 4) != 'http' ? 'http://'.$globals['sm_brand_demos'] : $globals['sm_brand_demos'];
// Add a trailing slash
$abc['sm_brand_demos'] = substr($abc['sm_brand_demos'], -1) != '/' ? $abc['sm_brand_demos'].'/' : $abc['sm_brand_demos'];
}
// Lets update the database with our vars
sdb_query("INSERT INTO `".$__settings['dbprefix']."options`
SET option_name = 'sitepad_vars',
option_value = '".addslashes(serialize($abc))."'
ON DUPLICATE KEY
UPDATE option_value = '".addslashes(serialize($abc))."';",
$__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
// Also add the login details
$tmp['sp-login'] = generateRandStr(32);
$tmp['time'] = time();
$q = "INSERT INTO `".$__settings['dbprefix']."options`
SET option_name = 'sp-login',
option_value = '".addslashes(serialize($tmp))."'
ON DUPLICATE KEY
UPDATE option_value = '".addslashes(serialize($tmp))."';";
sdb_query($q, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
//r_print($error);r_print($q);r_print($__settings);r_print($tmp);die();
// Redirect the user
redirect($__settings['softurl'].'/?sp-login='.md5($tmp['sp-login']), true, true);
die();
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
php53 | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
php56 | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
php71 | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
php81 | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
php82 | -- | April 22 2025 09:37:12 | 0 / root | 0755 | |
| | | | | |
.htaccess | 0.18 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
_index.php | 0.036 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
check_charset.php | 1.967 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
clone.php | 13.178 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
edit.php | 3.537 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
edit.xml | 0.263 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
editor.zip | 21.55 MB | April 22 2025 09:37:12 | 0 / root | 0644 | |
extend.php | 2.516 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
fileindex.php | 0.031 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
import.php | 3.082 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
index.php | 1.214 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
info.xml | 20.322 KB | April 21 2025 03:09:44 | 0 / root | 0644 | |
install.js | 0.902 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 24.56 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
install.xml | 5.302 KB | May 25 2022 01:35:12 | 0 / root | 0644 | |
md5 | 1.38 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
post_download.json | 0.093 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
sign_on_func.php | 2.13 KB | September 13 2023 10:18:58 | 0 / root | 0644 | |
soft.htaccess | 0.121 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
sp.sql | 21.101 KB | April 22 2025 09:37:12 | 0 / root | 0644 | |
sp.zip | 0.274 KB | April 22 2025 09:37:12 | 0 / root | 0644 | |
upgrade.php | 3.271 KB | April 21 2025 04:40:34 | 0 / root | 0644 | |
upgrade.xml | 0.226 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |