当前位置: 首页>>代码示例>>PHP>>正文


PHP getUidData函数代码示例

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


在下文中一共展示了getUidData函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: 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

示例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: getMenuCodeToSql

function getMenuCodeToSql($table, $cat, $f)
{
    static $sql;
    $R = getUidData($table, $cat);
    if ($R['uid']) {
        $sql .= $f . '=' . $R['uid'] . ' or ';
    }
    if ($R['isson']) {
        $RDATA = getDbSelect($table, 'parent=' . $R['uid'], 'uid');
        while ($C = db_fetch_array($RDATA)) {
            getMenuCodeToSql($table, $C['uid'], $f);
        }
    }
    return substr($sql, 0, strlen($sql) - 4);
}
开发者ID:eosliebe,项目名称:rb,代码行数:15,代码来源:menu.func.php

示例5: getLink

<?php

if (!defined('__KIMS__')) {
    exit;
}
if (!$my['uid']) {
    getLink('', '', '정상적인 접근이 아닙니다.', '');
}
foreach ($members as $val) {
    $R = getUidData($table['s_friend'], $val);
    if (!$R['rel']) {
        getDbInsert($table['s_friend'], 'rel,my_mbruid,by_mbruid,category,d_regis', "'1','" . $my['uid'] . "','" . $R['my_mbruid'] . "','','" . $date['totime'] . "'");
        getDbUpdate($table['s_friend'], 'rel=1', 'uid=' . $R['uid']);
    }
}
getLink('reload', 'parent.', '', '');
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:16,代码来源:a.friend_follow.php

示例6: getDbArray

				<?php 
        // Resort 게시판 리스트 불러오기
        // == //
        // ==== 수상비행기, 국선지역 혼합 임시처리
        if ($cat == "수상비행기" || $R['category'] == "수상비행기" || $R['category'] == "국내선지역") {
            $resResort = getDbArray($table['bbsdata'], "bbsid='resort' AND (category = '수상비행기' OR category = '국내선지역')", "uid, subject, upload", "uid", "desc", "", "");
        } else {
            if ($R['category'] == "프랄린" || $R['category'] == "마헤" || $R['category'] == "라디그") {
                $resResort = getDbArray($table['bbsdata'], "bbsid='resort' AND (category = '프랄린' OR category = '마헤' OR category = '라디그')", "uid, subject, upload", "uid", "desc", "", "");
            } else {
                if ($_GET[mod] == "login") {
                    $resResort = getDbArray($table['bbsdata'], "bbsid='resort' AND category = '칸쿤'", "uid, subject, upload", "uid", "desc", "", "");
                } else {
                    if (!$uid && $uidX) {
                        $uid = $uidX;
                        $R = getUidData($table[$m . 'data'], $uid);
                    }
                    if ($bid == "resort") {
                        $resResort = getDbArray($table['bbsdata'], "bbsid='resort' AND category = '" . ($cat ? $cat : $R['category']) . "'", "uid, subject, upload", "uid", "desc", "", "");
                    } else {
                        $resResort = getDbArray($table['bbsdata'], "bbsid='resort'", "uid, subject, upload", "uid", "desc", "", "");
                    }
                }
            }
        }
        $rcdCount = mysql_num_rows($resResort);
        $perCol = ceil($rcdCount / 4);
        ?>
				<div class="list">
					<ul class="resort">
					<?php 
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.php

示例7: 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

示例8: getDbArray

<?php

$recnum = 15;
$catque = $cat ? "category='" . $cat . "'" : '';
$PAGES = getDbArray($table['s_page'], $catque, '*', 'uid', 'asc', $recnum, $p);
$NUM = getDbRows($table['s_page'], $catque);
$TPG = getTotalPage($NUM, $recnum);
if ($uid) {
    $R = getUidData($table['s_page'], $uid);
}
?>


<div id="catebody">
	<div id="category">
		<div class="title">
			<select class="c1" onchange="goHref('<?php 
echo $g['adm_href'];
?>
&amp;cat='+this.value);">
			<option value="">&nbsp;+ 페이지분류</option>
			<option value="">--------------------------------</option>
			<?php 
$_cats = array();
?>
			<?php 
$CATS = db_query("select *,count(*) as cnt from " . $table['s_page'] . " group by category", $DB_CONNECT);
?>
			<?php 
