} else { $yl = "猜不到你喜欢的"; } /*star html*/ if ($info['info'] == 'none' || $info['info'] == "") { $info['info'] = $info['name']; } $FFS['html']['path'] = MOP . 'file.html'; $FFS['html']['tag']['{html:title}'] = $info['name'] . '--文件分享页--' . SITE_NAM; $FFS['html']['tag']['{html:keywords}'] = SITE_KEY; $FFS['html']['tag']['{html:des}'] = $info['name'] . '--文件分享页--' . SITE_NAM; $FFS['html']['tag']['{html:tongji}'] = stripslashes(SITE_TONGJI); $FFS['html']['tag']['{html:ad}'] = stripslashes(F_AD); $FFS['html']['tag']['{html:ICP}'] = SITE_ICP; $FFS['html']['tag']['{file:name}'] = $info['name']; $FFS['html']['tag']['{file:quicklink}'] = FILE_QUICK_LINK($info['type'], $info['id'], $info['size'], true); $FFS['html']['tag']['{file:size}'] = STR_FILESIZE($info['size']); $FFS['html']['tag']['{file:type}'] = $info['type']; $FFS['html']['tag']['{file:up}'] = date('Y-m-d', $info['time']); $FFS['html']['tag']['{file:info}'] = str_replace("\r", "<br />", $info['info']); $FFS['html']['tag']['{file:down}'] = $info['down']; $FFS['html']['tag']['{file:id}'] = $info['id']; $FFS['html']['tag']['{file:infoImg}'] = URL . '?/file/pic-' . $id . '.gif'; $FFS['html']['tag']['{html:reportKey}'] = STR_CUT_KEY(); $FFS['html']['tag']['{html:yourEmail}'] = !empty($_COOKIE['email']) ? $_COOKIE['email'] : ''; $FFS['html']['tag']['{file:youlike}'] = $yl; $FFS['html']['tag']['{file:LINK_COUNTDOWN}'] = F_LINK_COUNTDOWN; $FFS['html']['tag']['{html:favourite}'] = file_exists(ROT . 'app/manage/Engine.php') ? '<a href="' . URL . '?/manage/tofavourite_' . $info['id'] . '" title="收藏此文件到我的收藏夹">[我要收藏]</a>' : ''; /*处理下载链接*/ $downlink = ""; if (LDN != "") {
if ($_POST) { /*处理上传*/ /*获取上传配置*/ include 'glob.php'; include 'app/upload/config.php'; $info = FILE_UPLOAD(); if ($info['ok']) { if (!empty($_POST['email'])) { $smtpemailto = $_POST["email"]; } $mailsubject = $info['name']; $mailbody = '文件名:' . $info['name'] . ' | 分享码:' . $info['id'] . ' | 管理密码:' . $info['pw'] . ' | 文件类型:' . $info['type'] . ' | 文件大小:' . STR_FILESIZE($info['size']); $mailinfo = ""; $jumpEmail = $_POST["jumpEmail"]; if ($jumpEmail == "no") { $mailinfo = " | 邮件发送成功"; } $str = '文件名:' . $info['name'] . '|分享码:' . $info['id'] . '|管理密码:' . $info['pw'] . '|下载地址:' . URL . '?/file/view-' . $info['id'] . '.html'; $str1 = '<object type="application/x-shockwave-flash" data="' . URL . 'glob/copy/clipboard.swf" width="52" height="25" id="forLoadSwf" name="forLoadSwf" style="visibility: visible; "><param name="movie" value="' . URL . 'glob/copy/clipboard.swf" /><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="flashvars" value="content=' . $str . '&uri=' . URL . 'glob/copy/flash_copy_btn.png"></object>'; echo '上传完成-> <a href="' . URL . '?/file/view-' . $info['id'] . '.html" target="_blank" style="color:red;" >下载</a> ' . (file_exists('app/info/plug.html') ? '<form action="' . URL . '?/file/edit-file.html" method="post" target="_blank" id="fileEditForm' . $info['id'] . '"><input type="hidden" name="info_us" value="' . $info['id'] . '" /><input type="hidden" name="info_pw" value="' . $info['pw'] . '" /> <a href="javascript:;" onclick="document.getElementById(\'fileEditForm' . $info['id'] . '\').submit();" style="color:red;" >编辑</a></form>' : '') . ' 分享码:' . $info['id'] . '|管理码:' . $info['pw'] . $mailinfo . '<-' . $str1 . FILE_QUICK_LINK($info['type'], $info['id'], $info['size']); if ($jumpEmail == "no") { MAIL_SEND($smtpemailto, $mailsubject, $mailbody); } if (file_exists('app/manage/ico.html') && $_POST['username'] != NULL && $_POST['regtime'] != NULL) { //检测是否登录,如保存即发送保存链接 @file_get_contents(URL . '?/manage/savefile|' . $info['id'] . '|' . $_POST['username'] . '|' . $_POST['regtime']); } } else { echo $info['info']; } }