public function __construct($db)
 {
     parent::__construct($db);
     $this->users = $this->user->getAll();
     if (!$_SESSION["login"]) {
         $_SESSION["page_message"] = "ERROR_NOTAUTH";
         header('Location: ' . $this->config->address . '?view=message');
     }
     if (!$_GET["answer_to"]) {
         unset($_SESSION["title"]);
         unset($_SESSION["id_message"]);
     }
     //$answer_from_login = $this->mail->getField("id")
     if ($_GET["answer_to"]) {
         $from = $this->mail->getField("from", "id", $_GET["answer_to"]);
         if ($_SESSION["login"] != $from) {
             $this->to = $this->user->getField("FIO", "login", $from);
         } else {
             $this->to = $this->user->getField("FIO", "login", $this->mail->getField("to", "id", $_GET["answer_to"]));
         }
         //echo "$from";
         $this->messages = $this->user->getField("FIO", "id", $_GET["answer_to"]);
     } elseif ($_GET["to"]) {
         $from = $this->user->getField("login", "id", $_GET["to"]);
         $this->to = $this->user->getField("FIO", "login", $from);
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     //$this->pictures = $this->picture->getAllSortDate();
     $where = "`status` = 'on_order' AND `admin_check` != 'need'";
     $this->pictures = $this->picture->getSortingPictures($where, $order = date, $up = false);
     $this->users = $this->user->getAll();
     //print_r($this->users);
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
     if ($_GET["show"]) {
         $this->count_blog = $_GET["count_on_pg"];
         $sort = $_GET;
         if ($_GET["author"]) {
             $sort["author"] = $this->user->getField("login", "id", $_GET["author"]);
         } else {
             $sort["author"] = "";
         }
         //echo "$author";
         $this->pictures = $this->sorting($sort, $author, $status = "on_order");
     }
     if ($_GET["count_on_pg"]) {
         $this->count_blog = $_GET["count_on_pg"];
     } else {
         $this->count_blog = $this->config->count_blog;
     }
     if ($_GET["reset"]) {
         unset($_GET);
     }
 }
Exemple #3
0
 public function __construct($siteID)
 {
     $this->_siteID = $siteID;
     $this->_db = DatabaseConnection::getInstance();
     $this->extraFields = new ExtraFields($siteID, DATA_ITEM_JOBORDER);
     parent::__construct();
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->id = $_GET["id"];
     $this->image = $this->picture->getAllOnField("id", $this->id);
     $this->comment_info = $this->comment->getAllOnSectionId($_GET["id"]);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->pictures = $this->picture->getAllSortDate();
     $this->users = $this->user->getAll();
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
     if ($_GET["show"]) {
         $this->count_blog = $_GET["count_on_pg"];
         $sort = $_GET;
         if ($_GET["author"]) {
             $sort["author"] = $this->user->getField("login", "id", $_GET["author"]);
         } else {
             $sort["author"] = "";
         }
         //echo "$author";
         $this->pictures = $this->sorting($sort, $author);
     }
     if ($_GET["count_on_pg"]) {
         $this->count_blog = $_GET["count_on_pg"];
     } else {
         $this->count_blog = $this->config->count_blog;
     }
     if ($_GET["reset"]) {
         unset($_GET);
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->pictures = $this->picture->getAllUserPictures($_SESSION["login"]);
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
 }
 public function __construct($db)
 {
     session_start();
     $config = new Config();
     $data = $this->secureData($_GET);
     $user = new User($db);
     parent::__construct($db);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->pictures = $this->picture->getAllSortDate();
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->id = $_GET["id"];
     //$this->basket = new Basket($db);
     $this->image = $this->basket->getAllOnField("image_id", $this->id);
     //	print_r($this->image);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->article_info = $this->article->get($this->data["id"]);
     if (!$this->article_info) {
         return $this->redirect();
     }
     //$this->comment_info = $this->comment->getAll();
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->poll_votes_info = $this->poll_votes->get($_GET["id"]);
     $this->poll_info = $this->poll->get($this->poll_votes_info["poll_id"]);
     print_r($this->poll_votes_info);
     if (!$this->poll_info) {
         return $this->redirect();
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->article_info = $this->article->get($this->data["id"]);
     if (!$this->article_info) {
         return $this->redirect();
     }
     $this->comment_info = $this->comment->getAllOnSectionId($this->article_info["id"]);
     $_SESSION["article_id"] = $this->data["id"];
     //print_r($_SESSION);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     if (!$_SESSION["login"]) {
         $_SESSION["page_message"] = "ERROR_NOTAUTH";
         header('Location: ' . $this->config->address . '?view=message');
     } else {
         $this->messages = $this->mail->getAllOutbox($_SESSION["login"]);
         $this->NewMessages = $this->mail->getNewMessages($_SESSION["login"]);
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->id = $_GET["id"];
     $this->image = $this->picture->getAllOnField("id", $this->id);
     //if (!isset($this->data["page"])) $this->data["page"] = 1;
     //		$this->article_info = $this->article->get($this->data["id"]);
     //		if (!$this->article_info) return $this->redirect();
     //		$this->comment_info = $this->comment->getAllOnSectionId($_GET["id"]);
     //		$_SESSION["article_id"] = $this->data["id"];
     //print_r($_SESSION);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->articles = $this->article->getAllOnSectionId($this->data["id"]);
     $this->section_info = $this->section->get($this->data["id"]);
     if (!$this->section_info) {
         return $this->redirect();
     }
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->config = new Config();
     $this->picture = new Picture($db);
     if (!$_SESSION["login"]) {
         $_SESSION["page_message"] = "ERROR_NOTAUTH";
         header('Location: ' . $this->config->address . '?view=message');
     }
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
 }
 public function __construct($db)
 {
     parent::__construct($db);
     //		$this->pictures = new picture($db);
     $this->pictures = "";
     $this->searchwords = $this->data["words"];
     //		if ($this->searchwords != ""){
     if (!preg_match("/\\s{1,}/", $this->searchwords) || $this->searchwords == "") {
         $this->pictures = $this->getsearcharticle($this->searchwords);
     } else {
         $this->redirect();
     }
     if (!isset($this->data["page"])) {
         $this->data["page"] = 1;
     }
 }
Exemple #18
0
 public function __construct($siteID)
 {
     parent::__construct($siteID);
 }
 public function __construct($db)
 {
     parent::__construct($db);
 }
Exemple #20
0
 /**
  *  creates an new ModuleLists object
  */
 public function __construct()
 {
     global $gL10n;
     // define constant for headline
     define('HEADLINE', $gL10n->get('LST_ACTIVE_ROLES'));
     // get parent instance with all parameters from $_GET Array
     parent::__construct();
     $this->setMemberStatus();
 }
Exemple #21
0
 /**
  * Constructor that will create an object of a parameter set needed in modules to get the recordsets.
  * Initialize parameters
  */
 public function __construct()
 {
     parent::__construct();
     $this->setParameter('mode', 'actual');
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->userData = $this->user->getAllOnField("login", $_SESSION["login"]);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->userData = $this->user->getAllOnField("id", $_GET["id"]);
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->image = $this->picture->deleteOnId($_SESSION["image_id"]);
     //if (!isset($this->data["page"])) $this->data["page"] = 1;
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->image = $this->picture->getAllOnField("id", $_SESSION["image_id"]);
     //if (!isset($this->data["page"])) $this->data["page"] = 1;
 }
Exemple #26
0
 /**
  *  creates an new ModuleWeblink object
  */
 public function __construct()
 {
     global $gValidLogin;
     global $gL10n;
     // get parent instance with all parameters from $_GET Array
     parent::__construct();
 }
Exemple #27
0
 function __construct()
 {
     parent::__construct(__FILE__);
     $course = $this->database->query("SELECT name_rus FROM course WHERE active='1' ORDER BY pos LIMIT 1")->one();
     $this->course = (double) $course;
 }
 public function __construct($db)
 {
     parent::__construct($db);
     header("HTTP/1.0 404 Not Found");
 }
 public function __construct($db)
 {
     parent::__construct($db);
     $this->message_title = $this->message->getTitle($_SESSION["page_message"]);
     $this->message_text = $this->message->getText($_SESSION["page_message"]);
 }