本文整理汇总了PHP中chk_user函数的典型用法代码示例。如果您正苦于以下问题:PHP chk_user函数的具体用法?PHP chk_user怎么用?PHP chk_user使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了chk_user函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: include
<?
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>
示例2: create_config_file
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);