本文整理汇总了PHP中getalbums函数的典型用法代码示例。如果您正苦于以下问题:PHP getalbums函数的具体用法?PHP getalbums怎么用?PHP getalbums使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getalbums函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: dgmdate
}
}
if (!empty($article['dateline'])) {
$article['dateline'] = dgmdate($article['dateline']);
}
if (!empty($attachs)) {
$article['attachs'] = get_upload_content($attachs);
}
$article_tags = article_parse_tags($article['tag']);
$tag_names = article_tagnames();
}
}
require_once libfile('function/upload');
$swfconfig = getuploadconfig($_G['uid'], 0, false);
require_once libfile('function/spacecp');
$albums = getalbums($_G['uid']);
include_once template("portal/portalcp_article");
function portalcp_get_summary($message)
{
$message = preg_replace(array("/\\[attach\\].*?\\[\\/attach\\]/", "/\\&[a-z]+\\;/i", "/\\<script.*?\\<\\/script\\>/"), '', $message);
$message = preg_replace("/\\[.*?\\]/", '', $message);
$message = getstr(strip_tags($message), 200);
return $message;
}
function portalcp_get_postmessage($post, $getauthorall = '')
{
global $_G;
$forum = C::t('forum_forum')->fetch($post['fid']);
require_once libfile('function/discuzcode');
$language = lang('forum/misc');
if ($forum['type'] == 'sub' && $forum['status'] == 3) {
开发者ID:renning,项目名称:html,代码行数:31,代码来源:portalcp_article.php
示例2: intval
$_POST['hot'] = intval($_POST['hot']);
updatetable('blog', array('hot' => $_POST['hot']), array('blogid' => $blog['blogid']));
if ($_POST['hot'] > 0) {
include_once S_ROOT . './source/function_feed.php';
feed_publish($blog['blogid'], 'blogid');
} else {
updatetable('feed', array('hot' => $_POST['hot']), array('id' => $blog['blogid'], 'idtype' => 'blogid'));
}
showmessage('do_success', "space.php?uid={$blog['uid']}&do=blog&id={$blog['blogid']}", 0);
}
} else {
//添加编辑
//获取个人分类
$classarr = $blog['uid'] ? getclassarr($blog['uid']) : getclassarr($_SGLOBAL['supe_uid']);
//获取相册
$albums = getalbums($_SGLOBAL['supe_uid']);
$tags = empty($blog['tag']) ? array() : unserialize($blog['tag']);
$blog['tag'] = implode(' ', $tags);
$blog['target_names'] = '';
$friendarr = array($blog['friend'] => ' selected');
$passwordstyle = $selectgroupstyle = 'display:none';
if ($blog['friend'] == 4) {
$passwordstyle = '';
} elseif ($blog['friend'] == 2) {
$selectgroupstyle = '';
if ($blog['target_ids']) {
$names = array();
$query = $_SGLOBAL['db']->query("SELECT username FROM " . tname('space') . " WHERE uid IN ({$blog['target_ids']})");
while ($value = $_SGLOBAL['db']->fetch_array($query)) {
$names[] = $value['username'];
}
开发者ID:NaturalWill,项目名称:UCQA,代码行数:31,代码来源:cp_blog.php
示例3: foreach
$start = ($page - 1) * $perpage;
}
$bbcode =& bbcode::instance();
$query = C::t('home_pic')->fetch_all_by_albumid($albumid, $start, $perpage, $picid, 0, 1, $albumid > 0 ? 0 : $_G['uid']);
foreach ($query as $value) {
if ($picid) {
$value['checked'] = ' checked';
}
$value['title'] = $bbcode->html2bbcode($value['title']);
$value['pic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote']);
$value['bigpic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote'], 0);
$list[] = $value;
}
}
$multi = multi($count, $perpage, $page, "home.php?mod=spacecp&ac=album&op=editpic&albumid={$albumid}");
$albumlist = getalbums($album['uid']);
} elseif ($_GET['op'] == 'setpic') {
album_update_pic($albumid, $picid);
showmessage('do_success', dreferer(), array('picid' => $picid), array('showmsg' => true, 'closetime' => true));
} elseif ($_GET['op'] == 'edittitle') {
$picid = empty($_GET['picid']) ? 0 : intval($_GET['picid']);
$pic = C::t('home_pic')->fetch($picid);
if (!checkperm('managealbum') && $pic['uid'] != $_G['uid']) {
$pic = array();
}
} elseif ($_GET['op'] == 'edithot') {
if (!checkperm('managealbum')) {
showmessage('no_privilege_edithot_album');
}
if (!($pic = C::t('home_pic')->fetch($picid))) {
showmessage('image_does_not_exist');
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:spacecp_album.php
注:本文中的getalbums函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论