本文整理匯總了PHP中XWB_plugin::getEntryURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP XWB_plugin::getEntryURL方法的具體用法?PHP XWB_plugin::getEntryURL怎麽用?PHP XWB_plugin::getEntryURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XWB_plugin
的用法示例。
在下文中一共展示了XWB_plugin::getEntryURL方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
<h4>分享後再關注一下,是一種美德</h4>
<dl>
<dt><a href="<?php
echo XWB_plugin::getWeiboProfileLink($owbUserRs['id']);
?>
" target="_blank"><img src="<?php
echo isset($owbUserRs['local_image_url']) ? $owbUserRs['local_image_url'] : XWB_plugin::getPluginUrl('images/bgimg/0.gif');
?>
" /></a></dt>
<dd class="info">
<h5><?php
echo $owbUserRs['screen_name'];
?>
</h5>
<p class="adr"><span><a target="_blank" href="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$owbUserRs['id']}&" . XWB_TOKEN_NAME . "=" . FORMHASH);
?>
">加關注</a></span></p>
</dd>
</dl>
</div>
<?php
}
?>
</div>
示例2: redirect
/**
* XWB_plugin::redirect($mRoute,$type=1);
* 重定向 並退出程序
* @param string $mRoute
* @param int $type 1 : 默認 , 內部模塊跳轉 ,2 : 給定模塊路由,通過瀏覽器跳轉 ,3 : 給定URL
* @return null 調用該函數,程序將自動退出。
*/
function redirect($mRoute, $type = 1)
{
switch ($type) {
case 1:
XWB_plugin::M($mRoute);
break;
case 2:
//Note: HTTP/1.1 requires an absolute URI as argument to » Location: including the scheme, hostname and absolute path, but some clients accept relative URIs
$url = XWB_plugin::getEntryURL($mRoute);
header("Location: " . $url);
break;
case 3:
header("Location: " . $mRoute);
break;
default:
trigger_error("Error redirect type: [ {$mRoute} ] ", E_USER_ERROR);
break;
}
exit;
}
示例3: foreach
#unbound .kaiser_sina_con-r h4 { padding:0 16px 0 0; font-size:12px; font-weight:normal; color:#999; line-height:24px; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r a { width:131px; height:24px; background:none; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r p { width:700px; margin-left:0; margin-top:10px; display:inline; font-size:12px; font-weight:normal; color:#999; line-height:16px; overflow:hidden; float:left;}
</style>
</head>
<body>
<div id="unbound" class="set-wrap">
<!--h3>新浪微博綁定設置</h3-->
<div class="main kaiser_sina_main">
<div class="con-l kaiser_sina_con-l">
<div class="binding"></div>
</div>
<div class="con-r kaiser_sina_con-r">
<h4>點擊按鈕,立刻綁定新浪帳號</h4>
<a class="binding-btn binding-w" href="javascript:void(0)" onclick="window.top.location='<?php
echo XWB_plugin::getEntryURL('xwbAuth.login');
?>
'"><img src="template/we54/images/kaiser_sina_bangding_button.png" /></a>
<p>綁定以後就可以把帖子、回帖同步發到新浪微博上啦,無需記住本站的帳號和密碼,隨時使用新浪帳號密碼輕鬆登錄</p>
</div>
</div>
<?php
if ($_GET['ac'] == 'plugin') {
?>
<?php
if (XWB_S_UID > 0 && !empty($huwbUserRs)) {
?>
<div class="active-s1">
<h4>他們已經綁定微博了,你還不行動?</h4>
<?php
foreach ($huwbUserRs as $value) {
示例4: elseif
<div class="bing-text">
<?php
if ('api' == $errorType) {
?>
<p>服務器無法連接到新浪微博API服務器;或新浪微博API服務器無響應。</p>
<p>稍候一下,然後重新打開此頁麵;如果此錯誤信息重複出現,<strong>請聯係網站管理員處理。</strong></p>
<?php
} elseif ('file' == $errorType) {
?>
<p>請確保擁有權限,無法創建數據緩存文件。</p>
<?php
}
?>
</div>
<div class="setting-box">
<form id="unbindFrm" action="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.unbind');
?>
" method="post" target="xwbSiteRegister" >
<h3>解除綁定</h3>
<div class="xwb-plugin-btn"><input type="button" class="button" value="解除綁定" onclick="xwb_unbind();return false;" ></div>
<p class="tips"></p>
</form>
</div>
</div>
<iframe src="" name="xwbSiteRegister" frameborder="0" height="0" width="0"></iframe>
</body>
</html>
示例5:
<?php
}
?>
</div>
</div>
<div class="serch-results">
<ul id="serchResultsUl"></ul>
</div>
</div>
<div class="wrap-inner">
<h3 class="main-title">其它相關設置</h3>
<form action="<?php
echo XWB_plugin::getEntryURL("xwbSiteInterface.doPluginCfg4ocSet");
?>
" id="siteRegFrom" method="post" target="xwbHideFrame">
<input type="hidden" name="<?php
echo XWB_TOKEN_NAME;
?>
" value="<?php
echo $tokenhash;
?>
" />
<ul>
<li>
<label for="part90">
<input class="chk" id="part90" name="pluginCfg[is_rebutton_relateUid_assoc]" type="checkbox" value="1" <?php
echo XWB_plugin::pCfg('is_rebutton_relateUid_assoc') ? 'checked="checked"' : '';
?>
示例6:
<input name="registerBt1" type="button" onclick="submitForm('siteRegFrom')" id="registerBt1" value="" class="xwd-real-btn-zh" />
</span>
<em>已經有<?php
echo XWB_S_TITLE;
?>
賬號?</em>
<a href="javascript:void(function(){})" onclick="forTurn('bind')" tabindex="-1">綁定我的賬號</a>
</td>
</tr>
</table>
</form>
</div>
<div id="bindBox" class="xwb-plugin-form" style="display:none;">
<form action="<?php
echo XWB_plugin::getEntryURL("xwbSiteInterface.doBindAtNotLog");
?>
" id="siteBindFrom" method="post" target="xwbSiteRegister" >
<table class="xwb-plugin-table xwb-table-zh">
<tr class="xwb-plugin-tr-error">
<td colspan="3">
<em id="bindErrorTips" class="xwb-plugin-error" style="display:none;"></em>
</td>
</tr>
<tr class="xwb-plugin-tr">
<td class="xwb-plugin-td-msg xwb-td-msg-zh"><label for="siteBindName"> 用戶名:</label></td>
<td class="xwb-plugin-td-input">
<input type="text" name="siteBindName" id="siteBindName" class="xwb-plugin-input-a" value="" />
</td>
<!-- <td rowspan="4" class="xwb-plugin-td-right-msg">
還沒有<?php
示例7: getAccessToken
/**
* Exchange the request token and secret for an access token and
* secret, to sign API calls.
*
* @return array
*/
function getAccessToken($oauth_verifier = FALSE, $oauth_token = false, $useType = 'string')
{
$parameters = array();
$parameters["client_id"] = XWB_APP_KEY;
$parameters["client_secret"] = XWB_APP_SECRET_KEY;
$parameters["grant_type"] = "authorization_code";
$parameters["code"] = XWB_plugin::V('r:code');
$parameters["redirect_uri"] = XWB_plugin::getEntryURL('xwbAuth.authCallBack');
$token = $this->oAuthRequest($this->accessTokenURL(), 'POST', $parameters, true);
$token['oauth_token'] = $token['access_token'];
$token['oauth_token_secret'] = "";
return $token;
}
示例8: _getOAuthUrl
function _getOAuthUrl()
{
static $aurl = null;
if (!empty($aurl)) {
return $aurl;
}
$sess = XWB_plugin::getUser();
$sess->clearToken();
$wbApi = XWB_plugin::getWB();
$keys = $wbApi->getRequestToken();
if (!isset($keys['oauth_token']) || !isset($keys['oauth_token_secret'])) {
$api_error_origin = isset($keys['error']) ? $keys['error'] : 'UNKNOWN ERROR. MAYBE SERVER CAN NOT CONNECT TO SINA API SERVER';
$api_error = isset($keys['error_CN']) && !empty($keys['error_CN']) && 'null' != $keys['error_CN'] ? $keys['error_CN'] : '';
XWB_plugin::LOG("[WEIBO CLASS]\t[ERROR]\t#{$wbApi->req_error_count}\t{$api_error}\t{$wbApi->last_req_url}\tERROR ARRAY:\r\n" . print_r($keys, 1));
XWB_plugin::showError("服務器獲取Request Token失敗;請稍候再試。<br />錯誤原因:{$api_error}[{$api_error_origin}]");
}
//print_r($keys);
$aurl = $wbApi->getAuthorizeURL($keys['oauth_token'], false, XWB_plugin::getEntryURL('xwbAuth.authCallBack'));
$sess->setOAuthKey($keys, false);
return rtrim($aurl, '&');
}
示例9: isset
<h4>分享後再關注一下,是一種美德</h4>
<dl>
<dt><a href="<?php
echo XWB_plugin::getWeiboProfileLink($owbUserRs['id']);
?>
" target="_blank"><img src="<?php
echo isset($owbUserRs['local_image_url']) ? $owbUserRs['local_image_url'] : XWB_plugin::getPluginUrl('images/bgimg/0.gif');
?>
" /></a></dt>
<dd class="info">
<h5><?php
echo $owbUserRs['screen_name'];
?>
</h5>
<p class="adr"><span><a target="_blank" href="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$owbUserRs['id']}");
?>
">加關注</a></span></p>
</dd>
</dl>
</div>
<?php
}
?>
</div>
示例10:
<div class="user-info">
<p><?php
echo XWB_plugin::convertEncoding($value['username'], XWB_S_CHARSET, 'UTF-8');
?>
</p>
<?php
if ($value['sina_uid'] != $domain) {
?>
<?php
if ($isBind) {
?>
<a id="huFriend" class="addfollow-btn <?php
echo TRUE === $value['friends'] ? 'hidden' : '';
?>
" target="_blank" href="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$value['sina_uid']}&" . XWB_TOKEN_NAME . "=" . FORMHASH);
?>
" onclick="setFriend(this)"></a>
<?php
} else {
?>
<a class="addfollow-btn" href="<?php
echo XWB_plugin::getWeiboProfileLink($value['sina_uid']);
?>
"></a>
<?php
}
?>
<a id="huFriend_ed" class="already-addfollow-btn <?php
echo TRUE !== $value['friends'] ? 'hidden' : '';
?>
示例11: viewthread_useraction_output
/**
* 分享到按鈕位置
* @return string
*/
function viewthread_useraction_output()
{
global $_G;
$return = '';
if (false == $this->_start_xweibo(true) || !XWB_plugin::pCfg('is_rebutton_display')) {
return $return;
}
$this->_parse_postlist_in_viewthread();
if (XWB_S_UID < 1 || !XWB_plugin::isUserBinded()) {
//沒有綁定狀態下,調用sina自己的轉發按鈕
$link = tpl_sina_xweibo_x2::get_sina_share_link($this->viewthread_subject);
//$link = "javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=444463273'].join('');function a(){if(!window.open([f,p].join(''),'mb', ['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width- 620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');}; if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}}) (screen,document,encodeURIComponent));";
} else {
$tid = isset($_G['gp_tid']) ? (int) $_G['gp_tid'] : 0;
$link = XWB_plugin::getEntryURL('xwbSiteInterface.share', array('tid' => $tid));
$link = "javascript:void( window.open('" . urlencode($link) . "', '', 'toolbar=0,status=0,resizable=1,width=680,height=500') );";
}
include template($this->pluginid . ':share_button_viewthread');
return $return;
}
示例12: function
}
},
failure : function() {
$id('loading').innerHTML = '';
popShow(rst[1], 'error');
}
});
}
</script>
</head>
<body>
<div id="comment_back" class="set-wrap push-div-height">
<div class="wrap-inner">
<h3 class="main-title">評論回推設置</h3>
<form action="<?php
echo XWB_plugin::getEntryURL("pushbackInterface.doCfg4pushback");
?>
" id="siteRegFrom" method="post" target="xwbHideFrame">
<ul>
<li>
<a id="not-set-authkey-link" class="binding-btn back-on <?php
if (1 == $isOpen) {
?>
hidden<?php
}
?>
" href="#" onclick="xwbSetPushbackAuthKey();return false;"><span>開啟評論回流</span></a>
<a id="has-set-authkey-link" class="binding-btn back-off <?php
if (0 == $isOpen) {
?>
hidden<?php
示例13: urlencode
&url=<?php
echo urlencode($shareData['url']);
?>
&title=<?php
echo urlencode($shareData['title']);
?>
&source=&sourceUrl=&%20content=gb2312&pic=">換個帳號?</a></span>
</div>
</div>
<!-- /頂部 LOGO -->
<div class="reg_main">
<b class="bg_regTop"> </b>
<b class="bg_deco_b"> </b>
<div class="reg_pub">
<form id="shareForm" action="<?php
echo XWB_plugin::getEntryURL("xwbSiteInterface.doShare");
?>
" method="post">
<div class="notice">
<h2><img src="<?php
echo XWB_plugin::getPluginUrl('images/shareimg/transparent.gif');
?>
" class="wbIcon iconMsg" alt="" title=""/>轉發到我的微博,順便說點什麽吧</h2>
<span id="txt_count_msg">還可以輸入<em>140</em>字</span>
</div>
<div class="inputTxt">
<textarea cols="20" rows="5" id="fw_content" name="message"><?php
echo htmlspecialchars($shareData['message']) . ' ';
?>
</textarea>
<dl>
示例14:
<div class="user-info">
<p><?php
echo XWB_plugin::convertEncoding($value['username'], XWB_S_CHARSET, 'UTF-8');
?>
</p>
<?php
if ($value['sina_uid'] != $domain) {
?>
<?php
if ($isBind) {
?>
<a id="huFriend" class="addfollow-btn <?php
echo TRUE === $value['friends'] ? 'hidden' : '';
?>
" target="_blank" href="<?php
echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$value['sina_uid']}");
?>
" onclick="setFriend(this)"></a>
<?php
} else {
?>
<a class="addfollow-btn" href="<?php
echo XWB_plugin::getWeiboProfileLink($value['sina_uid']);
?>
"></a>
<?php
}
?>
<a id="huFriend_ed" class="already-addfollow-btn <?php
echo TRUE !== $value['friends'] ? 'hidden' : '';
?>
示例15: parseInt
action.style.top = parseInt((sz.height - dsz.height)/2 + getScroll().top) + 'px';
}
function ensure(){
$id('popMsg').className='pop-win win-w fixed-pop hidden';
if(docScrollHeight) parent.document.getElementById("frame_content").height = docScrollHeight;
}
</script>
</head>
<body>
<div id="comment_back" class="set-wrap push-div-height">
<div class="wrap-inner">
<h3 class="main-title">與xweibo通信 </h3>
<form action="<?php
echo XWB_plugin::getEntryURL("xwbApiInterface.apiCfg");
?>
" id="apiFrom" method="post">
<ul>
<li>
<p>如果你安裝了Xweibo,可以通過設置共享雙方賬號綁定關係和內容的互推。<a href="http://x.weibo.com" target="_blank">我要了解下Xweibo</a></p>
<p>在開始設置之前請先確定:</p>
<p>1、你的xweibo和xweibo for Discuz 插件使用的是同一個appkey;</p>
<p>2、你的論壇所使用的程序是Discuz 6.0-7.2或者DiscuzX1.5;</p>
<p>3、你所裝的xweibo版本是1.2或者以上的;</p>
<p>4、你所裝的xweibo for Discuz 插件版本在2.0或以上;</p>
</li>
<li>
<?php
if (XWB_plugin::pCfg('switch_to_xweibo')) {
?>