Файловый менеджер - Редактировать - /home2/cocinasdalloway/public_html/grupodly.com/models/Catalogos/Proveedor.Controller.php
Назад
<?php @session_start(); if (!class_exists("Connection")) { include $_SERVER["DOCUMENT_ROOT"].'/models/Tools/Connection.php'; }if (!class_exists("Functions_tools")) { include $_SERVER["DOCUMENT_ROOT"].'/models/Tools/Functions_tools.php'; }if (!class_exists("Proveedor")) { include $_SERVER["DOCUMENT_ROOT"].'/models/Catalogos/Proveedor.Model.php'; } /** * */ class ProveedorController{ private $conn; private $Tool; public $filter; public $order; public function __construct(){ $this->conn = new Connection(); $this->Tool = new Functions_tools(); } public function get($return_json){ try { if (!$this->conn->conexion()->connect_error) { $ProveedorModel = new Proveedor(); $ProveedorModel->SetParameters($this->conn, $this->Tool); $items = $ProveedorModel->Get($this->filter, $this->order); unset($ProveedorModel); return $this->Tool->Message_return(false, "", $items, $return_json); } } catch (Exception $e) { throw $e; } } public function controller(){ try { $Action = $this->Tool->validate_isset_post('Action'); switch ($Action) { case 'create': echo $this->create(true); break; default: throw new Exception("No se encuentra la opción solicitada"); break; } } catch (Exception $e) { echo $this->Tool->Message_return(true, $e->getMessage(), null, true); } } } $Tool = new Functions_tools(); # Comprobación Autorización Ajax if (isset($_SERVER['PHP_AUTH_USER']) && $Tool->securityAjax() && isset($_REQUEST['ActionProveedor'])) { $ProveedorController = new ProveedorController(); $ProveedorController->controller(); unset($ProveedorController); } unset($Tool);
| ver. 1.4 |
Github
|
.
| PHP 8.2.22 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка