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::__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"; } }