<? include("./function.php"); chk_user(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>College Portal</title> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {color: #990000} --> </style> </head> <body> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="main"> <tr> <td id="top"><table width="100%" height="32" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="98%"><div align="right">Welcome <strong><? echo $_SESSION['cuser']; ?> - <a href="./logout.php">Logout</a></strong></div></td> <td width="2%"> </td> </tr> </table></td> </tr> <tr> <td id="head"> </td> </tr> <tr> <td id="menu"><? include("menu.php"); ?></td>
if (!defined('CONFIG_LOADED')) { create_config_file(); require_once FILE_CACHE_CONFIG; } // Gzip $_SERVER['HTTP_ACCEPT_ENCODING'] = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : ''; if ($eps_config['gzip'] && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false)) { ob_start('ob_gzhandler'); } else { ob_start(); } // Session eps_session_start(); // Check User $eps_user = array(); chk_user($eps_user); // Language @(include_once EPS_ROOT . 'lang/' . $eps_user['language'] . '/lang_common.php'); if (!isset($eps_lang)) { @(require_once EPS_ROOT . 'lang/' . $eps_config['default_lang'] . '/lang_common.php'); } if (!isset($eps_lang)) { exit('There is no valid language pack \'' . htmlspecialchars($eps_user['language']) . '\' installed. Please reinstall a language of that name.'); } // Smarty require_once SMARTY_DIR . 'Smarty.class.php'; require_once EPS_CLASS_DIR . 'extend_smarty.php'; $smarty = new extend_smarty(); $smarty->assign('eps_config', $eps_config); $smarty->assign('eps_user', $eps_user); $smarty->assign('eps_lang', $eps_lang);