Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 播放器+FLASH+歌词秀+全按扭(HIDE) For Discuz! 5.0.0 by oytktk!(9月9日更新)

[复制链接]
zhylsy99 发表于 2006-8-10 14:30:44 | 显示全部楼层
回复

使用道具 举报

zhylsy99 发表于 2006-8-10 14:32:44 | 显示全部楼层
在顶一次
回复

使用道具 举报

xiezongbao 发表于 2006-8-10 14:39:07 | 显示全部楼层
顶你,哪有演示???
回复

使用道具 举报

默契网管 发表于 2006-8-10 14:54:47 | 显示全部楼层
支持     还是有部分不足
回复

使用道具 举报

HY清风 发表于 2006-8-10 15:08:06 | 显示全部楼层
原帖由 epin 于 2006-8-10 10:35 发表

这个问题简单啊,
将高度调整为70就可以了!


我的意思是让有歌词的时候自动显示在播放器中,
而不是在把歌词单独显示!
回复

使用道具 举报

qoooob 发表于 2006-8-10 15:49:56 | 显示全部楼层
严重支持
回复

使用道具 举报

 楼主| epin 发表于 2006-8-10 19:31:58 | 显示全部楼层
原帖由 HY清风 于 2006-8-10 15:08 发表


我的意思是让有歌词的时候自动显示在播放器中,
而不是在把歌词单独显示!

我明白了,你指的是不是这样:
http://www.epinsky.cn/thread-11620-1-1.html

本来以为可以省掉的,看样子还是省不掉!
这个是用
[GCX]歌词[/GCX]
[MP3]歌曲[/MP3]
或者
[GCX]歌词[/GCX]
[RON]歌曲[/RON]
来完成的!
你可以自己插入这两个按钮,方法是一样的:)
回复

使用道具 举报

noah520 发表于 2006-8-11 04:27:35 | 显示全部楼层
虽然 不够完善,但是已经很有用了~~谢谢分享!继续关注中!
回复

使用道具 举报

