public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->nomor = new Nomor(); $this->view->kantor = Kantor::getNama(); }
function __construct() { parent::__construct(); //print "Index Page"; Auth::handleLogin(); Auth::last_Activity(); }
public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->nomor = new Nomor(); $this->view->kantor = Kantor::getNama(); $this->view->js = array('suratmasuk/js/default'); }
public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->nomor = new Nomor(); $this->view->kantor = Kantor::getNama(); $this->view->js = array('suratmasuk/js/default', 'suratkeluar/js/jquery.tipTip', 'suratkeluar/js/jquery.tipTip.minified'); }
/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); // VERY IMPORTANT: All controllers/areas that should only be usable by logged-in users // need this line! Otherwise not-logged in users could do actions. If all of your pages should only // be usable by logged-in users: Put this line into libs/Controller->__construct Auth::handleLogin(); }
public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->view->kantor = Kantor::getNama(); //$this->view = new View; //echo "</br>kelas berhasil di bentuk"; }
public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->view->kantor = Kantor::getNama(); //$this->view = new View; //echo "</br>kelas berhasil di bentuk"; $this->view->js = array('admin/js/default', 'suratkeluar/js/jquery.tipTip', 'suratkeluar/js/jquery.tipTip.minified'); }
public function content() { Auth::handleLogin(); // adatok bevitele a view objektumba $this->view->title = 'Admin egyéb tartalom oldal'; $this->view->description = 'Admin egyéb tartalom oldal description'; $this->view->js_link[] = $this->make_link('js', ADMIN_JS, 'pages/common.js'); $this->view->render('pages/tpl_content'); }
/** * PAGE: index * This method handles what happens when you move to http://yourproject/home/index (which is the default page btw) */ public function index() { // debug message to show where you are, just for the demo echo 'Message from Controller: You are in the controller home, using the method index()'; Auth::handleLogin(); // load views require 'application/views/_templates/header.php'; require 'application/views/home/index.php'; require 'application/views/_templates/footer.php'; }
public function __construct() { @parent::__construct($registry); Auth::handleLogin(); $this->nomor = new Nomor(); $this->view->kantor = Kantor::getNama(); $this->view->js = array('suratmasuk/js/default'); //$this->view = new View; //echo "</br>kelas berhasil di bentuk"; }
/** * PAGE: index * This method handles what happens when you move to http://yourproject/home/index (which is the default page btw) */ public function index() { if (Auth::handleLogin()) { //test $a = "a:5:{s:5:\"width\";i:1400;s:6:\"height\";i:733;s:4:\"file\";s:65:\"E:/xampp/htdocs/wordpress2/wp-content/uploads/2015/12/slide-1.jpg\";s:5:\"sizes\";a:6:{s:9:\"thumbnail\";a:4:{s:4:\"file\";s:19:\"slide-1-150x150.jpg\";s:5:\"width\";i:150;s:6:\"height\";i:150;s:9:\"mime-type\";s:10:\"image/jpeg\";}s:6:\"medium\";a:4:{s:4:\"file\";s:19:\"slide-1-300x157.jpg\";s:5:\"width\";i:300;s:6:\"height\";i:157;s:9:\"mime-type\";s:10:\"image/jpeg\";}s:12:\"medium_large\";a:4:{s:4:\"file\";s:19:\"slide-1-768x402.jpg\";s:5:\"width\";i:768;s:6:\"height\";i:402;s:9:\"mime-type\";s:10:\"image/jpeg\";}s:5:\"large\";a:4:{s:4:\"file\";s:20:\"slide-1-1024x536.jpg\";s:5:\"width\";i:1024;s:6:\"height\";i:536;s:9:\"mime-type\";s:10:\"image/jpeg\";}s:14:\"post-thumbnail\";a:4:{s:4:\"file\";s:19:\"slide-1-200x150.jpg\";s:5:\"width\";i:200;s:6:\"height\";i:150;s:9:\"mime-type\";s:10:\"image/jpeg\";}s:12:\"slider-thumb\";a:4:{s:4:\"file\";s:18:\"slide-1-100x50.jpg\";s:5:\"width\";i:100;s:6:\"height\";i:50;s:9:\"mime-type\";s:10:\"image/jpeg\";}}s:10:\"image_meta\";a:12:{s:8:\"aperture\";i:0;s:6:\"credit\";s:0:\"\";s:6:\"camera\";s:0:\"\";s:7:\"caption\";s:0:\"\";s:17:\"created_timestamp\";i:0;s:9:\"copyright\";s:0:\"\";s:12:\"focal_length\";i:0;s:3:\"iso\";i:0;s:13:\"shutter_speed\";i:0;s:5:\"title\";s:0:\"\";s:11:\"orientation\";i:1;s:8:\"keywords\";a:0:{}}}"; $b = unserialize($a); $c = json_encode($b); $this->view->renderAdmin('admin/admin_index'); } }
public function __construct($action, $urlValues) { parent::__construct($action, $urlValues); //För att lösenordsskydda en sida ska Auth::handleLogin($urlValues); skrivas in på den/de delarna Auth::handleLogin($urlValues); //create the model object require "models/user.php"; $this->model = new UserModel(); $this->model->set('urlValues', $urlValues); }
public function index() { Auth::handleLogin(); // adatok bevitele a view objektumba $this->view->title = 'Admin dokumentáció oldal'; $this->view->description = 'Admin dookumentáció description'; $this->view->js_link[] = $this->make_link('js', ADMIN_JS, 'pages/common.js'); // $this->view->css = ''; // $this->view->js = ''; $this->view->render('user_manual/tpl_user_manual'); }
function __construct() { // a little note on that (seen on StackOverflow): // "As long as myChild has no constructor, the parent constructor will be called / inherited." // This means wenn a class thats extends another class has a __construct, it needs to construct // the parent in that constructor, like this: parent::__construct(); Auth::handleLogin(); // TODO: js //$this->view->js = array('dashboard/js/default.js'); }
function __construct() { // a little note on that (seen on StackOverflow): // "As long as myChild has no constructor, the parent constructor will be called / inherited." // This means wenn a class thats extends another class has a __construct, it needs to construct // the parent in that constructor, like this: parent::__construct(); // this controller should only be visible/usable by logged in users, so we put login-check here Auth::handleLogin(); // TODO: js //$this->view->js = array('dashboard/js/default.js'); }
public function index() { Auth::handleLogin(); // lekérdezzük, hogy kitöltötte-e már az előregisztrációt a bejelentkezett user (return bool) $result_prereg = $this->eloregisztracio_model->check_preregister(); if ($result_prereg === false && isset($_POST['pre_register_submit'])) { $result = $this->eloregisztracio_model->pre_register('insert'); if ($result) { Util::redirect('munkak'); } else { Util::redirect('eloregisztracio'); } } if ($result_prereg === true && isset($_POST['pre_register_update'])) { $result = $this->eloregisztracio_model->pre_register('update'); if ($result) { Util::redirect('munkak'); } else { Util::redirect('eloregisztracio'); } } //validátor /* $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'plugins/jquery-validation/jquery.validate.min.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'plugins/jquery-validation/additional-methods.min.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'plugins/jquery-validation/localization/messages_hu.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'plugins/jquery-validation/localization/methods_hu.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'plugins/jquery.blockui.min.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'pages/modal_handler.js'); */ //$this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'pages/sidebar_search.js'); $this->view->js_link[] = $this->make_link('js', SITE_ASSETS, 'pages/eloregisztracio.js'); // alapbeállítások lekérdezése $this->view->settings = $this->eloregisztracio_model->get_settings(); // 3 legfrissebb munka $this->view->latest_jobs = $this->eloregisztracio_model->jobs_query(3); // oldal tartalmának lekérdezése (paraméter a pages tábla page_id) $this->view->content = $this->eloregisztracio_model->get_page_data(15); $this->view->title = $this->view->content['page_metatitle']; $this->view->description = $this->view->content['page_metadescription']; $this->view->keywords = $this->view->content['page_metakeywords']; if ($result_prereg) { $this->view->prereg_data = $this->eloregisztracio_model->get_prereg_data(); //$this->view->debug(true); $this->view->render('eloregisztracio/tpl_eloregisztracio_update'); } else { //$this->view->debug(true); $this->view->render('eloregisztracio/tpl_eloregisztracio'); } }
public function __construct() { // a little note on that (seen on StackOverflow): // "As long as myChild has no constructor, the parent constructor will be called / inherited." // This means wenn a class thats extends another class has a __construct, it needs to construct // the parent in that constructor, like this: parent::__construct(); // VERY IMPORTANT: All controllers/areas that should only be useable by logged-in users // need this line! Otherwise not-logged in users could do actions // if all of your pages should only be useable by logged-in users: Put this line into // libs/Controller->__construct // TODO: test this! Auth::handleLogin(); }
public function listMembers($project_id) { // debug message to show where you are, just for the demo echo 'Message from Controller: You are in the controller projects, using the method listMembers()'; Auth::handleLogin(); // load a model, perform an action, pass the returned data to a variable // NOTE: please write the name of the model "LikeThis" $projects_model = $this->loadModel('ProjectsModel'); $members = $projects_model->getAllProjectMembers($project_id); // load views require 'application/views/_templates/header.php'; require 'application/views/projects/members.php'; require 'application/views/_templates/footer.php'; }
public function evidences() { // debug message to show where you are, just for the demo echo 'Message from Controller: You are in the controller measure, using the method evidences()'; Auth::handleLogin(); // load views require 'application/views/_templates/header.php'; if (!isset($_SESSION["current_project"])) { $projects_model = $this->loadModel("ProjectsModel"); $projects = $projects_model->getAllProjects(); require 'application/views/measure/select_project.php'; } else { $measure_model = $this->loadModel('MeasureModel'); $mpsbr_med = $measure_model->getExpectedResults(); require 'application/views/measure/edit_evidences.php'; } require 'application/views/_templates/footer.php'; }
function __construct() { parent::__construct(); Auth::handleLogin(); }
public function _removeStance($bill_id) { Auth::handleLogin(); $congress_model = $this->loadModel("Congress"); if ($congress_model->_removeStance($bill_id)) { header('location: ' . URL . 'congress/bill/' . $bill_id . ''); } else { $_SESSION["feedback_negative"][] = FEEDBACK_STANCE_DELETE_FAILED; header('location: ' . URL . 'congress/bill/' . $bill_id . ''); } }
function __construct() { parent::__construct(); Auth::handleLogin(); //$this->view->js = array('dashboard/js/default.js'); }
" class="ab-item"><?php echo ADMIN_BAR_EDIT_MY_PROFILE_TITLE; ?> </a> </li> <li id="wp-admin-bar-logout"><a href="<?php echo URL . CONTEXT_PATH_USER_LOGOUT; ?> " class="ab-item"><?php echo ADMIN_BAR_LOG_OUT_TITLE; ?> </a> </li> </ul> </div> </li> </ul> </div> <a href="<?php echo URL . CONTEXT_PATH_USER_LOGOUT; ?> " class="screen-reader-shortcut"><?php echo ADMIN_BAR_LOG_OUT_TITLE; ?> </a> </div> <div role="main" id="wpbody"> <div tabindex="0" aria-label="Main content" id="wpbody-content" style="overflow: hidden;"> <div class="wrap"> <?php } else { Auth::handleLogin(); }
function user($xhr = false) { Auth::handleLogin(); $this->view->script = array(URL . 'Views/admincp/user/js/default.js'); if ($xhr == 'xhrGetListings') { $this->model->getList_User(); } elseif ($xhr == 'xhrInsert') { $this->model->insert_User(); } elseif ($xhr == 'xhrUpdate') { $this->model->update_User(); } elseif ($xhr == 'xhrDelete') { $this->model->delete_User(); } else { $this->view->render_admin('user/index'); } }
public function __construct() { parent::__construct(); Auth::handleLogin(); $this->model = new Model_Posts(); }
/** * */ function changeAccountType_action() { // Auth::handleLogin() makes sure that only logged in users can use this action/method and see that page // Note: This line was missing in early version of the script, but it was never a real security issue as // it was not possible to read or edit anything in the database unless the user is really logged in and // has a valid session. Auth::handleLogin(); $login_model = $this->loadModel('Login'); $login_model->changeAccountType(); $this->view->render('login/changeaccounttype'); }
function __construct() { parent::__construct(); Auth::handleLogin(); $this->loadModel('slider_model'); }
function showProfile() { // Auth::handleLogin() makes sure that only logged in users can use this action/method and see that page Auth::handleLogin(); $this->view->render('user/showprofile'); }
/** * Construct this object by extending the basic Controller class */ function __construct() { parent::__construct(); // this controller should only be visible/usable by logged in users, so we put login-check here Auth::handleLogin(); }
function manageFacility() { Auth::handleLogin(); $this->view->render('facility/adminindex'); }