EIOS/integration/index.php

37 lines
870 B
PHP

<?php
session_start();
error_reporting(E_ALL);
include_once 'config.php';
set_time_limit (0);
ini_set("memory_limit", "12000M");
/**
* @var string $WorkDIR
*/
$smartyC = new class_smarty();
$smarty = $smartyC->config(__DIR__.'\tpl');
$CHPU = new class_CHPU($WorkDIR);
$URLS = $CHPU->uri();
if(!isset($URLS[0])) $URLS[0]='';
$smarty->assign('CHPU',$URLS);
$smarty->assign('TPL',$WorkDIR);
$cUSER = new class_USERS();
$cUSER->check();
$smarty->assign('aUSER',$_SESSION['user']);
if($URLS[0]=='students'){
$class = new class_STUDENTS();
$PAGE = $class->HTML();
}
if($PAGE['body']==''){
$PAGE['body'] = '<h2>Доступные АПИ</h2>';
$class = new class_STUDENTS();
$PAGE['body'] .= $class->info();
$class = new class_STIPENDII();
$PAGE['body'] .= $class->info();
}
$smarty->assign('PAGE',$PAGE);
$smarty->display('tpl_index.html');