具体的看这儿
https://discuz.dismall.com/thread-792441-1-2.html
想安装但是不想覆盖,所以就自己找了一下,需要的拿去。
从下面开始修改,不保证一定没问题,用之前请三思。
1./admincp.php
查找- } elseif($action == 'videoconfig' || $action == 'video' || $action == 'videobind' || $action == 'videoclass') {
- $cpscript = 'video';
复制代码 修改成- } elseif($action == 'videoconfig' || $action == 'video' || $action == 'videobind' || $action == 'videoclass') {
- $cpscript = 'video';
- } elseif($action == 'imageconfig' || $action == 'image' || $action == 'imagebind') {
- $cpscript = 'image';
复制代码 2./topicadmin.php
查找- $pids = 0;
- $posts = $uidarray = $puidarray = $auidarray = array();
- $losslessdel = $losslessdel > 0 ? $timestamp - $losslessdel * 86400 : 0;
- $query = $db->query("SELECT pid, authorid, dateline, message, first FROM {$tablepre}posts WHERE pid IN ($deletepids) AND tid='$tid'");
- while($post = $db->fetch_array($query)) {
- if(!$post['first']) {
- $posts[] = $post;
- $pids .= ','.$post['pid'];
- if($post['dateline'] < $losslessdel) {
- $uidarray[] = $post['authorid'];
- } else {
- $puidarray[] = $post['authorid'];
- }
- $modpostsnum ++;
- }
- }
复制代码 替换成- $pids = 0;
- $posts = $uidarray = $puidarray = $auidarray = array();
- $losslessdel = $losslessdel > 0 ? $timestamp - $losslessdel * 86400 : 0;
- $query = $db->query("SELECT pid, tid, authorid, dateline, message, first FROM {$tablepre}posts WHERE pid IN ($deletepids) AND tid='$tid'");
- while($post = $db->fetch_array($query)) {
- if(!$post['first']) {
- $posts[] = $post;
- $pids .= ','.$post['pid'];
- updateimaget($post['pid'], $post['tid'], 3, 0);
- if($post['dateline'] < $losslessdel) {
- $uidarray[] = $post['authorid'];
- } else {
- $puidarray[] = $post['authorid'];
- }
- $modpostsnum ++;
- }
- }
复制代码 3./viewthread.php
共三处
查找- $multipage = multi($thread['replies'] + 1, $ppp, $page, "viewthread.php?tid=$tid&extra=$extra".(isset($highlight) ? "&highlight=".rawurlencode($highlight) : '').(!empty($authorid) ? "&authorid=$authorid" : ''));
- $newpostanchor = $postcount = $ratelogpids = 0;
- $onlineauthors = array();
- $query = $db->query("SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
- m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6,
- m.extcredits7, m.extcredits8, m.email, m.gender, m.showemail, m.invisible, m.xspacestatus, mf.nickname, mf.site,
- mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals, mf.avatar, mf.avatarwidth,
- mf.avatarheight, mf.sightml AS signature, mf.customstatus, mf.spacename $fieldsadd
- FROM {$tablepre}posts p
- LEFT JOIN {$tablepre}members m ON m.uid=p.authorid
- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
- WHERE p.tid='$tid' AND p.invisible='0' $onlyauthoradd $pageadd");
复制代码 替换成- $multipage = multi($thread['replies'] + 1, $ppp, $page, "viewthread.php?tid=$tid&extra=$extra".(isset($highlight) ? "&highlight=".rawurlencode($highlight) : '').(!empty($authorid) ? "&authorid=$authorid" : ''));
- $issetthid = $qihoothid = $newpostanchor = $postcount = $ratelogpids = 0;
- if($qihoo_image_opent || $qihoo_image_openp) {
- $qihooimage = $db->fetch_array($db->query("SELECT thid,tid FROM {$tablepre}qihooimages WHERE tid='$tid' ORDER BY pid ASC LIMIT 1"));
- $fieldsadd .= ', qi.pid AS qipid, qi.thid, qi.phid ';
- $tablesadd = "LEFT JOIN {$tablepre}qihooimages qi USING (pid)";
- }
- $onlineauthors = array();
- $query = $db->query("SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
- m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6,
- m.extcredits7, m.extcredits8, m.email, m.gender, m.showemail, m.invisible, m.xspacestatus, mf.nickname, mf.site,
- mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals, mf.avatar, mf.avatarwidth,
- mf.avatarheight, mf.sightml AS signature, mf.customstatus, mf.spacename $fieldsadd
- FROM {$tablepre}posts p $tablesadd
- LEFT JOIN {$tablepre}members m ON m.uid=p.authorid
- LEFT JOIN {$tablepre}memberfields mf ON mf.uid=m.uid
- WHERE p.tid='$tid' AND p.invisible='0' $onlyauthoradd $pageadd");
复制代码 继续查找替换成- $firstpid, $videoopen,$qihoothid,$issetthid;
复制代码 继续查找- $post['ratings'] = karmaimg($post['rate'], $post['ratetimes']);
- $post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], $post['htmlon'] & 1, $forum['allowsmilies'], $forum['allowbbcode'], ($forum['allowimgcode'] && $showimages ? 1 : 0), $forum['allowhtml'], ($forum['jammer'] && $post['authorid'] != $discuz_uid ? 1 : 0), 0, $post['authorid'], $forum['allowmediacode'], $post['pid']);
复制代码 替换成- $post['ratings'] = karmaimg($post['rate'], $post['ratetimes']);
- $issetthid = $post['qipid'] && empty($post['phid']) ? 1 : $issetthid;
- $qihoothid = $post['thid'] ? $post['thid'] : $qihoothid;
- $post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], $post['htmlon'] & 1, $forum['allowsmilies'], $forum['allowbbcode'], ($forum['allowimgcode'] && $showimages ? 1 : 0), $forum['allowhtml'], ($forum['jammer'] && $post['authorid'] != $discuz_uid ? 1 : 0), 0, $post['authorid'], $forum['allowmediacode'], $post['pid']);
复制代码 4.上传
/image_install.php
/viewimages.php
/admin/image.inc.php
/api/image.php
/images/common/viewimage.gif
/images/common/viewimage.swf
/include/javascript/qihooimage.js
/templates/default/viewimages.htm
5./admin/menu.inc.php
查找- array('name' => $lang['menu_qihoo_topics'], 'url' => 'admincp.php?action=qihoo_topics'),
- array('name' => $lang['menu_qihoo_relatedthreads'], 'url' => 'admincp.php?action=qihoo_relatedthreads')));
复制代码 替换成- array('name' => $lang['menu_qihoo_topics'], 'url' => 'admincp.php?action=qihoo_topics'),
- array('name' => $lang['menu_qihoo_relatedthreads'], 'url' => 'admincp.php?action=qihoo_relatedthreads')));
- showmenu('组图功能',array(array('name' => '参数设置', 'url' => 'admincp.php?action=imageconfig'),
- array('name' => '绑定组图帐户', 'url' => 'admincp.php?action=imagebind')));
复制代码 6./include/cache.func.php
查找- unset($data['videoinfo']);
- $exchcredits = array();
复制代码 替换成- unset($data['videoinfo']);
- $data['isiteid'] = $data['ikey'] = $data['ipassword'] = $data['iemail'] = $data['isiteurl'] = $data['qihoo_image_opent'] = $data['qihoo_image_openp'] = '';
- if($data['qihoo_image'] = unserialize($data['qihoo_image'])) {
- $data['isiteid'] = $data['qihoo_image']['isiteid'];
- $data['ikey'] = $data['qihoo_image']['ikey'];
- $data['iemail'] = $data['qihoo_image']['iemail'];
- $data['ipassword'] = $data['qihoo_image']['ipassword'];
- $data['isiteurl'] = $data['qihoo_image']['isiteurl'];
- $data['qihoo_image_opent'] = $data['qihoo_image']['qihoo_image_opent'];
- $data['qihoo_image_openp'] = $data['qihoo_image']['qihoo_image_openp'];
- }
- unset($data['qihoo_image']);
- $exchcredits = array();
复制代码 7./include/common.inc.php
查找- if (!MAGIC_QUOTES_GPC && $_FILES) {
- $_FILES = daddslashes($_FILES);
- }
- $charset = $dbcharset = $forumfounders = $metakeywords = $extrahead = $seodescription = '';
- $plugins = $hooks = $admincp = $jsmenu = $forum = $thread = $language = $actioncode = $modactioncode = $lang = array();
复制代码 替换成- if (!MAGIC_QUOTES_GPC && $_FILES) {
- $_FILES = daddslashes($_FILES);
- }
- $charset = $dbcharset = $forumfounders = $metakeywords = $extrahead = $seodescription = $updatetoqihoo = '';
- $plugins = $hooks = $admincp = $jsmenu = $forum = $thread = $language = $actioncode = $modactioncode = $lang = array();
复制代码 8./include/discuzcode.func.php
查找- if(!$bbcodeoff) {
- $message = preg_replace(array(
- ($parsetype != 1 ? "/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/ies" : "//"),
- "/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
- "/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies"
- ), $allowimgcode ? array(
- ($parsetype != 1 ? "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')" : ""),
- "bbcodeurl('\\1', '<img src="%s" border="0" onclick="zoom(this)" onload="attachimg(this, \'load\')" alt="" />')",
- "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0" alt="" />')"
- ) : array(
- ($parsetype != 1 ? "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')" : ""),
- "bbcodeurl('\\1', '<a href="%s" target="_blank">%s</a>')",
- "bbcodeurl('\\3', '<a href="%s" target="_blank">%s</a>')"
- ), $message);
- }
复制代码 替换成- if(!$bbcodeoff) {
- $message = preg_replace(array(
- ($parsetype != 1 ? "/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/ies" : "//"),
- "/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
- "/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
- "/\[img=([^\[\<\r\n]+?)\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies"
- ), $allowimgcode ? array(
- ($parsetype != 1 ? "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')" : ""),
- "bbcodeurl('\\1', '<img src="%s" border="0" onclick="zoom(this, this.src)" onload="attachimg(this, \'load\')" alt="" />')",
- "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0" alt="" />')",
- "bbcodeurl('\\1', '<img src="%s" border="0" alt="\\2" />')"
- ) : array(
- ($parsetype != 1 ? "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')" : ""),
- "bbcodeurl('\\1', '<a href="%s" target="_blank">%s</a>')",
- "bbcodeurl('\\3', '<a href="%s" target="_blank">%s</a>')",
- "bbcodeurl('\\1', '<a href="%s" target="_blank">\\2</a>')"
- ), $message);
- }
复制代码 9./include/editpost.inc.php
查找- $query = $db->query("SELECT * FROM {$tablepre}posts WHERE pid='$pid' AND tid='$tid' AND fid='$fid'");
- $postinfo = $db->fetch_array($query);
- $usesigcheck = $postinfo['usesig'] ? 'checked="checked"' : '';
复制代码 替换成- $query = $db->query("SELECT * FROM {$tablepre}posts WHERE pid='$pid' AND tid='$tid' AND fid='$fid'");
- $postinfo = $db->fetch_array($query);
- if($qihoo_image_openp) {
- $qihoophid = $db->fetch_array($db->query("SELECT phid FROM {$tablepre}qihooimages WHERE pid='$pid' AND tid='$tid' LIMIT 1"));
- $postinfo['phid'] = empty($qihoophid['phid']) ? 0 : $qihoophid['phid'];
- }
- $usesigcheck = $postinfo['usesig'] ? 'checked="checked"' : '';
复制代码 10./include/global.func.php
共4处
查找(第一处)- function dexit($message = '') {
- echo $message;
- output();
- exit();
- }
- function dhtmlspecialchars($string) {
复制代码 替换成- function dexit($message = '') {
- echo $message;
- output();
- exit();
- }
- function dfopen($url, $limit = 500000, $post = '', $cookie = '', $bysocket = FALSE, $ip = '', $timeout = 20, $block = TRUE) {
- global $version, $boardurl;
- if(ini_get('allow_url_fopen') && !$bysocket && !$post) {
- $fp = @fopen($url, 'r');
- $s = @fread($fp, $limit);
- @fclose($fp);
- return $s;
- }
- $return = '';
- $matches = parse_url($url);
- $host = $matches['host'];
- $script = substr($url, strlen($host) + 7);
- $script = $script ? $script : '/';
- $port = !empty($matches['port']) ? $matches['port'] : 80;
- if($post) {
- $out = "POST $script HTTP/1.0\r\n";
- $out .= "Accept: *\r\n";
- $out .= "Referer: $boardurl\r\n";
- $out .= "Accept-Language: zh-cn\r\n";
- $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $out .= "User-Agent: Comsenz/1.0 ($version)\r\n";
- $out .= "Host: $host\r\n";
- $out .= 'Content-Length: '.strlen($post)."\r\n";
- $out .= "Connection: Close\r\n";
- $out .= "Cache-Control: no-cache\r\n";
- $out .= "Cookie: $cookie\r\n\r\n";
- $out .= $post;
- } else {
- $out = "GET $script HTTP/1.0\r\n";
- $out .= "Accept: */*\r\n";
- $out .= "Referer: $boardurl\r\n";
- $out .= "Accept-Language: zh-cn\r\n";
- $out .= "User-Agent: Comsenz/1.0 ($version)\r\n";
- $out .= "Host: $host\r\n";
- $out .= "Connection: Close\r\n";
- $out .= "Cookie: $cookie\r\n\r\n";
- }
- $fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout);
- if(!$fp) {
- return '';//note $errstr : $errno \r\n
- } else {
- stream_set_blocking($fp, $block);
- stream_set_timeout($fp, $timeout);
- @fwrite($fp, $out);
- $status = stream_get_meta_data($fp);
- if($status['timed_out']) {
- return '';
- }
- while(!feof($fp) && $limit > -1) {
- $limit -= 524;
- $return .= @fread($fp, 524);
- }
- @fclose($fp);
- $return = preg_replace("/\r\n\r\n/", "\n\n", $return, 1);
- $strpos = strpos($return, "\n\n");
- $strpos = $strpos !== FALSE ? $strpos + 2 : 0;
- $return = substr($return, $strpos);
- return $return;
- }
- }
- function dhtmlspecialchars($string) {
复制代码 继续查找(第二处)- function dunlink($filename, $havethumb = 0, $remote = 0) {
- global $authkey, $ftp, $attachdir;
- if($remote) {
复制代码 替换成- function dunlink($filename, $havethumb = 0, $remote = 0) {
- global $authkey, $ftp, $attachdir, $qihoo_image_opent;
- if($remote) {
复制代码 继续查找(第三处)- @unlink($attachdir.'/'.$filename);
- $havethumb && @unlink($attachdir.'/'.$filename.'.thumb.jpg');
- }
- }
复制代码 替换成- @unlink($attachdir.'/'.$filename);
- $havethumb && @unlink($attachdir.'/'.$filename.'.thumb.jpg');
- }
- if($qihoo_image_opent && in_array(strtolower(fileext($filename)), array('jpg', 'jpeg', 'gif', 'png', 'swf', 'bmp'))) {
- updatetoqihoo('2');
- }
- }
复制代码 继续查找并删除(第四处)- function dfopen($url, $limit = 500000, $post = '', $cookie = '', $bysocket = FALSE) {
- global $version, $boardurl;
- if(ini_get('allow_url_fopen') && !$bysocket && !$post) {
- $fp = @fopen($url, 'r');
- $s = @fread($fp, $limit);
- @fclose($fp);
- return $s;
- }
- $return = '';
- $matches = parse_url($url);
- $host = $matches['host'];
- $script = $matches['path'].'?'.$matches['query'].'#'.$matches['fragment'];
- $port = !empty($matches['port']) ? $matches['port'] : 80;
- if($post) {
- $out = "POST $script HTTP/1.1\r\n";
- $out .= "Accept: */*\r\n";
- $out .= "Referer: $boardurl\r\n";
- $out .= "Accept-Language: zh-cn\r\n";
- $out .= "Content-Type: application/x-www-form-urlencoded\r\n";
- $out .= "Accept-Encoding: none\r\n";
- $out .= "User-Agent: Comsenz/1.0 ($version)\r\n";
- $out .= "Host: $host\r\n";
- $out .= 'Content-Length: '.strlen($post)."\r\n";
- $out .= "Connection: Close\r\n";
- $out .= "Cache-Control: no-cache\r\n";
- $out .= "Cookie: $cookie\r\n\r\n";
- $out .= $post;
- } else {
- $out = "GET $script HTTP/1.1\r\n";
- $out .= "Accept: */*\r\n";
- $out .= "Referer: $boardurl\r\n";
- $out .= "Accept-Language: zh-cn\r\n";
- $out .= "Accept-Encoding:\r\n";
- $out .= "User-Agent: Comsenz/1.0 ($version)\r\n";
- $out .= "Host: $host\r\n";
- $out .= "Connection: Close\r\n";
- $out .= "Cookie: $cookie\r\n\r\n";
- }
- $fp = fsockopen($host, $port, $errno, $errstr, 30);
- if(!$fp) {
- return "";
- } else {
- @fwrite($fp, $out);
- while(!feof($fp) && $limit > -1) {
- $limit -= 524;
- $return .= @fread($fp, 524);
- }
- @fclose($fp);
- $return = preg_replace("/\r\n\r\n/", "\n\n", $return, 1);
- $strpos = strpos($return, "\n\n");
- $strpos = $strpos !== FALSE ? $strpos + 2 : 0;
- $return = substr($return, $strpos);
- return $return;
- }
- }
复制代码 11./include/newreply.inc.php
查找- $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message));
- $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'");
- updatecredits($discuz_uid, $postattachcredits, count($attachments));
- }
- $replymessage = 'post_reply_succeed';
复制代码 替换成- $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message));
- $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'");
- updatecredits($discuz_uid, $postattachcredits, count($attachments));
- }
- //note qihoo主题图打开的情况下,并且是楼主本人、有上传图片附件、帖子内容有[img]调用updateimaget函数。
- if($qihoo_image_opent && ($thread['authorid'] == $discuz_uid) && (strpos($message, '[/hide]') === FALSE) && (isattachmentimage($pid) || strpos($message, '[/img]') !== FALSE)) {
- updateimaget($pid, $tid, 1, intval(strpos($message, '[/img]') !== FALSE));
- }
- if($qihoo_image_openp && $phid) {
- updateimagep($pid, $tid, $phid);
-
- if(empty($subject)) {
- $threadsubject = $db->fetch_array($db->query("SELECT subject FROM {$tablepre}threads WHERE tid='$tid'"));
- $subject = $threadsubject['subject'];
- }
- dfopen($isiteurl."/discuz/update.php?sid=$isiteid&code=".urlencode(authcode("spassword=$ipassword&phid=$phid&tid=$tid&pid=$pid&uid=".$postinfo['authorid']."&ctime=".$postinfo['dateline']."&mtime=$timestamp", '', $ikey))."&title=".urlencode($subject)."&content=".urlencode(spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
- }
- $replymessage = 'post_reply_succeed';
复制代码 12./include/newthread.inc.php
查找- $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message));
- $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'");
- updatecredits($discuz_uid, $postattachcredits, count($attachments));
- }
- if($iscircle && $sgid) {
复制代码 替换成- $message = str_replace($searcharray, $replacearray, preg_replace($pregarray, $replacearray, $message));
- $db->query("UPDATE {$tablepre}posts SET message='$message' WHERE pid='$pid'");
- updatecredits($discuz_uid, $postattachcredits, count($attachments));
- }
- //note qihoo主题图打开的情况下,有上传图片附件、帖子内容有[img]调用updateimaget函数。
- if($qihoo_image_opent && (strpos($message, '[/hide]') === FALSE) && (isattachmentimage($pid) || strpos($message, '[/img]') !== FALSE)) {
- updateimaget($pid, $tid, 1, intval(strpos($message, '[/img]') !== FALSE));
- }
- if($qihoo_image_openp && $phid) {
- updateimagep($pid, $tid, $phid);
- dfopen($isiteurl."/discuz/update.php?sid=$isiteid&code=".urlencode(authcode("spassword=$ipassword&phid=$phid&tid=$tid&pid=$pid&uid=".$postinfo['authorid']."&ctime=".$postinfo['dateline']."&mtime=$timestamp", '', $ikey))."&title=".urlencode($subject)."&content=".urlencode(spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
- }
- if($iscircle && $sgid) {
复制代码 13./include/post.func.php
查找- function arrayslice($array, $offset, $length) {
- if(PHP_VERSION >= '5.0.2') {
- return array_slice($array, $offset, $length, TRUE);
- } else {
- $array = array_chunk($array, $length, TRUE);
- return $array[$offset / $length];
- }
- }
- function threadtype_checkoption($unchangeable = 1, $trade = 0) {
- global $selecttypeid, $optionlist, $trade_create, $tradetypeid, $typeid, $_DTYPE, $checkoption, $forum, $action;
复制代码 替换成- function arrayslice($array, $offset, $length) {
- if(PHP_VERSION >= '5.0.2') {
- return array_slice($array, $offset, $length, TRUE);
- } else {
- $array = array_chunk($array, $length, TRUE);
- return $array[$offset / $length];
- }
- }
- function isattachmentimage($pid) {
- global $db, $tablepre;
- $isattachmentimage = 0;
- $query = $db->query("SELECT isimage FROM {$tablepre}attachments WHERE pid='$pid'");
- while($imageinfo = $db->fetch_array($query)) {
- $isattachmentimage = empty($imageinfo['isimage']) ? $isattachmentimage : $imageinfo['isimage'];
- }
- return $isattachmentimage;
- }
- function isubbimage($pid) {
- global $db, $tablepre;
- $isubbimage = 0;
- $query = $db->query("SELECT hasimage FROM {$tablepre}qihooimages WHERE pid='$pid'");
- while($imageinfo = $db->fetch_array($query)) {
- $isubbimage = empty($imageinfo['hasimage']) ? $isubbimage : $imageinfo['hasimage'];
- }
- return $isubbimage;
- }
- function updateimaget($pid, $tid, $type, $hasimage) {
- global $db, $tablepre, $timestamp;
- $hasimage = $hasimage ? '1' : '0';
- if($type == 2 || $type == 1) {
- $postimageurl = $db->fetch_array($db->query("SELECT * FROM {$tablepre}qihooimages WHERE pid='$pid'"));
- if($postimageurl['pid']) {
- $sqlmode = 'UPDATE';
- $sqltype = $postimageurl['type'] == '1' && $postimageurl['status'] == '1' ? '1' : '2';
- $sqlconditions = "WHERE pid='$pid'";
- } else {
- $sqlmode = 'INSERT INTO';
- $sqltype = '1';
- $sqlconditions = '';
- }
- $sql = "$sqlmode {$tablepre}qihooimages SET pid='$pid', tid='$tid', dateline='$timestamp', hasimage='$hasimage', type='$sqltype', status='1' $sqlconditions";
- } elseif($type == 3) {
- $sql = "UPDATE {$tablepre}qihooimages SET dateline='$timestamp', hasimage='$hasimage', type='3', status='1' WHERE pid='$pid'";
- }
- //echo $sql; exit;
- if(!empty($sql)) {
- $db->query($sql);
- updatetoqihoo();
- }
- }
- function updateimagep($pid, $tid, $phid) {
- global $db, $tablepre;
- $postimagep = $db->fetch_array($db->query("SELECT pid FROM {$tablepre}qihooimages WHERE pid='$pid'"));
- if($postimagep['pid']) {
- $sqlmode = 'UPDATE';
- $sqlconditions = "WHERE pid='$pid'";
- } else {
- $sqlmode = 'INSERT INTO';
- $sqlconditions = '';
- }
- $db->query("$sqlmode {$tablepre}qihooimages SET pid='$pid', tid='$tid', phid='$phid' $sqlconditions");
- }
- function updatetoqihoo ($type = '0') {
- global $db, $tablepre, $isiteid, $ikey, $ipassword,$updatetoqihoo, $pid, $tid,$timestamp,$isiteurl;
-
- if(empty($updatetoqihoo)) {
- $returninfo = dfopen($isiteurl."/discuz/notify.php?sid=$isiteid&code=".urlencode(authcode('spassword='.$ipassword, '', $ikey)), 10000, '', '', TRUE, '', 20, FALSE);
- $updatetoqihoo = '1';
- }
- if($type == '2') {
- $db->query("UPDATE {$tablepre}qihooimages SET type='2', dateline='$timestamp',status='1' WHERE pid='$pid'");
- }
- }
- function spacecutstr($str, $length) {
- global $_DCACHE;
- include_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';
- $bbcodes = 'b|i|u|color|size|font|align|list|indent|url|email|code|free|table|tr|td|img|swf|payto|float'.($_DCACHE['bbcodes_display'] ? '|'.implode('|', array_keys($_DCACHE['bbcodes_display'])) : '');
- $str = dhtmlspecialchars(cutstr(strip_tags(preg_replace(array(
- "/\[hide=?\d*\](.+?)\[\/hide\]/is",
- "/\[quote](.*)\[\/quote]/siU",
- "/\[($bbcodes)=?.*\]/iU",
- "/\[\/($bbcodes)\]/i",
- "/\[attach\](\d+)\[\/attach\]/i",
- "/\[media=(\w{1,4}),(\d{1,4}),(\d{1,4}),(\d)\]\s*([^\[\<\r\n]+?)\s*\[\/media\]/i",
- ), array(
- '',
- '',
- '',
- '',
- '',
- "\\5"
- ), $str)), $length));
- $find = array("/http:\/\/[a-z0-9\/\-_+=.~!%@?#%&;:$\\()|]+?\.(jpg|gif|png|bmp)/is", "/(\n|\r|\r\n){2,}/", "/\s{2,}/");
- $replace = array("<img onload="if(this.width>320) {this.resized=true;this.width=320;}" src="\\0">", "\r\n", '');
- $str = preg_replace($find, $replace, $str);
- return trim(nl2br($str));
- }
- function threadtype_checkoption($unchangeable = 1, $trade = 0) {
- global $selecttypeid, $optionlist, $trade_create, $tradetypeid, $typeid, $_DTYPE, $checkoption, $forum, $action;
复制代码 14./include/javascript/bbcode.js
共2处
查找- if(!fetchCheckbox('bbcodeoff')) {
- if(allowimgcode) {
- str = str.replace(/\[localimg=(\d{1,4}),(\d{1,4})\](\d+)\[\/localimg\]/ig, function ($1, $2, $3, $4) {if($('attach_' + $4)) {var src = $('attach_' + $4).value; if(src != '') return '<img style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=\'scale\',src=\'' + src + '\');width:' + $2 + ';height=' + $3 + '" src=\'images/common/none.gif\' border="0" aid="attach_' + $4 + '" alt="" />';}});
- str = str.replace(/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<img src="$1" border="0" alt="" />');
- str = str.replace(/\[attachimg\](\d+)\[\/attachimg\]/ig, function ($1, $2) {eval('var attachimg = $(\'preview_' + $2 + '\')');return '<img src="' + attachimg.src + '" border="0" aid="attachimg_' + $2 + '" width="' + attachimg.clientWidth + '" alt="" />';});
- str = str.replace(/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<img width="$1" height="$2" src="$3" border="0" alt="" />');
- } else {
- str = str.replace(/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<a href="$1" target="_blank">$1</a>');
- str = str.replace(/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<a href="$1" target="_blank">$1</a>');
- }
- }
复制代码 替换成- if(!fetchCheckbox('bbcodeoff')) {
- if(allowimgcode) {
- str = str.replace(/\[localimg=(\d{1,4}),(\d{1,4})\](\d+)\[\/localimg\]/ig, function ($1, $2, $3, $4) {if($('attach_' + $4)) {var src = $('attach_' + $4).value; if(src != '') return '<img style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=\'scale\',src=\'' + src + '\');width:' + $2 + ';height=' + $3 + '" src=\'images/common/none.gif\' border="0" aid="attach_' + $4 + '" alt="" />';}});
- str = str.replace(/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<img src="$1" border="0" alt="" />');
- str = str.replace(/\[attachimg\](\d+)\[\/attachimg\]/ig, function ($1, $2) {eval('var attachimg = $(\'preview_' + $2 + '\')');return '<img src="' + attachimg.src + '" border="0" aid="attachimg_' + $2 + '" width="' + attachimg.clientWidth + '" alt="" />';});
- str = str.replace(/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<img width="$1" height="$2" src="$3" border="0" alt="" />');
- str = str.replace(/\[img=([^\[\<\r\n]+?)\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<img src="$1" border="0" alt="$2" />');
- } else {
- str = str.replace(/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<a href="$1" target="_blank">$1</a>');
- str = str.replace(/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<a href="$1" target="_blank">$1</a>');
- str = str.replace(/\[img=([^\[\<\r\n]+?)\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ig, '<a href="$1" target="_blank">$2</a>');
- }
- }
复制代码 继续查找- function imgtag(attributes) {
- var width = '';
- var height = '';
- re = /src=(["']?)([\s\S]*?)(\1)/i;
- var matches = re.exec(attributes);
- if(matches != null) {
- var src = matches[2];
- } else {
- return '';
- }
- re = /width\s?:\s?(\d{1,4})px/ig;
- var matches = re.exec(attributes);
- if(matches != null) {
- width = matches[1];
- }
- [code]
- 替换成
- [code]
- function imgtag(attributes) {
- var width = '';
- var height = '';
- re = /src=(["']?)([\s\S]*?)(\1)/i;
- var matches = re.exec(attributes);
- if(matches != null) {
- var src = matches[2];
- } else {
- return '';
- }
- re = /alt=(["']+)([\s\S]*?)(\1)/i;
- var matches = re.exec(attributes);
- if(matches != null) {
- var alt = matches[2];
- if(alt.length) {
- return '[img=' + src + ']' + alt + '[/img]';
- }
- }
- re = /alt=([\s\S]*?)(\ssrc|\sborder|\swidth|\sheight|")/i;
- var matches = re.exec(attributes);
- if(matches != null) {
- var alt = matches[1];
- if(alt.length) {
- return '[img=' + src + ']' + alt + '[/img]';
- }
- }
- re = /width\s?:\s?(\d{1,4})px/ig;
- var matches = re.exec(attributes);
- if(matches != null) {
- width = matches[1];
- }
复制代码 15./include/javascript/editor.js
查找- function setCaret(pos) {
- var obj = wysiwyg ? editdoc.body : editbox;
- var r = obj.createTextRange();
- r.moveStart('character', pos);
- r.collapse(true);
- r.select();
- }
- function insertlink(cmd) {
- var sel;
- if(is_ie) {
- sel = wysiwyg ? editdoc.selection.createRange() : document.selection.createRange();
- var pos = getCaret();
- }
- var selection = sel ? (wysiwyg ? sel.htmlText : sel.text) : getSel();
- var ctrlid = editorid + '_cmd_' + cmd;
- var tag = cmd == 'insertimage' ? 'img' : (cmd == 'createlink' ? 'url' : 'email');
- var str = (tag == 'img' ? lang['enter_image_url'] : (tag == 'url' ? lang['enter_link_url'] : lang['enter_email_link'])) + '
- <input type="text" id="' + ctrlid + '_param_1" size="50" value="">';
- var div = editorMenu(ctrlid, str);
- $(ctrlid + '_param_1').focus();
- $(ctrlid + '_param_1').onkeydown = editorMenuEvent_onkeydown;
- $(ctrlid + '_submit').onclick = function() {
- checkFocus();
- if(is_ie) {
- setCaret(pos);
- }
- var input = $(ctrlid + '_param_1').value;
- if(input != '') {
- var v = selection ? selection : input;
- var href = tag != 'email' && /^(www\.)/.test(input) ? 'http://' + input : input;
- var text = wysiwyg ? (tag == 'img' ? '<img src="' + input + '" border="0">' : '<a href="' + (tag == 'email' ? 'mailto:' : '') + href + '">' + v + '</a>') : (tag == 'img' ? '[' + tag + ']' + input + '[/' + tag + ']' : '[' + tag + '=' + href + ']' + v + '[/' + tag + ']');
- var closetaglen = tag == 'email' ? 8 : 6;
- if(wysiwyg) insertText(text, text.length - v.length, 0, (selection ? true : false), sel);
- else insertText(text, text.length - v.length - closetaglen, closetaglen, (selection ? true : false), sel);
- }
复制代码 替换成- function setCaret(pos) {
- var obj = wysiwyg ? editdoc.body : editbox;
- var r = obj.createTextRange();
- r.moveStart('character', pos);
- r.collapse(true);
- r.select();
- }
- function insertlink(cmd) {
- var sel;
- if(is_ie) {
- sel = wysiwyg ? editdoc.selection.createRange() : document.selection.createRange();
- var pos = getCaret();
- }
- var selection = sel ? (wysiwyg ? sel.htmlText : sel.text) : getSel();
- var ctrlid = editorid + '_cmd_' + cmd;
- var tag = cmd == 'insertimage' ? 'img' : (cmd == 'createlink' ? 'url' : 'email');
- var str = (tag == 'img' ? lang['enter_image_url'] : (tag == 'url' ? lang['enter_link_url'] : lang['enter_email_link'])) + '
- <input type="text" id="' + ctrlid + '_param_1" size="50" value="">' + (tag == 'img' ? '
- 图片描述:
- <input type="text" id="' + ctrlid + '_param_2" size="50" value="">' : '');
- var div = editorMenu(ctrlid, str);
- $(ctrlid + '_param_1').focus();
- $(ctrlid + '_param_1').onkeydown = editorMenuEvent_onkeydown;
- $(ctrlid + '_submit').onclick = function() {
- checkFocus();
- if(is_ie) {
- setCaret(pos);
- }
- var input = $(ctrlid + '_param_1').value;
- var desc = $(ctrlid + '_param_2').value;
- if(input != '') {
- var v = selection ? selection : input;
- var href = tag != 'email' && /^(www\.)/.test(input) ? 'http://' + input : input;
- var text = wysiwyg ? (tag == 'img' ? '<img src="' + input + '" border="0" alt="' + desc + '">' : '<a href="' + (tag == 'email' ? 'mailto:' : '') + href + '">' + v + '</a>') : (tag == 'img' ? (desc.length > 0 ? '[' + tag + '=' + input + ']' + desc + '[/' + tag + ']' : '[' + tag + ']' + input + '[/' + tag + ']') : '[' + tag + '=' + href + ']' + v + '[/' + tag + ']');
- var closetaglen = tag == 'email' ? 8 : 6;
- if(wysiwyg) insertText(text, text.length - v.length, 0, (selection ? true : false), sel);
- else insertText(text, text.length - v.length - closetaglen, closetaglen, (selection ? true : false), sel);
- }
复制代码 16./include/javascript/post.js
查找- function setmediacode(editorid) {
- insertText('[media='+$(editorid + '_mediatype').value+
- ','+$(editorid + '_mediawidth').value+
- ','+$(editorid + '_mediaheight').value+
- ','+$(editorid + '_mediaautostart').value+']'+
- $(editorid + '_mediaurl').value+'[/media]');
- hideMenu();
- }
复制代码 替换成- function setmediacode(editorid) {
- insertText('[media='+$(editorid + '_mediatype').value+
- ','+$(editorid + '_mediawidth').value+
- ','+$(editorid + '_mediaheight').value+
- ','+$(editorid + '_mediaautostart').value+']'+
- $(editorid + '_mediaurl').value+'[/media]');
- hideMenu();
- }
- function setimagecode(editorid) {
- checkFocus();
- var sel;
- if(is_ie) {
- sel = wysiwyg ? editdoc.selection.createRange() : document.selection.createRange();
- var pos = getCaret();
- }
- if(is_ie) {
- setCaret(pos);
- }
- if(trim($(editorid + '_imagedescription').value).length > 0) {
- insertText('[img='+$(editorid + '_imageurl').value+']'+ $(editorid + '_imagedescription').value+'[/img]');
- } else {
- insertText('[img]'+ $(editorid + '_imageurl').value+'[/img]', 5, 6, true, sel)
- }
- $(editorid + '_imageurl').value = '';
- $(editorid + '_imagedescription').value = '';
- hideMenu();
- }
复制代码 17./include/javascript/post_editor.js
共两处
查找- if(!tradepost) {
- var tradepost = 0;
- }
复制代码 替换成- if(!tradepost) {
- var tradepost = 0;
- }
- if(!qihoo_image_openp) {
- var qihoo_image_openp = 0;
- }
复制代码 继续查找- function validate(theform, previewpost) {
- var message = bbinsert && wysiwyg ? html2bbcode(getEditorContents()) : (!theform.parseurloff.checked ? parseurl(theform.message.value) : theform.message.value);
- if(($('postsubmit').name != 'replysubmit' && !($('postsubmit').name == 'editsubmit' && !isfirstpost) && theform.subject.value == "") || message == "") {
- alert(lang['post_subject_and_message_isnull']);
- if(special != 2) {
- theform.subject.focus();
- }
- return false;
- } else if(mb_strlen(theform.subject.value) > 80) {
- alert(lang['post_subject_toolong']);
- theform.subject.focus();
- return false;
- }
复制代码 替换成
function validate(theform, previewpost) {
var message = bbinsert && wysiwyg ? html2bbcode(getEditorContents()) : (!theform.parseurloff.checked ? parseurl(theform.message.value) : theform.message.value);
if(($('postsubmit').name != 'replysubmit' && !($('postsubmit').name == 'editsubmit' && !isfirstpost) && theform.subject.value == "") || message == "") {
alert(lang['post_subject_and_message_isnull']);
if(special != 2) {
theform.subject.focus();
}
return false;
} else if(mb_strlen(theform.subject.value) > 80) {
alert(lang['post_subject_toolong']);
theform.subject.focus();
return false;
}
if(qihoo_image_openp && $('phidstatus').value == '1') {
alert(lang['phidstatus']);
return false;
}
[/code]
17./templates/default/post_editor.htm
共两处
查找- <!--{eval $sizeoptions = array(1, 2, 3, 4, 5, 6, 7)}-->
- <div class="popupmenu_popup fontsize_menu" id="{$editorid}_popup_fontsize_menu" style="display: none">
- <ul unselectable="on">
- <!--{loop $sizeoptions $size}-->
- <li onclick="discuzcode('fontsize', $size);hideMenu()" unselectable="on"><font size="$size" unselectable="on">$size</font></li>
- <!--{/loop}-->
- </ul>
- </div>
复制代码 替换成- <!--{eval $sizeoptions = array(1, 2, 3, 4, 5, 6, 7)}-->
- <div class="popupmenu_popup fontsize_menu" id="{$editorid}_popup_fontsize_menu" style="display: none">
- <ul unselectable="on">
- <!--{loop $sizeoptions $size}-->
- <li onclick="discuzcode('fontsize', $size);hideMenu()" unselectable="on"><font size="$size" unselectable="on">$size</font></li>
- <!--{/loop}-->
- </ul>
- </div>
- <div class="popupmenu_popup" id="{$editorid}_popup_image_menu" style="width: 240px;display: none" unselectable="on">
- {lang post_discuzcode_imageurl}:
- <input id="{$editorid}_imageurl" size="40" value=""/>
- 图片描述:
- <input id="{$editorid}_imagedescription" size="40" value=""/>
- <center><input type="button" size="8" value="{lang submit}" onclick="setimagecode('$editorid')"> <input type="button" onclick="hideMenu()" value="{lang cancel}" /></center>
- </div>
复制代码 继续查找- <table summary="Enitor Buttons" cellpadding="0" cellspacing="0" class="editor_button" style="border-top: none;">
- <tr>
- <td style="border-top: none;">
- <div class="editor_textexpand">
- <img src="images/common/bb_contract.gif" width="11" height="21" title="{lang post_discuzcode_contract}" alt="{lang post_discuzcode_contract}" id="{$editorid}_contract" /><img src="images/common/bb_expand.gif" width="12" height="21" title="{lang post_discuzcode_expand}" alt="{lang post_discuzcode_expand}" id="{$editorid}_expand" />
- </div>
- </td>
- <td align="right" style="border-top: none;">
- <button type="button" id="checklength">{lang post_check_length}</button>
- <button type="button" name="previewbutton" id="previewbutton" tabindex="102">{lang post_previewpost}</button>
- <button type="button" tabindex="103" id="clearcontent">{lang post_topicreset}</button>
- </td>
- </tr>
- </table>
复制代码 替换成- <table summary="Enitor Buttons" cellpadding="0" cellspacing="0" class="editor_button" style="border-top: none;">
- <tr>
- <td style="border-top: none;">
- <div class="editor_textexpand">
- <img src="images/common/bb_contract.gif" width="11" height="21" title="{lang post_discuzcode_contract}" alt="{lang post_discuzcode_contract}" id="{$editorid}_contract" /><img src="images/common/bb_expand.gif" width="12" height="21" title="{lang post_discuzcode_expand}" alt="{lang post_discuzcode_expand}" id="{$editorid}_expand" />
- </div>
- </td>
- <td align="right" style="border-top: none;">
- <button type="button" id="checklength">{lang post_check_length}</button>
- <button type="button" name="previewbutton" id="previewbutton" tabindex="102">{lang post_previewpost}</button>
- <button type="button" tabindex="103" id="clearcontent">{lang post_topicreset}</button>
- </td>
- </tr>
- </table>
- <!--{if $qihoo_image_openp}-->
- <script type="text/javascript">
- var qihoo_image_openp = 1;
- lang['phidstatus'] = '请先完成Flash的保存,否则会丢失数据!';
- function setImageInfo(phid, phidstatus) {
- $('phid').value = phid;
- $('phidstatus').value = phidstatus;
- }
- </script>
- <!--{eval $phidstring = empty($postinfo[phid]) ? '' : '&phid='.$postinfo[phid];}-->
- <!--{eval $code = "&spassword=$ipassword&tid=$tid&pid=$pid".$phidstring;}-->
- <!--{eval $code = urlencode(authcode($code,"",$ikey))}-->
- <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="uploadimages" width="750" height="240" align="middle">
- <param name="allowScriptAccess" value="always" />
- <param name="FlashVars" value="sid=$isiteid&code=$code{$phidstring}">
- <param name="movie" value="http://p.qihoo.com/flash/upload.swf" />
- <param name="quality" value="high" />
- <param name="bgcolor" value="#FFFFFF" />
- <embed src="http://p.qihoo.com/flash/upload.swf" quality="high" bgcolor="#FFFFFF" width="750" height="240" swLiveConnect=true id="uploadimages" name="uploadimages" align="middle" allowScriptAccess="always" FlashVars="sid=$isiteid&code=$code{$phidstring}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
- </object>
- <input type="hidden" name="phid" id="phid" value="$postinfo[phid]" />
- <input type="hidden" name="phidstatus" id="phidstatus" value="0" />
- <!--{/if}-->
复制代码 18./templates/default/post_js.htm
查找- <script type="text/javascript">
- $(editorid + '_contract').onclick = function() {resizeEditor(-100)};
- $(editorid + '_expand').onclick = function() {resizeEditor(100)};
- $('checklength').onclick = function() {checklength($('postform'))};
- $('previewbutton').onclick = function() {previewpost()};
- $('clearcontent').onclick = function() {clearcontent()};
- $('postform').onsubmit = function() {validate(this);if($('postsubmit').name != 'editsubmit') return false};
- <!--{if $action == 'newthread'}-->
- $('subject').focus();
- <!--{else}-->
- checkFocus();
- setCaretAtEnd();
- <!--{/if}-->
- </script>
复制代码 替换成- <script type="text/javascript">
- $(editorid + '_contract').onclick = function() {resizeEditor(-100)};
- $(editorid + '_expand').onclick = function() {resizeEditor(100)};
- $('checklength').onclick = function() {checklength($('postform'))};
- $('previewbutton').onclick = function() {previewpost()};
- $('clearcontent').onclick = function() {clearcontent()};
- $('postform').onsubmit = function() {return validate(this);};
- <!--{if $action == 'newthread'}-->
- $('subject').focus();
- <!--{else}-->
- checkFocus();
- setCaretAtEnd();
- <!--{/if}-->
- </script>
复制代码 20./templates/default/viewthread.htm
查找- <!--{if $post['number'] == 1 && $typetemplate}-->$typetemplate<!--{/if}-->
- <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
- <!--{if $post['attachment']}-->
复制代码 替换成- <!--{if $post['number'] == 1 && $typetemplate}-->$typetemplate<!--{/if}-->
- <!--{if $post['first'] == 1 && $qihoo_image_opent && !$post['attachment']}-->
- <!--{if $issetthid && empty($qihoothid)}-->
- <div class="qihooimage" style="float:right;"><a href="viewimages.php?tid=$post[tid]&pid=$post[pid]" target="_blank"><img src="images/common/viewimage.gif"></a></div>
- <!--{elseif $qihoothid}-->
- <!--{eval $thidstring = $qihoothid;}-->
- <!--{eval $code = "&spassword=$ipassword&thid=$thidstring&ctime=$timestamp";}-->
- <!--{eval $code = urlencode(authcode($code,"",$ikey))}-->
- <div class="qihooimage" style="float:right;">
- <script type="text/javascript" src="include/javascript/qihooimage.js"></script>
- <script language="javascript" type="text/javascript">
- //<![CDATA[
- flashTagIns.setNew("http://p.qihoo.com/flash/miniature.swf?sid=$isiteid&code=$code", 215, 60);
- flashTagIns.setVersion("7,0,19,0");
- flashTagIns.write(document);
- //]]>
- </script>
- </div>
- <!--{/if}-->
- <!--{/if}-->
- <div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
- <!--{if $post['qipid'] && $post['phid']}-->
- <!--{eval $phidtemp = $post[phid];}-->
- <!--{eval $code = "&spassword=$ipassword&phid=$phidtemp&ctime=$timestamp";}-->
- <!--{eval $code = urlencode(authcode($code,"",$ikey))}-->
- <script type="text/javascript" src="include/javascript/qihooimage.js"></script>
- <div class="swf">
- <script language="javascript" type="text/javascript">
- //<![CDATA[
- flashTagIns.setNew("http://p.qihoo.com/flash/pic_view.swf?sid=$isiteid&code=$code&auto={$post['first']}", 575, 475);
- flashTagIns.setVersion("7,0,19,0");
- flashTagIns.write(document);
- //]]>
- </script>
- </div>
- <!--{/if}-->
- <!--{if $post['attachment']}-->
复制代码 ====================================================================================================================================================
以上是老版本,需要更新到新版本的请看下面的帖子。
https://discuz.dismall.com/viewth ... e%3D1&frombbs=1
[ 本帖最后由 vipnetant 于 2007-12-6 13:30 编辑 ] |