cvs: phpweb /include site.inc

From: Date: Thu, 01 May 2003 11:49:27 +0000
Subject: cvs: phpweb /include site.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17175@lists.php.net to get a copy of this message
goba Thu May 1 07:49:27 2003 EDT Modified files: /phpweb/include site.inc Log: No need for the MIRROR_ constants, as they are always defined in mirrors.inc Also remove the ending ?> for header() safety reasons Index: phpweb/include/site.inc diff -u phpweb/include/site.inc:1.242 phpweb/include/site.inc:1.243 --- phpweb/include/site.inc:1.242 Thu Mar 6 13:05:54 2003 +++ phpweb/include/site.inc Thu May 1 07:49:26 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: site.inc,v 1.242 2003/03/06 18:05:54 goba Exp $ +// $Id: site.inc,v 1.243 2003/05/01 11:49:26 goba Exp $ // Define $MIRRORS array, and some constants include_once 'mirrors.inc'; @@ -90,22 +90,6 @@ return $MIRRORS[$site][3]; } -// Define mirror type and status constants -// if they are not already defined (BC) -if (!defined("MIRROR_STANDARD")) { - - define('MIRROR_DOWNLOAD', 0); - define('MIRROR_STANDARD', 1); - define('MIRROR_SPECIAL', 2); - define('MIRROR_VIRTUAL', 3); - - define('MIRROR_OK', 0); - define('MIRROR_NOTACTIVE', 1); - define('MIRROR_OUTDATED', 2); - define('MIRROR_DOESNOTWORK', 3); - -} - // Returns the current (or specified) // mirror site's type (use the constants!) function mirror_type($site = FALSE) @@ -185,5 +169,3 @@ if (isset($_SERVER['MIRROR_STATS'])) { $MIRRORS[$MYSITE][2] = TRUE; } - -?>

« previous php.mirrors (#17175) next »