<?php $uid && !isset($_SESSION['auid']) and header("location:index.php"); $strPageTitle = '注册-' . $_K['html_title']; $strPageKeyword = '注册,' . $_K['html_title']; $strPageDescription = $kekezu->_sys_config['index_seo_desc']; $objReg = new keke_register_class(); $arrApiNames = keke_glob_class::get_open_api(); if (isset($formhash) && kekezu::submitcheck($formhash)) { //检测身份 if (intval($reg_user_type) != 1 && intval($reg_user_type) != 2) { $tips['errors']['reg_user_type'] = '请选择需方或供方身份注册'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } //检测需方身份 if (intval($reg_user_type) == '1') { if (intval($reg_user_type_xf) != 1 && intval($reg_user_type_xf) != 2) { $tips['errors']['reg_user_type_xf'] = '请选择个人用户或者企业用户'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } } elseif (intval($reg_user_type) == '2') { $reg_user_type_xf = 2; //供方都是企业认证 } if (keke_user_class::user_checkemail($email) != 1) { $tips['errors']['email'] = '该email非法或已经被注册'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (strtoupper(CHARSET) == 'GBK') { $account = kekezu::utftogbk($account); }
<?php defined('ADMIN_KEKE') or exit('Access Denied'); kekezu::admin_check_role(63); $oauth_type_list = keke_glob_class::get_open_api(); $config_basic_obj = new Keke_witkey_basic_config_class(); $config_arr = $kekezu->_weibo_list; $api_open = $kekezu->_api_open; $url = 'index.php?do=msg&view=weibo'; if (isset($submit)) { foreach ($conf as $k => $v) { $config_basic_obj->setWhere("k = '{$k}'"); $config_basic_obj->setV($v); $res .= $config_basic_obj->edit_keke_witkey_basic_config(); } !empty($api) and $oauth_api = $api or $oauth_api = array(); $config_basic_obj->setWhere("k = 'oauth_api_open'"); $config_basic_obj->setV(serialize($oauth_api)); $config_basic_obj->edit_keke_witkey_basic_config(); kekezu::admin_system_log($_lang['config_interface_log']); if ($res) { $kekezu->_cache_obj->del("keke_b3c58336"); kekezu::admin_show_msg($_lang['oauth_api_config_success'], $url, 3, '', 'success'); } } require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);