private static function checkAndLoadInputParams() { self::$file = InputData::getPost('file'); self::$convertType = InputData::getPost('convertType'); self::$options = array('hotelsNames' => InputData::getPost('hotelsNames')); return InputData::hasPost('file') & InputData::hasPost("convertType"); }
public function __construct(&$objPHPExcel, &$data, $options) { $this->selectedHotels = $options['hotelsNames']; $this->worksheet = $objPHPExcel->getActiveSheet(); $this->data =& $data; $this->selectedHotels = InputData::getPost("hotelsNames"); }
private static function checkAndLoadInputParams() { self::$file = InputData::getPost('file'); if (!self::$file) { self::$file = InputData::getGet('file'); } return self::$file; }
private static function checkAndLoadInputParams() { self::$file = InputData::getPost('file'); if (!self::$file) { self::$file = InputData::getGet('file'); } if (InputData::getPost('convertType')) { self::$convertType = InputData::getPost('convertType'); } return self::$file && self::$convertType; }
public function login() { if (!$this->isLogged && $_POST) { if ($_POST) { $username = Common::normalize("mysql|trim", InputData::getPost('username')); $password = Common::normalize("mysql|trim", InputData::getPost('password')); $sql = "SELECT * FROM users WHERE password = MD5('{$password}') and username = '******' and active = '1';"; $data = core::$oDb->db_query($sql); if ($data && $data[0]['password'] == MD5($password)) { unset($data[0]['password']); Core::$oSession->authUserData = $data[0]; Router::redirect($this->redirectUrl); } else { $this->loginForm(); } } } }
public static function useMethod($Create, $Read, $Update, $Delete) { if (!InputData::getPost("_method")) { return $Read; } if (Router::$method == 'GET') { return $Read; } elseif (Router::$method == 'POST' && InputData::getPost("_method") == "PUT") { return $Update; } elseif (Router::$method == 'POST' && InputData::getPost("_method") == "DELETE") { return $Delete; } elseif (Router::$method == 'POST') { return $Create; } }