OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
old_sendy
/
includes
/
settings
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
main.php
1.04 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
regenerate-api-key.php
540 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
restore-api-key.php
643 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
save.php
6.46 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
two-factor.php
1.18 KB
05/19/2025 10:07:16 AM
rw-r--r--
Editing: restore-api-key.php
Close
<?php include('../functions.php');?> <?php include('../login/auth.php');?> <?php //Only allow script to continue if it's the main admin user generating a password for a brand if(get_app_info('is_sub_user')) exit; //Init $q = 'SELECT api_key_prev FROM login WHERE id = '.get_app_info('userID'); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) while($row = mysqli_fetch_array($r)) $api_key_prev = $row['api_key_prev']; $q = 'UPDATE login SET api_key = "'.$api_key_prev.'", api_key_prev = "" WHERE id = '.get_app_info('userID'); $r = mysqli_query($mysqli, $q); if ($r) echo $api_key_prev; else echo "failed"; ?>