summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CREDITS7
-rw-r--r--account.php2
-rw-r--r--admin.php12
-rw-r--r--cron.php2
-rw-r--r--error.php2
-rw-r--r--export2
-rw-r--r--includes/ban.inc2
-rw-r--r--includes/comment.inc4
-rw-r--r--includes/common.inc2
-rw-r--r--includes/database.inc2
-rw-r--r--includes/function.inc2
-rw-r--r--includes/hostname.conf2
-rw-r--r--includes/locale.inc2
-rw-r--r--includes/module.inc2
-rw-r--r--includes/search.inc2
-rw-r--r--includes/section.inc2
-rw-r--r--includes/story.inc2
-rw-r--r--includes/theme.inc2
-rw-r--r--includes/timer.inc2
-rw-r--r--includes/user.inc2
-rw-r--r--includes/watchdog.inc2
-rw-r--r--index.php2
-rw-r--r--module.php2
-rw-r--r--modules/account.module4
-rw-r--r--modules/affiliate-site.module4
-rw-r--r--modules/backend.class4
-rw-r--r--modules/ban.module4
-rw-r--r--modules/block.module4
-rw-r--r--modules/block/block.module4
-rw-r--r--modules/box.module4
-rw-r--r--modules/calendar.class2
-rw-r--r--modules/calendar.module2
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
-rw-r--r--modules/cron.module4
-rw-r--r--modules/diary.module4
-rw-r--r--modules/documentation.module6
-rw-r--r--modules/drupal-site.module2
-rw-r--r--modules/drupal.module2
-rw-r--r--modules/drupal/drupal.module2
-rw-r--r--modules/faq.module2
-rw-r--r--modules/headline.module6
-rw-r--r--modules/locale.module4
-rw-r--r--modules/locale/locale.module4
-rw-r--r--modules/module.module4
-rw-r--r--modules/rating.module4
-rw-r--r--modules/section.module4
-rw-r--r--modules/story.module4
-rw-r--r--modules/story/story.module4
-rw-r--r--modules/submission.module2
-rw-r--r--modules/watchdog.module4
-rw-r--r--modules/watchdog/watchdog.module4
-rw-r--r--modules/wishlist.module4
-rw-r--r--search.php2
-rw-r--r--story.php2
-rw-r--r--submit.php2
-rw-r--r--themes/marvin/marvin.theme19
-rw-r--r--themes/unconed/unconed.theme2
58 files changed, 99 insertions, 97 deletions
diff --git a/CREDITS b/CREDITS
index be4a9dabd..f4798bfd9 100644
--- a/CREDITS
+++ b/CREDITS
@@ -4,7 +4,7 @@ Dries Buytaert <dries@drop.org>
- project architect
Jeroen Bensch <jeroen@drop.org>
- - themes and images
+ - themes and documentation
Steven Wittens <unconed@drop.org>
- themes and images
@@ -13,4 +13,7 @@ Kjartan Mannes <natrak@drop.org>
- hosting, hardware, bandwidth
Michael O'Henly <michael@tenzo.com>
- - documentation revisions
+ - documentation improvements
+
+David Norman <norny@yahoo.com>
+ - code improvements
diff --git a/account.php b/account.php
index dd9e5f1a0..a2668074b 100644
--- a/account.php
+++ b/account.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/admin.php b/admin.php
index 8b0826d70..cd5f0b8ad 100644
--- a/admin.php
+++ b/admin.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
@@ -17,7 +17,7 @@ function admin_page($mod) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
- <HEAD><TITLE><? echo $site_name; ?> administration</TITLE></HEAD>
+ <HEAD><TITLE><?php echo $site_name; ?> administration</TITLE></HEAD>
<STYLE>
body { font-family: helvetica, arial; }
h1 { font-size: 18pt; font-weight: bold; color: #990000; }
@@ -28,21 +28,21 @@ function admin_page($mod) {
</STYLE>
<BODY BGCOLOR="#FFFFFF" LINK="#005599" VLINK="#004499" ALINK="#FF0000">
<H1>Administration</H1>
- <?
+ <?php
ksort($repository);
module_iterate("module");
?>
- <HR><? echo $menu; ?><A HREF="">home</A><HR>
- <?
+ <HR><?php echo $menu; ?><A HREF="">home</A><HR>
+ <?php
if (user_access($user, $mod)) module_execute($mod, "admin");
?>
</BODY>
</HTML>
- <?
+ <?php
}
admin_page($mod);
diff --git a/cron.php b/cron.php
index 9b3eb831d..33114768b 100644
--- a/cron.php
+++ b/cron.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/error.php b/error.php
index 9f7fd08d3..180f16475 100644
--- a/error.php
+++ b/error.php
@@ -1,4 +1,4 @@
-<?
+<?php
function error_flood() {
global $site_email;
diff --git a/export b/export
index 071b87501..bf3b62ff1 100644
--- a/export
+++ b/export
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/includes/ban.inc b/includes/ban.inc
index e1b05fc1d..64d2cc434 100644
--- a/includes/ban.inc
+++ b/includes/ban.inc
@@ -1,4 +1,4 @@
-<?
+<?php
$type2index = array("addresses" => 0x01,
"profanity" => 0x02,
diff --git a/includes/comment.inc b/includes/comment.inc
index 744ab0f9b..c4587b124 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -1,4 +1,4 @@
-<?
+<?php
// Security check:
if (strstr($id, " ") || strstr($pid, " ") || strstr($lid, " ") || strstr($mode, " ") || strstr($order, " ") || strstr($threshold, " ")) {
@@ -238,7 +238,7 @@ function comment_visible($comment, $threshold = 0) {
function comment_uri($args = 0) {
global $link, $mod;
- if ($args) return ($mod) ? "module.php?mod=$mod&$args" : $link .".php?$args";
+ if ($args) return ($mod) ? "module.php?mod=$mod&$args" : $link .".php ?$args";
else return ($mod) ? "module.php?mod=$mod" : $link .".php";
}
diff --git a/includes/common.inc b/includes/common.inc
index 046f6a1cf..25fa725aa 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function conf_init() {
global $HTTP_HOST, $REQUEST_URI;
diff --git a/includes/database.inc b/includes/database.inc
index 3be870775..a9c073b3a 100644
--- a/includes/database.inc
+++ b/includes/database.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function db_connect($host, $user, $pass, $name) {
mysql_pconnect($host, $user, $pass) or die(mysql_Error());
diff --git a/includes/function.inc b/includes/function.inc
index 1b206c500..076bb6c7c 100644
--- a/includes/function.inc
+++ b/includes/function.inc
@@ -1,4 +1,4 @@
-<?
+<?php
$na = "<I>na</I>";
diff --git a/includes/hostname.conf b/includes/hostname.conf
index 19cd94b0f..57d5f574c 100644
--- a/includes/hostname.conf
+++ b/includes/hostname.conf
@@ -1,4 +1,4 @@
-<?
+<?php
#
# Database settings:
diff --git a/includes/locale.inc b/includes/locale.inc
index c295d23f4..873ee8606 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function locale_init() {
global $languages, $user;
diff --git a/includes/module.inc b/includes/module.inc
index a4f6c005d..e7a513273 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function module_iterate($function, $argument = "") {
global $repository;
diff --git a/includes/search.inc b/includes/search.inc
index f80636665..78ec7ed8e 100644
--- a/includes/search.inc
+++ b/includes/search.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function search_form($keys) {
global $REQUEST_URI;
diff --git a/includes/section.inc b/includes/section.inc
index def72400f..c816818d4 100644
--- a/includes/section.inc
+++ b/includes/section.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function section_get() {
$array = array();
diff --git a/includes/story.inc b/includes/story.inc
index 5d99505d6..dff58a4a1 100644
--- a/includes/story.inc
+++ b/includes/story.inc
@@ -1,4 +1,4 @@
-<?
+<?php
class Story {
function Story($userid, $subject, $abstract, $article, $section, $timestamp) {
diff --git a/includes/theme.inc b/includes/theme.inc
index 26375f73f..09768abd8 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1,4 +1,4 @@
-<?
+<?php
function theme_init() {
global $user, $themes;
diff --git a/includes/timer.inc b/includes/timer.inc
index 39034a297..7e2e9d21a 100644
--- a/includes/timer.inc
+++ b/includes/timer.inc
@@ -1,4 +1,4 @@
-<?
+<?php
$timer = 0;
diff --git a/includes/user.inc b/includes/user.inc
index 0bb12d0ec..ad73efa8b 100644
--- a/includes/user.inc
+++ b/includes/user.inc
@@ -1,4 +1,4 @@
-<?
+<?php
class User {
function User($userid, $passwd = 0) {
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index c0d68ed37..4512be755 100644
--- a/includes/watchdog.inc
+++ b/includes/watchdog.inc
@@ -1,4 +1,4 @@
-<?
+<?php
$watchdog = array("comment" => array("0", $submission_rate["comment"]),
"diary" => array("1", $submission_rate["diary"]),
diff --git a/index.php b/index.php
index b6e8efc43..bd1d6e22c 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/module.php b/module.php
index f1cae971d..12e191a54 100644
--- a/module.php
+++ b/module.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
module_execute($mod, "page");
diff --git a/modules/account.module b/modules/account.module
index 9d428ee4f..9823e1585 100644
--- a/modules/account.module
+++ b/modules/account.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "account_help",
"find" => "account_find",
@@ -9,7 +9,7 @@ function account_help() {
<P>The account-module is responsible for maintaining the user database. It automatically handles tasks like registration, authentication, access rights, password retrieval, user settings and much more.</P>
<P>The required administration can be accomplished through the "account" interface of the administration section. From here administrators can get a quick overview of all registered users and view/edit specific accounts using the links provided. Some useful operations include blocking specific accounts (e.g. a troublesome user) and giving/taking administration permissions. Note that you should only give these permissions to people you trust!</P>
<P>Check the documentation page for detailed information about user management.</P>
- <?
+ <?php
}
function account_find($keys) {
diff --git a/modules/affiliate-site.module b/modules/affiliate-site.module
index 7b0181075..1f004d11c 100644
--- a/modules/affiliate-site.module
+++ b/modules/affiliate-site.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "affiliate_help",
"block" => "affiliate_block",
@@ -7,7 +7,7 @@ $module = array("help" => "affiliate_help",
function affiliate_help() {
?>
<P>This is a small module to manage related and/or affiliate sites. The module exports two different blocks with links to the affiliate sites.</P>
- <?
+ <?php
}
function affiliate_block() {
diff --git a/modules/backend.class b/modules/backend.class
index 03f4a5c0d..9e505f70e 100644
--- a/modules/backend.class
+++ b/modules/backend.class
@@ -1,4 +1,4 @@
-<?
+<?php
class backend {
// Channel properties:
@@ -68,7 +68,7 @@ class backend {
$result = db_query("DELETE FROM headlines WHERE id = '$this->id'");
// Strip all 'junk':
- $data = ereg_replace("<?xml.*/image>", "", $data);
+ $data = ereg_replace("<?phpxml.*/image>", "", $data);
$data = ereg_replace("</rdf.*", "", $data);
$data = chop($data);
diff --git a/modules/ban.module b/modules/ban.module
index 9e734b722..091cdd18c 100644
--- a/modules/ban.module
+++ b/modules/ban.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "ban_help",
"admin" => "ban_admin");
@@ -25,7 +25,7 @@ function ban_help() {
<LI>Email address bans <CODE>%@hotmail.com</CODE>, <CODE>%@altavista.%</CODE>, <CODE>%@usa.net</CODE>, etc. Used to prevent users from using free email accounts, which might be used to cause trouble.</LI>
<LI>Username bans <CODE>root</CODE>, <CODE>webmaster</CODE>, <CODE>admin%</CODE>, etc. Used to prevent administrator impersonators.</LI>
</UL>
- <?
+ <?php
}
function ban_admin_new($mask, $category, $reason) {
diff --git a/modules/block.module b/modules/block.module
index 3629ebb65..73b6b7f55 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "block_page",
"help" => "block_help",
@@ -10,7 +10,7 @@ function block_help() {
<P>The placement of blocks is delegated to the administrator. In most cases (i.e., the "custom" blocks), the user has complete control -- using preferences -- over whether or not they are enabled.</P>
<P>An administrator can lay out and arrange the available blocks to fit in two regions: "left" and "right". Regions simply contain blocks. In addition, an administrator can assign each block (within a region) a weight to sort them vertically. The heavier blocks will sink and the lighter blocks will be positioned nearer the top.</P>
<P>As mentioned, blocks may be arranged to fit in two regions: left and right. For theme builders, each region is identified by a corresponding constant: "left" and "right".</P>
- <?
+ <?php
}
function block_page() {
diff --git a/modules/block/block.module b/modules/block/block.module
index 3629ebb65..73b6b7f55 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "block_page",
"help" => "block_help",
@@ -10,7 +10,7 @@ function block_help() {
<P>The placement of blocks is delegated to the administrator. In most cases (i.e., the "custom" blocks), the user has complete control -- using preferences -- over whether or not they are enabled.</P>
<P>An administrator can lay out and arrange the available blocks to fit in two regions: "left" and "right". Regions simply contain blocks. In addition, an administrator can assign each block (within a region) a weight to sort them vertically. The heavier blocks will sink and the lighter blocks will be positioned nearer the top.</P>
<P>As mentioned, blocks may be arranged to fit in two regions: left and right. For theme builders, each region is identified by a corresponding constant: "left" and "right".</P>
- <?
+ <?php
}
function block_page() {
diff --git a/modules/box.module b/modules/box.module
index 78974979a..bfd8b3d3c 100644
--- a/modules/box.module
+++ b/modules/box.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "box_help",
"block" => "box_block",
@@ -31,7 +31,7 @@ function box_help() {
}
</PRE>
<P>For more in-depth examples, we recommend that you check the existing boxes and use them as a starting point.</P>
- <?
+ <?php
}
function box_block() {
diff --git a/modules/calendar.class b/modules/calendar.class
index 0c16001cc..194196962 100644
--- a/modules/calendar.class
+++ b/modules/calendar.class
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array();
diff --git a/modules/calendar.module b/modules/calendar.module
index fbceef7a0..145fc7de0 100644
--- a/modules/calendar.module
+++ b/modules/calendar.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("block" => "calendar_block");
diff --git a/modules/comment.module b/modules/comment.module
index 83a62df9e..cb86997b4 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("find" => "comment_find",
"admin" => "comment_admin");
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 83a62df9e..cb86997b4 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("find" => "comment_find",
"admin" => "comment_admin");
diff --git a/modules/cron.module b/modules/cron.module
index 05dbdb0eb..d316b0b39 100644
--- a/modules/cron.module
+++ b/modules/cron.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "cron_help",
"admin" => "cron_admin");
@@ -8,7 +8,7 @@ function cron_help() {
<P>Cron (which stands for chronograph) is a periodic command scheduler: it executes commands at intervals specified in seconds. It can be used to control the execution of daily, weekly and monthly jobs (or anything with a period of <i>n</i> seconds). Automating tasks is one of the best ways to keep a system running smoothly, and if most of your administration does not require your direct involvement, cron is an ideal solution.</P>
<P>Note that cron does not guarantee the commands will be executed at the specified interval. However, the engine will make sure that the commands are run as close to the specified intervals as possible.</P>
<P>Check the documentation page for more information about cron and how to setup it correctly.</P>
- <?
+ <?php
}
function cron_save($edit) {
diff --git a/modules/diary.module b/modules/diary.module
index 2e1cd7e7b..c573bf565 100644
--- a/modules/diary.module
+++ b/modules/diary.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("find" => "diary_find",
"help" => "diary_help",
@@ -217,7 +217,7 @@ function diary_page() {
function diary_help() {
?>
<P>Drupal's diary module allows registered users to maintain an online diary. It provides easy-to-write and easy-to-read online diaries or journals that can be filled with daily thoughts, poetry, boneless blabber, spiritual theories, intimate details, valuable experiences, cynical rants, semi-coherent comments, writing experiments, artistic babblings, critics on current facts, fresh insights, diverse dreams, chronicles and mumbling madness available for public consumption.</P>
- <?
+ <?php
}
function diary_user($username, $section, $operation) {
diff --git a/modules/documentation.module b/modules/documentation.module
index a149af49f..8c014e8f9 100644
--- a/modules/documentation.module
+++ b/modules/documentation.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "documentation",
"admin" => "documentation");
@@ -269,7 +269,7 @@ function documentation() {
<H1><A NAME="c4">Chapter 4: modules</A></H1>
- <?
+ <?php
module_iterate("documentation_module");
?>
@@ -342,6 +342,6 @@ function documentation() {
<P>3. <B>Describe your changes:</B><BR>Describe the technical detail of the change(s) your patch includes and try to be as specific as possible. Note that we prefer technical reasoning above marketing: give us clear reasons why "this way" is good. Justify your changes and try to carry enough weight. It is important to note the version to which this patch applies.</P>
<P>4. <B>Separate your changes:</B><BR>Separate each logical change into its own patch. For example, if your changes include both bug fixes and performance enhancements, separate those changes into two or more patches. If your changes include an API update, and a new module which uses that new API, separate those into two patches.</P>
<P>5. <B>Mail or submit the patch:</B><BR>Remember: no MIME, no HTML mail, no links, no compression, no attachments. Just plain text.</P>
- <?
+ <?php
}
?>
diff --git a/modules/drupal-site.module b/modules/drupal-site.module
index ba751935c..d4742b681 100644
--- a/modules/drupal-site.module
+++ b/modules/drupal-site.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("block" => "drupal_block",
"admin" => "drupal_admin");
diff --git a/modules/drupal.module b/modules/drupal.module
index dce787314..35d785247 100644
--- a/modules/drupal.module
+++ b/modules/drupal.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "drupal_page");
diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module
index dce787314..35d785247 100644
--- a/modules/drupal/drupal.module
+++ b/modules/drupal/drupal.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "drupal_page");
diff --git a/modules/faq.module b/modules/faq.module
index 283b8e563..88e59ed6e 100644
--- a/modules/faq.module
+++ b/modules/faq.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "faq_page",
"admin" => "faq_admin");
diff --git a/modules/headline.module b/modules/headline.module
index da9f71e45..f6b09fcae 100644
--- a/modules/headline.module
+++ b/modules/headline.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "headline_page",
"cron" => "headline_cron",
@@ -73,7 +73,7 @@ function headline_help() {
<P>A lot of news-oriented websites are now publishing news (headlines) and making their content available through XML, RSS and RDF backend files. They syndicate free content and allow retrieval and further transmission, aggregation, and online publication. In its current state, drupal's headline module supports RDF and RSS backends.</P>
<P>RSS was originally developed by Netscape to allow adding news channels to "My Netscape" sites, but it has since become adopted as the <I>de facto</I> net standard for distributing headlines and brief dynamic texts.</P>
<P>The headline module goes out to a list of configured news sites once an hour or so (driven by cron), downloads new RSS/RDF data and makes it available to your visitors. In addition, your headlines are exported as well and can be retrieved by other sites from <CODE>http://yourdomain.com/export/headlines.rdf</CODE>.</P>
- <?
+ <?php
}
function headline_block() {
@@ -189,7 +189,7 @@ function headline_export($uri) {
header("Content-Type: text/plain");
- print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
+ print "<?phpxml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
print "<rdf:RDF\n";
print " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n";
print " xmlns=\"http://my.netscape.com/rdf/simple/0.9/\">\n";
diff --git a/modules/locale.module b/modules/locale.module
index c96d9a0dc..da09f8fd6 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "locale_help",
"admin" => "locale_admin",
@@ -25,7 +25,7 @@ function locale_help() {
mysql> ALTER TABLE locales ADD nl TEXT DEFAULT '' NOT NULL;
mysql> ALTER TABLE locales ADD fr TEXT DEFAULT '' NOT NULL;
</PRE>
- <?
+ <?php
}
function locale_delete($id) {
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index c96d9a0dc..da09f8fd6 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "locale_help",
"admin" => "locale_admin",
@@ -25,7 +25,7 @@ function locale_help() {
mysql> ALTER TABLE locales ADD nl TEXT DEFAULT '' NOT NULL;
mysql> ALTER TABLE locales ADD fr TEXT DEFAULT '' NOT NULL;
</PRE>
- <?
+ <?php
}
function locale_delete($id) {
diff --git a/modules/module.module b/modules/module.module
index 4c32990f4..2ae3edb81 100644
--- a/modules/module.module
+++ b/modules/module.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "module_help",
"admin" => "module_admin");
@@ -6,7 +6,7 @@ $module = array("help" => "module_help",
function module_help() {
?>
The module administration page provide you a list of all available modules. Moreover, it allows you to "rehash" modules. Whenever you install a new module or when an existing module has been changed or updated, it requires "rehasing": when you rehash a module, the module is registered to the engine and properly initialized.
- <?
+ <?php
}
function module_admin_rehash() {
diff --git a/modules/rating.module b/modules/rating.module
index 4ea588c3b..e78af9313 100644
--- a/modules/rating.module
+++ b/modules/rating.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("cron" => "rating_cron",
"help" => "rating_help",
@@ -46,7 +46,7 @@ function rating_help() {
<P>The idea of (1) is that it favors comments that more people voted on, and thus whose rating is more likely to be accurate or justified.</P>
<P>The latter (2) makes the user rating that comes out of the calulations temporary, based on users' most recent activity and responsive to their current state. This is accomplished by taking each user's last 30 comments, or however many he or she posted in the last 60 days - whatever comes first.</P>
<P>Additionally, users that posted one or more succesful stories in the last 60 days gain extra bonus points which will boost up their overall rating.</P>
- <?
+ <?php
}
function rating_list($limit) {
diff --git a/modules/section.module b/modules/section.module
index 42ad6e4d5..fb84d7a96 100644
--- a/modules/section.module
+++ b/modules/section.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "section_help",
"block" => "section_block",
@@ -14,7 +14,7 @@ function section_help() {
?>
<P>When submitting new stories, every story is assigned a section or category. Sections can be maintained from the administration pages.</P>
<P>For moderation purpose, you can specify a post, dump and expiration thresholds for each available section according to type and urgency level of a section. This is useful considering the fact that some sections do not really "expire" and stay interesting and active as time passes by, whereas news-related stories are only considered "hot" over a short period of time.</P>
- <?
+ <?php
}
function section_block() {
diff --git a/modules/story.module b/modules/story.module
index 4cac81503..9b1dac8d8 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("cron" => "story_cron",
"help" => "story_help",
@@ -37,7 +37,7 @@ function story_help() {
<P>Queued stories: user-contributed stories are automatically whisked away to a submission queue for moderators (i.e. registered user) to frown at. Moderators vote whether or not a story should be posted to the front page for discussion.</P>
<P>Posted stories: published stories accessible to all visitors.</P>
<P>Dumped stories: rejected stories that are no longer available to visitors.</P>
- <?
+ <?php
}
function story_block() {
diff --git a/modules/story/story.module b/modules/story/story.module
index 4cac81503..9b1dac8d8 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("cron" => "story_cron",
"help" => "story_help",
@@ -37,7 +37,7 @@ function story_help() {
<P>Queued stories: user-contributed stories are automatically whisked away to a submission queue for moderators (i.e. registered user) to frown at. Moderators vote whether or not a story should be posted to the front page for discussion.</P>
<P>Posted stories: published stories accessible to all visitors.</P>
<P>Dumped stories: rejected stories that are no longer available to visitors.</P>
- <?
+ <?php
}
function story_block() {
diff --git a/modules/submission.module b/modules/submission.module
index 66da6b251..c1e02a761 100644
--- a/modules/submission.module
+++ b/modules/submission.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("menu" => "submission_menu",
"page" => "submission_page");
diff --git a/modules/watchdog.module b/modules/watchdog.module
index 13908e39d..0252d5105 100644
--- a/modules/watchdog.module
+++ b/modules/watchdog.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "watchdog_help",
"cron" => "watchdog_cron",
@@ -8,7 +8,7 @@ function watchdog_help() {
?>
<P>The watchdog module monitors your website, captures system events in a log and records them to be reviewed by an authorized individual at a later time. The watchdog log is simply a list of events recorded during operation and contains usage data, performance data, errors, warnings and operational information. It is vital to check the watchdog report on a regular basis as it is often the only way to tell what is going on.</P>
<P>To ease administration, the watchdog will automatically remove old logs.</P>
- <?
+ <?php
}
function watchdog_cron() {
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index 13908e39d..0252d5105 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("help" => "watchdog_help",
"cron" => "watchdog_cron",
@@ -8,7 +8,7 @@ function watchdog_help() {
?>
<P>The watchdog module monitors your website, captures system events in a log and records them to be reviewed by an authorized individual at a later time. The watchdog log is simply a list of events recorded during operation and contains usage data, performance data, errors, warnings and operational information. It is vital to check the watchdog report on a regular basis as it is often the only way to tell what is going on.</P>
<P>To ease administration, the watchdog will automatically remove old logs.</P>
- <?
+ <?php
}
function watchdog_cron() {
diff --git a/modules/wishlist.module b/modules/wishlist.module
index 8a35d9b1a..920e638fc 100644
--- a/modules/wishlist.module
+++ b/modules/wishlist.module
@@ -1,4 +1,4 @@
-<?
+<?php
$module = array("page" => "wishlist_page",
"help" => "wishlist_help");
@@ -60,7 +60,7 @@ function wishlist_page() {
<LI>create a theme with black background - darker theme</LI>
<LI>try to get existing themes HTML validated</LI>
</UL>
- <?
+ <?php
}
function wishlist_help() {
diff --git a/search.php b/search.php
index 56118f9d9..0ca1a2fff 100644
--- a/search.php
+++ b/search.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/story.php b/story.php
index 9d2f31151..018f70e7c 100644
--- a/story.php
+++ b/story.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
include_once "includes/story.inc";
diff --git a/submit.php b/submit.php
index 1c01b73d3..e4bd2b4da 100644
--- a/submit.php
+++ b/submit.php
@@ -1,4 +1,4 @@
-<?
+<?php
include_once "includes/common.inc";
diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme
index a20baedd2..2c6bc4b4b 100644
--- a/themes/marvin/marvin.theme
+++ b/themes/marvin/marvin.theme
@@ -1,4 +1,4 @@
-<?
+<?php
class Theme {
var $link = "#666699";
@@ -9,7 +9,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
- <TITLE><? print $site_name; ?></TITLE>
+ <TITLE><?php print $site_name; ?></TITLE>
</HEAD>
<STYLE type="text/css">
<!--
@@ -26,14 +26,14 @@
</TR>
<TR>
<TD ALIGN="right" COLSPAN="2">
- <?
+ <?php
print "<SMALL><A HREF=\"index.php\">". t("home") ."</A> | <A HREF=\"module.php?mod=faq\">". t("faq") ."</A> | <A HREF=\"module.php?mod=diary\">". t("diary") ."</A> | <A HREF=\"search.php\">". t("search") ."</A> | <A HREF=\"submit.php\">". t("submit news") ."</A> | <A HREF=\"account.php\">". t("user account") ."</A></SMALL>\n";
?>
</TD>
</TR>
<TR>
<TD VALIGN="top" WIDTH="85%">
- <?
+ <?php
}
function story($story, $reply = 0) {
@@ -44,7 +44,7 @@
print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
print " <TR>\n";
print " <TD>\n";
- print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><? if ($story->department) print "<BR>from the $story->department dept."; ?><? print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL>\n";
+ print " <FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><?php if ($story->department) print "<BR>from the $story->department dept."; ?><?php print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL>\n";
print " </TD>\n";
print " </TR>\n";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
@@ -64,7 +64,7 @@
print "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"2\" WIDTH=\"100%\">\n";
print " <TR><TD COLSPAN=\"2\"><IMG SRC=\"themes/marvin/images/drop.gif\" ALT=\"\"> &nbsp; <B>". check_output($story->subject) ."</B></TD></TR>\n";
print " <TR VALIGN=\"bottom\"><TD COLSPAN=\"2\" BGCOLOR=\"#000000\" WIDTH=\"100%\"><IMG SRC=\"themes/marvin/images/pixel.gif\" WIDTH=\"1\" HEIGHT=\"0\" ALT=\"\"></TD></TR>\n";
- print " <TR><TD><FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><? if ($story->department) print "<BR>from the $story->department dept."; ?><? print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"index.php?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL></TD></TR>\n";
+ print " <TR><TD><FONT COLOR=\"#7C7C7C\"><SMALL>". strtr(t("Submitted by %a on %b"), array("%a" => format_username($story->userid), "%b" => format_date($story->timestamp, "large"))); ?><?php if ($story->department) print "<BR>from the $story->department dept."; ?><?php print "</SMALL></FONT></TD><TD ALIGN=\"right\" VALIGN=\"top\" NOWRAP><SMALL><A HREF=\"index.php?section=". urlencode($story->section) ."\"><FONT COLOR=\"#83997A\">$story->section</FONT></A></SMALL></TD></TR>\n";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
print " <TR>\n";
print " <TD COLSPAN=\"2\">\n";
@@ -157,7 +157,7 @@
?>
</TD>
<TD VALIGN="top" WIDTH=\"200\">
- <?
+ <?php
theme_account($this);
theme_blocks("all", $this);
?>
@@ -165,16 +165,15 @@
</TR>
<TR>
<TD ALIGN="center" COLSPAN="3">
- <?
+ <?php
print "<SMALL>[ <A HREF=\"index.php\">". t("home") ."</A> | <A HREF=\"module.php?mod=faq\">". t("faq") ."</A> | <A HREF=\"module.php?mod=diary\">". t("diary") ."</A> | <A HREF=\"search.php\">". t("search") ."</A> | <A HREF=\"submit.php\">". t("submit news") ."</A> | <A HREF=\"account.php\">". t("user account") ."</A> ]</SMALL><P>\n";
?>
- <CENTER><SMALL><I><FONT COLOR="#7C7C7C">Powered by <A HREF="http://drop.org/module.php?mod=drupal">drupal</A>.</FONT></I></SMALL></CENTER>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
- <?
+ <?php
}
}
diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme
index a4a311387..262fe1dbf 100644
--- a/themes/unconed/unconed.theme
+++ b/themes/unconed/unconed.theme
@@ -1,4 +1,4 @@
-<?PHP
+<?php
class Theme {
var $link = "#000000";