• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getArrayString函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getArrayString函数的典型用法代码示例。如果您正苦于以下问题:PHP getArrayString函数的具体用法?PHP getArrayString怎么用?PHP getArrayString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getArrayString函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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']);
        }
    }
}
开发者ID:kieregh,项目名称:test_comment,代码行数:34,代码来源:action.func.php


示例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'];
    }
}
开发者ID:kieregh,项目名称:test_comment,代码行数:30,代码来源:function.php


示例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'];
            }
        }
    }
}
开发者ID:eosliebe,项目名称:rb,代码行数:27,代码来源:getUploadImage.lib.php


示例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'];
    }
}
开发者ID:nawonjang,项目名称:rb2-examples-startbootstrap,代码行数:13,代码来源:_import.control.php


示例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">
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:popup.notification.php


示例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;
        }
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:modal.photo.media.php


示例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 . '&amp;c=' . $c : getLinkFilter($g['s'] . '/?r=' . $r . '&amp;m=' . $m, array('skin', 'iframe'));
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.php


示例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('&amp;', ' ', 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.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:27,代码来源:a.multi_oneline_delete.php


示例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);
     }
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:a.write_h.php


示例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 . '&amp;' : '') . ($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'] . '&amp;uid=';
$g['cment_modify'] = $g['cment_list'] . '&amp;type=modify&amp;uid=';
$g['cment_action'] = $g['cment_list'] . '&amp;a=';
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.php


示例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 '';
}
开发者ID:hanacody,项目名称:rb2,代码行数:18,代码来源:sys.func.php


示例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&amp;cropratio=2:1.5&amp;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>
开发者ID:kieregh,项目名称:test_comment,代码行数:67,代码来源:function.php


示例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;
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.comment_regis.php


示例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']) {
开发者ID:eosliebe,项目名称:rb,代码行数:30,代码来源:popup.layer.php


示例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;
?>
" />
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:movecopy.php


示例16: foreach

             </form> 
             <?php 
}
?>
            </div><!-- .row rb-search -->
        </div> <!-- .panel-body -->
        <div class="row">
            <?php 
