Example #1
0
 function __construct()
 {
     // find active entity
     parent::__construct();
     Authentication::require_admin();
     $this->is_admin_page = true;
 }
Example #2
0
 function __construct()
 {
     Authentication::require_admin();
     $this->is_admin_page = true;
     // find active entity
     parent::__construct();
     // debugging
     $this->debug = false;
 }
Example #3
0
 function __construct()
 {
     Authentication::require_admin();
     $this->is_admin_page = true;
     parent::__construct();
     // print?
     if (isset($_REQUEST['filled'])) {
         $this->write_print();
         exit;
     }
 }
Example #4
0
 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);
     }
 }
Example #5
0
 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']));
 }