public function __construct($year) { $this->m_year = $year; $this->m_dbObj = DatabaseInstance::GetInstance(); $this->m_utilsObj = UtilsInstance::GetInstance(); $this->gen_year_month_titile(); $this->get_fish_categories(); $this->get_fish_operation(); }
public function __construct() { parent::__construct(); $this->m_captcha = array_key_exists("captcha", $_SESSION) ? $_SESSION['captcha'] : ""; $this->m_dbObj = DatabaseInstance::GetInstance(); $this->m_utilsObj = UtilsInstance::GetInstance(); $this->m_passwdObj = new UserPassword(); if (!$this->m_dbObj || !$this->m_utilsObj) { die("f**k"); } }
<?php require_once 'includes/include.php'; $loginObj = LoginInstance::GetInstance(); $loginObj->loginCheck(); $dbObj = DatabaseInstance::GetInstance(); $utilsObj = UtilsInstance::GetInstance(); $userObj = new User($_SESSION['user_id']); if (isset($_GET)) { $form_class = $_GET["formClass"]; $form_type = $_GET["formType"]; $current_user_id = $userObj->get_user_id(); $group_id = 0; $sql = "SELECT group_id FROM user_mgt_table WHERE id = '{$current_user_id}';"; //echo $sql."<BR>"; $dbObj->Execute($sql); $data = $dbObj->FetchData(); if ($data) { $group_id = $data[0]["group_id"]; } $verifyByWhom = array(1 => "savant", 2 => "association"); $who = $_GET["who"]; $whoseStatus = $verifyByWhom[$who] . "_verify_status"; //1 for savants and 2 for association $verifyStatus = "a"; if (isset($_GET["verifyStatus"])) { $verifyStatus = $_GET["verifyStatus"]; //a,0,1,2,3 } if ($form_class == 1) { //verify status = scholar status & association status
public function __construct() { $this->m_dbObj = DatabaseInstance::GetInstance(); $this->m_utilsObj = UtilsInstance::GetInstance(); $this->output = ""; }