cvs: phpweb / README.mirror /include layout.inc site.inc

From: Date: Fri, 16 Mar 2001 01:10:15 +0000
Subject: cvs: phpweb / README.mirror /include layout.inc site.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4493@lists.php.net to get a copy of this message
jimw Thu Mar 15 17:10:15 2001 EDT Modified files: /phpweb README.mirror /phpweb/include layout.inc site.inc Log: use flag to indicate local stats support

Index: phpweb/README.mirror diff -u phpweb/README.mirror:1.38 phpweb/README.mirror:1.39 --- phpweb/README.mirror:1.38 Thu Mar 8 13:18:30 2001 +++ phpweb/README.mirror Thu Mar 15 17:10:15 2001 @@ -40,6 +40,8 @@ ErrorDocument 404 /error/ ErrorDocument 401 /error/ ErrorDocument 403 /error/ + # next line is only necessary if generating stats (see stats/README.stats) + Alias /stats/ /path/to/local/stats </VirtualHost> modified to reflect your local paths and country, of course, then your site @@ -74,6 +76,9 @@ - Whether or not you've installed local searching support on your mirror. This uses ht://Dig (http://www.htdig.org), for which instructions for setting it up can be found in Mirrors-htdig.tgz +- Whether or not you've installed local stats support on your mirror. + This uses webalizer, for which instructions for setting it up + can be found in stats/README.stats - The name of your hosting company. - The URL of the site that hosts the mirror. This is where you want people will go when they click on the link for your mirror at the Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.25 phpweb/include/layout.inc:1.26 --- phpweb/include/layout.inc:1.25 Thu Mar 15 16:53:12 2001 +++ phpweb/include/layout.inc Thu Mar 15 17:10:15 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.25 2001/03/16 00:53:12 jimw Exp $ */ +/* $Id: layout.inc,v 1.26 2001/03/16 01:10:15 jimw Exp $ */ # spacer() @@ -288,7 +288,7 @@ # function commonFooter() { - global $SCRIPT_NAME,$MIRRORS,$MYSITE,$COUNTRIES,$LAST_UPDATED,$DOCUMENT_ROOT,$enclosed; + global $SCRIPT_NAME,$MIRRORS,$MYSITE,$COUNTRIES,$LAST_UPDATED,$enclosed; if ($enclosed) { echo "</td></tr></table></td></tr></table>\n"; } @@ -316,7 +316,7 @@ echo delim(); print_link('/credits.php', 'credits', false, 'class="small"'); echo delim(); - if (file_exists("$DOCUMENT_ROOT/stats/index.php")): + if ($MIRRORS[$MYSITE][2]): print_link('/stats/', 'stats', false, 'class="small"'); echo delim(); endif; Index: phpweb/include/site.inc diff -u phpweb/include/site.inc:1.172 phpweb/include/site.inc:1.173 --- phpweb/include/site.inc:1.172 Thu Mar 15 16:44:55 2001 +++ phpweb/include/site.inc Thu Mar 15 17:10:15 2001 @@ -2,7 +2,7 @@ /* Structure of MIRRORS array: 0 "country code", 1 "Mirror Name", - 2 "not used", + 2 flag for whetehr local stats work (1) or not (0) on this mirror 3 "url for hosting company", 4 flag for whether site is a full mirror (1) or just a download site (0), or just a placeholder (2), 5 flag for whether search engine works (1) or not (0) on the site @@ -10,69 +10,69 @@ */ $MIRRORS = array( - "http://au.php.net/" => array("au", "Planet Mirror", "", "http://www.planetmirror.com/", 1, 0, "en"), - "http://au2.php.net/" => array("au", "Flinders University of South Australia", "", "http://www.nisu.flinders.edu.au/", 1, 0, "en"), - "http://at.php.net/" => array("at", "Goodie Domain Service", "", "http://gd.tuwien.ac.at/", 1, 0, "de"), - "http://br.php.net/" => array("br", "SST Internet", "", "http://www.sst.com.br/", 1, 0, "pt_BR"), - "http://br2.php.net/" => array("br", "Lune Networks", "", "http://www.lunenetworks.com.br/", 1, 0, "pt_BR"), - "http://bg.php.net/" => array("bg", "Bulgaria Online", "", "http://online.bg/", 1, 0, "en"), - "http://ca.php.net/" => array("ca", "easyDNS", "", "http://www.easydns.com/", 1, 0, "en"), -# "http://ca2.php.net/" => array("ca", "CanReg.com", "", "http://www.canreg.com/", 1, 1, "en"), - "http://cn.php.net/" => array("cn", "China GNU/Linux Forum", "", "http://www.linuxforum.net/", 1, 0, "zh"), - "http://cz.php.net/" => array("cz", "InWay, a.s.", "", "http://www.inway.cz", 1, 0, "cs"), -# "http://hk.php.net/" => array("hk", "TraLand.com", "", "http://www.traland.com", 1, 0, "en"), - "http://dk.php.net/" => array("dk", "B&oslash;rsen Online", "", "http://www.borsen.dk/", 1, 0, "da"), - "http://fi.php.net/" => array("fi", "NIC Finland", "", "http://www.nic.fi/", 1, 0, "fi"), - "http://fi2.php.net/" => array("fi", "IMG-Multimedia", "", "http://www.img-media.com/", 1, 0, "fi"), - "http://fr.php.net/" => array("fr", "L'Universit&eacute; Michel de Montaigne Bordeaux III","", "http://www-recherche.montaigne.u-bordeaux.fr/", 1, 0, "fr"), - "http://php3.globe.de/" => array("de", "@GLOBE GmbH", "", "http://www.globe.de/", 1, 0, "de"), - "http://php3.de/" => array("de", "Schlund + Partner", "", "http://admin.schlund.de/s+p/count.phtml?BName=logo-schlund.gif&BLocation=(www.php3.de)&url=www.schlund.de", 1, 1, "de"), - "http://hu.php.net/" => array("hu", "Externet", "", "http://www.externet.hu/", 1, 0, "hu"), - "http://ie.php.net/" => array("ie", "Esat Net", "", "http://www.esat.net/", 1, 0, "en"), - "http://php.fmal.com/" => array("it", "Open Technology Consulting", "", "http://otc.fmal.com/", 1, 0, "it"), - "http://it2.php.net/" => array("it", "Utility Line Italia S.r.l.", "", "http://www.uli.it/", 1, 0, "it"), - "http://it3.php.net/" => array("it", "Italia OnLine", "", "http://www.iol.it/", 1, 0, "it"), - "http://jp.php.net/" => array("jp", "HappySize, Inc.", "", "http://jp.gigahit.com/", 1, 1, "ja"), - "http://jp2.php.net/" => array("jp", "Hitachi Business International, Ltd.", "", "http://mirrors.hbi.co.jp/", 1, 1, "ja"), - "http://kr.php.net/" => array("kr", "HolyNet", "", "http://www.holywar.net/", 1, 1, "kr"), -# "http://li.php.net/" => array("li", "Lie-Comtel AG", "", "http://www.lie-comtel.li", 1, 0, "de"), - "http://mx.php.net/" => array("mx", "Urbano.com.mx", "", "http://web.urbano.com.mx/?in=php", 1, 0, "es"), - "http://nl.php.net/" => array("nl", "WEBtic Internet Consultancy", "", "http://www.webtic.com/", 1, 0, "nl"), - "http://php.nederland.net/" => array("nl", "Nederland.net", "", "http://www.nederland.net/", 1, 0, "nl"), - "ftp://ftp.nederland.net/pub/php/" => array("nl", "Nederland.net", "", "http://www.nederland.net/", 0, 0, "nl"), - "http://nz.php.net/" => array("nz", "EXPIO Communications", "", "http://www.expio.co.nz/", 1, 0, "en"), - "http://php.guardian.no/" => array("no", "Guardian Networks AS", "", "http://www.guardian.no/", 0, 0, "no"), - "http://no.php.net/" => array("no", "Fast Search &amp; Transfer ASA", "", "http://www.fast.no/", 1, 0, "no"), - "http://ph.php.net/" => array("ph", "Ateneo de Zamboanga", "", "http://www.adzu.edu.ph", 1, 0, "en"), - "http://pl.php.net/" => array("pl", "TGR", "", "http://www.tgr.com.pl/", 1, 0, "pl"), -# "http://pl2.php.net/" => array("pl", "Soft4All", "", "http://www.soft4all.pl", 1, 0, "pl"), - "http://pt.php.net/" => array("pt", "Telenet", "", "http://www.telenet.pt/", 1, 1, "pt"), - "http://pt2.php.net/" => array("pt", "SONET", "", "http://www.sonet.pt/", 1, 0, "pt"), - "ftp://ftp.utt.ro/mirrors/php3/" => array("ro", "University of Timisoara","", "http://www.utt.ro/", 0, 0, "ro"), - "http://ru.php.net/" => array("ru", "Direct Internet", "", "http://www.dn.ru/", 1, 0, "ru"), - "http://sg.php.net/" => array("sg", "Hwa Chong Junior College", "", "http://www.hjc.edu.sg/", 1, 0, "en"), - "http://sk.php.net/" => array("sk", "Isternet SR", "", "http://www.isternet.sk/", 1, 0, "sk"), - "http://za.php.net/" => array("za", "CSIR Mikomtek", "", "http://www.mikom.csir.co.za/", 1, 0, "en"), - "http://se.php.net/" => array("se", "Chalmers Lindholmen", "", "http://www.chl.chalmers.se/", 1, 1, "se"), - "http://se2.php.net/" => array("se", "Burken.NU", "", "http://www.burken.nu/", 1, 0, "en"), - "http://ch.php.net/" => array("ch", "Laboratoire de Bases de Donn&eacute;es", "", "http://lbdwww.epfl.ch/", 1, 1, "en"), -# "http://th.php.net/" => array("th", "", "", "", 1, 0, "th"), - "http://tw.php.net/" => array("tw", "DW", "", "http://www.dw.com.tw", 1, 0, "en"), - "http://tr.php.net/" => array("tr", "Bilkent Sunsite", "", "http://sunsite.bilkent.edu.tr/", 1, 0, "tr"), - "http://tr2.php.net/" => array("tr", "proGEN Internet ve Bilisim Teknolojileri", "", "http://www.progen.com.tr/", 1, 1, "tr"), - "http://ua.php.net/" => array("ua", "PACOnet", "", "http://www.paco.net.ua/", 1, 0, "uk"), - "ftp://ua.php.net/" => array("ua", "PACOnet", "", "http://www.paco.net.ua/", 0, 0, "uk"), - "http://ua2.php.net/" => array("ua", "New Damage/Outline", "", "http://www2.newdamage.com/", 1, 0, "uk"), - "http://uk.php.net/" => array("uk", "Norwich", "", "http://www.netcom.co.uk/", 1, 1, "en"), - "ftp://uk.php.net/" => array("uk", "Norwich", "", "http://www.netcom.co.uk/", 0, 0, "en"), - "http://uk2.php.net/" => array("uk", "On-Line PLC", "", "http://www.on-line.co.uk/", 1, 0, "en"), - "http://www.php.net/" => array("us", "chek.com", "", "http://www.chek.com/", 1, 1, "en"), - "http://us.php.net/" => array("us", "Circle Net", "", "http://BestHost.net/", 1, 0, "en"), - "http://us4.php.net/" => array("us", "Adgrafix", "", "http://www.adgrafix.com/info/hkind", 1, 0, "en"), - "http://bugs.php.net/" => array("us", "chek.com", "", "http://www.chek.com/", 2, 1, "en"), - "http://php.he.net/" => array("us", "Hurricane Electric", "", "http://he.net/", 1, 0, "en"), - "http://news.php.net/" => array("us", "VA Linux", "", "http://www.valinux.com/", 2, 1, "en"), - "" => array("xx", "Unknown", "", "/", 2, 0, "en") + "http://au.php.net/" => array("au", "Planet Mirror", 0, "http://www.planetmirror.com/", 1, 0, "en"), + "http://au2.php.net/" => array("au", "Flinders University of South Australia", 0, "http://www.nisu.flinders.edu.au/", 1, 0, "en"), + "http://at.php.net/" => array("at", "Goodie Domain Service", 0, "http://gd.tuwien.ac.at/", 1, 0, "de"), + "http://br.php.net/" => array("br", "SST Internet", 0, "http://www.sst.com.br/", 1, 0, "pt_BR"), + "http://br2.php.net/" => array("br", "Lune Networks", 0, "http://www.lunenetworks.com.br/", 1, 0, "pt_BR"), + "http://bg.php.net/" => array("bg", "Bulgaria Online", 0, "http://online.bg/", 1, 0, "en"), + "http://ca.php.net/" => array("ca", "easyDNS", 0, "http://www.easydns.com/", 1, 0, "en"), +# "http://ca2.php.net/" => array("ca", "CanReg.com", 0, "http://www.canreg.com/", 1, 1, "en"), + "http://cn.php.net/" => array("cn", "China GNU/Linux Forum", 0, "http://www.linuxforum.net/", 1, 0, "zh"), + "http://cz.php.net/" => array("cz", "InWay, a.s.", 0, "http://www.inway.cz", 1, 0, "cs"), +# "http://hk.php.net/" => array("hk", "TraLand.com", 0, "http://www.traland.com", 1, 0, "en"), + "http://dk.php.net/" => array("dk", "B&oslash;rsen Online", 0, "http://www.borsen.dk/", 1, 0, "da"), + "http://fi.php.net/" => array("fi", "NIC Finland", 0, "http://www.nic.fi/", 1, 0, "fi"), + "http://fi2.php.net/" => array("fi", "IMG-Multimedia", 0, "http://www.img-media.com/", 1, 0, "fi"), + "http://fr.php.net/" => array("fr", "L'Universit&eacute; Michel de Montaigne Bordeaux III",0, "http://www-recherche.montaigne.u-bordeaux.fr/", 1, 0, "fr"), + "http://php3.globe.de/" => array("de", "@GLOBE GmbH", 0, "http://www.globe.de/", 1, 0, "de"), + "http://php3.de/" => array("de", "Schlund + Partner", 0, "http://admin.schlund.de/s+p/count.phtml?BName=logo-schlund.gif&BLocation=(www.php3.de)&url=www.schlund.de", 1, 1, "de"), + "http://hu.php.net/" => array("hu", "Externet", 0, "http://www.externet.hu/", 1, 0, "hu"), + "http://ie.php.net/" => array("ie", "Esat Net", 0, "http://www.esat.net/", 1, 0, "en"), + "http://php.fmal.com/" => array("it", "Open Technology Consulting", 0, "http://otc.fmal.com/", 1, 0, "it"), + "http://it2.php.net/" => array("it", "Utility Line Italia S.r.l.", 0, "http://www.uli.it/", 1, 0, "it"), + "http://it3.php.net/" => array("it", "Italia OnLine", 0, "http://www.iol.it/", 1, 0, "it"), + "http://jp.php.net/" => array("jp", "HappySize, Inc.", 0, "http://jp.gigahit.com/", 1, 1, "ja"), + "http://jp2.php.net/" => array("jp", "Hitachi Business International, Ltd.", 0, "http://mirrors.hbi.co.jp/", 1, 1, "ja"), + "http://kr.php.net/" => array("kr", "HolyNet", 0, "http://www.holywar.net/", 1, 1, "kr"), +# "http://li.php.net/" => array("li", "Lie-Comtel AG", 0, "http://www.lie-comtel.li", 1, 0, "de"), + "http://mx.php.net/" => array("mx", "Urbano.com.mx", 0, "http://web.urbano.com.mx/?in=php", 1, 0, "es"), + "http://nl.php.net/" => array("nl", "WEBtic Internet Consultancy", 0, "http://www.webtic.com/", 1, 0, "nl"), + "http://php.nederland.net/" => array("nl", "Nederland.net", 0, "http://www.nederland.net/", 1, 0, "nl"), + "ftp://ftp.nederland.net/pub/php/" => array("nl", "Nederland.net", 0, "http://www.nederland.net/", 0, 0, "nl"), + "http://nz.php.net/" => array("nz", "EXPIO Communications", 0, "http://www.expio.co.nz/", 1, 0, "en"), + "http://php.guardian.no/" => array("no", "Guardian Networks AS", 0, "http://www.guardian.no/", 0, 0, "no"), + "http://no.php.net/" => array("no", "Fast Search &amp; Transfer ASA", 0, "http://www.fast.no/", 1, 0, "no"), + "http://ph.php.net/" => array("ph", "Ateneo de Zamboanga", 0, "http://www.adzu.edu.ph", 1, 0, "en"), + "http://pl.php.net/" => array("pl", "TGR", 0, "http://www.tgr.com.pl/", 1, 0, "pl"), +# "http://pl2.php.net/" => array("pl", "Soft4All", 0, "http://www.soft4all.pl", 1, 0, "pl"), + "http://pt.php.net/" => array("pt", "Telenet", 0, "http://www.telenet.pt/", 1, 1, "pt"), + "http://pt2.php.net/" => array("pt", "SONET", 0, "http://www.sonet.pt/", 1, 0, "pt"), + "ftp://ftp.utt.ro/mirrors/php3/" => array("ro", "University of Timisoara",0, "http://www.utt.ro/", 0, 0, "ro"), + "http://ru.php.net/" => array("ru", "Direct Internet", 0, "http://www.dn.ru/", 1, 0, "ru"), + "http://sg.php.net/" => array("sg", "Hwa Chong Junior College", 0, "http://www.hjc.edu.sg/", 1, 0, "en"), + "http://sk.php.net/" => array("sk", "Isternet SR", 0, "http://www.isternet.sk/", 1, 0, "sk"), + "http://za.php.net/" => array("za", "CSIR Mikomtek", 0, "http://www.mikom.csir.co.za/", 1, 0, "en"), + "http://se.php.net/" => array("se", "Chalmers Lindholmen", 0, "http://www.chl.chalmers.se/", 1, 1, "se"), + "http://se2.php.net/" => array("se", "Burken.NU", 0, "http://www.burken.nu/", 1, 0, "en"), + "http://ch.php.net/" => array("ch", "Laboratoire de Bases de Donn&eacute;es", 0, "http://lbdwww.epfl.ch/", 1, 1, "en"), +# "http://th.php.net/" => array("th", "", 0, "", 1, 0, "th"), + "http://tw.php.net/" => array("tw", "DW", 0, "http://www.dw.com.tw", 1, 0, "en"), + "http://tr.php.net/" => array("tr", "Bilkent Sunsite", 0, "http://sunsite.bilkent.edu.tr/", 1, 0, "tr"), + "http://tr2.php.net/" => array("tr", "proGEN Internet ve Bilisim Teknolojileri", 0, "http://www.progen.com.tr/", 1, 1, "tr"), + "http://ua.php.net/" => array("ua", "PACOnet", 0, "http://www.paco.net.ua/", 1, 0, "uk"), + "ftp://ua.php.net/" => array("ua", "PACOnet", 0, "http://www.paco.net.ua/", 0, 0, "uk"), + "http://ua2.php.net/" => array("ua", "New Damage/Outline", 0, "http://www2.newdamage.com/", 1, 0, "uk"), + "http://uk.php.net/" => array("uk", "Norwich", 0, "http://www.netcom.co.uk/", 1, 1, "en"), + "ftp://uk.php.net/" => array("uk", "Norwich", 0, "http://www.netcom.co.uk/", 0, 0, "en"), + "http://uk2.php.net/" => array("uk", "On-Line PLC", 0, "http://www.on-line.co.uk/", 1, 0, "en"), + "http://www.php.net/" => array("us", "chek.com", 1, "http://www.chek.com/", 1, 1, "en"), + "http://us.php.net/" => array("us", "Circle Net", 0, "http://BestHost.net/", 1, 0, "en"), + "http://us4.php.net/" => array("us", "Adgrafix", 0, "http://www.adgrafix.com/info/hkind", 1, 0, "en"), + "http://bugs.php.net/" => array("us", "chek.com", 0, "http://www.chek.com/", 2, 1, "en"), + "http://php.he.net/" => array("us", "Hurricane Electric", 0, "http://he.net/", 1, 0, "en"), + "http://news.php.net/" => array("us", "VA Linux", 0, "http://www.valinux.com/", 2, 1, "en"), + 0 => array("xx", "Unknown", 0, "/", 2, 0, "en") ); $COUNTRIES = array(
« previous php.mirrors (#4493) next »