本文整理匯總了PHP中settings::getConf方法的典型用法代碼示例。如果您正苦於以下問題:PHP settings::getConf方法的具體用法?PHP settings::getConf怎麽用?PHP settings::getConf使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類settings
的用法示例。
在下文中一共展示了settings::getConf方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: settings
<?php
/*
A.I.R.C.O
index
@author #urk team
*/
session_start();
setlocale(LC_ALL, 'nl_NL.utf8');
//settings
include 'classes/settings.class.php';
$settings = new settings();
$config = $settings->getConf();
$texts = $settings->getTexts();
//other includes
include 'classes/forms.class.php';
include 'classes/users.class.php';
include 'classes/sql.class.php';
//db connection
$db = new sql($lang['sql']);
$db->connectDB($config['db']['host'], $config['db']['name'], $config['db']['user'], $config['db']['pass']);
//vars
$user = new users($texts['users'], $config['global']);
$mod = $_REQUEST['mod'];
//module switch
switch ($mod) {
case 'logs':
$headerText = "logs";
$crumbs = "<a href=\"index.php\">home</a> » logs";
if (!$user->validate()) {
$content = "<p class=\"text\">{$texts['users']['login']}</p>";