本文整理汇总了PHP中connect::getConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP connect::getConfig方法的具体用法?PHP connect::getConfig怎么用?PHP connect::getConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类connect
的用法示例。
在下文中一共展示了connect::getConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session
// language selection by settings
if (SETTINGS_SITE_LANGUAGE && file_exists(ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php')) {
include_once ROOT . 'languages/' . SETTINGS_SITE_LANGUAGE . '.php';
}
include_once ROOT . 'languages/default.php';
if (defined('SETTINGS_SITE_TIMEZONE')) {
ini_set('date.timezone', SETTINGS_SITE_TIMEZONE);
}
$session = new session("prj");
set_time_limit(0);
$socket_connected = 0;
$latest_urls_time = 0;
while (1) {
include_once DIR_MODULES . 'connect/connect.class.php';
$connect = new connect();
$connect->getConfig();
if (!$connect->config['CONNECT_SYNC']) {
echo "Connect sync turned off.";
exit;
} else {
/*
$connect->sendMenu(1);
*/
$sqlQuery = "SELECT *\n FROM commands";
$commands = SQLSelect($sqlQuery);
$total = count($commands);
for ($i = 0; $i < $total; $i++) {
$cmd_values[$commands[$i]['ID']] = $commands[$i]['CUR_VALUE'];
$cmd_titles[$commands[$i]['ID']] = $commands[$i]['RENDER_TITLE'];
$cmd_data[$commands[$i]['ID']] = $commands[$i]['RENDER_DATA'];
}
示例2: getConnectDetails
function getConnectDetails()
{
if (!$this->connect_username && !$this->connect_password) {
include_once DIR_MODULES . 'connect/connect.class.php';
$cn = new connect();
$cn->getConfig();
if ($cn->config['CONNECT_USERNAME'] && $cn->config['CONNECT_PASSWORD']) {
$this->connect_username = $cn->config['CONNECT_USERNAME'];
$this->connect_password = $cn->config['CONNECT_PASSWORD'];
} else {
$this->connect_username = 'anonymous';
$this->connect_password = '';
}
}
}