OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
sendy
/
includes
/
rules
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/27/2025 10:27:13 AM
rwxr-xr-x
📄
delete.php
463 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
edit.php
900 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
get_ares.php
819 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
get_custom_fields.php
1.48 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
main.php
3.95 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
save.php
1.89 KB
05/19/2025 10:07:15 AM
rw-r--r--
Editing: edit.php
Close
<?php include('../functions.php');?> <?php include('../login/auth.php');?> <?php $id = isset($_POST['id']) && is_numeric($_POST['id']) ? mysqli_real_escape_string($mysqli, (int)$_POST['id']) : "NULL"; $action = mysqli_real_escape_string($mysqli, $_POST['action']); if($action=='unsub_from_list') $val = isset($_POST['val']) && is_numeric($_POST['val']) ? mysqli_real_escape_string($mysqli, (int)$_POST['val']) : "NULL"; else $val = '"'.mysqli_real_escape_string($mysqli, $_POST['val']).'"'; $actions = array('webhook'=>'endpoint', 'notify'=>'notification_email', 'unsub_from_list'=>'unsubscribe_list_id'); $column = $actions[$action]; $q = 'UPDATE rules SET '.$column.'='.$val.' WHERE id = '.$id; $r = mysqli_query($mysqli, $q); if ($r) { echo true; } else { error_log("[Unable to edit rule]".mysqli_error($mysqli).': in '.__FILE__.' on line '.__LINE__); echo false; } ?>