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


PHP _setView函数代码示例

本文整理汇总了PHP中_setView函数的典型用法代码示例。如果您正苦于以下问题:PHP _setView函数的具体用法?PHP _setView怎么用?PHP _setView使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: _setView

<?php

// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(ROOT_PATH . '/apps/users/controllers/login.php');
unset($_SESSION['user']);
refresh('/' . $languageURL);
开发者ID:yunsite,项目名称:demila,代码行数:14,代码来源:logout.php

示例2: _setView

<?php

// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['payments'] . ' › ' . ucfirst($_GET['c']));
$payments = scandir(dirname(dirname(__FILE__)) . '/controllers/');
if (!in_array($_GET['c'] . '.php', $payments)) {
    refresh("/" . $languageURL . adminURL . "/?m=" . $_GET['m'] . "&c=list");
}
$key = $_GET['c'];
$form = isset($_POST['form']) ? $_POST['form'] : array();
if (isset($_POST['edit'])) {
    $cms = new system();
    $cms->editGroup($key, $form);
    refresh("?m=" . $_GET['m'] . "&c=list", $langArray['edit_complete']);
}
abr('pay_info', $meta);
abr('group', $key);
//DEMILAappkey
if (isset($form[$key . '_key'])) {
    abr('v_key', $form[$key . '_key']);
} else {
    abr('v_key', isset($meta[$key . '_key']) ? $meta[$key . '_key'] : '');
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:demilapay.php

示例3: _setView

<?php

// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(ROOT_PATH . "/apps/" . $_GET['m'] . "/admin/add.php");
_setTitle($langArray['edit']);
if (!isset($_GET['id']) || !is_numeric($_GET['id'])) {
    refresh('?m=' . $_GET['m'] . '&c=list', 'INVALID ID', 'error');
}
if (!isset($_GET['p'])) {
    $_GET['p'] = '';
}
$cms = new ccategories();
if (isset($_POST['edit'])) {
    $status = $cms->edit($_GET['id']);
    if ($status !== true) {
        abr('error', $status);
    } else {
        refresh("?m=" . $_GET['m'] . "&c=categories&p=" . $_GET['p'], $langArray['edit_complete']);
    }
} else {
    $_POST = $cms->get($_GET['id']);
}
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:edit.php


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