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


PHP system::getAll方法代码示例

本文整理汇总了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';
开发者ID:yunsite,项目名称:demila,代码行数:22,代码来源:list.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>';
         }
开发者ID:yunsite,项目名称:demila,代码行数:31,代码来源:registration.php

示例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';
开发者ID:yunsite,项目名称:demila,代码行数:26,代码来源:smtpset.php


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