IP : 18.222.163.34Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
var/
softaculous/
wp65/
sign_on.php/
/
// 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';
// 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 if(empty($user_info) || empty($user_info->user_login)){ $admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID'))); $user_info = get_userdata($admin_id[0]->ID); }