當前位置: 首頁>>代碼示例>>PHP>>正文


PHP db_factory::init方法代碼示例

本文整理匯總了PHP中db_factory::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP db_factory::init方法的具體用法?PHP db_factory::init怎麽用?PHP db_factory::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在db_factory的用法示例。


在下文中一共展示了db_factory::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Keke_witkey_basic_config_class

$config_basic_obj = new Keke_witkey_basic_config_class();
$config_basic_arr = $config_basic_obj->query_keke_witkey_basic_config();
$lang_arr = keke_lang_class::lang_type();
foreach ($config_basic_arr as $k => $v) {
    $config_arr[$v['k']] = $v['v'];
}
$picLists = CommonClass::getFileListsBySavename($config_arr['web_logo']);
$web_logo_info = $picLists[0];
isset($op) and $url = "index.php?do=config&view=basic&op={$op}" or $url = "index.php?do=config&view=basic&op=info";
$log_nav_arr = array("info" => $_lang['global_config'], "conf" => $_lang['basic_config'], "seo" => $_lang['seo_config']);
$smsInterface = db_factory::get_one('select v from ' . TABLEPRE . 'witkey_basic_config where k="sms_interface"');
$basic_config = $kekezu->_sys_config;
if (DBTYPE == 'mysql') {
    $mysql_ver = mysql_get_server_info();
} else {
    $db = db_factory::init();
    $mysql_ver = mysqli_get_server_info($db->_mydb->_link);
}
$pars = array('ac' => 'run', 'sitename' => urlencode($basic_config['website_name']), 'siteurl' => htmlentities($basic_config['website_url']), 'charset' => $_K['charset'], 'version' => KEKE_VERSION, 'release' => KEKE_RELEASE, 'os' => PHP_OS, 'php' => $_SERVER['SERVER_SOFTWARE'], 'mysql' => $mysql_ver, 'browser' => urlencode($_SERVER['HTTP_USER_AGENT']), 'username' => urlencode($_SESSION['username']), 'email' => $basic_config['email'] ? $basic_config['email'] : 'noemail', 'p_name' => P_NAME);
$data = http_build_query($pars);
$lic = $_K['ci'];
$str_lic = kekezu::set_star($lic, 5, 5, '3', '*');
$verify = md5($data . $lic);
$notice = "http://www.kekezu.com/update.php?" . $data . "&lic=" . urlencode($lic) . "&verify=" . $verify;
$sys = array("ac" => "sysinfo", 'charset' => $_K['charset'], 'p_name' => P_NAME);
$sysinfo = "http://www.kekezu.com/news.php?" . http_build_query($sys);
if ($op == 'smsinterface') {
    if ($s == 'close') {
        db_factory::updatetable(TABLEPRE . 'witkey_basic_config', array('v' => 'close'), array('k' => 'sms_interface'));
        db_factory::updatetable(TABLEPRE . 'witkey_auth_item', array('auth_open' => 0), array('auth_code' => 'mobile'));
    } elseif ($s == 'open') {
開發者ID:huangbinzd,項目名稱:kppwGit,代碼行數:31,代碼來源:admin_config_basic.php


注:本文中的db_factory::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。