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


PHP Addons::createAddonUrl方法代码示例

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


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

示例1: _loginSuccessOnClient

 private function _loginSuccessOnClient($local_uid, $type)
 {
     if ($login = M('login')->where('uid=' . $local_uid . " AND type='location'")->find()) {
         $data['oauth_token'] = $login['oauth_token'];
         $data['oauth_token_secret'] = $login['oauth_token_secret'];
         $data['uid'] = $local_uid;
         $data['type'] = 'location';
     } else {
         $data['oauth_token'] = getOAuthToken($local_uid);
         $data['oauth_token_secret'] = getOAuthTokenSecret();
         $data['uid'] = $local_uid;
         $data['type'] = 'location';
         M('login')->add($data);
     }
     redirect(Addons::createAddonUrl('Login', 'login_success_on_client', $data));
 }
开发者ID:medz,项目名称:thinksns-4,代码行数:16,代码来源:LoginHooks.class.php

示例2: function

        ?>
				</p>
			    <?php 
    }
    ?>
       </dd>
       <dt class="xline"></dt>
   </dl>
</div>	
<?php 
}
?>
<script type="text/javascript">

var rm_feed_top = function(feed_id) {
	$("#feed_top_"+feed_id).fadeOut(1000);
};

function close_feed_top(feed_id){
	$.post("<?php 
echo Addons::createAddonUrl('FeedTop', 'close_feed_top');
?>
",{feed_id:feed_id},function(txt){
		if(txt==1){
		    $("#feed_top_"+feed_id).fadeOut(1000);
		}else{
			alert('我感冒了,不灵了,请帮我联系管理员吧!');
		}
	});
}
</script>
开发者ID:songhongyu,项目名称:THINKSNS,代码行数:31,代码来源:public_299ea8feec483daa.php

示例3: do_scorecharge

 public function do_scorecharge()
 {
     $modelDevelopRechargeRecord = D('DevelopRechargeRecord', 'develop');
     $orderNumber = 'CZ' . getOrderNumber();
     // $price = intval($_POST['charge_value']);
     $price = 0.01;
     $data['serial_number'] = $orderNumber;
     $data['charge_type'] = intval($_POST['charge_type']);
     $data['charge_value'] = $price;
     $data['uid'] = $this->mid;
     $data['ctime'] = time();
     $result = D('credit_charge')->add($data);
     $res = array();
     if ($result) {
         $res['status'] = 1;
         $res['info'] = '充值成功';
         $params = array('order_nu' => $orderNumber, 'price' => $price, 'type' => 1, 'explain' => '积分充值');
         switch ($data['charge_type']) {
             case '1':
                 $res['request_url'] = Addons::createAddonUrl('Tenpay', 'tenpay_to', $params);
                 break;
             case '2':
                 $res['request_url'] = Addons::createAddonUrl('Alipay', 'alipay_to', $params);
                 break;
             default:
                 $res['request_url'] = '';
                 break;
         }
     } else {
         $res['status'] = 0;
         $res['info'] = '充值失败';
     }
     exit(json_encode($res));
 }
开发者ID:jianminglok,项目名称:thinksnsv4,代码行数:34,代码来源:AccountAction.class.php

示例4: editAdSpace

 /**
  * 编辑广告位页面
  * @return void
  */
 public function editAdSpace()
 {
     // 位置数组
     $placeArr = $this->_getPlaceData();
     $this->assign('placeArr', $placeArr);
     // 获取广告位信息
     $id = intval($_GET['id']);
     $data = $this->model('AdSpace')->getAdSpace($id);
     // 轮播图片内容解析
     if ($data['display_type'] == 3) {
         $data['content'] = unserialize($data['content']);
         foreach ($data['content'] as &$value) {
             $attachInfo = model('Attach')->getAttachById($value['banner']);
             $value['bannerpic'] = getImageUrl($attachInfo['save_path'] . $attachInfo['save_name']);
         }
     }
     $this->assign('data', $data);
     $this->assign('editPage', true);
     $placeInfo = $this->_getPlaceByID($data['place']);
     $this->assign('placeInfo', $placeInfo);
     $previewUrl = Addons::createAddonUrl('AdSpace', 'previewPic');
     $this->assign('previewUrl', $previewUrl);
     $this->display('addAdSpace');
 }
开发者ID:songhongyu,项目名称:THINKSNS,代码行数:28,代码来源:AdSpaceHooks.class.php

示例5: weibo_js_plugin

 public function weibo_js_plugin()
 {
     echo '<script type="text/javascript" src="' . Addons::createAddonUrl('WeiboType', 'loadJs') . '"></script>';
 }
开发者ID:armebayelm,项目名称:thinksns-vietnam,代码行数:4,代码来源:PublicTypeHooks.class.php


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