1
0
mirror of https://github.com/php/web-php.git synced 2026-04-01 20:22:20 +02:00
Commit Graph

823 Commits

Author SHA1 Message Date
Gabor Hojtsy
f1dd4aaa39 Display local events in bold on the calendar page too
Also polish the display_event function and print out
the country information too about the event in brackets
2003-05-12 11:48:36 +00:00
Gabor Hojtsy
44c0612239 Get a bit closer to standards.
- use CSS instead of proprietary margin attributes
 - remove table height attribute, as it was nonsene
   (the table was much higher that it was specified anyway)
 - use CSS class instead of <font> which is not allowed
   to contain anything but inline elements

Tested these changes on my local mirror, it seems to be
perfect [identical display to current php.net] with
Mozilla and Konqueror
2003-05-12 11:14:18 +00:00
Derick Rethans
ff86f7db34 - Add Greek to the list of supported languages 2003-05-11 21:34:30 +00:00
Gabor Hojtsy
d9e8dfe2da Fix. [/me is dreaming about a staging server :((] 2003-05-08 17:38:02 +00:00
Gabor Hojtsy
e4e12beab3 Implement IP storage in cookie to help those
behind firewalls to get their real country now
[And also to let guys get Netherlands on their
laptops these days at Amsterdam ;)]

Also some tabs -> spaces
2003-05-08 16:04:06 +00:00
Jacques Marneweck
c935aa40f0 * Patched to really work with $_SERVER['HTTP_X_FORWARDED_FOR'] where the
user uses a proxy and that proxy goes via n+1 proxies on the way to
   one of the php.net mirrors.
 * We also ignore RFC 1918 IP addresses that are listed in
   $_SERVER['HTTP_X_FORWARDED_FOR'] seeing that indicates the user is
   on a private network.  Incase there are only RFC 1918 IP's in
   $_SERVER['HTTP_X_FORWARDED_FOR'] we use $_SERVER['REMOTE_ADDR']

Anyways I might have broken something I'll keep an eye on this before I
head to bed.  It's currently 02h10 GMT +0200 here.

--jm
2003-05-06 00:11:19 +00:00
Andrew Lindeman
b3012c5dae don't print a space either 2003-05-04 22:37:13 +00:00
Gabor Hojtsy
22e3644008 Use built in functions instead of user defined stuff.
Jome suggested this (from ip2nation). My test showed
that it does the same as our i2c_ip2number
2003-05-04 20:07:37 +00:00
Andrew Lindeman
5413c1f17a oops, I forgot to replace that while I was messing around with the code... 2003-05-04 16:10:51 +00:00
Andrew Lindeman
a817de3d63 My last commit didn't work, because there is no 'note' CSS class. Just convert <P> tags to <br>'s, to keep everything looking the same. 2003-05-04 15:36:44 +00:00
Andrew Lindeman
232b655517 as discussed with Goba, include all information on add-note.php, including a notice about copyrights. Since about-notes.php is extremely short and all information is now on add-note.php, don't display a link to it anymore. 2003-05-04 12:42:14 +00:00
Gabor Hojtsy
2bf7046b08 Remove geoip include file 2003-05-04 11:29:19 +00:00
Gabor Hojtsy
fc6bfedd98 Remove geoip code to decrease any confusion
that may arise. We are using ip-to-country
2003-05-04 11:27:51 +00:00
Gabor Hojtsy
98f70a5072 Let the mirror table code be defined at one place,
which honors the specialities of the two varations,
while handles the common things together
2003-05-04 11:22:13 +00:00
Andrew Lindeman
2a6ef74b1a code -> note -- what was I thinking :-/ 2003-05-03 21:37:42 +00:00
Andrew Lindeman
4566793f1a <p> tags in user notes really screw up the style of the page. Make sure these tags stay in the 'code' class 2003-05-03 21:36:30 +00:00
Gabor Hojtsy
76567d8150 Ups, only count active mirrors 2003-05-03 20:11:20 +00:00
Gabor Hojtsy
caeee06f85 Add a function to count mirrors in a given country 2003-05-03 20:07:23 +00:00
Gabor Hojtsy
14f886ad82 Let the country validity check at one place,
as we will need it more then once
2003-05-03 20:06:01 +00:00
Gabor Hojtsy
9ae10bf244 Jumpstart our new ip-to-country service by marking
events in the user's country with bold letters, right on
the frontpage

This implementation is expected to be cache friendly,
and separates user based content from usual content.
If the CSS output of user/css.php is cached, then we
need to add more aggressive non-cacheing headers.
2003-05-03 16:29:40 +00:00
Gabor Hojtsy
d701af95fb Fixing the URL shortcut simlulations 2003-05-03 15:59:06 +00:00
Gabor Hojtsy
499c949b76 Add a header_nocache() function instead of repeaing
the same headers on all pages where this is needed
2003-05-03 15:49:18 +00:00
Gabor Hojtsy
06f9980889 Let's have a var, named $COUNTRY which identifies
the user's country (much like what $LANG 'does' for
the language)
2003-05-03 15:33:16 +00:00
Sara Golemon
09b6cda9e4 Some mirrors (us2 for example) run PHP versions prior to 4.2 which do not allow ommitting the maxlen parameter from fgets() 2003-05-02 23:28:34 +00:00
Gabor Hojtsy
f0ac4a2f3d Apply E_ALL fixes provided by Hans Zaunere
with slight modifications

