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.42/init.inc.php wwwcheck-0.43/init.inc.php --- wwwcheck-0.42/init.inc.php 2005-11-20 15:43:52.000000000 +0900 +++ wwwcheck-0.43/init.inc.php 2006-05-03 21:51:05.772692952 +0900 @@ -1,7 +1,7 @@ = 0 ) ? $last_modified - : is_file( $this->log_file ) && is_readable( $this->log_file ) + : is_file( $this->log_file ) && is_readable( $this->log_file ) ? filemtime( $this->log_file ) : time(); } @@ -194,7 +194,7 @@ function getTitle( $html ) { - return preg_match( '/(.+?)<\/title\s*>/is', $html, $arr ) + return preg_match( '/(.+?)<\/title\s*>/is', $html, $arr ) ? $arr[1] : $this->check_uri; } diff -ru wwwcheck-0.42/update.php wwwcheck-0.43/update.php --- wwwcheck-0.42/update.php 2005-07-09 11:34:43.000000000 +0900 +++ wwwcheck-0.43/update.php 2006-05-03 21:50:09.402262560 +0900 @@ -27,7 +27,7 @@ $uris = array(); $sapi = $serv->get( 'DOCUMENT_ROOT' ) ? PHP_SAPI : 'cli'; -// HTML for Apache DSO or CGI version +// HTML for Apache DSO or CGI version if ( $sapi !== 'cli' ) { // require HTTP authentication with PHP if ( ! $conf->isAuth() ) { @@ -115,7 +115,7 @@ foreach ( $uris as $uri ) { // execute php cli by popen() - $c = $php . ' ' . SELF_DIR . 'check.php ' . ++$count . ' ' . $uri; + $c = $php . ' ' . SELF_DIR . 'check.php ' . ++$count . ' ' . escapeshellarg( $uri ); $p = popen( $c, 'r' ); if ( $p === FALSE ) { echo "could not execute popen. command : " . $c . "\n";