本文整理汇总了PHP中func::lastSlashDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP func::lastSlashDelete方法的具体用法?PHP func::lastSlashDelete怎么用?PHP func::lastSlashDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类func
的用法示例。
在下文中一共展示了func::lastSlashDelete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
<?php
$skin = new Skin;
$skin->load('meta/'.$config->metaskin);
$servicePath = func::lastSlashDelete($service['path']);
// 베이스 출력
$adminURL = (isLoggedIn() && !isAdmin()) ? $servicePath.'/mypage' : $service['path'].'/admin';
$event->on('Meta.skinBegin');
$headerScript = '
<script type="text/javascript">
//<![CDATA[
[##_bloglounge_autoinput_script_##]
$(window).ready( function() {
updateFeed();
});
//]]></script></head>';
$skin->output = str_replace('</head>', func::printHeadHTML(), $skin->output);
$skin->output = str_replace('</head>', $headerScript, $skin->output);
$skin->output = str_replace('</head>', $event->on('Disp.head')."\n</head>\n", $skin->output);
$skin->output = str_replace('<body>', "\n<body>\n".$event->on('Disp.body'), $skin->output);
// *** 기본 정보
$skin->replace('title', $event->on('Text.title', UTF8::clear($config->title)));
$skin->replace('description', $event->on('Text.description', UTF8::clear($config->description)));
$skin->replace('base_url', empty($service['path'])?'/':$servicePath.'/');
$skin->replace('index_url', $servicePath);
示例2:
$add = $service['path'];
if(!in_array($accessInfo['controller'], array('','read','blog','calling','day','error','export','focus','go','join','login','logout','random','rss','search'))) {
switch($accessInfo['controller']) {
case 'feedlist':
$add .= '/feedlist';
break;
case 'group':
case 'category':
default:
$add .='/'. $accessInfo['controller'] .'/' . func::encode(trim($searchKeyword));
break;
}
}
$add = func::lastSlashDelete($add);
$s_paging = $skin->parseTag('prev_page', $event->on('Text.pagingURL',$add.$qSearch.$paging['pageDatas'][$paging['pagePrev']]), $src_paging);
$s_paging = $skin->parseTag('next_page', $event->on('Text.pagingURL',$add.$qSearch.$paging['pageDatas'][$paging['pageNext']]), $s_paging);
$s_paging = $skin->parseTag('more_prev_page', ($paging['pagePrev'] == $page ? 'no_more' : 'more'), $s_paging);
$s_paging = $skin->parseTag('more_next_page', ($paging['pageNext'] == $page ? 'no_more' : 'more'), $s_paging);
$s_rep_paging = '';
$src_rep_paging = $skin->cutSkinTag('paging_rep');
for ($p=$paging['pageStart']; $p < $paging['pageEnd']+1; $p++) {
$sp_paging = $skin->parseTag('page_number', $p, $src_rep_paging);
$sp_paging = $skin->parseTag('page_url', $event->on('Text.pagingURL',$add.$qSearch.$paging['pageDatas'][$p]), $sp_paging);
if ($p == $page) {
$sp_paging = $skin->parseTag('page_highlight', 'selected', $sp_paging);
} else {
示例3: unionAddress
function unionAddress($url1, $url2) {
$url1 = str_replace('http://','',$url1);
if($i = strpos($url1, '/')) {
$url1 = substr($url1,0,$i);
}
$_url1 = func::lastSlashDelete($url1);
$_url2 = func::firstSlashDelete($url2);
return 'http://' . $_url1 . '/' . $_url2;
}