foreach ($RCD as $R) {
    ?>
 
               <?php 
    $post_link = $g['s'] . '/?r=' . $r . '&c=' . $c . '&uid=' . $R['uid'];
    ?>
               <?php 
    $UP = getArrayString($R['upload']);
    ?>
 <!-- 첫번째 이미지 uid 찾기-->
               <?php 
    $FU = $UP['data'][0];
    ?>
               <?php 
    $f_data = getDbData($table[$m . 'upload'], 'uid=' . $FU, '*');
    ?>
               <?php 
    $f_img = '/modules/bbs/upload/' . $f_data['folder'] . '/' . $f_data['tmpname'];
    ?>
                <div class="col-xs-6 col-md-3">
                    <a href="<?php 
    echo $post_link;
    ?>
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:list.php


示例17: getDbUpdate

        }
    }
}
if ($d['bbs']['isperm'] && ($d['bbs']['hitcount'] || !strpos('_' . $_SESSION['module_' . $m . '_view'], '[' . $R['uid'] . ']'))) {
    if ($R['point2']) {
        $g['main'] = $g['dir_module'] . 'lang.' . $_HS['lang'] . '/mod/_pointcheck.php';
        $d['bbs']['isperm'] = false;
    } else {
        getDbUpdate($table[$m . 'data'], 'hit=hit+1', 'uid=' . $R['uid']);
        $_SESSION['module_' . $m . '_view'] .= '[' . $R['uid'] . ']';
    }
}
if ($d['bbs']['isperm'] && $R['upload']) {
    $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']) {
                $_CYNC = "cync='[" . $m . "][" . $R['uid'] . "][uid,down][" . $table[$m . 'data'] . "][" . $R['mbruid'] . "][m:" . $m . ",bid:" . $R['bbsid'] . ",uid:" . $R['uid'] . "]'";
                getDbUpdate($table['s_upload'], $_CYNC, 'uid=' . $U['uid']);
            }
        }
    }
    if ($R['upload'] != $d['upload']['tmp']) {
        getDbUpdate($table[$m . 'data'], "upload='" . $R['upload'] . "'", 'uid=' . $R['uid']);
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:_view.php


示例18: getArrayString

<?php

if (!defined('__KIMS__')) {
    exit;
}
$S = 0;
$N = 0;
if ($files) {
    $d['upload'] = getArrayString($files);
    foreach ($d['upload']['data'] as $_val) {
        $U = getUidData($table['s_upload'], $_val);
        if ($U['uid']) {
            $S += $U['size'];
            $N++;
        }
    }
}
$P = array();
if (!$_SESSION['upsescode']) {
    $_SESSION['upsescode'] = str_replace('.', '', $g['time_start']);
}
$sescode = $_SESSION['upsescode'];
if ($sescode) {
    $PHOTOS = getDbArray($table['s_upload'], "tmpcode='" . $sescode . "'", '*', 'uid', 'asc', 0, 0);
    while ($R = db_fetch_array($PHOTOS)) {
        $P[] = $R;
        $S += $R['size'];
        $N++;
    }
}
if ($mod == 'photo') {
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:_cal.php


示例19: parseConfig

/**
 * parses the config file
 *
 * @author Andrew Darwin <[email protected]>
 * @author Delvison Castillo
 */
function parseConfig()
{
    global $configFileName;
    global $configXML;
    global $user;
    global $aclDict;
    global $restrictedDirectoriesDict;
    global $startPage;
    global $mainContentFilePath;
    global $defaultSecurityValue;
    global $ldapAddress;
    global $ldapPort;
    global $organizationalUnit1, $organizationalUnit2;
    global $organization, $countryNaming, $attr;
    global $useLDAP;
    global $defaultSecurityInLDAPAbsence;
    global $domainName;
    $logHeader = "parseConfig()";
    //$pathToXMLFiles = getPathToXMLFiles();
    $configFilePath = getPathToXMLFile($configFileName);
    logMessage("{$logHeader} configFilePath = {$configFilePath}");
    $configXML = simplexml_load_file($configFilePath);
    logMessage("parseConfig() loaded config file and will now begin parsing");
    //parse access_config
    $accessConfigXML = $configXML->access_config[0];
    foreach ($accessConfigXML as $xmlElement) {
        $elementName = $xmlElement->getName();
        if ($elementName == "acl") {
            $aclName = (string) $xmlElement->name;
            $groups = $xmlElement->group;
            $groupsArray = array();
            foreach ($groups as $groupItem) {
                array_push($groupsArray, (string) $groupItem);
            }
            logMessage("{$logHeader} Encountered acl element with name = " . "{$aclName} and groups = " . getArrayString($groupsArray));
            $tempArray = array((string) $aclName => $groupsArray);
            /*Had to cast
              $aclName to string here
              to avoid an illegal
              offset type warning*/
            $aclDict = array_merge($aclDict, $tempArray);
            /* Had to use
               array_merge instead
               of array_push */
        } else {
            if ($elementName == "restricted_directory") {
                $path = (string) $xmlElement->path;
                $acl_name = (string) $xmlElement->acl_name;
                logMessage("{$logHeader} Encountered restricted_directory element " . "with path = {$path} and acl_name = {$acl_name}");
                $restrictedDirectoriesDict[$path] = $acl_name;
            }
        }
    }
    $siteConfigXML = $configXML->site_config[0];
    foreach ($siteConfigXML as $xmlElement) {
        $elementName = $xmlElement->getName();
        $stringValue = (string) $xmlElement;
        switch ($elementName) {
            case "start_page":
                $startPage = $stringValue;
                break;
            case "main_content":
                $mainContentFilePath = $stringValue;
                break;
            case "default_security":
                $defaultSecurityValue = $stringValue;
                break;
            case "domain_name":
                $domainName = $stringValue;
                break;
        }
    }
    $ldapConfigXML = $configXML->ldap_config[0];
    foreach ($ldapConfigXML as $xmlElement) {
        $elementName = $xmlElement->getName();
        $stringValue = getTrimmed((string) $xmlElement);
        switch ($elementName) {
            case "address":
                $ldapAddress = $stringValue;
                break;
            case "port":
                $ldapPort = $stringValue;
                break;
            case "organizational_unit1":
                $organizationalUnit1 = $stringValue;
                break;
            case "organizational_unit2":
                $organizationalUnit2 = $stringValue;
                break;
            case "organization":
                $organization = $stringValue;
                break;
            case "country_naming":
                $countryNaming = $stringValue;
//.........这里部分代码省略.........
开发者ID:RichardRanft,项目名称:cash,代码行数:101,代码来源:functions.php


示例20: getCyncUrl

function getCyncUrl($cync)
{
    if (!$cync) {
        return $GLOBALS['g']['r'];
    }
    $_r = getArrayString($cync);
    $_r = $_r['data'][5];
    if ($GLOBALS['_HS']['rewrite'] && strpos('_' . $_r, 'm:bbs,bid:')) {
        $_r = str_replace('m:bbs', 'b', $_r);
        $_r = str_replace(',bid:', '/', $_r);
        $_r = str_replace(',uid:', '/', $_r);
        $_r = str_replace(',CMT:', '/', $_r);
        $_r = str_replace(',s:', '/s', $_r);
        return $GLOBALS['g']['r'] . '/' . $_r;
    } else {
        return $GLOBALS['g']['s'] . '/?' . ($GLOBALS['_HS']['usescode'] ? 'r=' . $GLOBALS['_HS']['id'] . '&amp;' : '') . str_replace(':', '=', str_replace(',', '&amp;', $_r));
    }
}
开发者ID:kieregh,项目名称:rb1.2,代码行数:18,代码来源:sys.func.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getArrayVal函数代码示例发布时间:2022-05-15
下一篇:
PHP getArrayKey函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap