dede会员修改批量上传 (2013-03-21 14:01:06) te style="font-style: normal; line-height: 23px; padding: 0px 20px 0px 32px; height: 23px; min-width: 1px; overflow-x: visible; width: 34px; display: inline-block !imp ortant; background- -28px; background-repeat: no-repeat no-repeat;" > 转载 ▼ te> dede会员修改批量上传 1,/dede/config.php 找到 //检验用户登录状态 替换下列代码$cuserLogin = new userLogin();if (strpos($_SERVER['REQUEST_URI'],"swfupload")==0){ if($cuserLogin->getUserID()==-1) { header("location:login.php?gotopage=".urlencode($dedeNowurl)); exit(); }} 2,member/js/album.js 找到swfupload.php 替换 /dede/swfupload.php 一共2处 3,member/js/handlers.js 找到swfupload.php 替换 /dede/swfupload.php 4,/member/album_add.php 找到 //生成文档ID 上面插入以下代码 if(is_array($_SESSION['bigfile_info'])) { foreach($_SESSION['bigfile_info'] as $k=>$v) { $truefile = $cfg_basedir.$v; if(strlen($v)<2 || !file_exists($truefile)) continue; $info = ''; $imginfos = GetImageSize($truefile, $info); $litpicname = $pagestyle > 2 ? GetImageMapDD($v, $cfg_ddimg_width) : ''; if(!$hasone && $ddisfirst==1 && $litpic=='') { $litpic = empty($litpicname) ? GetImageMapDD($v, $cfg_ddimg_width) : $litpicname; $hasone = TRUE; } $imginfo = !empty(${'picinfook'.$k}) ? ${'picinfook'.$k} : ''; $imgurls .= "{dede:img ddimg='$v' text='$imginfo' width='".$imginfos[0]."' height='".$imginfos[1]."'} $v {/dede:img}\r\n"; } } $imgurls = addslashes($imgurls); 5,/member/templets/album_add.htm 找到