<?php
/**
 * Part of the Inforex project
 * Copyright (C) 2013 Michał Marcińczuk, Jan Kocoń, Marcin Ptak
 * Wrocław University of Technology
 * See LICENCE 
 */
 
class Page_administration_diagnostic_access extends CPageAdministration {

    function __construct()
    {
        parent::__construct();
        $this->includeJs("libs/bootstrap-sortable/moment.min.js"); // reguired by boostrap-sortable.js
        $this->includeJs("libs/bootstrap-sortable/bootstrap-sortable.js");
        $this->includeCss("libs/bootstrap-sortable/bootstrap-sortable.css");
    }

	function execute(){
		global $user;

		$items = array();

        $validatorAjax = new PageAccessValidator(Config::Config()->get_path_engine(), "ajax");
        $validatorAjax->process();
        $items = array_merge($items, $validatorAjax->items);

        $validatorPage = new PageAccessValidator(Config::Config()->get_path_engine(), "page");
        $validatorPage->process();
        $items = array_merge($items, $validatorPage->items);

        $this->set("items", $items);
	}
	
}
