本文整理汇总了PHP中UserController::confirmUser方法的典型用法代码示例。如果您正苦于以下问题:PHP UserController::confirmUser方法的具体用法?PHP UserController::confirmUser怎么用?PHP UserController::confirmUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserController
的用法示例。
在下文中一共展示了UserController::confirmUser方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: redirectUrl
<?php
include_once "includes/sp-load.php";
if (isLoggedIn()) {
redirectUrl(SP_WEBPATH . "/");
}
include_once SP_CTRLPATH . "/user.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'register';
$controller->set('spTitle', 'Seo Tools: User Registration');
$controller->set('spDescription', 'Seo Tools: User Registration');
$controller->set('spKeywords', 'Seo tools User Registration');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
switch ($_POST['sec']) {
case "register":
$controller->startRegistration();
break;
}
} else {
switch ($_GET['sec']) {
case "confirm":
$controller->confirmUser($_GET['cfm']);
break;
default:
$controller->register();
break;
}
}
示例2: UserController
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/controllers/user.controller.php";
$users = new UserController();
$users->confirmUser($_GET['user']);
?>
<div class="container">
<div class="navbar">
<div class="navbar-inner"> <a class="mainbrand brand" href="/"><span class='brandcol1'>agend</span><span class='brandcol2'>r</span></a>
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<?php
//li><a href="index.php?tour">Tour</a></li
?>
</ul>
</div>
</div>
<div class="row">
<div class="span4"></div>
<div class="span4">
<ul class="nav nav-tabs">
<li class="active"><a href="#login" data-toggle="tab">Login</a></li>
</ul>
<div class="tab-pane" id="login">
<form id="login" action="" method="POST" onsubmit="user_login();return false;">
<div>
<input class="span4" type="email" id="login_email" name="login_email" placeholder="Registered Email Address" required/>
</div>
<div>
<input class="span4" type="password" id="login_password" name="login_password" placeholder="Your Password" required/>