����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.62 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/muebles/application/category/ |
Upload File : |
<?php include "../model/dbconn.php"; include "../model/sql.php"; if( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && ( $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) ) { $method=$_POST['method']; $dtbs = new sql(); $retval = []; if($method == 'list_category'){ $list = $dtbs->list_category(); $retval['status'] = $list[0]; $retval['message'] = $list[1]; $retval['data'] = $list[2]; echo json_encode($retval); } //datos de baja if($method == 'list_category2'){ $list = $dtbs->list_category2(); $retval['status'] = $list[0]; $retval['message'] = $list[1]; $retval['data'] = $list[2]; echo json_encode($retval); } if($method == 'new_category'){ $name = $_POST['name']; $created_at = date('Y-m-d'); $new = $dtbs->new_category($name,$created_at); $retval['status'] = $new[0]; $retval['message'] = $new[1]; echo json_encode($retval); } if($method == 'edit_category'){ $id_cust = $_POST['id_cust']; $name = $_POST['name']; $edit = $dtbs->edit_category($name,$id_cust); $retval['status'] = $edit[0]; $retval['message'] = $edit[1]; echo json_encode($retval); } if($method == 'edit_category2'){ $id_cust = $_POST['id_cust']; $name = $_POST['name']; //$crud = $_POST['crud']; $zero=0; $date_down=date('Y-m-d'); $edit = $dtbs->edit_category2($id_cust,$name,$zero,$date_down); $retval['status'] = $edit[0]; $retval['message'] = $edit[1]; echo json_encode($retval); } if($method == 'delete_category'){ $id_cust = $_POST['id_cust']; $delete = $dtbs->delete_category($id_cust); $retval['status'] = $delete[0]; $retval['message'] = $delete[1]; echo json_encode($retval); } }else{ header("HTTP/1.1 401 Unauthorized"); exit; }