本文整理汇总了PHP中sizecount函数的典型用法代码示例。如果您正苦于以下问题:PHP sizecount函数的具体用法?PHP sizecount怎么用?PHP sizecount使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sizecount函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pick_count
function pick_count()
{
//clear_pick_cache(1);//缓存定期清理
//clear_search_index(1);//清除索引
clear_log(1);
//清除日志
pload('C:cache');
$arr['search_index']['name'] = milu_lang('rules_search_index');
$arr['search_index']['msg'] = milu_lang('search_index_notice');
$arr['search_index']['show'] = '<span style=" width:120px; float:left">' . milu_lang('search_index_c') . '<hr>';
$type_arr = array('1' => milu_lang('fast_pick_rules'), '2' => milu_lang('dxc_system_rules'), '3' => milu_lang('fastpick_evo'));
$type_arr2 = array('3' => milu_lang('server_'), '4' => milu_lang('local_'));
foreach ($type_arr as $k => $v) {
foreach ($type_arr2 as $k2 => $v2) {
$type = $k . $k2;
$show_name = '<span style=" width:120px; float:left">' . $type_arr[$k] . $type_arr2[$k2] . '</span>';
$search_index_count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('strayer_searchindex') . " WHERE type='{$type}'"), 0);
$arr['search_index']['show'] .= $show_name . ' ' . $search_index_count . '<br />';
}
}
$log_info = IO::info(PICK_DIR . '/data/log');
$arr['log']['name'] = milu_lang('log_size');
$arr['log']['msg'] = milu_lang('auto_pick_notice');
$arr['log']['show'] = sizecount($log_info['size']);
$cache_info = IO::info(PICK_CACHE, 1, 1);
$arr['cache']['name'] = milu_lang('cache_file_size');
$arr['cache']['show'] = milu_lang('cache_size_value', array('s' => sizecount($cache_info['size']), 'p' => PICK_CACHE_SIZE));
$arr['cache']['msg'] = milu_lang('cache_notice');
return $arr;
}
示例2: getattach_row
function getattach_row($attach, &$attachs, &$imgattachs)
{
global $_G;
$attach['filename'] = cutstr($attach['filename'], $_G['setting']['allowattachurl'] ? 25 : 30);
$attach['attachsize'] = sizecount($attach['filesize']);
$attach['dateline'] = dgmdate($attach['dateline']);
$attach['filetype'] = attachtype($attach['ext'] . "\t" . $attach['filetype']);
if ($attach['isimage'] < 1) {
if ($attach['isimage']) {
$attach['url'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
$attach['width'] = $attach['width'] > 300 ? 300 : $attach['width'];
}
if ($attach['pid']) {
$attachs['used'][] = $attach;
} else {
$attachs['unused'][] = $attach;
}
} else {
$attach['url'] = ($attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']) . '/forum';
$attach['width'] = $attach['width'] > 300 ? 300 : $attach['width'];
if ($attach['pid']) {
$imgattachs['used'][] = $attach;
} else {
$imgattachs['unused'][] = $attach;
}
}
}
示例3: dbbackup
function dbbackup()
{
// 加载数据库工具类
$this->load->dbutil();
// 备份整个数据库并将其赋值给一个变量
$backup =& $this->dbutil->backup();
// 加载文件辅助函数并将文件写入你的服务器
$this->load->helper('file');
$path = dirname(BASEPATH) . DIRECTORY_SEPARATOR . 'upload' . DIRECTORY_SEPARATOR . 'dbbackup' . DIRECTORY_SEPARATOR . date('Y.m.d_H.i.s') . '_smart.zip';
$relpath = str_replace(dirname(BASEPATH), "", $path);
$writeResult = write_file($path, $backup);
if ($writeResult && file_exists($path)) {
$path_parts = pathinfo($path);
$fileName = $path_parts["basename"];
$size = filesize($path);
$this->load->model('dbbackup_model');
$data = array('uid' => $this->tank_auth->get_user_id(), 'fileName' => $fileName, 'fileSize' => $size, 'path' => $relpath, 'backupdate' => time());
$id = $this->dbbackup_model->addRes($data);
$delString = '<a class="backup_dld" href="#">下载</a> ' . '<input type="hidden" id="backup_del_' . $id . '" name="backup_del_' . $id . '" value="' . $id . '">' . '<a class="backup_delete" href="#">删除</a>';
$jsonData = array('uid' => $this->tank_auth->get_user_id(), 'fileName' => $fileName, 'fileSize' => sizecount($size), 'path' => $relpath, 'backupdate' => date('Y-m-d H:i:s', time()), 'opt' => $delString);
echo '{"result":"true","msg":' . json_encode($jsonData) . '}';
} else {
echo '{"result":"false","msg":"' . lang('admin_tools_add_backup_failed') . '"}';
}
}
示例4: right
public function right()
{
$this->member_db = pc_base::load_model('member_model');
$this->messagequeue_db = pc_base::load_model('messagequeue_model');
$total_member = $this->member_db->count();
//会员总数
$todaytime = strtotime(date('Y-m-d', SYS_TIME));
//今日会员数
$today_member = $this->member_db->count("`regdate` > '{$todaytime}'");
$total_messagequeue = $this->messagequeue_db->count();
//消息总数
$mysql_version = $this->member_db->get_version();
//mysql版本
$mysql_table_status = $this->member_db->get_table_status();
$mysql_table_size = $mysql_table_index_size = '';
foreach ($mysql_table_status as $table) {
$mysql_table_size += $table['Data_length'];
$mysql_table_index_size += $table['Index_length'];
}
$mysql_table_size = sizecount($mysql_table_size);
$mysql_table_index_size = sizecount($mysql_table_index_size);
//应用个数
$applist = getcache('applist');
$appnum = empty($applist) ? 0 : count($applist);
include $this->admin_tpl('right');
}
示例5: parseattach
function parseattach($attachpids, $attachtags, &$postlist, $showimages = 1, $skipaids = array())
{
global $db, $tablepre, $discuz_uid, $skipaidlist, $readaccess, $attachlist, $attachimgpost, $maxchargespan, $timestamp, $forum, $ftp, $attachurl, $dateformat, $timeformat, $timeoffset, $hideattach, $thread, $tradesaids, $trades, $exthtml, $tagstatus, $sid, $authkey, $exempt;
$query = $db->query("SELECT a.*, af.description, ap.aid AS payed FROM {$tablepre}attachments a LEFT JOIN {$tablepre}attachmentfields af ON a.aid=af.aid LEFT JOIN {$tablepre}attachpaymentlog ap ON ap.aid=a.aid AND ap.uid='{$discuz_uid}' WHERE a.pid IN ({$attachpids})");
$attachexists = FALSE;
while ($attach = $db->fetch_array($query)) {
$attachexists = TRUE;
$exthtml = '';
if ($skipaids && in_array($attach['aid'], $skipaids)) {
continue;
}
$attached = 0;
$extension = strtolower(fileext($attach['filename']));
$attach['ext'] = $extension;
$attach['attachicon'] = attachtype($extension . "\t" . $attach['filetype']);
$attach['attachsize'] = sizecount($attach['filesize']);
$attach['attachimg'] = $showimages && $attachimgpost && $attach['isimage'] && (!$attach['readperm'] || $readaccess >= $attach['readperm']) ? 1 : 0;
if ($attach['price']) {
if ($maxchargespan && $timestamp - $attach['dateline'] >= $maxchargespan * 3600) {
$db->query("UPDATE {$tablepre}attachments SET price='0' WHERE aid='{$attach['aid']}'");
$attach['price'] = 0;
} else {
if (!$discuz_uid || !$forum['ismoderator'] && $attach['uid'] != $discuz_uid && !$attach['payed']) {
$attach['unpayed'] = 1;
}
}
}
$exemptattachpay = $exempt & 8 ? 1 : 0;
$attach['payed'] = $attach['payed'] || $forum['ismoderator'] || $attach['uid'] == $discuz_uid ? 1 : 0;
$attach['url'] = $attach['remote'] ? $ftp['attachurl'] : $attachurl;
$attach['dateline'] = dgmdate("{$dateformat} {$timeformat}", $attach['dateline'] + $timeoffset * 3600);
$postlist[$attach['pid']]['attachments'][$attach['aid']] = $attach;
if (is_array($attachtags[$attach['pid']]) && in_array($attach['aid'], $attachtags[$attach['pid']])) {
$findattach[$attach['pid']][] = "/\\[attach\\]{$attach['aid']}\\[\\/attach\\]/i";
$replaceattach[$attach['pid']][] = $hideattach[$attach['pid']] ? '[attach]***[/attach]' : attachtag($attach['pid'], $attach['aid'], $postlist);
$attached = 1;
}
if (!$attached || $attach['unpayed']) {
if ($attach['isimage']) {
$postlist[$attach['pid']]['imagelist'] .= attachlist($attach);
} else {
if (!$skipaidlist || !in_array($attach['aid'], $skipaidlist)) {
$postlist[$attach['pid']]['attachlist'] .= attachlist($attach);
}
}
}
}
if ($attachexists) {
foreach ($attachtags as $pid => $aids) {
if ($findattach[$pid]) {
$postlist[$pid]['message'] = preg_replace($findattach[$pid], $replaceattach[$pid], $postlist[$pid]['message'], 1);
$postlist[$pid]['message'] = preg_replace($findattach[$pid], '', $postlist[$pid]['message']);
}
}
} else {
$db->query("UPDATE {$tablepre}posts SET attachment='0' WHERE pid IN ({$attachpids})", 'UNBUFFERED');
}
}
示例6: parseattach
function parseattach($attachpids, $attachtags, &$postlist, $skipaids = array())
{
global $_G;
$query = DB::query("SELECT a.*, af.description, l.relatedid AS payed\n\t\tFROM " . DB::table('forum_attachment') . " a\n\t\tLEFT JOIN " . DB::table('forum_attachmentfield') . " af ON a.aid=af.aid\n\t\tLEFT JOIN " . DB::table('common_credit_log') . " l ON l.relatedid=a.aid AND l.uid='{$_G['uid']}' AND l.operation='BAC'\n\t\tWHERE a.pid IN ({$attachpids})");
$attachexists = FALSE;
while ($attach = DB::fetch($query)) {
$attachexists = TRUE;
if ($skipaids && in_array($attach['aid'], $skipaids)) {
continue;
}
$attached = 0;
$extension = strtolower(fileext($attach['filename']));
$attach['ext'] = $extension;
$attach['attachicon'] = attachtype($extension . "\t" . $attach['filetype']);
$attach['attachsize'] = sizecount($attach['filesize']);
$attach['attachimg'] = $_G['setting']['attachimgpost'] && $attach['isimage'] && (!$attach['readperm'] || $_G['group']['readaccess'] >= $attach['readperm']) ? 1 : 0;
if ($attach['price']) {
if ($_G['setting']['maxchargespan'] && TIMESTAMP - $attach['dateline'] >= $_G['setting']['maxchargespan'] * 3600) {
DB::query("UPDATE " . DB::table('forum_attachment') . " SET price='0' WHERE aid='{$attach['aid']}'");
$attach['price'] = 0;
} else {
if (!$_G['uid'] || !$_G['forum']['ismoderator'] && $attach['uid'] != $_G['uid'] && !$attach['payed']) {
$attach['unpayed'] = 1;
}
}
}
$exemptattachpay = $_G['group']['exempt'] & 8 ? 1 : 0;
$attach['payed'] = $attach['payed'] || $_G['forum']['ismoderator'] || $attach['uid'] == $_G['uid'] ? 1 : 0;
$attach['url'] = ($attach['remote'] ? $_G['setting']['ftp']['attachurl'] . '/' : $_G['setting']['attachurl']) . 'forum/';
$attach['dateline'] = dgmdate($attach['dateline'], 'u');
$postlist[$attach['pid']]['attachments'][$attach['aid']] = $attach;
if (!empty($attachtags[$attach['pid']]) && is_array($attachtags[$attach['pid']]) && in_array($attach['aid'], $attachtags[$attach['pid']])) {
$findattach[$attach['pid']][] = "/\\[attach\\]{$attach['aid']}\\[\\/attach\\]/i";
$replaceattach[$attach['pid']][] = attachtag($attach['pid'], $attach['aid'], $postlist);
$attached = 1;
}
if (!$attached) {
if ($attach['isimage']) {
$postlist[$attach['pid']]['imagelist'] .= attachlist($attach);
} else {
if (!$_G['forum_skipaidlist'] || !in_array($attach['aid'], $_G['forum_skipaidlist'])) {
$postlist[$attach['pid']]['attachlist'] .= attachlist($attach);
}
}
}
}
if ($attachexists) {
foreach ($attachtags as $pid => $aids) {
if ($findattach[$pid]) {
$postlist[$pid]['message'] = preg_replace($findattach[$pid], $replaceattach[$pid], $postlist[$pid]['message'], 1);
$postlist[$pid]['message'] = preg_replace($findattach[$pid], '', $postlist[$pid]['message']);
}
}
} else {
updatepost(array('attachment' => '0'), "pid IN ({$attachpids})", true);
}
}
示例7: gettablestatus
public static function gettablestatus($tablename, $formatsize = true)
{
$status = DB::fetch_first("SHOW TABLE STATUS LIKE '" . str_replace('_', '\\_', $tablename) . "'");
if ($formatsize) {
$status['Data_length'] = sizecount($status['Data_length']);
$status['Index_length'] = sizecount($status['Index_length']);
}
return $status;
}
示例8: ajax_clear
public function ajax_clear()
{
/*写入应用列表缓存*/
$applist = $this->applications_db->listinfo('', '', 1, 100, 'appid');
setcache('applist', $applist);
$applistinfo = getcacheinfo('applist');
$return['filesize'] = sizecount($applistinfo['filesize']);
$return['filemtime'] = date('Y-m-d H:i:s', $applistinfo['filemtime']);
exit(json_encode($return));
}
示例9: forumdisplay_thread_subject_output
function forumdisplay_thread_subject_output()
{
global $_G;
$tids = "";
$arr = array();
$j = 0;
foreach ($_G['forum_threadlist'] as $v) {
$arr[$j]['tid'] = $v['tid'];
$tids .= "," . $v['tid'];
$j++;
}
$tids = substr($tids, 1);
if ($tids == "") {
$tids = "0";
}
$query = DB::query("select tid,seeds,leechers,finished,size from " . DB::table('xbtit_files') . " where tid in ({$tids})");
while ($row = DB::fetch($query)) {
for ($i = 0; $i < count($arr); $i++) {
if ($row['tid'] == $arr[$i]['tid']) {
$arr[$i]['seeds'] = $row['seeds'];
break;
}
}
}
foreach ($arr as $row) {
if ($row['seeds'] == "") {
$return[] = "";
} else {
$size = sizecount($row['size']);
include './xbt/config.inc.php';
$tid = $row['tid'];
$query = DB::query("select displayorder,highlight,digest from " . DB::table('forum_thread') . " where tid= ({$tid})");
$rs = DB::fetch($query);
if ($rs['displayorder'] > 0 or $rs['digest'] > 0 or $rs['highlight'] > 0) {
if ($rs['displayorder'] > 0) {
$up = $upload_weight['top'];
$down = $down_weight['top'] * 100;
} elseif ($rs['digest'] > 0) {
$up = $upload_weight['digest'];
$down = $down_weight['digest'] * 100;
} else {
$up = $upload_weight['highlight'];
$down = $down_weight['highlight'] * 100;
}
$return[] = "[<span style='color:#F00;'>↓{$down}%</span> <span style='color:#00F;'>↑{$up}x</span>]";
} else {
$return[] = "";
}
}
}
return $return;
}
示例10: getattach
function getattach($pid, $posttime = 0)
{
global $_G;
require_once libfile('function/attachment');
$attachs = $imgattachs = array();
$sqladd1 = $posttime > 0 ? "AND a.dateline>'{$posttime}'" : '';
$sqladd2 = $pid > 0 ? "OR a.pid='{$pid}'" : '';
$query = DB::query("SELECT a.*, af.description\r\n\t\tFROM " . DB::table('forum_attachment') . " a\r\n\t\tLEFT JOIN " . DB::table('forum_attachmentfield') . " af USING(aid)\r\n\t\tWHERE (a.uid='{$_G['uid']}' AND a.tid='0' {$sqladd1}) {$sqladd2} ORDER BY a.aid DESC");
if (!empty($_G['fid']) && $_G['forum']['attachextensions']) {
$allowext = str_replace(' ', '', $_G['forum']['attachextensions']);
$allowext = explode(',', $allowext);
} else {
$allowext = '';
}
while ($attach = DB::fetch($query)) {
$attach['filenametitle'] = $attach['filename'];
$attach['ext'] = fileext($attach['filename']);
if ($allowext && !in_array($attach['ext'], $allowext)) {
continue;
}
$attach['filename'] = cutstr($attach['filename'], $_G['setting']['allowattachurl'] ? 25 : 30);
$attach['attachsize'] = sizecount($attach['filesize']);
$attach['dateline'] = dgmdate($attach['dateline']);
$attach['filetype'] = attachtype($attach['ext'] . "\t" . $attach['filetype']);
if ($attach['isimage'] < 1) {
if ($attach['isimage']) {
$attach['url'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
$attach['width'] = $attach['width'] > 300 ? 300 : $attach['width'];
}
if ($attach['pid']) {
$attachs['used'][] = $attach;
} else {
$attachs['unused'][] = $attach;
}
} else {
$attach['url'] = ($attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']) . '/forum';
$attach['width'] = $attach['width'] > 300 ? 300 : $attach['width'];
if ($attach['pid']) {
$imgattachs['used'][] = $attach;
} else {
$imgattachs['unused'][] = $attach;
}
}
}
return array('attachs' => $attachs, 'imgattachs' => $imgattachs);
}
示例11: swfupload
/**
* swfupload上传附件
*/
public function swfupload(){
$grouplist = getcache('grouplist','member');
if(isset($_POST['dosubmit'])){
if( $_POST['swf_auth_key'] != md5(pc_base::load_config('system','auth_key').$_POST['SWFUPLOADSESSID']) || ($_POST['isadmin']==0 && !$grouplist[$_POST['groupid']]['allowattachment'])) exit();
pc_base::load_sys_class('attachment','',0);
$attachment = new attachment($_POST['module'],$_POST['catid'],$_POST['siteid']);
$attachment->set_userid($_POST['userid']);
$aids = $attachment->upload('Filedata',$_POST['filetype_post'],'','',array($_POST['thumb_width'],$_POST['thumb_height']),$_POST['watermark_enable']);
if($aids[0]) {
$filename= (strtolower(CHARSET) != 'utf-8') ? iconv('gbk', 'utf-8', $attachment->uploadedfiles[0]['filename']) : $attachment->uploadedfiles[0]['filename'];
if($attachment->uploadedfiles[0]['isimage']) {
echo $aids[0].','.$this->upload_url.$attachment->uploadedfiles[0]['filepath'].','.$attachment->uploadedfiles[0]['isimage'].','.$filename;
} else {
$fileext = $attachment->uploadedfiles[0]['fileext'];
if($fileext == 'zip' || $fileext == 'rar') $fileext = 'rar';
elseif($fileext == 'doc' || $fileext == 'docx') $fileext = 'doc';
elseif($fileext == 'xls' || $fileext == 'xlsx') $fileext = 'xls';
elseif($fileext == 'ppt' || $fileext == 'pptx') $fileext = 'ppt';
elseif ($fileext == 'flv' || $fileext == 'swf' || $fileext == 'rm' || $fileext == 'rmvb') $fileext = 'flv';
else $fileext = 'do';
echo $aids[0].','.$this->upload_url.$attachment->uploadedfiles[0]['filepath'].','.$fileext.','.$filename;
}
exit;
} else {
echo '0,'.$attachment->error();
exit;
}
} else {
if($this->isadmin==0 && !$grouplist[$this->groupid]['allowattachment']) showmessage(L('att_no_permission'));
$args = $_GET['args'];
$authkey = $_GET['authkey'];
if(upload_key($args)!=$authkey) showmessage(L('attachment_parameter_error'));
extract(getswfinit($_GET['args']));
$siteid = $this->get_siteid();
$site_setting = get_site_setting($siteid);
$file_size_limit = sizecount($site_setting['upload_maxsize']*1024);
$att_not_used = param::get_cookie('att_json');
if(empty($att_not_used) || !isset($att_not_used)) $tab_status = ' class="on"';
if(!empty($att_not_used)) $div_status = ' hidden';
//获取临时未处理文件列表
$att = $this->att_not_used();
include $this->admin_tpl('swfupload');
}
}
示例12: getswfattach
function getswfattach($getcount = 1)
{
global $db, $tablepre, $discuz_uid, $dateformat, $timeformat, $timeoffset;
require_once DISCUZ_ROOT . './include/attachment.func.php';
$swfattachs = array();
if ($getcount) {
$swfattachs = $db->result_first("SELECT count(*) FROM {$tablepre}attachments WHERE tid='0' AND pid='0' AND uid='{$discuz_uid}' ORDER BY dateline");
} else {
$query = $db->query("SELECT aid, filename, description, isimage, thumb, attachment, dateline, filesize, width FROM {$tablepre}attachments WHERE tid='0' AND pid='0' AND uid='{$discuz_uid}' ORDER BY dateline");
while ($swfattach = $db->fetch_array($query)) {
$swfattach['filenametitle'] = $swfattach['filename'];
$swfattach['filename'] = cutstr($swfattach['filename'], 30);
$swfattach['attachsize'] = sizecount($swfattach['filesize']);
$swfattach['dateline'] = gmdate("{$dateformat} {$timeformat}", $swfattach['dateline'] + $timeoffset * 3600);
$swfattach['filetype'] = attachtype(fileext($swfattach['attachment']) . "\t" . $swfattach['filetype']);
$swfattachs[] = $swfattach;
}
}
return $swfattachs;
}
示例13: index
public function index()
{
$m = new Model();
$list = $m->query("SHOW TABLE STATUS FROM " . "`" . C('DB_NAME') . "`");
$tables = array();
foreach ($list as $key => $val) {
$tables[$key]['name'] = $val['Name'];
//表名
$tables[$key]['rows'] = $val['Rows'];
//记录数
$tables[$key]['engine'] = $val['Engine'];
//引擎
$tables[$key]['data_length'] = sizecount($val['Data_length']);
//表大小
$tables[$key]['create_time'] = $val['Create_time'];
//表创建时间
$tables[$key]['collation'] = $val['Collation'];
//编码类型
}
$this->assign('list', $tables);
$this->display();
}
示例14: getattach
function getattach($pid, $posttime = 0)
{
global $_G;
require_once libfile('function/attachment');
$attachs = $imgattachs = array();
$sqladd1 = $posttime > 0 ? "AND a.dateline>'{$posttime}'" : '';
$sqladd2 = $pid > 0 ? "OR a.pid='{$pid}'" : '';
$query = DB::query("SELECT a.*, af.description\n\t\tFROM " . DB::table('forum_attachment') . " a\n\t\tLEFT JOIN " . DB::table('forum_attachmentfield') . " af ON a.aid=af.aid\n\t\tWHERE (a.uid='{$_G['uid']}' AND a.tid='0' {$sqladd1}) {$sqladd2} ORDER BY dateline");
while ($attach = DB::fetch($query)) {
$attach['filenametitle'] = $attach['filename'];
$attach['ext'] = fileext($attach['filename']);
$attach['filename'] = cutstr($attach['filename'], $_G['setting']['allowattachurl'] ? 25 : 30);
$attach['attachsize'] = sizecount($attach['filesize']);
$attach['dateline'] = dgmdate($attach['dateline']);
$attach['filetype'] = attachtype($attach['ext'] . "\t" . $attach['filetype']);
if ($attach['isimage'] < 1) {
if ($attach['isimage']) {
$attach['url'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
$attach['width'] = $attach['width'] > 110 ? 110 : $attach['width'];
}
if ($attach['pid']) {
$attachs['used'][] = $attach;
} else {
$attachs['unused'][] = $attach;
}
} else {
$attach['url'] = ($attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']) . '/forum';
$attach['width'] = $attach['width'] > 110 ? 110 : $attach['width'];
if ($attach['pid']) {
$imgattachs['used'][] = $attach;
} else {
$imgattachs['unused'][] = $attach;
}
}
}
return array('attachs' => $attachs, 'imgattachs' => $imgattachs);
}
示例15: public_index
public function public_index()
{
$this->html = pc_base::load_app_class('html');
$size = $this->html->index();
showmessage(L('index_create_finish', array('size' => sizecount($size))));
}