本文整理汇总了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') {