File manager - Edit - /home/autoph/public_html/data03252025consolidation/app/employee/status.php
Back
<?php include_once("../../cfg/db.php"); $employee_id = $db -> escape(trim($_POST['employee_id'])); $current_status = $db -> select("SELECT status FROM `employee_account` WHERE employee_id = '$employee_id'"); $update_status = 1; if($current_status == 1){ $update_status = 0; } $db -> sql_query("UPDATE employee_account SET status = '$update_status' WHERE employee_id = '$employee_id'"); $token_key = '10090706'; $web_service = 'http://autohub.ph/connect/ACTVVATE_DIACTIVATED_ACCOUNT.php?keyCode='.$token_key.'&ActionType='.$update_status.'&MyEMPID='.$employee_id.''; // echo $web_service;exit; echo get_content($web_service); function get_content($URL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $URL); $data = curl_exec($ch); curl_close($ch); return $data; } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings