Exemple #1
0
 function __construct()
 {
     // find active entity
     parent::__construct();
     Authentication::require_admin();
     $this->is_admin_page = true;
 }
Exemple #2
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);
     }
 }
 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']));
 }
Exemple #4
0
 function title()
 {
     return "Print submissions for " . parent::title();
 }
Exemple #5
0
 function title()
 {
     return "Results for " . parent::title();
 }