本文整理汇总了PHP中member::cleancookie方法的典型用法代码示例。如果您正苦于以下问题:PHP member::cleancookie方法的具体用法?PHP member::cleancookie怎么用?PHP member::cleancookie使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::cleancookie方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dologout
function dologout()
{
member::cleancookie();
}
示例2: array
$iCMS->iPrint("usercp/register.htm", "register");
break;
case 'agreement':
$iCMS->assign('config', array('agreement' => str_replace("\n", "<br />", $iCMS->config['agreement'])));
$iCMS->iPrint("usercp/agreement.htm", "agreement");
break;
case 'login':
if (member::checklogin(true)) {
_header($iCMS->config['usercpURL']);
}
$iCMS->assign('config', array('seccode' => $iCMS->config['userseccode']));
$iCMS->assign('forward', __REF__);
$iCMS->iPrint("usercp/login.htm", "login");
break;
case 'logout':
member::cleancookie();
break;
default:
require_once iPATH . 'include/UI.class.php';
$action = $_POST['action'];
//$forward= $_POST['forward'];
if ($action == 'register') {
ckseccode($_POST['seccode'], 'U') && javascript::json('seccode', 'error:seccode');
$username = dhtmlspecialchars($_POST['username']);
!preg_match("/^([\\w\\.-]+)@([a-zA-Z0-9-]+)(\\.[a-zA-Z\\.]+)\$/i", $username) && javascript::json('username', 'register:emailerror');
iCMS_DB::getValue("SELECT uid FROM `#iCMS@__members` where `username`='{$username}'") && javascript::json('username', 'register:emailusr');
$password = md5(trim($_POST['password']));
$pwdrepeat = md5(trim($_POST['pwdrepeat']));
$password != $pwdrepeat && javascript::json('pwdrepeat', 'register:different');
$nickname = dhtmlspecialchars($_POST['nickname']);
cstrlen($nickname) > 12 && javascript::json(0, 'register:nicknamelong');