本文整理汇总了PHP中getStrCut函数的典型用法代码示例。如果您正苦于以下问题:PHP getStrCut函数的具体用法?PHP getStrCut怎么用?PHP getStrCut使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getStrCut函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getRefererUrl1
function getRefererUrl1($url)
{
if (!trim($url)) {
return '미경유 접속';
}
$url_exp = explode('/', $url);
return getStrCut(str_replace('www.', '', $url_exp[2]), 15, '..');
}
开发者ID:jin255ff,项目名称:company_website,代码行数:8,代码来源:log.php
示例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;
}
}
开发者ID:jin255ff,项目名称:company_website,代码行数:10,代码来源:func.php
示例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;
}
}
开发者ID:jin255ff,项目名称:company_website,代码行数:10,代码来源:func.php
示例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);
}
开发者ID:kieregh,项目名称:test_comment,代码行数:17,代码来源:action.func.php
示例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]';
?>
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:29,代码来源:a.comment_delete.php
示例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>
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:_main.php
示例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]);
?>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:mbr_manager.php
示例8: getWebTitle
function getWebTitle($content)
{
$getWebTitle = getStrCut($content, '<title>', '</title>', 0);
return @$getWebTitle;
}
开发者ID:313801120,项目名称:AspPhpCms,代码行数:5,代码来源:URL.php
示例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
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:oneline.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>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:list.php
示例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;
}
开发者ID:313801120,项目名称:AspPhpCms,代码行数:28,代码来源:2014_Template.php
示例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
}
?>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.view.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
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:view.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>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:28,代码来源:_bc_index.php
示例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>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:list.php
示例16: getUidData
}
if ($uid) {
$R = getUidData($table['s_oneline'], $uid);
if (!$R['uid']) {
echo '[RESULT:존재하지 않는 한줄의견입니다. :RESULT]';
}
if (!$my['admin'] && $my['uid'] != $R['mbruid']) {
echo '[RESULT:정상적인 접근이 아닙니다.:RESULT]';
}
$QVAL = "hidden='{$hidden}',content='{$content}',html='{$html}',d_modify='{$d_regis}',adddata='{$adddata}'";
getDbUpdate($table['s_oneline'], $QVAL, 'uid=' . $R['uid']);
} else {
//댓글의 부모글에 한줄의견 수량 추가
$sync_arr = explode('|', $R['sync']);
$feed_table = $sync_arr[0];
$feed_uid = $sync_arr[1];
getDbUpdate($feed_table, 'oneline=oneline+1', 'uid=' . $feed_uid);
$maxuid = getDbCnt($table['s_oneline'], 'max(uid)', '');
$uid = $maxuid ? $maxuid + 1 : 1;
$QKEY = "uid,site,parent,parentmbr,hidden,name,nic,mbruid,id,content,html,report,point,d_regis,d_modify,ip,agent,adddata";
$QVAL = "'{$uid}','{$s}','{$parent}','{$parentmbr}','{$hidden}','{$name}','{$nic}','{$mbruid}','{$id}','{$content}','{$html}','{$report}','{$point}','{$d_regis}','{$d_modify}','{$ip}','{$agent}','{$adddata}'";
getDbInsert($table['s_oneline'], $QKEY, $QVAL);
getDbUpdate($table['s_comment'], "oneline=oneline+1,d_oneline='" . $d_regis . "'", 'uid=' . $parent);
getDbUpdate($table['s_numinfo'], 'oneline=oneline+1', "date='" . $date['today'] . "' and site=" . $s);
if ($point && $my['uid']) {
getDbInsert($table['s_point'], 'my_mbruid,by_mbruid,price,content,d_regis', "'" . $my['uid'] . "','0','" . $point . "','한줄의견(" . getStrCut(str_replace('&', ' ', strip_tags($content)), 15, '') . ")포인트','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point+' . $point, 'memberuid=' . $my['uid']);
}
}
echo '[RESULT:ok:RESULT]';
exit;
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.oneline_regis.php
示例17: RW
echo $infoArticle['subject'];
?>
" /></a>
<h2><a href="<?php
echo RW("m=bbs&uid=" . $infoArticle['uid']);
?>
"><?php
echo $infoArticle['subject'];
?>
</a></h2>
<!-- <p class="event"><?php
echo getStrCut(strip_tags(urldecode($adddata['desc'])), 100, "");
?>
</p> -->
<p class="event" style="width:310px;height:45px;"><?php
echo getStrCut(strip_tags(urldecode($adddata['desc'])), 100, "");
?>
</p>
</li>
<?php
}
?>
<div class="clear"></div>
</ul>
<ul class="mainCommon mainLinks">
<li>
<h1><a href="http://www.trevia.co.kr/?r=dubai&m=bbs&bid=notice"><img src="/pages/image/main_icon_notice.jpg" alt="트레비아 공지사항" /></a></h1>
<ul class="latestArticle">
<?php
$infoNotice = getDbArray($table['bbsdata'], "site >=4 AND site<=8 AND bbsid='notice' AND notice = 0", "uid, subject,site", "uid", "desc", "5", "1");
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main_newtrevia.php
示例18: Skin_SubjectLink
<tr>
<td class=Title height=30>
<?php
echo Skin_SubjectLink($RCD[BB_SUBJECT], $RCD[BB_UID], $RCD[BB_SECRET], $RCD[BB_MB_ID], '');
?>
</td>
</tr>
<tr>
<td class=SubTitle><?php
echo nl2br(stripslashes($RCD[BB_ADD]));
?>
</td>
</tr>
<tr>
<td><?php
echo getStrCut(stripslashes(strip_tags($RCD[BB_CONTENT])), 200, '..');
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<table width=100% cellspacing=0 cellpadding=0 bgcolor='#ffffff'>
<?php
$i = 0;
while ($RCD = db_fetch_array($RCD_DATA)) {
?>
开发者ID:jin255ff,项目名称:company_website,代码行数:31,代码来源:list.php
示例19: foreach
foreach ($_tagarr2 as $_t) {
if (!$_t || in_array($_t, $_tagarr1)) {
continue;
}
$_TAG = getDbData($table['s_tag'], 'site=' . $s . " and date='" . $_tagdate . "' and keyword='" . $_t . "'", '*');
if ($_TAG['uid']) {
getDbUpdate($table['s_tag'], 'hit=hit+1', 'uid=' . $_TAG['uid']);
} else {
getDbInsert($table['s_tag'], 'site,date,keyword,hit', "'" . $s . "','" . $_tagdate . "','" . $_t . "','1'");
}
}
}
if ((!$uid || $reply == 'Y') && $snsCallBack && is_file($g['path_module'] . $snsCallBack)) {
$xcync = "[][][][][][m:" . $m . ",bid:" . $bbsid . ",uid:" . $NOWUID . "]";
$orignSubject = strip_tags($subject);
$orignContent = getStrCut($orignSubject, 60, '..');
$orignUrl = 'http://' . $_SERVER['SERVER_NAME'] . str_replace('./', '/', getCyncUrl($xcync)) . '#CMT';
include_once $g['path_module'] . $snsCallBack;
if ($snsSendResult) {
getDbUpdate($table[$m . 'data'], "sns='" . $snsSendResult . "'", 'uid=' . $LASTUID);
}
}
include_once $g['dir_module'] . 'theme/_pc/' . $bid . '/_var.php';
// 메일 발송
if ($d['theme']['email_send'] && !$my['admin']) {
$AD = getDbData($table['s_mbrdata'], "nic='관리자'", '*');
$email = $AD['email'];
$to = $AD['name'];
include_once $g['path_core'] . 'function/email.func.php';
include_once $g['path_module'] . 'member/var/var.join.php';
getSendMail($email . '|' . $to, $d['member']['join_email'] . '|' . $_HS['name'], '[' . $_HS['name'] . ']의 [' . $B['name'] . ']게시판에 [' . $name . ']님께서 아래와 같은 내용의 글을 등록하셨습니다. ', $content, 'HTML');
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.write_h.php
示例20: AspTrim
$s = AspTrim($s);
if ($tempS != '' && substr(phptrim($s) . ' ', 0, 1) != '#') {
$nCount = $nCount + 1;
//总数
if (substr($tempS, 0, 4) == ' ') {
} else {
$parentid = '-1';
}
if (trim(LCase($tempS)) == 'end') {
break;
} else {
if (trim($s) != '') {
$title = mid($s . ' ', 1, instr($s . ' ', ' ') - 1);
$lableName = getStrCut($s, 'lablename=\'', '\'', 2);
$url = getStrCut($s, 'url=\'', '\'', 2);
$isdisplay = getStrCut($s, 'isdisplay=\'', '\'', 2);
if ($isdisplay == '') {
$isdisplay = 1;
}
//ASPEcho('lablename', $lableName) ;
if ($title != '') {
connExecute('insert into ' . $DB_PREFIX . 'ListMenu (title,parentid,sortrank,lablename,isdisplay,customaurl) values(\'' . $title . '\',' . $parentid . ',' . $nCount . ',\'' . $lableName . '\',' . $isdisplay . ',\'' . $url . '\')');
if ($parentid == '-1') {
$rsObj = $GLOBALS['conn']->query('select * from ' . $DB_PREFIX . 'ListMenu where title=\'' . $title . '\'');
$rs = mysql_fetch_array($rsObj);
if (@mysql_num_rows($rsObj) != 0) {
$parentid = $rs['id'];
}
}
}
ASPEcho($title, $s);
开发者ID:313801120,项目名称:AspPhpCms,代码行数:31,代码来源:Install.php
注:本文中的getStrCut函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论