玩命的鱼 发表于 2006-8-11 10:04:44 | 显示全部楼层
这是我的discuzcode.func.php文件,按照楼主所提示的修改方法出现:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in d:\www\17hjc\wwwroot\include\discuzcode.func.php on line 276



  1. <?php

  2. /*
  3.         [Discuz!] (C)2001-2006 Comsenz Inc.
  4.         This is NOT a freeware, use is subject to license terms

  5.         $RCSfile: discuzcode.func.php,v $
  6.         $Revision: 1.29.2.4 $
  7.         $Date: 2006/07/28 09:57:30 $
  8. */

  9. if(!defined('IN_DISCUZ')) {
  10.         exit('Access Denied');
  11. }

  12. $discuzcodes = array(
  13.         'pcodecount' => -1,
  14.         'codecount' => 0,
  15.         'codehtml' => '',
  16.         'searcharray' => array(),
  17.         'replacearray' => array(),
  18.         'seoarray' => array(
  19.                 0 => '',
  20.                 1 => $_SERVER['HTTP_HOST'],
  21.                 2 => $bbname,
  22.                 3 => $seotitle,
  23.                 4 => $seokeywords,
  24.                 5 => $seodescription
  25.         )
  26. );

  27. if(!is_array($_DCACHE['bbcodes']) || !is_array($_DCACHE['smilies'])) {
  28.         @include DISCUZ_ROOT.'./forumdata/cache/cache_bbcodes.php';
  29. }

  30. foreach($_DCACHE['smilies']['replacearray'] as $key => $smiley) {
  31.         $_DCACHE['smilies']['replacearray'][$key] = '<img src="'.SMDIR.'/'.$smiley.'" smilieid="'.$key.'" border="0" alt="" />';
  32. }

  33. mt_srand((double)microtime() * 1000000);

  34. function attachtag($pid, $aid) {
  35.         global $language, $postlist, $attachrefcheck, $attachurl;
  36.         if(isset($postlist[$pid]['attachments'][$aid])) {
  37.                 include_once language('misc');
  38.                 $attach = $postlist[$pid]['attachments'][$aid];
  39.                 unset($postlist[$pid]['attachments'][$aid]);

  40.                 $replacement = "<br><br>$attach[attachicon] ";
  41.                 if($attach['attachimg']) {
  42.                         $replacement .= "<a href="member.php?action=credits&view=getattach" title="$language[attach_credits_policy]" target="_blank">$language[attach_img]</a>: ".
  43.                                 ($attach['readperm'] ? ", $language[attach_readperm] $attach[readperm]" : '').
  44.                                 ($attach['description'] ? "[{$attach[description]}]" : '').
  45.                                 " <a href="attachment.php?aid=$attach[aid]" target="_blank" class="bold">$attach[filename]</a> ($attach[dateline], $attach[attachsize])<br><br>".
  46.                                 ($attachrefcheck ? "<img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='$language[attach_img_zoom]';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('attachment.php?aid=$attach[aid]&amp;noupdate=yes');}" onmousewheel="return imgzoom(this);">" : "<img src="$attachurl/$attach[attachment]" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='$language[attach_img_zoom]';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(!this.resized) {return false;} else {window.open('".addslashes("$attachurl/$attach[attachment]")."');}" onmousewheel="return imgzoom(this);" alt="" />");
  47.                 } else {
  48.                         $replacement .= "<a href="member.php?action=credits&view=getattach" title="$language[attach_credits_policy]" target="_blank">$language[attach]</a>: ".
  49.                                         ($attach['description'] ? "[{$attach[description]}]" : '').
  50.                                         " <a href="attachment.php?aid=$attach[aid]" target="_blank" class="bold">$attach[filename]</a> ($attach[dateline], $attach[attachsize])<br><span class="smalltxt">$language[attach_download_count] $attach[downloads]".
  51.                                         ($attach['readperm'] ? ", $language[attach_readperm] $attach[readperm]" : '').
  52.                                         "</span><br>";
  53.                 }

  54.                 return $replacement;
  55.         } else {
  56.                 return '<strike>[attach]'.$aid.'[/attach]</strike>';
  57.         }
  58. }

  59. function censor($message) {
  60.         global $_DCACHE;
  61.         require_once(DISCUZ_ROOT.'/forumdata/cache/cache_censor.php');

  62.         if($_DCACHE['censor']['banned'] && preg_match($_DCACHE['censor']['banned'], $message)) {
  63.                 showmessage('word_banned');
  64.         } else {
  65.                 return empty($_DCACHE['censor']['filter']) ? $message :
  66.                         @preg_replace($_DCACHE['censor']['filter']['find'], $_DCACHE['censor']['filter']['replace'], $message);
  67.         }
  68. }

  69. function censormod($message) {
  70.         global $_DCACHE;
  71.         require_once(DISCUZ_ROOT.'/forumdata/cache/cache_censor.php');
  72.         return $_DCACHE['censor']['mod'] && preg_match($_DCACHE['censor']['mod'], $message);
  73. }

  74. function creditshide($creditsrequire, $message) {
  75.         global $language;
  76.         include_once language('misc');

  77.         if($GLOBALS['credits'] < $creditsrequire && !$GLOBALS['forum']['ismoderator']) {
  78.                 return '<b>'.eval("return "$language[post_hide_credits_hidden]";").'</b>';
  79.         } else {
  80.                 return '<b>'.eval("return "$language[post_hide_credits]";").'</b><br>'.
  81.                         '==============================<br><br>'.
  82.                         str_replace('\"', '"', $message).'<br><br>'.
  83.                         '==============================';
  84.         }
  85. }

  86. function codedisp($code) {
  87.         global $discuzcodes;
  88.         $discuzcodes['pcodecount']++;
  89.         $code = htmlspecialchars(str_replace('\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
  90.         $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = "<br><br><div class="smalltxt" style="margin-left: 2em; margin-right: 2em; font-weight: bold"><div style="float: left">CODE:</div><div style="text-align: right; float: right"><a href="###" class="smalltxt" onclick="copycode(findobj('code$discuzcodes[codecount]'));">[Copy to clipboard]</a></div></div><div class="altbg2" style="margin: 2em; margin-top: 3px; clear: both; padding: 10px; padding-top: 5px; border: ".INNERBORDERWIDTH."px solid ".BORDERCOLOR."; word-break: break-all" id="code$discuzcodes[codecount]">$code</div>";
  91.         $discuzcodes['codecount']++;
  92.         return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
  93. }

  94. function karmaimg($rate, $ratetimes) {
  95.         $karmaimg = '';
  96.         if($rate && $ratetimes) {
  97.                 $image = $rate > 0 ? 'agree.gif' : 'disagree.gif';
  98.                 for($i = 0; $i < ceil(abs($rate) / $ratetimes); $i++) {
  99.                         $karmaimg .= '<img src="'.IMGDIR.'/'.$image.'" border="0" align="right" alt="" />';
  100.                 }
  101.         }
  102.         return $karmaimg;
  103. }

  104. function parseurl($message) {
  105.         return preg_match("/\[code\].+?\[\/code\]/is", $message) ? $message :
  106.                 substr(preg_replace(        array(
  107.                                                 "/(?<=[^\]a-z0-9-="'\\/])(http:\/\/[a-z0-9\/\-_+=.~!%@?#%&;:$\\()|]+\.(jpg|gif|png|bmp))/i",
  108.                                                 "/(?<=[^\]\)a-z0-9-="'\\/])((https?|ftp|gopher|news|telnet|rtsp|mms|callto):\/\/|www\.)([a-z0-9\/\-_+=.~!%@?#%&;:$\\()|]+)/i",
  109.                                                 "/(?<=[^\]\)a-z0-9\/\-_.~?=:.])([_a-z0-9-+]+(\.[_a-z0-9-+]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4}))/i"
  110.                                         ), array(
  111.                                                 "[img]\\1[/img]",
  112.                                                 "[url]\\1\\3[/url]",
  113.                                                 "[email]\\0[/email]"
  114.                                         ), ' '.$message), 1);
  115. }

  116. function parsetable($width, $message) {
  117.         $width = substr($width, -1) == '%' ? (substr($width, 0, -1) <= 98 ? $width : '98%') : ($width <= 560 ? $width : '560');
  118.         return '<table cellspacing="1" cellpadding="4" '.
  119.                 ($width == '' ? NULL : 'width="'.$width.'" ').
  120.                 'align="center" style="background: '.INNERBORDERCOLOR.';border: '.BORDERWIDTH.'px solid '.BORDERCOLOR.';">'.
  121.                 str_replace(array('[tr]', '[td]', '[/td]', '[/tr]', '\"'), array('<tr>', '<td style="background: '.ALTBG2.';font: '.FONTSIZE.' '.FONT.';">', '</td>', '</tr>', '"'), preg_replace("/\[td=(\d{1,2}),(\d{1,2})(,(\d{1,3}%?))?\]/is", '<td colspan="\\1" rowspan="\\2" width="\\4" style="background: '.ALTBG2.';font: '.FONTSIZE.' '.FONT.';">', $message)).
  122.                 '</table>';
  123. }

  124. function discuzcode($message, $smileyoff, $bbcodeoff, $htmlon = 0, $allowsmilies = 1, $allowbbcode = 1, $allowimgcode = 1, $allowhtml = 0, $jammer = 0, $parsetype = '0', $authorid = '0') {
  125.         global $discuzcodes, $credits, $tid, $discuz_uid, $highlight, $maxsmilies, $db, $tablepre;


  126.         if($parsetype != 1 && !$bbcodeoff && $allowbbcode) {
  127.                 $message = preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/ies", "codedisp('\\1')", $message);
  128.         }

  129.         if(!$htmlon && !$allowhtml) {
  130.                 $message = $jammer ? preg_replace("/\r\n|\n|\r/e", "jammer()", dhtmlspecialchars($message)) : dhtmlspecialchars($message);
  131.         }

  132.         if(!$smileyoff && $allowsmilies && !empty($GLOBALS['_DCACHE']['smilies']) && is_array($GLOBALS['_DCACHE']['smilies'])) {
  133.                 $message = preg_replace($GLOBALS['_DCACHE']['smilies']['searcharray'], $GLOBALS['_DCACHE']['smilies']['replacearray'], $message, $maxsmilies);
  134.         }

  135.         if(!$bbcodeoff && $allowbbcode) {

  136.                 if(empty($discuzcodes['searcharray'])) {
  137.                         $discuzcodes['searcharray']['bbcode_regexp'] = array(
  138.                                 "/\[url\]\s*(www.|https?:\/\/|ftp:\/\/|gopher:\/\/|news:\/\/|telnet:\/\/|rtsp:\/\/|mms:\/\/|callto:\/\/|ed2k:\/\/){1}([^\["']+?)\s*\[\/url\]/ie",
  139.                                 "/\[url=www.([^\["']+?)\](.+?)\[\/url\]/is",
  140.                                 "/\[url=(https?|ftp|gopher|news|telnet|rtsp|mms|callto|ed2k){1}:\/\/([^\["']+?)\](.+?)\[\/url\]/is",
  141.                                 "/\[email\]\s*([a-z0-9\-_.+]+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+)\s*\[\/email\]/i",
  142.                                 "/\[email=([a-z0-9\-_.+]+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+)\](.+?)\[\/email\]/is",
  143.                                 "/\[color=([^\[\<]+?)\]/i",
  144.                                 "/\[size=([^\[\<]+?)\]/i",
  145.                                 "/\[font=([^\[\<]+?)\]/i",
  146.                                 "/\[align=([^\[\<]+?)\]/i"
  147.                         );
  148.                         $discuzcodes['replacearray']['bbcode_regexp'] = array(
  149.                                 "cuturl('\\1\\2')",
  150.                                 "<a href="http://www.\\1" target="_blank">\\2</a>",
  151.                                 "<a href="\\1://\\2" target="_blank">\\3</a>",
  152.                                 "<a href="mailto:\\1@\\2">\\1@\\2</a>",
  153.                                 "<a href="mailto:\\1@\\2">\\3</a>",
  154.                                 "<font color="\\1">",
  155.                                 "<font size="\\1">",
  156.                                 "<font face="\\1">",
  157.                                 "<p align="\\1">"
  158.                         );

  159.                         $discuzcodes['searcharray']['bbcode_regexp'][] = "/\s*\[table(=(\d{1,3}%?))?\][\n\r]*(.+?)[\n\r]*\[\/table\]\s*/ies";
  160.                         $discuzcodes['replacearray']['bbcode_regexp'][] = "parsetable('\\2', '\\3')";

  161.                         if($parsetype != 1) {
  162.                                 $discuzcodes['searcharray']['bbcode_regexp'][] = "/\s*\[quote\][\n\r]*(.+?)[\n\r]*\[\/quote\]\s*/is";
  163.                                 $discuzcodes['searcharray']['bbcode_regexp'][] = "/\s*\[free\][\n\r]*(.+?)[\n\r]*\[\/free\]\s*/is";
  164.                                 $discuzcodes['replacearray']['bbcode_regexp'][] = "<br><br><div class="smalltxt" style="margin-left: 2em; font-weight: bold">QUOTE:</div><div class="altbg2 msgborder">\\1</div>";
  165.                                 $discuzcodes['replacearray']['bbcode_regexp'][] = "<br><br><div class="smalltxt" style="margin-left: 2em; font-weight: bold">FREE:</div><div class="altbg2 msgborder">\\1</div>";
  166.                         }

  167.                         $discuzcodes['searcharray']['bbcode_regexp'] = array_merge($discuzcodes['searcharray']['bbcode_regexp'], $discuzcodes['searcharray']['bbcode_regexp']);
  168.                         $discuzcodes['replacearray']['bbcode_regexp'] = array_merge($discuzcodes['replacearray']['bbcode_regexp'], $discuzcodes['replacearray']['bbcode_regexp']);

  169.                         $discuzcodes['searcharray']['bbcode_str'] = array(
  170.                                 '[/color]', '[/size]', '[/font]', '[/align]', '[b]', '[/b]',
  171.                                 '[i]', '[/i]', '[u]', '[/u]', '[list]', '[list=1]', '[list=a]',
  172.                                 '[list=A]', '[*]', '[/list]', '[indent]', '[/indent]'
  173.                         );

  174.                         $discuzcodes['replacearray']['bbcode_str'] = array(
  175.                                 '</font>', '</font>', '</font>', '</p>', '<b>', '</b>', '<i>',
  176.                                 '</i>', '<u>', '</u>', '<ul>', '<ol type=1>', '<ol type=a>',
  177.                                 '<ol type=A>', '<li>', '</ul></ol>', '<blockquote>', '</blockquote>'
  178.                         );
  179.                 }

  180.                 if($parsetype != 1) {
  181.                         $discuzcodes['searcharray']['bbcode_regexp'][100] = "/\[payto\]\s*\(seller\)(.*)\(\/seller\)\s*(\(subject\)(.*)\(\/subject\))?\s*(\(body\)(.*)\(\/body\))?\s*(\(gross\)(.*)\(\/gross\))?\s*(\(price\)(.*)\(\/price\))?\s*(\(url\)(.*)\(\/url\))?\s*(\(type\)(.*)\(\/type\))?\s*(\(transport\)(.*)\(\/transport\))?\s*(\(ordinary_fee\)(.*)\(\/ordinary_fee\))?\s*(\(express_fee\)(.*)\(\/express_fee\))?\s*\[\/payto\]/iesU";
  182.                         $discuzcodes['replacearray']['bbcode_regexp'][100] = "payto('\\1',array('subject'=>'\\3','body'=>'\\5','price'=>'\\7','price'=>'\\9','url'=>'\\11','type'=>'\\13','transport'=>'\\15','ordinary_fee'=>'\\17','express_fee'=>'\\19','authorid'=>'$authorid'))";
  183.                 }

  184.                 @$message = str_replace($discuzcodes['searcharray']['bbcode_str'], $discuzcodes['replacearray']['bbcode_str'],
  185.                                 preg_replace(
  186.                                         ($parsetype != 1 && $allowbbcode == 2 && $GLOBALS['_DCACHE']['bbcodes'] ? array_merge($discuzcodes['searcharray']['bbcode_regexp'], $GLOBALS['_DCACHE']['bbcodes']['searcharray']) : $discuzcodes['searcharray']['bbcode_regexp']),
  187.                                         ($parsetype != 1 && $allowbbcode == 2 && $GLOBALS['_DCACHE']['bbcodes'] ? array_merge($discuzcodes['replacearray']['bbcode_regexp'], $GLOBALS['_DCACHE']['bbcodes']['replacearray']) : $discuzcodes['replacearray']['bbcode_regexp']),
  188.                                         $message));

  189.                 if(!in_array($parsetype, array(1, 2)) && preg_match("/\[hide=?\d*\].+?\[\/hide\]/is", $message)) {
  190.                         if(stristr($message, '[hide]')) {
  191.                                 global $language;
  192.                                 include_once language('misc');

  193.                                 $query = $db->query("SELECT pid FROM {$tablepre}posts WHERE tid='$tid' AND authorid='$discuz_uid' LIMIT 1");
  194.                                 if($GLOBALS['forum']['ismoderator'] || $db->result($query, 0)) {
  195.                                         $message = preg_replace("/\[hide\]\s*(.+?)\s*\[\/hide\]/is",
  196.                                                 '<span class="bold">'.$language['post_hide_reply'].'</span><br>'.
  197.                                                 '==============================<br><br>'.
  198.                                                 '\\1<br><br>'.
  199.                                                 '==============================',
  200.                                                 $message);
  201.                                 } else {
  202.                                         $message = preg_replace("/\[hide\](.+?)\[\/hide\]/is", '<b>'.$language['post_hide_reply_hidden'].'</b>', $message);
  203.                                 }
  204.                         }
  205.                         $message = preg_replace("/\[hide=(\d+)\]\s*(.+?)\s*\[\/hide\]/ies", "creditshide(\\1,'\\2')", $message);
  206.                 }
  207.         }

  208.         if(!$bbcodeoff) {
  209.                 if(empty($discuzcodes['searcharray']['imgcode'])) {
  210.                         $discuzcodes['searcharray']['imgcode'] = array(
  211.                                 "/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/ies",
  212.                                 "/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
  213.                                 "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies"
  214.                         );

  215.                         $discuzcodes['replacearray']['imgcode'] = $allowimgcode ? array(
  216.                                 "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')",
  217.                                 "bbcodeurl('\\1', '<img src="%s" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'%s\');}" onmousewheel="return imgzoom(this);" alt="" />')",
  218.                                 "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0" alt="" />')"
  219.                         ) : array(
  220.                                 "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle" alt="" /> <a href="%s" target="_blank">Flash: %s</a> ')",
  221.                                 "bbcodeurl('\\1', '<a href="%s" target="_blank">%s</a>')",
  222.                                 "bbcodeurl('\\3', '<a href="%s" target="_blank">%s</a>')"
  223.                         );
  224.                 }
  225.                 $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
  226.         }

  227.         for($i = 0; $i <= $discuzcodes['pcodecount']; $i++) {
  228.                 $message = str_replace("[\tDISCUZ_CODE_$i\t]", $discuzcodes['codehtml'][$i], $message);
  229.         }

  230.         if($highlight) {
  231.                 foreach(explode('+', $highlight) as $ret) {
  232.                         if($ret) {
  233.                                 $message = preg_replace("/(?<=[\s"\]>()]|[\x7f-\xff]|^)(".preg_quote($ret, '/').")(([.,:;-?!()\s"<\[]|[\x7f-\xff]|$))/siU", "<u><b><font color="#FF0000">\\1</font></b></u>\\2", $message);
  234.                         }
  235.                 }
  236.         }

  237.         return ($htmlon || $allowhtml) && $parsetype != 1 ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('&nbsp; &nbsp; &nbsp; &nbsp; ', '&nbsp; &nbsp;', '&nbsp;&nbsp;'), $message));
  238. }

  239. function cuturl($url) {
  240.         $length = 65;
  241.         $urllink = "<a href="".(substr(strtolower($url), 0, 4) == 'www.' ? "http://$url" : $url).'" target="_blank">';
  242.         if(strlen($url) > $length) {
  243.                 $url = substr($url, 0, intval($length * 0.5)).' ... '.substr($url, - intval($length * 0.3));
  244.         }
  245.         $urllink .= $url.'</a>';
  246.         return $urllink;
  247. }

  248. function bbcodeurl($url, $tags) {
  249.         if(!preg_match("/<.+?>/s", $url)) {
  250.                 if(!in_array(strtolower(substr($url, 0, 6)), array('http:/', 'ftp://', 'rtsp:/', 'mms://'))) {
  251.                         $url = 'http://'.$url;
  252.                 }
  253.                 return str_replace(array('submit', 'logging.php'), array('', ''), sprintf($tags, $url, addslashes($url)));
  254.         } else {
  255.                 return '&nbsp;'.$url;
  256.         }
  257. }

  258. function jammer() {
  259.         $randomstr = '';
  260.         for($i = 0; $i < mt_rand(5, 15); $i++) {
  261.                 $randomstr .= chr(mt_rand(1, 59)).chr(mt_rand(63, 126));
  262.         }
  263.         if($GLOBALS['thisbg'] == 'altbg1') {
  264.                 $thisbg = ALTBG1;
  265.         } elseif($GLOBALS['thisbg'] == 'altbg2') {
  266.                 $thisbg = ALTBG2;
  267.         } else {
  268.                 $thisbg = $GLOBALS['thisbg'];
  269.         }
  270.         return mt_rand(0, 1) ? '<font style="font-size:0px;color:'.$thisbg.'">'.$GLOBALS['discuzcodes']['seoarray'][mt_rand(0, 5)].$randomstr.'</font>'."\r\n" :
  271.                 "\r\n".'<span style="display:none">'.$randomstr.$GLOBALS['discuzcodes']['seoarray'][mt_rand(0, 5)].'</span>';
  272. }

  273. ?>
复制代码
回复

使用道具 举报

玩命的鱼 发表于 2006-8-11 11:40:48 | 显示全部楼层
顶一下,等待中……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-27 02:46 , Processed in 0.109593 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表