| Server IP : 170.10.162.208 / Your IP : 216.73.216.181 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/deltahospital/test.delta-hospital.com/ |
Upload File : |
var/softaculous/joomla30/sign_on.php 0000644 00000004543 15051454470 0013507 0 ustar 00 <?php
@unlink(__FILE__);
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
define('_JEXEC', 1);
// Joomla 4.x
if(file_exists(__DIR__ . '/administrator/includes/app.php')){
ob_start();
require_once __DIR__ . '/administrator/includes/app.php';
}else{
// Joomla 3.x
if (file_exists(__DIR__ . '/defines.php'))
{
include_once __DIR__ . '/defines.php';
}
if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__ . DIRECTORY_SEPARATOR . 'administrator' );
require_once JPATH_BASE . '/includes/defines.php';
}
require_once JPATH_BASE . '/includes/framework.php';
require_once JPATH_BASE . '/includes/helper.php';
require_once JPATH_BASE . '/includes/subtoolbar.php';
}
$app = JFactory::getApplication('administrator');
// Check for a cookie if user is not logged in
if(JFactory::getUser()->get('guest')){
$signon_user = '[[signon_username]]';
$options = array('action' => 'core.login.admin');
$instance = Joomla\CMS\User\User::getInstance();
$db = JFactory::getDbo();
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$id = (int) Joomla\CMS\User\UserHelper::getUserId($signon_user);
}else{
$query = $db->getQuery(true);
$query->select($db->quoteName('user_id'))
->from($db->quoteName('#__user_usergroup_map'))
->where($db->quoteName('group_id') . ' = 8' );
$db->setQuery($query);
$users = $db->loadColumn();
$id = min($users);
}
if (!$id)
{
$app->redirect('administrator/index.php');
exit();
}
$instance->load($id);
// If the user is blocked, redirect with an error
if ($instance->block == 1)
{
$app->redirect('administrator/index.php');
exit();
}
$result = $instance->authorise($options['action']);
// Mark the user as logged in
$instance->guest = 0;
$session = Joomla\CMS\Factory::getSession();
// Grab the current session ID
$oldSessionId = $session->getId();
// Fork the session
$session->fork();
$session->set('user', $instance);
// Ensure the new session's metadata is written to the database
$app->checkSession();
// Purge the old session
$query = $db->getQuery(true)
->delete('#__session')
->where($db->quoteName('session_id') . ' = ' . $db->quoteBinary($oldSessionId));
$db->setQuery($query)->execute();
$instance->setLastVisit();
}
$app->redirect('administrator/index.php');
exit();
var/softaculous/joomla4/sign_on.php 0000644 00000004543 15053457167 0013440 0 ustar 00 <?php
@unlink(__FILE__);
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
define('_JEXEC', 1);
// Joomla 4.x
if(file_exists(__DIR__ . '/administrator/includes/app.php')){
ob_start();
require_once __DIR__ . '/administrator/includes/app.php';
}else{
// Joomla 3.x
if (file_exists(__DIR__ . '/defines.php'))
{
include_once __DIR__ . '/defines.php';
}
if (!defined('_JDEFINES'))
{
define('JPATH_BASE', __DIR__ . DIRECTORY_SEPARATOR . 'administrator' );
require_once JPATH_BASE . '/includes/defines.php';
}
require_once JPATH_BASE . '/includes/framework.php';
require_once JPATH_BASE . '/includes/helper.php';
require_once JPATH_BASE . '/includes/subtoolbar.php';
}
$app = JFactory::getApplication('administrator');
// Check for a cookie if user is not logged in
if(JFactory::getUser()->get('guest')){
$signon_user = '[[signon_username]]';
$options = array('action' => 'core.login.admin');
$instance = Joomla\CMS\User\User::getInstance();
$db = JFactory::getDbo();
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$id = (int) Joomla\CMS\User\UserHelper::getUserId($signon_user);
}else{
$query = $db->getQuery(true);
$query->select($db->quoteName('user_id'))
->from($db->quoteName('#__user_usergroup_map'))
->where($db->quoteName('group_id') . ' = 8' );
$db->setQuery($query);
$users = $db->loadColumn();
$id = min($users);
}
if (!$id)
{
$app->redirect('administrator/index.php');
exit();
}
$instance->load($id);
// If the user is blocked, redirect with an error
if ($instance->block == 1)
{
$app->redirect('administrator/index.php');
exit();
}
$result = $instance->authorise($options['action']);
// Mark the user as logged in
$instance->guest = 0;
$session = Joomla\CMS\Factory::getSession();
// Grab the current session ID
$oldSessionId = $session->getId();
// Fork the session
$session->fork();
$session->set('user', $instance);
// Ensure the new session's metadata is written to the database
$app->checkSession();
// Purge the old session
$query = $db->getQuery(true)
->delete('#__session')
->where($db->quoteName('session_id') . ' = ' . $db->quoteBinary($oldSessionId));
$db->setQuery($query)->execute();
$instance->setLastVisit();
}
$app->redirect('administrator/index.php');
exit();
var/softaculous/wp65/sign_on.php 0000644 00000006437 15053457206 0012672 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp67/sign_on.php 0000644 00000006437 15053457272 0012677 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp58/sign_on.php 0000644 00000006437 15053457507 0012700 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_s var/softaculous/wp49/sign_on.php 0000644 00000006437 15053457605 0012677 0 ustar 00 var/softaculous/wp66/sign_on.php 0000644 00000006437 15053517062 0012670 0 ustar 00 var/softaculous/wp57/sign_on.php 0000644 00000006437 15053517504 0012671 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp54/sign_on.php 0000644 00000006437 15053537667 0012702 0 ustar 00 var/softaculous/wp59/sign_on.php 0000644 00000006437 15053537770 0012702 0 ustar 00 var/softaculous/wp64/sign_on.php 0000644 00000006437 15053540320 0012657 0 ustar 00 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp59/sign_on.php 0000644 00000006437 15053537770 0012702 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp64/sign_on.php 0000644 00000006437 15053540320 0012657 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
var/softaculous/wp56/sign_on.php 0000644 00000006437 15053540612 0012664 0 ustar 00 <?php
if(!class_exists('Redis') && !file_exists('[[softpath]]/wp-content/object-cache.php')){
@unlink(__FILE__);
}
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != '[[autopass]]'){
die("Unauthorized Access");
}
if(isset($_REQUEST['FLUSH_CACHE'])){
@unlink(__FILE__);
define( 'WP_USE_THEMES', false );
require __DIR__ . '/wp-blog-header.php';
wp_cache_flush();
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();
}
// Dummy plugin dir so that no plugins are loaded as they conflict with our login process
define('WPMU_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_PLUGIN_DIR', '[[softpath]]/[[autopass]]');
define('WP_CONTENT_DIR', '[[softpath]]/[[autopass]]');
define('WP_USE_THEMES', false);
// Some themes check the current login script name
$_SERVER['SCRIPT_NAME'] = '/wp-login.php';
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
// If the user is already logged in simply redirect to admin page
if(!is_user_logged_in()){
$signon_user = '[[signon_username]]';
//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
$user = get_user_by('login', $signon_user);
}else{
$user_info = get_userdata(1);
// Try to find an admin if we do not have any admin with ID => 1 or if ID 1 does not have administrator role
if (empty($user_info) || empty($user_info->user_login) || !in_array('administrator', $user_info->roles)) {
$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
$user_info = get_userdata($admin_id[0]->ID);
}
$username = $user_info->user_login;
$user = get_user_by('login', $username);
}
// Create the session
if(!is_wp_error($user)){
wp_clear_auth_cookie();
wp_set_current_user($user->ID);
wp_set_auth_cookie($user->ID);
// Create a session for wp-simple-firewall plugin
if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
try{
global $wpdb;
$wpsf_session_id = md5(uniqid('icwp-wpsf'));
$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
"session_id" => $wpsf_session_id,
"wp_username" => $user->user_login,
"ip" => $_SERVER['REMOTE_ADDR'],
"browser" => md5($_SERVER['HTTP_USER_AGENT']),
"last_activity_uri" => "/wp-login.php",
"logged_in_at" => time(),
"last_activity_at" => time(),
"login_intent_expires_at" => 0,
"secadmin_at" => 0,
"created_at" => time(),
"deleted_at" => 0,
));
setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
} catch(Exception $e){
}
}
}
}
if(class_exists('Redis') || file_exists('[[softpath]]/wp-content/object-cache.php')){
// Redirect to flush cache
$redirect_to = $_SERVER['REQUEST_URI'].'&FLUSH_CACHE=1';
wp_safe_redirect( $redirect_to );
exit();
}
@unlink(__FILE__);
// Redirect to admin page or requested page
$redirect_to = admin_url();
if(!empty($_REQUEST['redirect_to'])){
$redirect_to = $_REQUEST['redirect_to'];
}
wp_safe_redirect( $redirect_to );
exit();