function __construct() { // find active entity parent::__construct(); Authentication::require_admin(); $this->is_admin_page = true; }
function __construct() { Authentication::require_admin(); $this->is_admin_page = true; // find active entity parent::__construct(); // debugging $this->debug = false; }
function __construct() { Authentication::require_admin(); $this->is_admin_page = true; parent::__construct(); // print? if (isset($_REQUEST['filled'])) { $this->write_print(); exit; } }
function __construct() { // find active entity parent::__construct(); // submit? $uploaded = handle_uploaded_submission($this->entity); if ($uploaded) { $self_url = 'index.php' . $this->entity->path() . '?made_submission=' . $uploaded->submissionid; Util::redirect($self_url); } }
function __construct() { Authentication::require_admin(); $this->is_admin_page = true; // find active entity parent::__construct(); // find user if (!isset($_REQUEST['userid'])) { throw new NotFoundException("Missing parameter: userid"); } $this->user = User::by_id(intval($_REQUEST['userid'])); }