1
0
mirror of https://github.com/php/web-php.git synced 2026-04-01 20:22:20 +02:00
Files
archived-web-php/user/css.php
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

13 lines
313 B
PHP

<?php
/* $Id$ */
include_once "prepend.inc";
// The output of this page should not be cached
header_nocache();
// If we have a valid country, output a CSS rule
// marking the events in the user's country specially
if (!empty($COUNTRY) && $COUNTRY != "NA") {
echo ".event_$COUNTRY { font-weight: bold; }";
}