mirror of
https://github.com/php/web-php.git
synced 2026-04-01 20:22:20 +02:00
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.
13 lines
313 B
PHP
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; }";
|
|
} |