Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
diff -ru wwwcheck-0.41/init.inc.php wwwcheck-0.42/init.inc.php
--- wwwcheck-0.41/init.inc.php 2005-07-17 00:32:14.000000000 +0900
+++ wwwcheck-0.42/init.inc.php 2005-11-20 15:43:52.321995704 +0900
@@ -1,14 +1,14 @@
profile['category'], $categories );
- $this->profile['category'] = $num;
- $this->saveProperties();
- }
-}
-
-
-$conf =& Config::getInstance();
-$categories = $conf->get( 'categories' );
-if ( is_array( $categories ) ) {
- $categories = array_keys( $categories );
-}
-// $cate_file is defined in 'init.inc.php'.
-saveConfig( $cate_file, $categories );
-
-$reader =& Data::getReader( SAVE_HANDLE, $dummy = '' );
-$uris = $reader->getList();
-
-foreach ( $uris as $uri ) {
- $item =& new DebugItem( $uri );
- $item->convertCategory( $categories );
- unset( $item );
-}
-
-?>
diff -ru wwwcheck-0.41/misc/debug/reset_category.php wwwcheck-0.42/misc/debug/reset_category.php
--- wwwcheck-0.41/misc/debug/reset_category.php 2005-02-26 23:08:20.000000000 +0900
+++ wwwcheck-0.42/misc/debug/reset_category.php 2005-11-20 17:10:39.043453728 +0900
@@ -1,15 +1,7 @@
profile['category'] === (string)$id ) {
@@ -19,13 +11,17 @@
}
}
-$reader =& Data::getReader( SAVE_HANDLE, $dummy = '' );
-$uris = $reader->getList();
+function reset_category( $id )
+{
+ $reader =& Data::getReader( SAVE_HANDLE, $dummy = '' );
+ $uris = $reader->getList();
-foreach ( $uris as $uri ) {
- $item =& new DebugItem( $uri );
- $item->resetCategory( $id );
- unset( $item );
+ foreach ( $uris as $uri ) {
+ $item =& new DebugItem( $uri );
+ $item->resetCategory( $id );
+ unset( $item );
+ }
+ return TRUE;
}
?>
diff -ru wwwcheck-0.41/misc/debug/resetdiff.php wwwcheck-0.42/misc/debug/resetdiff.php
--- wwwcheck-0.41/misc/debug/resetdiff.php 2005-02-26 23:08:20.000000000 +0900
+++ wwwcheck-0.42/misc/debug/resetdiff.php 2005-11-20 16:02:52.547655056 +0900
@@ -1,16 +1,14 @@
log_file ) && is_readable( $this->log_file . ".1" ) )
@@ -22,15 +20,16 @@
}
}
-$reader =& Data::getReader( SAVE_HANDLE, $dummy = '' );
-$uris = $reader->getList();
+function reset_diff()
+{
+ $reader =& Data::getReader( SAVE_HANDLE, $dummy = '' );
+ $uris = $reader->getList();
-foreach ( $uris as $uri ) {
- $item =& new DebugItem( $uri );
- $item->resetDiff();
- unset( $item );
+ foreach ( $uris as $uri ) {
+ $item =& new DebugItem( $uri );
+ $item->resetDiff();
+ unset( $item );
+ }
}
-echo "終了しました。\n";
-
?>
diff -ru wwwcheck-0.41/view/parts_header.tpl.php wwwcheck-0.42/view/parts_header.tpl.php
--- wwwcheck-0.41/view/parts_header.tpl.php 2005-02-26 23:08:20.000000000 +0900
+++ wwwcheck-0.42/view/parts_header.tpl.php 2005-11-20 16:36:03.240023816 +0900
@@ -10,6 +10,7 @@
if ( ! is_file( SELF_DIR . $css ) ) {
$css = 'css/default.css';
}
+$css = dirname( $serv->get( 'SCRIPT_NAME' ) ) . '/' . $css;
header( 'Content-Type: text/html; charset=' . $page_enc );