Skip to content
Snippets Groups Projects
Commit accd5f0c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- applied David Norman's patch to turn all <?'s into fully qualified
  <?php's.
parent 47319817
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ Dries Buytaert <dries@drop.org> ...@@ -4,7 +4,7 @@ Dries Buytaert <dries@drop.org>
- project architect - project architect
Jeroen Bensch <jeroen@drop.org> Jeroen Bensch <jeroen@drop.org>
- themes and images - themes and documentation
Steven Wittens <unconed@drop.org> Steven Wittens <unconed@drop.org>
- themes and images - themes and images
...@@ -13,4 +13,7 @@ Kjartan Mannes <natrak@drop.org> ...@@ -13,4 +13,7 @@ Kjartan Mannes <natrak@drop.org>
- hosting, hardware, bandwidth - hosting, hardware, bandwidth
Michael O'Henly <michael@tenzo.com> Michael O'Henly <michael@tenzo.com>
- documentation revisions - documentation improvements
David Norman <norny@yahoo.com>
- code improvements
<? <?php
include_once "includes/common.inc"; include_once "includes/common.inc";
......
<? <?php
include_once "includes/common.inc"; include_once "includes/common.inc";
...@@ -17,7 +17,7 @@ function module($name, $module) { ...@@ -17,7 +17,7 @@ function module($name, $module) {
?> ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML> <HTML>
<HEAD><TITLE><? echo $site_name; ?> administration</TITLE></HEAD> <HEAD><TITLE><?php echo $site_name; ?> administration</TITLE></HEAD>
<STYLE> <STYLE>
body { font-family: helvetica, arial; } body { font-family: helvetica, arial; }
h1 { font-size: 18pt; font-weight: bold; color: #990000; } h1 { font-size: 18pt; font-weight: bold; color: #990000; }
...@@ -28,21 +28,21 @@ function module($name, $module) { ...@@ -28,21 +28,21 @@ function module($name, $module) {
</STYLE> </STYLE>
<BODY BGCOLOR="#FFFFFF" LINK="#005599" VLINK="#004499" ALINK="#FF0000"> <BODY BGCOLOR="#FFFFFF" LINK="#005599" VLINK="#004499" ALINK="#FF0000">
<H1>Administration</H1> <H1>Administration</H1>
<? <?php
ksort($repository); ksort($repository);
module_iterate("module"); 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"); if (user_access($user, $mod)) module_execute($mod, "admin");
?> ?>
</BODY> </BODY>
</HTML> </HTML>
<? <?php
} }
admin_page($mod); admin_page($mod);
......
<? <?php
include_once "includes/common.inc"; include_once "includes/common.inc";
......
<? <?php
function error_flood() { function error_flood() {
global $site_email; global $site_email;
......
<? <?php
include_once "includes/common.inc"; include_once "includes/common.inc";
......
<? <?php
$type2index = array("addresses" => 0x01, $type2index = array("addresses" => 0x01,
"profanity" => 0x02, "profanity" => 0x02,
......
<? <?php
// Security check: // Security check:
if (strstr($id, " ") || strstr($pid, " ") || strstr($lid, " ") || strstr($mode, " ") || strstr($order, " ") || strstr($threshold, " ")) { if (strstr($id, " ") || strstr($pid, " ") || strstr($lid, " ") || strstr($mode, " ") || strstr($order, " ") || strstr($threshold, " ")) {
...@@ -238,7 +238,7 @@ function comment_visible($comment, $threshold = 0) { ...@@ -238,7 +238,7 @@ function comment_visible($comment, $threshold = 0) {
function comment_uri($args = 0) { function comment_uri($args = 0) {
global $link, $mod; 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"; else return ($mod) ? "module.php?mod=$mod" : $link .".php";
} }
......
<? <?php
function conf_init() { function conf_init() {
global $HTTP_HOST, $REQUEST_URI; global $HTTP_HOST, $REQUEST_URI;
......
<? <?php
function db_connect($host, $user, $pass, $name) { function db_connect($host, $user, $pass, $name) {
mysql_pconnect($host, $user, $pass) or die(mysql_Error()); mysql_pconnect($host, $user, $pass) or die(mysql_Error());
......
<? <?php
$na = "<I>na</I>"; $na = "<I>na</I>";
......
<? <?php
# #
# Database settings: # Database settings:
......
<? <?php
function locale_init() { function locale_init() {
global $languages, $user; global $languages, $user;
......
<? <?php
function module_iterate($function, $argument = "") { function module_iterate($function, $argument = "") {
global $repository; global $repository;
......
<? <?php
function search_form($keys) { function search_form($keys) {
global $REQUEST_URI; global $REQUEST_URI;
......
<? <?php
function section_get() { function section_get() {
$array = array(); $array = array();
......
<? <?php
class Story { class Story {
function Story($userid, $subject, $abstract, $article, $section, $timestamp) { function Story($userid, $subject, $abstract, $article, $section, $timestamp) {
......
<? <?php
function theme_init() { function theme_init() {
global $user, $themes; global $user, $themes;
......
<? <?php
$timer = 0; $timer = 0;
......
<? <?php
class User { class User {
function User($userid, $passwd = 0) { function User($userid, $passwd = 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment