本文整理匯總了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');