예제 #1
0
 function __construct()
 {
     // find active entity
     parent::__construct();
     Authentication::require_admin();
     $this->is_admin_page = true;
 }
예제 #2
0
파일: index.php 프로젝트: jlsa/justitia
 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);
     }
 }
예제 #3
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']));
 }
예제 #4
0
 function title()
 {
     return "Print submissions for " . parent::title();
 }
예제 #5
0
 function title()
 {
     return "Results for " . parent::title();
 }