public function __construct() { parent::__construct(); $this->jid = $this->get_from_get_post("jid"); $this->password = $this->get_from_get_post("password"); $this->filename = "Edit-log-export-" . $this->jid . ".csv"; }
public function __construct() { parent::sessionStart(); $filterArgs = array('tm_key' => array('filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH), 'downloadToken' => array('filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH), 'source' => array('filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH), 'target' => array('filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH)); $__postInput = filter_var_array($_REQUEST, $filterArgs); //NOTE: This is for debug purpose only, //NOTE: Global $_POST Overriding from CLI Test scripts //$__postInput = filter_var_array( $_POST, $filterArgs ); $this->tm_key = $__postInput['tm_key']; $this->source = $__postInput['source']; $this->target = $__postInput['target']; $this->downloadToken = $__postInput['downloadToken']; parent::disableSessions(); $userIsLogged = isset($_SESSION['cid']) && !empty($_SESSION['cid']); if (!$userIsLogged) { $output = "<pre>\n"; $output .= " - REQUEST URI: " . print_r(@$_SERVER['REQUEST_URI'], true) . "\n"; $output .= " - REQUEST Message: " . print_r($_REQUEST, true) . "\n"; $output .= "\n\t"; $output .= "Aborting...\n"; $output .= "</pre>"; Log::$fileName = 'php_errors.txt'; Log::doLog($output); Utils::sendErrMailReport($output, "Download TMX Error: user Not Logged"); $this->unlockToken(); exit; } $this->uid = isset($_SESSION['uid']) && !empty($_SESSION['uid']) ? $_SESSION['uid'] : null; $this->userMail = isset($_SESSION['cid']) && !empty($_SESSION['cid']) ? $_SESSION['cid'] : null; $this->tmxHandler = new TMSService(); $this->tmxHandler->setTmKey($this->tm_key); }
public function __construct() { parent::__construct(); $filterArgs = array('job_id' => array('filter' => FILTER_SANITIZE_NUMBER_INT), 'job_password' => array('filter' => FILTER_SANITIZE_STRING, 'flags' => FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH), 'segment_id' => array('filter' => FILTER_SANITIZE_NUMBER_INT)); $__postInput = filter_input_array(INPUT_GET, $filterArgs); $this->job_id = $__postInput['job_id']; //can be: search / replace $this->job_password = $__postInput['job_password']; $this->segment_id = $__postInput['segment_id']; }
public function __construct() { parent::__construct(); //echo "<pre>";print_r ($_POST); $this->fname = $this->get_from_get_post('filename'); $this->id_file = $this->get_from_get_post('id_file'); $this->id_job = $this->get_from_get_post('id_job'); $this->download_type = $this->get_from_get_post('download_type'); $this->filename = $this->fname; $this->password = $this->get_from_get_post("password"); if (empty($this->id_job)) { $this->id_job = "Unknown"; } }