while ($C = db_fetch_array($CATS)) {
    $_cats[] = $C['category'];
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:page.php

示例9: while

	<th scope="col">이름</th>
	<th scope="col">관계</th>
	<th scope="col">그룹</th>
	<th scope="col" class="side2">날짜</th>
	</tr>
	</thead>
	<tbody>

	<?php 
while ($R = db_fetch_array($RCD)) {
    ?>
	<?php 
    $M = getDbData($table['s_mbrdata'], 'memberuid=' . $R[($type == 'follower' ? 'm' : 'b') . 'y_mbruid'], '*');
    ?>
	<?php 
    $M1 = getUidData($table['s_mbrid'], $M['memberuid']);
    ?>
	<tr>
	<td>
	<input type="checkbox" name="members[]" value="<?php 
    echo $R['uid'];
    ?>
" />
	<input type="hidden" id="members_<?php 
    echo $R['uid'];
    ?>
" value="<?php 
    echo $d['member']['login_emailid'] ? $M['email'] : $M1['id'];
    ?>
" />
	</td>
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:friend.php

示例10: checkAdmin

<?php

if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
$R = getUidData($table['s_site'], $account);
if ($R['uid']) {
    getDbDelete($table['s_start'], 'site=' . $R['uid']);
    getDbDelete($table['s_site'], 'uid=' . $R['uid']);
    $_MENUS = getDbSelect($table['s_menu'], 'site=' . $R['uid'] . ' order by gid asc', '*');
    while ($_M = db_fetch_array($_MENUS)) {
        $_xfile = $g['path_page'] . 'menu/' . sprintf('%05d', $_M['uid']);
        unlink($_xfile . '.php');
        unlink($_xfile . '.widget.php');
        @unlink($_xfile . '.mobile.php');
        @unlink($_xfile . '.css');
        @unlink($_xfile . '.js');
        @unlink($_xfile . '.header.php');
        @unlink($_xfile . '.footer.php');
        @unlink($_xfile . '.txt');
        @unlink($_xfile . '.cache');
        @unlink($_xfile . '.widget.cache');
        @unlink($_xfile . '.mobile.cache');
        @unlink($g['path_var'] . 'menu/' . $_M['imghead']);
        @unlink($g['path_var'] . 'menu/' . $_M['imgfoot']);
        getDbDelete($table['s_seo'], 'rel=1 and parent=' . $_M['uid']);
    }
    getDbDelete($table['s_menu'], 'site=' . $R['uid']);
    db_query("OPTIMIZE TABLE " . $table['s_site'], $DB_CONNECT);
    db_query("OPTIMIZE TABLE " . $table['s_menu'], $DB_CONNECT);
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:a.deletesite.php

示例11: strCopy

    for ($i = 0; $i < $badwordlen; $i++) {
        if (!$badwordarr[$i]) {
            continue;
        }
        if (strstr($content, $badwordarr[$i])) {
            if ($d['comment']['badword_action'] == 1) {
                echo '[RESULT:등록이 제한된 단어를 사용하셨습니다.:RESULT]';
            } else {
                $badescape = strCopy($badwordarr[$i], $d['comment']['badword_escape']);
                $content = str_replace($badwordarr[$i], $badescape, $content);
            }
        }
    }
}
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)', '');
开发者ID:kieregh,项目名称:test_comment,代码行数:31,代码来源:a.oneline_regis.php

示例12: date

     $name = 'SITE ' . $gid;
     $id = 's' . date('His');
     $QKEY = "gid,id,name,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
     $QVAL = "'" . $gid . "','" . $id . "','" . $name . "','{subject} | {site}','0','glyphicon glyphicon-home','" . $d['package']['layout'] . "','0','" . $d['package']['layout_mobile'] . "','0','','1','','nic','0','0','0','1','',''";
     getDbInsert($table['s_site'], $QKEY, $QVAL);
     $LASTUID = getDbCnt($table['s_site'], 'max(uid)', '');
     db_query("OPTIMIZE TABLE " . $table['s_site'], $DB_CONNECT);
     getDbInsert($table['s_seo'], 'rel,parent,title,keywords,description,classification,image_src', "'0','{$LASTUID}','','','','ALL',''");
     $vfile = $g['path_var'] . 'sitephp/' . $LASTUID . '.php';
     $fp = fopen($vfile, 'w');
     fwrite($fp, '');
     fclose($fp);
     @chmod($vfile, 0707);
     @rename($g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $d['package']['siteid'] . '-menus', $g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $id . '-menus');
     @rename($g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $d['package']['siteid'] . '-pages', $g['path_tmp'] . 'app/' . $package_folder . '/pages/' . $id . '-pages');
     $S = getUidData($table['s_site'], $LASTUID);
 }
 //메뉴생성
 if ($ACT_CM) {
     include $g['path_tmp'] . 'app/' . $package_folder . '/_settings/var.menu.php';
     $QKEY = "gid,site,is_child,parent,depth,id,menutype,mobile,hidden,reject,name,target,redirect,joint,perm_g,perm_l,layout,imghead,imgfoot,addattr,num,d_last,addinfo,mediaset";
     foreach ($d['package']['menus'] as $R) {
         $_parent = 0;
         if ($R['parent']) {
             $_PRTUID = getDbData($table['s_menu'], 'site=' . $S['uid'] . " and id='" . $R['parent'] . "'", 'uid');
             $_parent = $_PRTUID['uid'];
         }
         $QVAL = "'" . $R['gid'] . "','" . $S['uid'] . "','" . $R['is_child'] . "','" . $_parent . "','" . $R['depth'] . "','" . $R['id'] . "','" . $R['menutype'] . "','" . $R['mobile'] . "','0','0','" . $R['name'] . "','" . $R['target'] . "','" . $R['redirect'] . "','" . $R['joint'] . "','','0','" . $R['layout'] . "','" . $R['imghead'] . "','" . $R['imgfoot'] . "','" . $R['addattr'] . "','0','','',''";
         getDbInsert($table['s_menu'], $QKEY, $QVAL);
         $lastmenu = getDbCnt($table['s_menu'], 'max(uid)', '');
         getDbInsert($table['s_seo'], 'rel,parent,title,keywords,description,classification,image_src', "'1','{$lastmenu}','','','','ALL',''");
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.add_package.php

示例13: getUTFtoKR

$filename = getUTFtoKR($R['name']);
$filetmpname = getUTFtoKR($R['tmpname']);
if ($R['url'] == $d['upload']['ftp_urlpath']) {
    $filepath = $d['upload']['ftp_urlpath'] . $R['folder'] . '/' . $filetmpname;
    $filesize = $R['size'];
} else {
    $filepath = $g['path_file'] . $R['folder'] . '/' . $filetmpname;
    $filesize = filesize($filepath);
}
if (!strstr($_SERVER['HTTP_REFERER'], 'module=upload')) {
    //동기화
    $cyncArr = getArrayString($R['cync']);
    $fdexp = explode(',', $cyncArr['data'][2]);
    if ($fdexp[0] && $fdexp[1] && $cyncArr['data'][3]) {
        if ($cyncArr['data'][0] == 'bbs' && $cyncArr['data'][1]) {
            $AT = getUidData($table[$cyncArr['data'][0] . 'data'], $cyncArr['data'][1]);
            include_once $g['path_module'] . $cyncArr['data'][0] . '/var/var.' . $AT['bbsid'] . '.php';
            $B['var'] = $d['bbs'];
            if (!$my['admin'] && $my['uid'] != $AT['mbruid']) {
                if ($B['var']['perm_l_down'] > $my['level'] || strstr($B['var']['perm_g_down'], '[' . $my['sosok'] . ']')) {
                    getLink('', '', '다운로드 권한이 없습니다.', '-1');
                }
            }
            if ($B['var']['point3']) {
                if (!$my['uid']) {
                    getLink('', '', '다운로드 권한이 없습니다.', '-1');
                }
                $UT = getDbData($table[$cyncArr['data'][0] . 'xtra'], 'parent=' . $AT['uid'], '*');
                if (!strpos('_' . $UT['down'], '[' . $my['uid'] . ']') && !strpos('_' . $_SESSION['module_' . $cyncArr['data'][0] . '_dncheck'], '[' . $AT['uid'] . ']')) {
                    if ($confirm == 'Y' && $my['point'] >= $B['var']['point3']) {
                        if (!$my['admin'] && $my['uid'] != $AT['mbruid']) {
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:a.download.php

示例14: number_format

echo number_format($NUM);
?>
개)</div>
		<div class="xright"><a href="<?php 
echo $g['url_reset'];
?>
">통합검색</a></div>
		<div class="clear"></div>
	</div>


	<div class="postbox">
<?php 
if ($NUM) {
    while ($R = db_fetch_array($RCD)) {
        $B = getUidData($table['bbslist'], $R['bbs']);
        $_link = getPostLink($R);
        ?>

	<div class="sbjbox">
		<a href="<?php 
        echo $_link;
        ?>
" class="subject"><?php 
        echo $R['subject'];
        ?>
</a>
		<a href="<?php 
        echo $_link;
        ?>
" target="_blank"><img src="<?php 
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:post.php

示例15: getDbArray

<?php

$POPUPS = getDbArray($table['s_popup'], '', '*', 'uid', 'asc', 0, $p);
$NUM = db_num_rows($POPUPS);
if ($uid) {
    $R = getUidData($table['s_popup'], $uid);
}
if ($R['uid']) {
    $year1 = substr($R['term1'], 0, 4);
    $month1 = substr($R['term1'], 4, 2);
    $day1 = substr($R['term1'], 6, 2);
    $hour1 = substr($R['term1'], 8, 2);
    $min1 = substr($R['term1'], 10, 2);
    $year2 = substr($R['term2'], 0, 4);
    $month2 = substr($R['term2'], 4, 2);
    $day2 = substr($R['term2'], 6, 2);
    $hour2 = substr($R['term2'], 8, 2);
    $min2 = substr($R['term2'], 10, 2);
} else {
    $year1 = substr($date['today'], 0, 4);
    $month1 = substr($date['today'], 4, 2);
    $day1 = substr($date['today'], 6, 2);
    $hour1 = 0;
    $min1 = 0;
    $year2 = substr($date['today'], 0, 4);
    $month2 = substr($date['today'], 4, 2);
    $day2 = substr($date['today'], 6, 2);
    $hour2 = 23;
    $min2 = 59;
    $R['width'] = 400;
    $R['height'] = 400;
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.php


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