|
|
|
[สอบถามคนรู้] สวัสดีครับ ผมติดตั้งดิสคัสไม่ได้ตามรายละเอียดนี้เลย |
|
|
|
|
|
|
|
ผมติดตั้งดิสคัสไม่ได้มันขึ้นแบบนี้
$items) { $$key = getgpc($key, 'p'); if(!isset($$key) || !is_array($$key)) { $submit = false; break; } foreach($items as $k => $v) { $tmp = $$key; $$k = $tmp[$k]; if(empty($$k) || !preg_match($v['reg'], $$k)) { if(empty($$k) && !$v['required']) { continue; } $submit = false; VIEW_OFF or $error_msg[$key][$k] = 1; } } } } else { $submit = false; } $ucapi = defined('UC_API') && UC_API ? UC_API : $default_ucapi; if($submit) { $app_type = 'DISCUZX'; // Only For Discuz! $app_name = $sitename ? $sitename : SOFT_NAME; $app_url = $siteurl ? $siteurl : $default_appurl; $ucapi = $ucurl ? $ucurl : (defined('UC_API') && UC_API ? UC_API : $default_ucapi); $ucip = isset($ucip) ? $ucip : ''; $ucfounderpw = $ucpw; $app_tagtemplates = 'apptagtemplates[template]='.urlencode('{subject}').'&'. 'apptagtemplates[fields][subject]='.urlencode($lang['tagtemplates_subject']).'&'. 'apptagtemplates[fields][uid]='.urlencode($lang['tagtemplates_uid']).'&'. 'apptagtemplates[fields][username]='.urlencode($lang['tagtemplates_username']).'&'. 'apptagtemplates[fields][dateline]='.urlencode($lang['tagtemplates_dateline']).'&'. 'apptagtemplates[fields][url]='.urlencode($lang['tagtemplates_url']); $ucapi = preg_replace("/\/$/", '', trim($ucapi)); if(empty($ucapi) || !preg_match("/^(http:\/\/)/i", $ucapi)) { show_msg('uc_url_invalid', $ucapi, 0); } else { if(!$ucip) { $temp = @parse_url($ucapi); $ucip = gethostbyname($temp['host']); if(ip2long($ucip) == -1 || ip2long($ucip) === FALSE) { show_msg('uc_dns_error', $ucapi, 0); } } } include_once ROOT_PATH.'./uc_client/client.php'; $ucinfo = dfopen($ucapi.'/index.php?m=app&a=ucinfo&release='.UC_CLIENT_RELEASE, 500, '', '', 1, $ucip); list($status, $ucversion, $ucrelease, $uccharset, $ucdbcharset, $apptypes) = explode('|', $ucinfo); if($status != 'UC_STATUS_OK') { show_msg('uc_url_unreachable', $ucapi, 0); } else { $dbcharset = strtolower($dbcharset ? str_replace('-', '', $dbcharset) : $dbcharset); $ucdbcharset = strtolower($ucdbcharset ? str_replace('-', '', $ucdbcharset) : $ucdbcharset); if(UC_CLIENT_VERSION > $ucversion) { show_msg('uc_version_incorrect', $ucversion, 0); } elseif($dbcharset && $ucdbcharset != $dbcharset) { show_msg('uc_dbcharset_incorrect', '', 0); } $postdata = "m=app&a=add&ucfounder=&ucfounderpw=".urlencode($ucpw)."&apptype=".urlencode($app_type)."&appname=".urlencode($app_name)."&appurl=".urlencode($app_url)."&appip=&appcharset=".CHARSET.'&appdbcharset='.DBCHARSET.'&'.$app_tagtemplates.'&release='.UC_CLIENT_RELEASE; $ucconfig = dfopen($ucapi.'/index.php', 500, $postdata, '', 1, $ucip); if(empty($ucconfig)) { show_msg('uc_api_add_app_error', $ucapi, 0); } elseif($ucconfig == '-1') { show_msg('uc_admin_invalid', '', 0); } else { list($appauthkey, $appid) = explode('|', $ucconfig); $ucconfig_array = explode('|', $ucconfig); $ucconfig_array[] = $ucapi; $ucconfig_array[] = $ucip; if(empty($appauthkey) || empty($appid)) {
มีอีกเยอะ เอามาคราวๆ
Tag : PHP, CakePHP
|
|
|
|
|
|
Date :
2014-03-17 22:43:57 |
By :
freedom454 |
View :
693 |
Reply :
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disqus ver. ไหนครับ
|
|
|
|
|
Date :
2014-03-17 22:58:04 |
By :
itpcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้ละครับ ลืม PHP Access
|
|
|
|
|
Date :
2014-03-17 23:15:27 |
By :
freedom454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2014-03-18 08:31:36 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|