当前位置: 首页>>代码示例>>PHP>>正文


PHP UserController::set方法代码示例

本文整理汇总了PHP中UserController::set方法的典型用法代码示例。如果您正苦于以下问题:PHP UserController::set方法的具体用法?PHP UserController::set怎么用?PHP UserController::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserController的用法示例。


在下文中一共展示了UserController::set方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isLoggedIn

 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
include_once "includes/sp-load.php";
if ($_GET['sec'] == 'my-profile' || $_POST['sec'] == 'updatemyprofile') {
    isLoggedIn();
} else {
    checkAdminLoggedIn();
}
include_once SP_CTRLPATH . "/user.ctrl.php";
include_once SP_CTRLPATH . "/website.ctrl.php";
include_once SP_CTRLPATH . "/keyword.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'users';
$controller->layout = 'ajax';
$controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']);
$controller->set('spTextPanel', $controller->spTextPanel);
$controller->spTextUser = $controller->getLanguageTexts('user', $_SESSION['lang_code']);
$controller->set('spTextUser', $controller->spTextUser);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "create":
            $controller->createUser($_POST);
            break;
        case "update":
            $controller->updateUser($_POST);
            break;
        case "updatemyprofile":
            $controller->updateMyProfile($_POST);
            break;
        case "activateall":
            if (!empty($_POST['ids'])) {
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:users.php

示例2: redirectUrl

 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
include_once "includes/sp-load.php";
if (isLoggedIn() && $_GET['sec'] != 'logout') {
    redirectUrl(SP_WEBPATH . "/");
}
include_once SP_CTRLPATH . "/user.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'login';
$controller->set('spTitle', 'Seo Panel: Login section');
$controller->set('spDescription', 'Login to Seo Panel and utilise seo tools and plugins to increase the perfomance of your site.');
$controller->set('spKeywords', 'Seo Panel Login section');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "login":
            $controller->login();
            break;
        case "requestpass":
            $controller->set('spTitle', 'Seo panel forgot password');
            $controller->requestPassword($_POST['email']);
            break;
        default:
            $controller->index();
            break;
    }
开发者ID:codegooglecom,项目名称:seopanel,代码行数:31,代码来源:login.php

示例3: 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;
    }
}
开发者ID:codegooglecom,项目名称:seopanel,代码行数:28,代码来源:register.php


注:本文中的UserController::set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。