Show incremental difference of selected versions of SP1Build050311 - Release Notes.
file info- category(Tag)
- root
- file name
- Plugin_Package_SP1Build050311_-_Notes
- last update
- 2005-03-12 01:55
- type
- Plain Text
- editor
- Loveapple
- description
- SP1Build050311 - Release Notes
- language
- English
- translate
--- /tmp/DOCMAN2UWPnmx 2024-05-30 15:42:24.147261390 +0900
+++ /tmp/DOCMAN2x770tB 2024-05-30 15:42:24.147261390 +0900
@@ -1,131 +1,6 @@
-<?php
-
-/*
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: [DISCUZ!] Crossday Discuz! Board ::
- :: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com) ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: Author: Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
- :: Version: 2.5F 2004/10/01 05:15 ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: Japanese Hacks: loveapple ::
- :: Version: 2.5F 2005/03/12 ::
- :: Website: http://loveapple.atso-net.jp/discuz ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-*/
-//fix: BY pk0909
-/*
-1
-2
-3
-4
-*/
-/*
-loveapple
-1.
-2.
-3.
-4.
-*/
-
-error_reporting(E_ERROR | E_WARNING | E_PARSE);
-
-
-$enabled = 0; // what's new 1= 0=
-
-$num = 10; //
-
-$num_max = 50; //
-
-$length = 50; //
-
-$pre = '<li>'; //
-
-$cache_expire = 1800; // ()
-
-$filter_hide = 1; //
-$filter_password = 1; //
-$filter_viewperm = 1; //
-
-
-$enabled ? define('IN_DISCUZ', TRUE) : exit("document.write(\"Access denied. If you'd like to display new threads in html pages,<br>please switch \$enabled to \\"1\\" in whatsnew.php and try again.\");");
-
-$timestamp = time();
-$PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
-$boardurl = 'http://'.$_SERVER['HTTP_HOST'].substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
-
-$fidin = addslashes(trim($_GET['fidin']));
-$fidout = addslashes(trim($_GET['fidout']));
-$num_get = $_GET['num'] ? intval($_GET['num']) : 0;
-$num = $num_get ? ($num_get > $num_max ? $num_max : $num_get) : $num;
-
-if($timestamp % 3 == 1 && @$dir = dir('./forumdata/')) {
- while($entry = $dir->read()) {
- if(preg_match("/whatsnew_[0-9a-f]{32}\.php/", $entry) && ($timestamp-filemtime("./forumdata/".$entry)) > $cache_expire) {
- @unlink('./forumdata/'.$entry);
- }
- }
- $dir->close();
-}
-
-$cachefile = './forumdata/whatsnew_'.md5("$fidin $fidout $num").'.php';
-
-if(@!include($cachefile)) {
-
- require './config.php';
- require './include/db_'.$database.'.php';
-
- $db = new dbstuff;
- $db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
- $db->select_db($dbname);
- unset($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
-
- if(@!$fp = fopen($cachefile, 'wb')) {
- exit("document.write(\"Unable to write to whatsnew's cache file!<br>Please chmod ./forumdata to 777, delete all<br>\\"whatsnew_xxx.php\\" files and try again.\");");
- }
-
- fwrite($fp, "<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
");
-
- $pre = addslashes($pre);
- $fidin = $fidin ? ' AND t.fid IN (\''.str_replace('_', '\',\'', $fidin).'\')' : '';
- $fidout = $fidout ? ' AND t.fid NOT IN (\''.str_replace('_', '\',\'', $fidout).'\')' : '';
-
- $forumfilter = $fidin || $fidout ? $fidin.$fidout : '';
- $sql_1 = $filter_hide ? "AND f.status='1'" : '';
- $sql_2 = $filter_password ? "AND f.password=''" : '';
- $sql_3 = $filter_viewperm ? "AND f.viewperm=''" : '';
-
- $query = $db->query("SELECT t.subject, t.tid, t.closed, t.lastpost FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid=f.fid $sql_1 $sql_2 $sql_3 $forumfilter ORDER BY t.lastpost DESC LIMIT $num");
- while($threads = $db->fetch_array($query)) {
- if($thread['closed'] > 2) {
- $thread['tid'] = $thread['closed'];
- }
- $threads['subject'] = cutstr($threads['subject'], $length);
- $row = "document.write(\"<a href=$boardurl/viewthread.php?tid=$threads[tid] target=_blank>$pre$threads[subject]</a><br>\");
";
- fwrite($fp, $row);
- echo $row;
- }
-
- fclose($fp);
-
-}
-
-function cutstr($string, $length) {
-
- if(strlen($string) > $length) {
- for($i = 0; $i < $length - 3; $i++) {
- if(ord($string[$i]) > 127) {
- $wordscut .= $string[$i].$string[$i + 1];
- $i++;
- } else {
- $wordscut .= $string[$i];
- }
- }
- return $wordscut.' ...';
- }
- return $string;
-
-}
-
-?>
-
+311Free Discuz! 2.5 sp1 Build050311
+whatsnew.php
+
+
+
+(UTF-8)
| |