include "configuration.inc";
$current = "3.0b5";
$win32_current = "3.0b5";
$filesizes["php-3.0b5.tar.gz"]="~ 850KB";
$filesizes["php-3.0b5-win32.zip"]="~ 660KB";
$DL_ONLY=0;
$FULL_MIRROR=1;
$mirror_sites = array(
"http://ca.php.net/" => array("canada", "Toronto, Canada",$FULL_MIRROR),
"http://il.php.net/" => array("israel", "Netvision, Israel",$FULL_MIRROR),
"ftp://il.php.net/php/distributions/" => array("israel", "Netvision, Israel", $DL_ONLY),
"http://machba.il.php.net/" => array("israel", "Technion, Israel",$FULL_MIRROR),
"http://no.php.net/" => array("norway", "Trondheim, Norway",$FULL_MIRROR),
"ftp://no.php.net/pub/free/php/dist/" => array("norway", "Trondheim, Norway",$DL_ONLY),
"http://uk.php.net/" => array("uk", "Norwich, United Kingdom",$FULL_MIRROR),
"ftp://uk.php.net/" => array("uk","Norwich, United Kingdom",$DL_ONLY),
"http://www.php.net/" => array("usa", "Circle Net, United States",$FULL_MIRROR),
"ftp://ftp.php.net/pub/distributions/" => array("usa", "Circle Net, United States",$DL_ONLY),
"http://www.caraveo.com/php" => array("usa", "Caraveo.com",$DL_ONLY)
);
function download_link($file, $title) {
global $filesizes;
if ($tmp = strrchr($file, "/")) {
$local_file = substr($tmp, 1, strlen($tmp));
} else {
$file = "distributions/$file";
$local_file = $file;
}
echo("$title");
$size = filesize($local_file)/1024;
echo("\n");
if ($size) {
printf(" (%dKB)", $size);
} elseif (isset($filesizes[$local_file])) {
echo " (".$filesizes[$local_file].")";
}
}
function top_button($name, $alt, $href) {
global $js, $root_url;
echo("\n \n");
}
function gifurl($img) {
global $root_url;
return $root_url . "gifs/" . $img;
}
function jpgurl($img) {
global $root_url;
return $root_url . "jpgs/" . $img;
}
function lynx_space_hack() {
global $lynx;
if (isset($lynx) && $lynx) {
echo " ";
}
}
if (!$root_url) { $root_url = "/"; }
if (!$glimpse_url) { $glimpse_url = ""; }
$lynx=0;
$js=0;
if(ereg("Mozilla/[4-6]",$HTTP_USER_AGENT)) {
if(!ereg("MSIE",$HTTP_USER_AGENT)) {
$js=1;
$bkg="back2.jpg";
}
}
if(ereg("Mozilla/3",$HTTP_USER_AGENT)) {
if(!ereg("MSIE",$HTTP_USER_AGENT)) {
$js=1;
$bkg="back_big.jpg";
}
}
if(ereg("Mozilla/[1-2]",$HTTP_USER_AGENT)) {
if(!ereg("MSIE",$HTTP_USER_AGENT)) {
$js=0;
$bkg="back_small.jpg";
}
}
if(ereg("MSIE",$HTTP_USER_AGENT)) {
if(ereg("Mozilla/[4-6]",$HTTP_USER_AGENT)) {
$js=1;
}
}
if(ereg("ynx",$HTTP_USER_AGENT)) { $lynx=1; }
if(!isset($title)) { $title="Welcome"; }
if(!isset($bkg)) { $bkg="back2.jpg"; }
?>
}
if (!isset($head_closed)) {
echo("");
}
?>
| PHP3 |
|
|