本文整理汇总了PHP中system::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP system::getAll方法的具体用法?PHP system::getAll怎么用?PHP system::getAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类system
的用法示例。
在下文中一共展示了system::getAll方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: system
<?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['list']);
$cms = new system();
$data = $cms->getAll(0, 0, 'config');
$tmp = array();
foreach ($data as $key => $value) {
$value['help'] = isset($langArray[$value['key'] . '_help']) ? $langArray[$value['key'] . '_help'] : false;
$tmp[$key] = $value;
}
abr('data', $tmp);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
示例2: users
//abr('recaptcha', recaptcha_get_html($config['recaptcha_public_key']));
//判断用户名是否存在
if (isset($_POST["username"]) && $_POST["action"] == "check") {
$usersClass = new users();
$result = $usersClass->isExistUsername($_POST["username"]);
if ($result) {
die('1');
} else {
die('0');
}
}
#用户注册操作
if (isset($_POST['add'])) {
require_once ROOT_PATH . '/apps/system/models/system.class.php';
$cms = new system();
$data = $cms->getAll(0, 0, null, "send_mail");
if ($data[0]["value"] == 0) {
$_POST['status'] = 'activate';
}
$usersClass = new users();
$s = $usersClass->add();
if ($s === true) {
if ($data[0]["value"] == 0) {
refresh('/' . $languageURL . 'sign_in/');
}
refresh('/' . $languageURL . 'sign_up/verify/');
} else {
$message = '<ul>';
foreach ($s as $e) {
$message .= '<li>' . $e . '</li>';
}
示例3: system
<?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("SMTP");
$system = new system();
$data = $system->getAll(0, 0, 'mailconf');
$arr = array();
foreach ($data as $a) {
$arr[$a["key"]] = $a["value"];
}
abr('data', $arr);
if (isset($_POST["edit"])) {
if ($system->smtp_edit($_POST)) {
refresh("?m=" . $_GET['m'] . "&c=smtpset", $langArray['edit_complete']);
}
}
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';