当前位置: 首页>>代码示例>>PHP>>正文


PHP kekezu::set_star方法代码示例

本文整理汇总了PHP中kekezu::set_star方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::set_star方法的具体用法?PHP kekezu::set_star怎么用?PHP kekezu::set_star使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


在下文中一共展示了kekezu::set_star方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

$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') {
        db_factory::updatetable(TABLEPRE . 'witkey_basic_config', array('v' => 'open'), array('k' => 'sms_interface'));
    }
}
$authOpen = db_factory::get_one('select auth_open from ' . TABLEPRE . 'witkey_auth_item where auth_code="mobile"');
if (isset($_POST) && !empty($_POST)) {
    if ($_POST['sms_switch'] == 'close') {
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_config_basic.php


注:本文中的kekezu::set_star方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。