cvs: phpweb /include layout.inc /user css.php

From: Date: Sat, 03 May 2003 16:29:40 +0000
Subject: cvs: phpweb /include layout.inc /user css.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17255@lists.php.net to get a copy of this message
goba Sat May 3 12:29:40 2003 EDT Added files: /phpweb/user css.php Modified files: /phpweb/include layout.inc Log: 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. Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.140 phpweb/include/layout.inc:1.141 --- phpweb/include/layout.inc:1.140 Fri May 2 16:56:38 2003 +++ phpweb/include/layout.inc Sat May 3 12:29:40 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: layout.inc,v 1.140 2003/05/02 20:56:38 goba Exp $ */ +/* $Id: layout.inc,v 1.141 2003/05/03 16:29:40 goba Exp $ */ // Print an image for a sized spacer function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false) @@ -203,6 +203,7 @@ <head> <title>PHP<?php if ($title) echo ": $title";?></title> <link rel="stylesheet" href="/style.css" /> + <link rel="stylesheet" href="/user/css.php" /> <link rel="shortcut icon" href="/favicon.ico" /> <?php echo (isset($SEARCH_BASE) ? '<base href="' . $SEARCH_BASE . '" />' : ''); ?> </head> Index: phpweb/user/css.php +++ phpweb/user/css.php <?php /* $Id: css.php,v 1.1 2003/05/03 16:29:40 goba Exp $ */ 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; }"; }

« previous php.mirrors (#17255) next »