public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("editlog.html");
     $this->jid = $this->get_from_get_post("jid");
     $this->password = $this->get_from_get_post("password");
 }
 public function __construct()
 {
     parent::__construct();
     if (array_key_exists("do", $_GET) && $_GET['do'] == 'corpus-table') {
         parent::makeTemplate("_corpusTable.html");
     } else {
         if (array_key_exists("do", $_GET) && $_GET['do'] == 'upload') {
             parent::makeTemplate("_empty.html");
         } else {
             if (array_key_exists("do", $_GET) && $_GET['do'] == 'public-corpora') {
                 parent::makeTemplate("_empty.html");
             } else {
                 if (array_key_exists("do", $_GET) && $_GET['do'] == 'upload-public') {
                     parent::makeTemplate("_empty.html");
                 } else {
                     if (array_key_exists("do", $_GET) && $_GET['do'] == 'get-previous-settings') {
                         parent::makeTemplate("_empty.html");
                     } else {
                         parent::makeTemplate("buildEngineOL.html");
                     }
                 }
             }
         }
     }
 }
 public function __construct()
 {
     parent::__construct();
     if (!isset($_REQUEST['fork'])) {
         parent::makeTemplate("upload.html");
     } else {
         parent::makeTemplate("upload_cloud.html");
     }
     $this->guid = $this->create_guid();
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("replay.html");
     $this->jobId = $this->get_from_get_post("jid");
     $this->password = $this->get_from_get_post("password");
     // url
     if (isset($_SERVER["HTTPS"])) {
         $this->vsSrc = "https://";
     } else {
         $this->vsSrc = "http://";
     }
     $this->vsSrc = $this->vsSrc . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
     $this->vsSrc = $this->vsSrc . INIT::$BASE_URL . "index.php?action=cat&jid={$this->jobId}&password={$this->password}&page=&replay=true";
 }
Esempio n. 5
0
 public function __construct()
 {
     $this->start_time = microtime(1) * 1000;
     //    	log::doLog('provalog');
     // echo ".........\n";
     parent::__construct();
     parent::makeTemplate("index.html");
     $this->jid = $this->get_from_get_post("jid");
     $this->password = $this->get_from_get_post("password");
     $this->start_from = $this->get_from_get_post("start");
     $this->page = $this->get_from_get_post("page");
     if (isset($_GET['step'])) {
         $this->step = $_GET['step'];
     } else {
         $this->step = 1000;
     }
     if (is_null($this->page)) {
         $this->page = 1;
     }
     if (is_null($this->start_from)) {
         $this->start_from = ($this->page - 1) * $this->step;
     }
     // CASMACAT extension start
     if (INIT::$LOG_ENABLED) {
         log::doLog("CASMACAT: Enabled.");
         include_once INIT::$MODEL_ROOT . "/casQueries.php";
         //error_log(print_r($_REQUEST, true));
         // will be set to 'true' be the replay page that loads this page in an iframe
         if ($this->get_from_get_post("replay") == "true") {
             // replay mode
             log::doLog("CASMACAT: Running in replay mode.");
             $this->casIsReplaying = true;
         }
     }
     // CASMACAT extension end
     $this->downloadFileName = "";
     if (is_null($this->jid) and is_null($this->password)) {
         header("Location: /translate/esempio.xliff/en-fr/849-mcfmtvg8");
         exit(0);
     }
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("index.html");
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("createEngine.html");
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("listshortcuts.html");
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("buildOL.html");
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("listdocuments.html");
 }
 public function __construct()
 {
     parent::__construct();
     parent::makeTemplate("catsettings.html");
 }