Viewing file: index.php (909 B) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php error_reporting(E_ERROR); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); include("core/Template.inc.php"); include("config/config.inc.php"); include("core/database.inc.php"); include("core/xmlparser.inc.php"); if (isset($_GET['init'])) { $xml = new XMLParser(); Schedule::EraseData(); $xml->LoadActivities("xml/mynew111_activities.xml"); $xml->LoadSubgroupsFromTeachers("xml/mynew111_teachers.xml"); }
//$xml->LoadActivities("xml/mynew111_activities.xml"); //$xml->LoadSubgroupsFromTeachers("xml/mynew111_teachers.xml"); $tpl = new Template(); $res = Schedule::GetScheduleForGroup(urldecode(substr($_SERVER["REQUEST_URI"],1,100))); $tpl->SetParam('schedule', $res); //if ($res['subgroupCount'] == 2) $tpl->display('templates/group.tpl'); include('templates/groupslist.tpl'); ?>
|