cvs: phpweb / credits.php sitewide.css
| From: | Gabor Hojtsy | Date: | Thu, 07 Aug 2003 11:12:44 +0000 |
| Subject: | cvs: phpweb / credits.php sitewide.css | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19867@lists.php.net to get a copy of this message | ||
goba Thu Aug 7 07:12:44 2003 EDT
Modified files:
/phpweb credits.php sitewide.css
Log:
Add credits page syles to the sitewide CSS rules, and move the credits
page to the new CSS based layout...
Index: phpweb/credits.php
diff -u phpweb/credits.php:1.7 phpweb/credits.php:1.8
--- phpweb/credits.php:1.7 Mon Jul 28 05:25:51 2003
+++ phpweb/credits.php Thu Aug 7 07:12:44 2003
@@ -1,34 +1,23 @@
<?php
-// $Id: credits.php,v 1.7 2003/07/28 09:25:51 goba Exp $
+// $Id: credits.php,v 1.8 2003/08/07 11:12:44 goba Exp $
$_SERVER['BASE_PAGE'] = 'credits.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
-// Output buffering supported
-if (function_exists('ob_start')) {
-
- // Put credits information to $credits
- ob_start();
- phpcredits();
- $credits = ob_get_contents();
- ob_end_clean();
+// Put credits information to $credits
+ob_start();
+phpcredits();
+$credits = ob_get_contents();
+ob_end_clean();
- // Strip all but the body
- preg_match('!<body.*?>(.*)</body>!ims', $credits, $m);
+// Strip all but the body and drop styles
+preg_match('!<body.*?>(.*)</body>!ims', $credits, $m);
+$credits = preg_replace('!<style.*?>.*</style>!ims', '', $m[1]);
- // Strip out any style
- $credits = preg_replace('!<style.*?>.*</style>!ims', '',
$m[1]);
-
- // If there is something left, print it out
- if ($credits) {
- commonHeader("Credits");
- echo $credits;
- commonFooter();
- }
-}
-
-// No output buffer support, standard credits page
-else {
- phpcredits();
+// If there is something left, print it out
+if ($credits) {
+ site_header("Credits");
+ echo $credits;
+ site_footer();
}
?>
Index: phpweb/sitewide.css
diff -u phpweb/sitewide.css:1.1 phpweb/sitewide.css:1.2
--- phpweb/sitewide.css:1.1 Thu Aug 7 05:29:44 2003
+++ phpweb/sitewide.css Thu Aug 7 07:12:44 2003
@@ -111,3 +111,22 @@
font-size: 75%;
text-decoration: none;
}
+
+/* Credits page styles ---------------------------------------------------- */
+.e {
+ background-color: #ccccff;
+ color: inherit;
+ font-weight: bold;
+}
+.h {
+ background-color: #9999cc;
+ color: inherit;
+ font-weight: bold;
+}
+.v, .vr {
+ background-color: #cccccc;
+ color: inherit;
+}
+.vr {
+ text-align: right;
+}