whoami7 - Manager
:
/
home
/
snapify
/
public_html
/
clients
/
ami
/
controllers
/
Upload File:
files >> /home/snapify/public_html/clients/ami/controllers/ajax_get.php
<?php /** * */ class ajax_get extends controller { public function task() { header('Content-Type: application/json'); $method = $this->params['task']; return $this->$method($_GET); } private function getallgender() { $data = $this->model->getallgender(); echo json_encode($data); } private function getallstyle() { $data = $this->model->getallstyle(); echo json_encode($data); } private function getalltenure() { $data = $this->model->getalltenure(); echo json_encode($data); } private function getallcountrylist() { $data = $this->model->getcountry(); echo json_encode($data); } private function getallcarrier() { $data = $this->model->getcarriers(); echo json_encode($data); } private function gettrackingCompany() { $data = $this->model->gettrackingCompany(); echo json_encode($data); } private function getallitem() { $data = $this->model->getallitem(); $data = array_map(function ($value) { $value['dontcheck'] = (int)$value['dontcheck']; return $value; }, $data); echo json_encode($data); } private function getallshipmethods() { $data = $this->model->shipmethod(); echo json_encode($data); } private function getshipmethods() { $data = $this->model->getshipmethods(); echo json_encode($data); } private function getss_snapshipmethods() { $data = $this->model->getss_snapshipmethods(); echo json_encode($data); } private function getwarehouselocation() { $data = $this->model->getwarehouselocation(); echo json_encode($data); } private function products() { $data = $this->model->productsList(); echo json_encode(['data'=>$data]); } private function shopifyproducts() { $data = $this->model->shopifyproductsList(); echo json_encode(['data'=>$data]); } private function getshipmethodsp1() { $data = $this->model->getshipmethodsp1(); echo json_encode($data); } private function getshipmethodsp2() { $data = $this->model->getshipmethodsp2(); echo json_encode($data); } private function getschedule() { $data = $this->model->getschedule($_GET['id']); echo json_encode($data); } private function shopifyLocations() { $data = $this->model->shopifyLocations(); echo json_encode(['data'=>$data]); } private function snapfulfillog() { $table = 'snap_logs'; $primaryKey = 'id'; $columns = array( array( 'db' => 'req_url', 'dt' => 'req_url' , 'type'=>'char' ), array( 'db' => 'request', 'dt' => 'request', 'type'=>'char' ), array( 'db' => 'responce', 'dt' => 'responce', 'type'=>'char' ), array( 'db' => 'status_code', 'dt' => 'status_code' , 'type'=>'char' ), array( 'db' => 'datetime', 'dt' => 'datetime', 'type'=>'char' ), ); echo json_encode($this->model->datatable( $_GET, $table, $primaryKey, $columns )); } public function shopifyapilog() { $table = 'shopify_logs'; $primaryKey = 'id'; $columns = array( array( 'db' => 'req_url', 'dt' => 'req_url' , 'type'=>'char' ), array( 'db' => 'request', 'dt' => 'request', 'type'=>'char' ), array( 'db' => 'responce', 'dt' => 'responce', 'type'=>'char'), array( 'db' => 'status_code', 'dt' => 'status_code', 'type'=>'char'), array( 'db' => 'datetime', 'dt' => 'datetime', 'type'=>'char'), array( 'db' => 'method', 'dt' => 'method', 'type'=>'char') ); echo json_encode($this->model->datatable( $_GET, $table, $primaryKey, $columns )); } public function shopifylog() { $table = 'hooks_log'; $primaryKey = 'id'; $columns = array( array( 'db' => 'content', 'dt' => 'content' , 'type'=>'char' ), array( 'db' => 'method', 'dt' => 'method', 'type'=>'char' ), array( 'db' => 'datetime', 'dt' => 'datetime', 'type'=>'char') ); echo json_encode($this->model->datatable( $_GET, $table, $primaryKey, $columns )); } public function cronlog() { $table = 'cron_log'; $primaryKey = 'id'; $columns = array( array( 'db' => 'endtime', 'dt' => 'endtime' , 'type'=>'char' ), array( 'db' => 'datetime', 'dt' => 'datetime', 'type'=>'char' ), array( 'db' => 'count', 'dt' => 'count', 'type'=>'char'), array( 'db' => 'cron_name', 'dt' => 'cron_name', 'type'=>'char'), array( 'db' => 'status', 'dt' => 'status', 'type'=>'char') ); echo json_encode($this->model->datatable( $_GET, $table, $primaryKey, $columns )); } private function getcsv_snapshipmethods() { $data = $this->model->getcsv_snapshipmethods(); echo json_encode($data); } }
Copyright ©2021 || Defacer Indonesia