當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。