EIOS/integration/api.php

34 lines
1.1 KiB
PHP

<?php
session_start();
error_reporting(E_ALL);
include_once 'config.php';
set_time_limit(0);
ini_set("memory_limit", "12000M");
//$cUSER = new class_USERS();
//$cUSER->check();
$step = ''; if(isset($_GET['step'])) $step = $_GET['step'];
$des = ''; if(isset($_GET['des'])) $des = $_GET['des'];
$id = 0; if(isset($_GET['id'])) $id = $_GET['id'];
if($step=='students_get_all'){
$class = new class_STUDENTS();
$data['format'] = 'json'; if(isset($_GET['format'])) $data['format'] = $_GET['format'];
$class->get_students($data);
}
if($step=='prepods_get_all'){
$class = new class_STUDENTS();
$data['format'] = 'json'; if(isset($_GET['format'])) $data['format'] = $_GET['format'];
$class->get_prepods($data);
}
if($step=='grupp_get_all'){
$class = new class_STUDENTS();
$data['format'] = 'json'; if(isset($_GET['format'])) $data['format'] = $_GET['format'];
$class->get_grupp($data);
}
if($step=='stipendii_get_zayavki'){
$class = new class_STIPENDII();
$data['format'] = 'json'; if(isset($_GET['format'])) $data['format'] = $_GET['format'];
$class->get_zayavki($data);
}