本文整理汇总了PHP中getStrCut函数的典型用法代码示例。如果您正苦于以下问题:PHP getStrCut函数的具体用法?PHP getStrCut怎么用?PHP getStrCut使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getStrCut函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getRefererUrl1
function getRefererUrl1($url)
{
if (!trim($url)) {
return '미경유 접속';
}
$url_exp = explode('/', $url);
return getStrCut(str_replace('www.', '', $url_exp[2]), 15, '..');
}
示例2: Skin_SubjectLink
function Skin_SubjectLink($sbj, $uid, $sec, $mbid, $date)
{
global $bbs, $ViewPerm, $table;
$date_img = date("Ymd") == substr($date, 0, 8) ? " <img src='./bbs/skin/" . $bbs[Skin] . "/image/dot_new.gif' align=absmiddle>" : '';
if ($ViewPerm) {
return "<a href='#.' onclick=\"ViewArticle({$uid},'{$sec}','{$mbid}','{$table}','',event);\">" . getStrCut($sbj, $bbs[SbjStrlen], '..') . "</a>" . $date_img;
} else {
return getStrCut($sbj, $bbs[SbjStrlen], '..') . $date_img;
}
}
示例3: Sch_SubjectLink
function Sch_SubjectLink($sbj, $uid, $sec, $mbid, $date)
{
global $ViewPerm, $tbl, $bbs;
$date_img = date("Ymd") == substr($date, 0, 8) ? " <img src='./lib/module/search/image/dot_new.gif' align=absmiddle>" : '';
if ($ViewPerm) {
return "<a href='#.' onclick=\"ViewArticle_S({$uid},'{$sec}','{$mbid}','{$tbl}','_win',event);\"><img src='./lib/module/search/image/ico_win.gif' align=absmiddle alt='새창으로 보기'> </a><a href='#.' onclick=\"ViewArticle_S({$uid},'{$sec}','{$mbid}','{$tbl}','',event);\">" . getStrCut($sbj, $bbs[SbjStrlen], '..') . "</a>" . $date_img;
} else {
return "<img src='./lib/module/search/image/ico_win.gif' align=absmiddle> " . getStrCut($sbj, $bbs[SbjStrlen], '..') . $date_img;
}
}
示例4: DeleteOneline
function DeleteOneline($C, $d, $sync_arr)
{
global $table, $date;
$_ONELINE = getDbSelect($table['s_oneline'], 'parent=' . $C['uid'], '*');
while ($_O = db_fetch_array($_ONELINE)) {
if ($d['comment']['give_opoint'] && $_O['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $_O['mbruid'] . "','0','-" . $d['comment']['give_opoint'] . "','한줄의견삭제(" . getStrCut(str_replace('&', ' ', strip_tags($_O['content'])), 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $d['comment']['give_opoint'], 'memberuid=' . $_O['mbruid']);
}
}
getDbDelete($table['s_oneline'], 'parent=' . $C['uid']);
// 댓글 수량 동기화
$sync_arr = explode('|', $R['sync']);
$feed_table = $sync_arr[0];
$feed_uid = $sync_arr[1];
getDbUpdate($feed_table, 'oneline=oneline-1', 'uid=' . $feed_uid);
}
示例5: unlink
//if($U['type']==2) unlink($g['path_file'].$U['folder'].'/'.$U['thumbname']);
unlink('./modules/bbs/upload/' . $U['folder'] . '/' . $U['tmpname']);
if ($U['type'] == 2) {
unlink('./modules/bbs/upload/' . $U['folder'] . '/' . $U['thumbname']);
}
}
}
}
}
//한줄의견삭제
if ($R['oneline']) {
$_ONELINE = getDbSelect($table['s_oneline'], 'parent=' . $R['uid'], '*');
while ($_O = db_fetch_array($_ONELINE)) {
getDbUpdate($table['s_numinfo'], 'oneline=oneline-1', "date='" . substr($_O['d_regis'], 0, 8) . "' and site=" . $_O['site']);
if ($_O['point'] && $_O['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $_O['mbruid'] . "','0','-" . $_O['point'] . "','한줄의견삭제(" . getStrCut(str_replace('&', ' ', strip_tags($_O['content'])), 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $_O['point'], 'memberuid=' . $_O['mbruid']);
}
}
getDbDelete($table['s_oneline'], 'parent=' . $R['uid']);
}
getDbDelete($table['s_comment'], 'uid=' . $R['uid']);
getDbUpdate($table['s_numinfo'], 'comment=comment-1', "date='" . substr($R['d_regis'], 0, 8) . "' and site=" . $R['site']);
if ($R['point'] && $R['mbruid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $R['mbruid'] . "','0','-" . $R['point'] . "','댓글삭제(" . getStrCut($R['subject'], 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $R['point'], 'memberuid=' . $R['mbruid']);
}
echo '[RESULT:ok:RESULT]';
?>
示例6: getDateFormat
<div class="date"><?php
echo getDateFormat($_R['d_regis'], 'Y년 m월 d일');
?>
</div>
<div class="cont">
<?php
if ($_THUMB) {
?>
<img src="<?php
echo $_THUMB;
?>
" alt="" /><?php
}
?>
<?php
echo getStrCut(getStripTags($_R['content']), 200, '..');
?>
</div>
</div>
<?php
}
?>
<?php
if (!$_NUM) {
?>
<div class="none">등록된 게시물이 없습니다.</div>
<?php
}
?>
<div class="clear"></div>
</div>
示例7: getStrCut
?>
','email')">
<?php
}
echo $MB[MB_NAME];
?>
</td>
<td><font class=Blink onclick="showMeberData('<?php
echo $MB[MB_ID];
?>
','')"><?php
echo $MB[MB_ID];
?>
</font></td>
<td><?php
echo getStrCut($MB[MB_NIC], 10, '..');
?>
</td>
<td>[<?php
echo $MB[MB_TYPE];
?>
]<?php
echo $MB_GROUP[$MB[MB_TYPE] - 1];
?>
</td>
<td><?php
echo getSex($MB[MB_SEX]);
?>
,<?php
echo getAge($MB[MB_BIRTH]);
?>
示例8: getWebTitle
function getWebTitle($content)
{
$getWebTitle = getStrCut($content, '<title>', '</title>', 0);
return @$getWebTitle;
}
示例9: getCyncUrl
?>
)로 등록된 글입니다" /><?php
}
?>
<a href="<?php
echo getCyncUrl($_R['cync'] . ',CMT:' . $_R['uid']);
?>
#CMT" target="_blank"><img src="<?php
echo $g['img_core'];
?>
/_public/ico_blank.gif" alt="" title="새창으로보기" /></a>
<a href="<?php
echo getCyncUrl($_R['cync'] . ',CMT:' . $_R['uid']);
?>
#CMT"><?php
echo getStrCut($R['content'], 40, '..');
?>
</a>
<?php
if (getNew($R['d_regis'], 24)) {
?>
<span class="new">new</span><?php
}
?>
</td>
<td><?php
echo getDateFormat($R['d_regis'], 'Y.m.d H:i');
?>
</td>
</tr>
<?php
示例10: getStrCut
echo $RCD[BB_UID];
?>
,'<?php
echo $RCD[BB_SECRET];
?>
','<?php
echo $RCD[BB_MB_ID];
?>
',<?php
echo $bbs[gallery_width];
?>
)
</script>
<br><img src='./image/blank.gif' width=1 height=2><br>
<?php
echo getStrCut(htmlspecialchars($RCD[BB_CONTENT]), 30, '..');
?>
<br>
<font color=gray style='font-size:8pt;'>(조회 <?php
echo $RCD[BB_HIT];
?>
/ 확인 <?php
echo $RCD[BB_DOWN];
?>
/ 코멘트 <?php
echo $RCD[BB_OPINUM];
?>
) </font>
<br>
<p>
</td>
示例11: readTemplateFileSource
function readTemplateFileSource($templateFilePath, $id)
{
$startStr = '';
$endStr = '';
$s = '';
$c = '';
$startStr = '<!--#sourceHtml' . replace($id, '.html', '') . 'Start#-->';
$endStr = '<!--#sourceHtml' . replace($id, '.html', '') . 'End#-->';
$s = readTemplateFileModular($templateFilePath, $startStr, $endStr);
if ($s == '[$NO$]') {
//加一个读取本文本里配置列表(20150815)
$c = getStrCut($GLOBALS['pubCode'], $startStr, $endStr, 2);
if ($c != '') {
$readTemplateFileSource = $c;
//call rwend(c)
return @$readTemplateFileSource;
}
$c = getFText($templateFilePath);
//存在 <!--#TemplateSplitStart#--> 就返回当前全部内容
if (inStr($c, '<!--#DialogStart#-->') > 0) {
$readTemplateFileSource = $c;
return @$readTemplateFileSource;
}
$s = '模板资源ID[' . $id . ']不存在,路径TemplateFilePath=' . HandlePath($templateFilePath);
}
$readTemplateFileSource = $s;
return @$readTemplateFileSource;
}
示例12: getStrCut
','<?php
echo $list[0];
?>
','<?php
echo $p;
?>
');">삭제</a></td>
<?php
for ($j = 0; $j < $field_num; $j++) {
?>
<?php
if (!$cutlen) {
?>
<td><?php
echo getStrCut(htmlspecialchars($list[$j]), 20, '..');
?>
</td>
<?php
} else {
?>
<td><?php
echo htmlspecialchars($list[$j]);
?>
</td>
<?php
}
?>
<?php
}
?>
示例13: explode
$period2 = explode("||", $m_rs1[period]);
$regist_date = $m_rs1[regist_date];
?>
<tr>
<td colspan="4" class="txt2" ><a href="/modules/bbsext/theme/_pc/list02/final_view.php?uid=<?php
echo $m_rs1['uid'];
?>
" target="_black"><?php
if ($list_count == $row_count) {
?>
<font color="blue"><?php
}
echo $name[0];
?>
님의 <?php
echo getStrCut($subject, 35, '..');
if ($list_count == $row_count) {
?>
</font><?php
}
?>
</a></td>
<td colspan="1" class="txt2" align="center"><?php
if ($list_count == $row_count) {
?>
<font color="blue"><?php
}
echo $period1[0];
if ($list_count == $row_count) {
?>
</font><?php
示例14: getStrCut
?>
<li>
<a href="?m=bbsbc&bid=bc_product&uid=<?php
echo $_R['uid'];
?>
"><img src="<?php
echo $_img;
?>
" alt="<?php
echo getStrCut(str_replace(' ', ' ', strip_tags($_R['subject'])), 30, '..');
?>
" width="230" height="154">
<dl>
<dt><strong><?php
echo getStrCut(str_replace(' ', ' ', strip_tags($_R['subject'])), 30, '..');
?>
</strong></dt>
<dd><strong class="red">[가격대] <?php
echo $_R['add_txt4'];
?>
~ <?php
echo $_R['add_txt5'];
?>
원</strong></dd>
</dl>
</a>
</li>
示例15: getStrCut
</tr>
</table></td>
</tr>
</table>
<!-- 이미지 끝--></td>
<td valign="top" style="padding:10px 10px 10px 10px;"><!-- 내용시작 -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="25" align="left" style="font-family:돋움; font-size:14px; font-weight:bold; color:#717171; padding : 5px;"> [<?php
echo $R['category'];
?>
]<a href="<?php
echo $g['bbs_view'] . $R['uid'];
?>
"><?php
echo getStrCut(str_replace(' ', ' ', strip_tags($R['subject'])), 40, '...');
?>
</a>
[<a href="<?php
echo $g['bbs_modify'] . $R['uid'];
?>
">수정</a>]</td>
</tr>
<tr>
<td height="25" align="left" style="font-family:돋움; font-size:12px; color:#717171; padding : 5px;"> <?php
echo $R['add_txt2'];
?>
- <?php
echo $R['add_txt3'];
?>
</td>