本文整理汇总了PHP中getArrayString函数的典型用法代码示例。如果您正苦于以下问题:PHP getArrayString函数的具体用法?PHP getArrayString怎么用?PHP getArrayString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getArrayString函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DeleteUpfile
function DeleteUpfile($R, $d)
{
global $g, $table;
$UPFILES = getArrayString($R['upload']);
foreach ($UPFILES['data'] as $_val) {
$U = getUidData($table['s_upload'], $_val);
if ($U['uid']) {
if ($U['url'] == $d['comment']['ftp_urlpath']) {
$FTP_CONNECT = ftp_connect($d['comment']['ftp_host'], $d['comment']['ftp_port']);
$FTP_CRESULT = ftp_login($FTP_CONNECT, $d['comment']['ftp_user'], $d['comment']['ftp_pass']);
if ($d['comment']['ftp_pasv']) {
ftp_pasv($FTP_CONNECT, true);
}
if (!$FTP_CONNECT) {
getLink('', '', 'FTP서버 연결에 문제가 발생했습니다.', '');
}
if (!$FTP_CRESULT) {
getLink('', '', 'FTP서버 아이디나 패스워드가 일치하지 않습니다.', '');
}
ftp_delete($FTP_CONNECT, $d['comment']['ftp_folder'] . $U['folder'] . '/' . $U['tmpname']);
if ($U['type'] == 2) {
ftp_delete($FTP_CONNECT, $d['comment']['ftp_folder'] . $U['folder'] . '/' . $U['thumbname']);
}
ftp_close($FTP_CONNECT);
} else {
unlink($U['url'] . $U['folder'] . '/' . $U['tmpname']);
if ($U['type'] == 2) {
unlink($U['url'] . $U['folder'] . '/' . $U['thumbname']);
}
}
getDbDelete($table['s_upload'], 'uid=' . $U['uid']);
}
}
}
示例2: getCMNTUpfiles
function getCMNTUpfiles($R)
{
if (!$R['upload']) {
return array();
} else {
global $table, $m;
$d['upload'] = array();
$d['upload']['tmp'] = $R['upload'];
$d['_pload'] = getArrayString($R['upload']);
foreach ($d['_pload']['data'] as $_val) {
$U = getUidData($table['s_upload'], $_val);
if (!$U['uid']) {
$R['upload'] = str_replace('[' . $_val . ']', '', $R['upload']);
$d['_pload']['count']--;
} else {
$d['upload']['data'][] = $U;
}
if (!$U['cync']) {
$cyncArr = getArrayString($R['cync']);
$_CYNC = "cync='[" . $m . "][" . $R['uid'] . "][uid,down][" . $table['s_comment'] . "][" . $R['mbruid'] . "][" . $cyncArr['data'][5] . ",CMT:" . $R['uid'] . "#CMT]'";
getDbUpdate($table['s_upload'], $_CYNC, 'uid=' . $U['uid']);
}
}
if ($R['upload'] != $d['upload']['tmp']) {
getDbUpdate($table['s_comment'], "upload='" . $R['upload'] . "'", 'uid=' . $R['uid']);
}
$d['upload']['count'] = $d['_pload']['count'];
return $d['upload'];
}
}
示例3: LIB_getUploadImage
function LIB_getUploadImage($upfiles, $d, $content, $ext)
{
$imgs = getImgs($content, $ext);
if ($imgs[0]) {
if (!$upfiles) {
return $imgs[0];
}
$basename = basename($imgs[0]);
$encname = md5($basename);
$folder = substr($d, 0, 4) . '/' . substr($d, 4, 2) . '/' . substr($d, 6, 2);
if (is_file($GLOBALS['g']['path_file'] . $folder . '/' . $encname)) {
return str_replace($basename, '', $imgs[0]) . $encname;
}
}
if ($upfiles) {
$upArray = getArrayString($upfiles);
foreach ($upArray['data'] as $_val) {
$U = getUidData($GLOBALS['table']['s_upload'], $_val);
if (!$U['uid']) {
continue;
}
if (strpos('_jpg,gif,png', $U['ext'])) {
return $U['url'] . $U['folder'] . '/' . $U['thumbname'];
}
}
}
}
示例4: getArrayString
<?php
include $g['dir_layout'] . '/_var/_var.php';
// meta image 처리 ,add by taiji88
$Topimg_Flag = false;
if ($_SEO['image_src']) {
$ufilesArray = getArrayString($_SEO['image_src']);
$_TIMG_D = getDbData($table['s_upload'], 'uid=' . $ufilesArray['data'][0], '*');
if (is_file($g['path_file'] . $_TIMG_D['folder'] . '/' . $_TIMG_D['tmpname'])) {
$Topimg_Flag = true;
$Topimg_URL = $_TIMG_D['url'] . $_TIMG_D['folder'] . '/' . $_TIMG_D['tmpname'];
}
}
示例5: explode
<?php
include $g['path_module'] . 'notification/var/var.php';
if ($callMod == 'config') {
$NT_DATA = explode('|', $my['noticeconf']);
$nt_rcv = $NT_DATA[0];
$nt_rcvtype = $NT_DATA[1];
$nt_rcvdel = $NT_DATA[2];
$nt_modules = getArrayString($NT_DATA[3]);
$nt_members = getArrayString($NT_DATA[4]);
$nt_email = $NT_DATA[5];
$_SESSION['sh_notify_auto_del'] = '';
$_SESSION['sh_notify_popup'] = '';
} else {
if ($callMod == 'view') {
$recnum = 1000;
$NUM = getDbRows($table['s_notice'], 'mbruid=' . $my['uid']);
$TPG = getTotalPage($NUM, $recnum);
}
}
?>
<div id="rb-modal-body">
<?php
if ($callMod == 'config') {
?>
<div class="callMod-config">
<form name="procForm" class="form-horizontal" action="<?php
echo $g['s'];
?>
/" method="post">
示例6: array
<?php
if (!$my['uid']) {
exit;
}
$S = 0;
$N = 0;
$P = array();
if ($dfiles) {
$ufilesArray = getArrayString($dfiles);
foreach ($ufilesArray['data'] as $_val) {
$R = getUidData($table['s_upload'], $_val);
if ($R['mbruid'] != $my['uid'] || $R['type'] != -1 && $R['type'] != 2) {
continue;
}
$P[] = $R;
$S += $R['size'];
$N++;
}
$NUM = $N;
$TPG = 1;
} else {
$sort = $sort ? $sort : 'pid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = 50;
$_WHERE = 'mbruid=' . $my['uid'] . ' and (type=-1 or type=2) and fileonly=0';
if ($album) {
$_album = $album;
if ($album == 'none') {
$_album = 0;
}
示例7: getLink
<?php
if (!defined('__KIMS__')) {
exit;
}
include_once $g['path_module'] . $m . '/var/var.php';
if ($cync) {
$_SESSION[$m . 'cync'] = $cync;
}
if (!$_SESSION[$m . 'cync']) {
getLink(RW(0), '', '동기화코드가 지정되지 않았습니다.', '');
}
$cyncArr = getArrayString($_SESSION[$m . 'cync']);
$mod = 'main';
$sort = $sort ? $sort : 'uid';
$orderby = $orderby ? $orderby : 'asc';
$recnum = $recnum && $recnum < 200 ? $recnum : $d['trackback']['recnum'];
$cmentque = "parent='" . $cyncArr['data'][0] . $cyncArr['data'][1] . "' and type=1";
$RCD = array();
$TCD = getDbArray($table['s_trackback'], $cmentque, '*', $sort, $orderby, $recnum, $p);
$NUM = getDbRows($table['s_trackback'], $cmentque);
$TPG = getTotalPage($NUM, $recnum);
while ($_R = db_fetch_array($TCD)) {
$RCD[] = $_R;
}
if ($g['mobile'] && $_SESSION['pcmode'] != 'Y') {
$B['skin'] = $d['trackback']['skin_mobile'];
} else {
$B['skin'] = $skin ? $skin : $d['trackback']['skin_main'];
}
$g['track_reset'] = $c ? $g['s'] . '/?r=' . $r . '&c=' . $c : getLinkFilter($g['s'] . '/?r=' . $r . '&m=' . $m, array('skin', 'iframe'));
示例8: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
foreach ($oneline_members as $val) {
$R = getUidData($table['s_oneline'], $val);
if (!$R['uid']) {
continue;
}
$C = getUidData($table['s_comment'], $R['parent']);
getDbDelete($table['s_oneline'], 'uid=' . $R['uid']);
getDbUpdate($table['s_comment'], 'oneline=oneline-1', 'uid=' . $C['uid']);
getDbUpdate($table['s_numinfo'], 'oneline=oneline-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(str_replace('&', ' ', strip_tags($R['content'])), 15, '') . ")환원','" . $date['totime'] . "'");
getDbUpdate($table['s_mbrdata'], 'point=point-' . $R['point'], 'memberuid=' . $R['mbruid']);
}
//동기화
$cyncArr = getArrayString($C['cync']);
$fdexp = explode(',', $cyncArr['data'][2]);
if ($fdexp[0] && $fdexp[2] && $cyncArr['data'][3]) {
getDbUpdate($cyncArr['data'][3], $fdexp[2] . '=' . $fdexp[2] . '-1', $fdexp[0] . '=' . $cyncArr['data'][1]);
}
}
getLink('reload', 'parent.', '', '');
示例9: getDbCnt
$up_lastuid = getDbCnt($table['s_upload'], 'max(uid)', '');
$upload .= '[' . $up_lastuid . ']';
if ($up_type == 2) {
if ($fserver) {
$incPhoto .= '<img src="' . $d['upload']['ftp_urlpath'] . $up_folder . '/' . $up_tmpname . '" width="' . $d['upload']['width_img'] . '" class="photo" alt="" /><br /><br />';
} else {
$incPhoto .= '<img src="' . $g['url_root'] . '/files/' . $up_folder . '/' . $up_tmpname . '" width="' . $d['upload']['width_img'] . '" class="photo" alt="" /><br /><br />';
}
}
getDbUpdate($table['s_numinfo'], 'upload=upload+1', "date='" . $date['today'] . "' and site=" . $s);
if ($up_gid == 100000000) {
db_query("OPTIMIZE TABLE " . $table['s_upload'], $DB_CONNECT);
}
}
if ($uid && $upfiles) {
$_uploadtmp = getArrayString($upfiles);
foreach ($_uploadtmp['data'] as $_val) {
$U = getUidData($table['s_upload'], $_val);
if ($U['type'] == 2) {
if ($fserver) {
$incPhoto .= '<img src="' . $d['upload']['ftp_urlpath'] . $U['folder'] . '/' . $U['tmpname'] . '" width="' . $d['upload']['width_img'] . '" class="photo" alt="" /><br /><br />';
} else {
$incPhoto .= '<img src="' . $g['url_root'] . '/files/' . $U['folder'] . '/' . $U['tmpname'] . '" width="' . $d['upload']['width_img'] . '" class="photo" alt="" /><br /><br />';
}
}
}
}
if ($incPhoto) {
if ($insert_photo == 'top') {
$content = $incPhoto . nl2br($content);
}
示例10: getDbData
$infoSite = getDbData($table['s_site'], "id='" . $r . "'", "uid");
$siteUid = $infoSite[0];
// 댓글 쿼리
$PCD = getDbArray($table['s_comment'], 'site=' . $siteUid . ' AND notice=1' . $cmentque, '*', $sort, $orderby, 0, 0);
if ($bid == "cus_manager2") {
$TCD = getDbArray($table['s_comment'], 'site=' . $siteUid . ' AND notice=0' . $cmentque, '*', $sort, $orderby, $recnum, $p);
} else {
$TCD = getDbArray($table['s_comment'], 'site=' . $siteUid . ' AND notice=0 AND html like "HTML"' . $cmentque, '*', $sort, $orderby, $recnum, $p);
}
$NUM = getDbRows($table['s_comment'], 'site=' . $siteUid . ' AND notice=0' . $cmentque);
$TPG = getTotalPage($NUM, $recnum);
while ($_R = db_fetch_array($PCD)) {
$NCD[] = $_R;
}
while ($_R = db_fetch_array($TCD)) {
$arrCyncStr = getArrayString($_R['cync']);
if (strpos($cyncArr['data'][5], "bid:resort") && !strpos($arrCyncStr['data'][5], "bid:resort")) {
continue;
}
$RCD[] = $_R;
}
if ($g['mobile'] && $_SESSION['pcmode'] != 'Y') {
$B['skin'] = $skin ? $skin : $d['comment']['skin_mobile'];
} else {
$B['skin'] = $skin ? $skin : $d['comment']['skin_main'];
}
$g['cment_reset'] = getLinkFilter($g['s'] . '/?' . ($_HS['usescode'] ? 'r=' . $r . '&' : '') . ($c ? 'c=' . $c : 'm=' . $m), array($skin ? 'skin' : '', $iframe ? 'iframe' : ''));
$g['cment_list'] = $g['cment_reset'] . getLinkFilter('', array('p', 'sort', 'orderby', 'recnum', 'where', 'keyword'));
$g['cment_view'] = $g['cment_list'] . '&uid=';
$g['cment_modify'] = $g['cment_list'] . '&type=modify&uid=';
$g['cment_action'] = $g['cment_list'] . '&a=';
示例11: getMetaImage
function getMetaImage($str)
{
if (!$str) {
return '';
}
if (strstr($str, '://')) {
return $str;
}
$imgs = getArrayString($str);
$R = getUidData($GLOBALS['table']['s_upload'], $imgs['data'][0]);
if ($R['type'] == 2 || $R['type'] == 5) {
return $R['url'] . $R['folder'] . '/' . $R['tmpname'];
}
if ($R['type'] == -1) {
return $R['src'];
}
return '';
}
示例12: getCommentList
//.........这里部分代码省略.........
} else {
echo '<span class="text-muted"><a href="#" id="report-' . $C['uid'] . '" class="live-tooltip cmt-tools" title="신고" ><i class="fa fa-frown-o"></i></a></span>';
}
echo '</span>
</h5>';
echo '<hr class="cmt-hr">
<div class="panel-body nopd-left comment-content" id="comment-content-' . $C['uid'] . '">';
if (!$C['hidden'] || $my['admin'] || $my['id'] && $my['id'] == $C['id'] || strstr($_SESSION['module_' . $m . '_view'], '[' . $C['uid'] . ']')) {
echo autolink(getContents($C['content'], $C['html'], $keyword));
} else {
$isSECRETCHECK = false;
echo '<i class="fa fa-lock-o"></i> <a href="' . $g['cment_modify'] . $C['uid'] . '" onclick="return cmentHidden(\'' . $C['id'] . '\',\'' . $C['uid'] . '\',event);">비공개 댓글입니다.</a>';
}
echo '</div>';
if ($C['is_link']) {
$links_arr = explode('^^', $C['links']);
$link_title = $links_arr[0];
$link_url = $links_arr[1];
$link_desc = $links_arr[2];
$link_thumb = $links_arr[3];
echo '<div class="rb-comment-links clearfix">
<div class="media">
<div class="media-left" id="extracted_thumb"><img src="' . $link_thumb . '" width="100" height="100"></div>
<div class="media-body">
<h4 class="media-heading"><a href="' . $link_url . '" target="_blank">' . $link_title . '</a></h4>
<p class="rb-description">' . $link_desc . '</p>
</div>
</div>
</div>';
}
// 링크 출력부
// 포토출력
if ($C['is_photo']) {
$upArray = getArrayString($C['upload']);
$_pque = '(';
foreach ($upArray['data'] as $val) {
$_pque .= 'uid=' . $val . ' or ';
}
$_pque = substr($_pque, 0, -4) . ')';
$_UCD = getDbArray($table['s_upload'], $_pque, '*', 'gid', 'asc', 10, 1);
echo '<ul class="rb-img-wrapper list-inline">';
while ($_U = db_fetch_array($_UCD)) {
$img = str_replace('.', '', $_U['url']) . $_U['folder'] . '/' . $_U['tmpname'];
$img_src = '/_core/opensrc/thumb/thumb.php?width=100&cropratio=2:1.5&image=' . $img;
$img_alt = $_U['caption'] ? $_U['caption'] : $_U['name'];
echo '<li><a href="#"><img src="' . $img . '" class="img-responsive" alt="' . $img_alt . '" width="100px" height="100px" /></a></li>';
}
echo '</ul>';
}
// 포토 출력부
// 지도 출력
if ($C['is_place']) {
$P = getDbData($table['s_place'], 'parent=' . $C['uid'], '*');
// Lat, Lng 은 숫자형으로 적용해야 한다.
echo '<script>
$(\'document\').ready(function(){
var Lat=' . $P['lat'] . ';var Lng=' . $P['lng'] . ';var name=\'' . $P['name'] . '\';var addr=\'' . $P['addr'] . '\';var map_id=\'cmap_' . $C['uid'] . '\';
PlaceToMap(Lat,Lng,name,addr,map_id);
});
</script>
<div id="cmap_' . $C['uid'] . '" style="height:200px;"></div>';
}
// 지도 출력
echo '<div class="clearfix">
<div class="pull-left" style="margin-top:4px;">
<a class="small live-tooltip" href="#comments-' . $C['uid'] . '-reply" data-parent="#comments-' . $C['uid'] . '" data-toggle="collapse">답글 <span id="one-num-' . $C['uid'] . '">' . $C['oneline'] . '</span> <i class="fa fa-sort-desc"></i></a>
示例13: getDbInsert
// require_once $g['path_module'].'social/oauth/facebook/src/facebook.php';
// $FBCONN = new Facebook(array('appId'=>$d['social']['key_f'],'secret'=>$d['social']['secret_f']));
// $FBRESULT = $FBCONN->api('/'. $_mysnsdat[4].'/feed?access_token='.$_mysnsdat[2],'POST',array('access_toten'=>$_mysnsdat[2],'message' => $orignSubject.' '.$orignUrl));
// if($FBRESULT['id'])
// {
// $FBPARAM = explode('_',$FBRESULT['id']);
// $FBPAURL = 'http://facebook.com/permalink.php?story_fbid='.$FBPARAM[1].'&id='.$_mysnsdat[4];
// $QVAL = "'$snsgid','f','".$_mysnsdat[4]."','$subject','$name','$nic','$my[uid]','$my[id]','$FBPAURL','$xcync','$date[totime]'";
// getDbInsert($table['socialdata'],$QKEY,$QVAL);
// $snsSendResult .= getDbCnt($table['socialdata'],'max(uid)','').',';
// $snsgid--;
// }
// place 정보 등록
if ($lat != '' && $lng != '') {
$_PKEY = "parent,mbruid,name,address,lat,lng,type,date";
$_PVAL = "'{$uid}','{$mbruid}','{$place_name}','{$location}','{$lat}','{$lng}','{$place_type}','" . $date['today'] . "'";
getDbInsert($table['s_place'], $_PKEY, $_PVAL);
}
// 업로드 파일에 대한 parent 값 세팅
if ($upload) {
$up_arr = getArrayString($upload);
for ($i = 0; $i < count($up_arr['data']); $i++) {
getDbUpdate($table['s_upload'], "parent='" . $m . $uid . "'", 'uid=' . $up_arr['data'][$i]);
}
}
}
// 신규등록
}
$response = getCommentList($theme, $parent, $_where, $c_recnum, $c_sort, $c_orderby, $orderby2, $c_page);
echo $response;
exit;
示例14: getArrayString
<div id="_popwrap_">
<?php
$pops = getArrayString($pop);
?>
<?php
foreach ($pops['data'] as $_val) {
?>
<?php
$R = getUidData($table['s_popup'], $_val);
?>
<div id="poplayer<?php
echo $R['uid'];
?>
" style="position:absolute;z-index:<?php
echo $R['uid'];
?>
;width:<?php
echo $R['width'];
?>
px;height:<?php
echo $R['height'];
?>
px;top:<?php
echo $R['ptop'];
?>
px;left:<?php
echo $R['pleft'];
?>
px;<?php
if ($R['center']) {
示例15: array
<?php
$postarray1 = array();
$postarray2 = array();
$postarray1 = getArrayString($postuid);
foreach ($postarray1['data'] as $val) {
if (!strstr($_SESSION['BbsPost' . $type], '[' . $val . ']')) {
$_SESSION['BbsPost' . $type] .= '[' . $val . ']';
}
}
$postarray2 = getArrayString($_SESSION['BbsPost' . $type]);
rsort($postarray2['data']);
reset($postarray2['data']);
?>
<form name="procForm" action="<?php
echo $g['s'];
?>
/" method="post" target="_action_frame_<?php
echo $m;
?>
">
<input type="hidden" name="r" value="<?php
echo $r;
?>
" />
<input type="hidden" name="m" value="<?php
echo $module;
?>
" />