Commit 864c18d4 authored by Kjartan's avatar Kjartan

- added the CVS keyword $Id$ to all files to make future version tracking

  easier. Also changed the <? tag to <?php in some cases.
parent a98d2a26
<?php <?php
// $Id$
include_once "includes/common.inc"; include_once "includes/common.inc";
...@@ -17,5 +18,5 @@ ...@@ -17,5 +18,5 @@
foreach (module_list() as $module) { foreach (module_list() as $module) {
module_invoke($module, "cron"); module_invoke($module, "cron");
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
include_once "includes/common.inc"; include_once "includes/common.inc";
...@@ -12,5 +13,5 @@ ...@@ -12,5 +13,5 @@
else { else {
drupal_goto("index.php"); drupal_goto("index.php");
} }
?> ?>
\ No newline at end of file
<? <?php
// $Id$
function conf_init() { function conf_init() {
global $HTTP_HOST, $REQUEST_URI; global $HTTP_HOST, $REQUEST_URI;
......
<?php <?php
// $Id$
# #
# Database settings: # Database settings:
...@@ -33,5 +34,5 @@ ...@@ -33,5 +34,5 @@
# but make sure your SQL table, called locales is updated # but make sure your SQL table, called locales is updated
# appropriately. # appropriately.
$languages = array("en" => "English"); $languages = array("en" => "English");
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
require_once 'DB.php'; require_once 'DB.php';
...@@ -62,5 +63,5 @@ function db_error($result) { ...@@ -62,5 +63,5 @@ function db_error($result) {
return 0; return 0;
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
// initialize modules: // initialize modules:
function module_init() { function module_init() {
...@@ -89,5 +90,5 @@ function module_rehash($name) { ...@@ -89,5 +90,5 @@ function module_rehash($name) {
db_query("DELETE FROM blocks WHERE module = '$name'"); db_query("DELETE FROM blocks WHERE module = '$name'");
} }
} }
?> ?>
<?php <?php
// $Id$
class BaseTheme { class BaseTheme {
...@@ -161,5 +162,5 @@ function theme_moderation_results(&$theme, $node, $region) { ...@@ -161,5 +162,5 @@ function theme_moderation_results(&$theme, $node, $region) {
$theme->box(t("Moderation results"), ($output ? $output : t("This node has not been moderated yet.")), $region); $theme->box(t("Moderation results"), ($output ? $output : t("This node has not been moderated yet.")), $region);
} }
?> ?>
<?php <?php
// $Id$
include_once "includes/common.inc"; include_once "includes/common.inc";
...@@ -8,5 +9,5 @@ ...@@ -8,5 +9,5 @@
$function(); $function();
page_footer(); page_footer();
?> ?>
<?php <?php
// $Id$
function import_help() { function import_help() {
?> ?>
...@@ -688,5 +689,5 @@ function import_page() { ...@@ -688,5 +689,5 @@ function import_page() {
} }
} }
} }
?> ?>
<?php <?php
// $Id$
function import_help() { function import_help() {
?> ?>
...@@ -688,5 +689,5 @@ function import_page() { ...@@ -688,5 +689,5 @@ function import_page() {
} }
} }
} }
?> ?>
<?php <?php
// $Id$
function block_help() { function block_help() {
?> ?>
...@@ -149,5 +150,5 @@ function block_admin() { ...@@ -149,5 +150,5 @@ function block_admin() {
print message_access(); print message_access();
} }
} }
?> ?>
<?php <?php
// $Id$
function block_help() { function block_help() {
?> ?>
...@@ -149,5 +150,5 @@ function block_admin() { ...@@ -149,5 +150,5 @@ function block_admin() {
print message_access(); print message_access();
} }
} }
?> ?>
<?php <?php
// $Id$
class Blog { class Blog {
function Blog($blog) { function Blog($blog) {
...@@ -458,5 +459,5 @@ function display() { ...@@ -458,5 +459,5 @@ function display() {
return $output; return $output;
} }
} }
?> ?>
<?php <?php
// $Id$
class Blog { class Blog {
function Blog($blog) { function Blog($blog) {
...@@ -458,5 +459,5 @@ function display() { ...@@ -458,5 +459,5 @@ function display() {
return $output; return $output;
} }
} }
?> ?>
<?php <?php
// $Id$
class Book { class Book {
function Book($book) { function Book($book) {
...@@ -329,5 +330,5 @@ function book_export_html_recursive($parent = "", $depth = 1) { ...@@ -329,5 +330,5 @@ function book_export_html_recursive($parent = "", $depth = 1) {
return $output; return $output;
} }
?> ?>
<?php <?php
// $Id$
class Book { class Book {
function Book($book) { function Book($book) {
...@@ -329,5 +330,5 @@ function book_export_html_recursive($parent = "", $depth = 1) { ...@@ -329,5 +330,5 @@ function book_export_html_recursive($parent = "", $depth = 1) {
return $output; return $output;
} }
?> ?>
<?php <?php
// $Id$
function comment_search($keys) { function comment_search($keys) {
global $PHP_SELF; global $PHP_SELF;
...@@ -88,5 +89,5 @@ function comment_admin() { ...@@ -88,5 +89,5 @@ function comment_admin() {
print message_access(); print message_access();
} }
} }
?> ?>
<?php <?php
// $Id$
function comment_search($keys) { function comment_search($keys) {
global $PHP_SELF; global $PHP_SELF;
...@@ -88,5 +89,5 @@ function comment_admin() { ...@@ -88,5 +89,5 @@ function comment_admin() {
print message_access(); print message_access();
} }
} }
?> ?>
<?php <?php
// $Id$
function forum_status() { function forum_status() {
return array(dumped, posted); return array(dumped, posted);
...@@ -68,5 +69,5 @@ function forum_page() { ...@@ -68,5 +69,5 @@ function forum_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
function forum_status() { function forum_status() {
return array(dumped, posted); return array(dumped, posted);
...@@ -68,5 +69,5 @@ function forum_page() { ...@@ -68,5 +69,5 @@ function forum_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
function help_link($type) { function help_link($type) {
if ($type == "admin") { if ($type == "admin") {
...@@ -16,5 +17,5 @@ function help_admin() { ...@@ -16,5 +17,5 @@ function help_admin() {
} }
} }
} }
?> ?>
<?php <?php
// $Id$
function help_link($type) { function help_link($type) {
if ($type == "admin") { if ($type == "admin") {
...@@ -16,5 +17,5 @@ function help_admin() { ...@@ -16,5 +17,5 @@ function help_admin() {
} }
} }
} }
?> ?>
<?php <?php
// $Id$
function import_help() { function import_help() {
?> ?>
...@@ -688,5 +689,5 @@ function import_page() { ...@@ -688,5 +689,5 @@ function import_page() {
} }
} }
} }
?> ?>
<?php <?php
// $Id$
function locale_help() { function locale_help() {
?> ?>
...@@ -237,5 +238,5 @@ function locale($string) { ...@@ -237,5 +238,5 @@ function locale($string) {
} }
return $string; return $string;
} }
?> ?>
<?php <?php
// $Id$
function locale_help() { function locale_help() {
?> ?>
...@@ -237,5 +238,5 @@ function locale($string) { ...@@ -237,5 +238,5 @@ function locale($string) {
} }
return $string; return $string;
} }
?> ?>
<?php <?php
// $Id$
class Node { class Node {
function Node($node) { function Node($node) {
...@@ -436,5 +437,5 @@ function node_page() { ...@@ -436,5 +437,5 @@ function node_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
<?php <?php
// $Id$
class Node { class Node {
function Node($node) { function Node($node) {
...@@ -436,5 +437,5 @@ function node_page() { ...@@ -436,5 +437,5 @@ function node_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
<?php <?php
// $Id$
$GLOBALS["format"] = array(0 => "HTML", 1 => "PHP", 2 => "text"); $GLOBALS["format"] = array(0 => "HTML", 1 => "PHP", 2 => "text");
...@@ -74,5 +75,5 @@ function page_save($edit) { ...@@ -74,5 +75,5 @@ function page_save($edit) {
node_save($edit, array(uid => $user->uid, link, body, comment => variable_get("page_comment", 0), format, moderate => variable_get("page_moderate", ""), promote => variable_get("page_promote", 0), score => 0, status => $status["posted"], timestamp => time(), title, type => "page", votes => 0)); node_save($edit, array(uid => $user->uid, link, body, comment => variable_get("page_comment", 0), format, moderate => variable_get("page_moderate", ""), promote => variable_get("page_promote", 0), score => 0, status => $status["posted"], timestamp => time(), title, type => "page", votes => 0));
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
$GLOBALS["format"] = array(0 => "HTML", 1 => "PHP", 2 => "text"); $GLOBALS["format"] = array(0 => "HTML", 1 => "PHP", 2 => "text");
...@@ -74,5 +75,5 @@ function page_save($edit) { ...@@ -74,5 +75,5 @@ function page_save($edit) {
node_save($edit, array(uid => $user->uid, link, body, comment => variable_get("page_comment", 0), format, moderate => variable_get("page_moderate", ""), promote => variable_get("page_promote", 0), score => 0, status => $status["posted"], timestamp => time(), title, type => "page", votes => 0)); node_save($edit, array(uid => $user->uid, link, body, comment => variable_get("page_comment", 0), format, moderate => variable_get("page_moderate", ""), promote => variable_get("page_promote", 0), score => 0, status => $status["posted"], timestamp => time(), title, type => "page", votes => 0));
} }
?> ?>
\ No newline at end of file
<?php <?php
// $Id$
class Poll { class Poll {
function Poll($poll) { function Poll($poll) {
...@@ -278,5 +279,5 @@ function poll_user() { ...@@ -278,5 +279,5 @@ function poll_user() {
$theme->box(t("Submit"), poll_form()); $theme->box(t("Submit"), poll_form());
} }
} }
?> ?>
<?php <?php
// $Id$
class Poll { class Poll {
function Poll($poll) { function Poll($poll) {
...@@ -278,5 +279,5 @@ function poll_user() { ...@@ -278,5 +279,5 @@ function poll_user() {
$theme->box(t("Submit"), poll_form()); $theme->box(t("Submit"), poll_form());
} }
} }
?> ?>
<?php <?php
// $Id$
function queue_conf_options() { function queue_conf_options() {
$period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => t("Never")); $period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => t("Never"));
...@@ -137,5 +138,5 @@ function queue_page() { ...@@ -137,5 +138,5 @@ function queue_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
<?php <?php
// $Id$
function search_perm() { function search_perm() {
return array("search content"); return array("search content");
...@@ -94,5 +95,5 @@ function search_page() { ...@@ -94,5 +95,5 @@ function search_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
<?php <?php
// $Id$
function search_perm() { function search_perm() {
return array("search content"); return array("search content");
...@@ -94,5 +95,5 @@ function search_page() { ...@@ -94,5 +95,5 @@ function search_page() {
$theme->footer(); $theme->footer();
} }
} }
?> ?>
<?php <?php
// $Id$
if (variable_get("referer", 0) && $referer = getenv("HTTP_REFERER")) { if (variable_get("referer", 0) && $referer = getenv("HTTP_REFERER")) {
db_query("INSERT INTO referer (URL, timestamp) values ('". check_input($referer) ."', '". time() ."')"); db_query("INSERT INTO referer (URL, timestamp) values ('". check_input($referer) ."', '". time() ."')");
...@@ -95,5 +96,5 @@ function statistics_admin() { ...@@ -95,5 +96,5 @@ function statistics_admin() {
} }
} }