Also remove all whitespace at the end of lines

Use !empty() instead of isset() in sidebar checking,
so it will work if the variable is set, but empty
2003-05-02 20:56:38 +00:00
Gabor Hojtsy
701059352b Let the ip-to-country code be part of the site 2003-05-02 20:05:46 +00:00
Gabor Hojtsy
94552ceeaf Drop out a few spaces, and simulate cookie
setting for the first time the cookie is set
2003-05-02 20:05:09 +00:00
Gabor Hojtsy
a3e05de054 Add first ip-to-country code for testing.
Also add testing code to the sitemap (which
is not a publicly linked page, so can be used for
testing I assume)
2003-05-02 13:59:19 +00:00
Gabor Hojtsy
698a7304f9 $page_creation_start should be global
for this measuring to work...
2003-05-01 13:11:11 +00:00
Gabor Hojtsy
683f853079 Add getmicrotime() and measure page creation
time from prepend.inc to commonFooter()

Remove ending ?> from files for header() safety
reasons
2003-05-01 12:17:54 +00:00
Gabor Hojtsy
e64aa2afa4 No need for the MIRROR_ constants, as
they are always defined in mirrors.inc

Also remove the ending ?> for header() safety
reasons
2003-05-01 11:49:26 +00:00
Gabor Hojtsy
a03f593a6c Remove the <url-minder-ignore> tags
as the company is no more operational,
and anyway, these tags were ugly...

Also as there were only to /udmcomments,
and no opening ones, try to consolidate them.
=> adding the header and footer inside
udmcomments, so those won't be indexed
in the  new mnogosearch experiment (on pl.php.net)
2003-04-26 16:17:57 +00:00
Gabor Hojtsy
13848b8956 Move my.php.net to the right side, it does not
make sense between documentation and faq,
which are closely related
2003-04-26 14:10:10 +00:00
Gabor Hojtsy
2ff6abd555 Adding some space before the user notes 2003-04-25 17:49:58 +00:00
Andrew Lindeman
9fb0d7c305 fix image reference 2003-04-25 00:15:13 +00:00
Andrew Lindeman
0e91e93722 add my php.net to the menu 2003-04-24 23:58:11 +00:00
Gabor Hojtsy
46b8602758 Prevent any funny guys from stealing our links... 2003-04-23 16:51:52 +00:00
Gabor Hojtsy
d3be9d1174 Provide a base URL for relative PHP.net links on the search page
[and only on the search page], so when someone uses remote searching,
he can get back to the original mirror with any relative link on the
page.
2003-04-23 16:50:59 +00:00
Gabor Hojtsy
a400604e0f Applying a better solution for the problem,
preconfiguring page details in the already
existing page configuration array, and using
the information from there in the new XSL
sheets => results in slightly smaller PHP files
2003-04-21 19:27:16 +00:00
Gabor Hojtsy
ec8c8e6152 Let the XSL sheets be happy with different parameter
order (this code can be removed if XSL sheets are used
exclusively for phpweb file generation)
2003-04-21 19:10:03 +00:00
Colin Viebrock
30845c7e7c Sorry about the expose_php thing ... I didn't realize it made the guid
functions unavailable.

I'm replacing the logo with one that matches the one in phpinfo()
2003-04-02 16:00:09 +00:00
Gabor Hojtsy
dccdd610c8 Serving the phpnet_logo from a permanent file, and not a PHP parameter,
which can be turned off...
2003-04-02 15:14:15 +00:00
Colin Viebrock
37ac98750a perma-fix 2003-04-02 00:06:55 +00:00
Colin Viebrock
38b3fe234d forgot to do this sooner ... 2003-04-01 18:55:42 +00:00
Gabor Hojtsy
4da75f0885 Really remember last used language :) And do not override the user setting
with it. What if I would like to see the Hungarian version of a page on time,
and I still want to use English as my default language ;)
2003-03-15 12:56:28 +00:00
Jacques Marneweck
d51d0eecd0 * Forgot to make $base a global.
--jm
2003-03-15 00:42:46 +00:00
Jacques Marneweck
0d49b94b26 * This is a quick fix for submitting a new search when you are on
ch.php.net and you have $base set from the mirror site you are using
   prior to redirection. (BUG #22706).

--jm
2003-03-14 20:49:56 +00:00
Derick Rethans
b48781f249 s/\t/\ \ \ \ /g 2003-03-14 09:40:32 +00:00
Derick Rethans
c58d7e533b - Remember the last selected language from the langchooser on every
manual page.
2003-03-14 09:39:15 +00:00
Gabor Hojtsy
197589449a Typo, thanks to Mitja for pointing it out... 2003-03-13 17:43:14 +00:00