Commit accd5f0c authored by Dries's avatar Dries
Browse files

- applied David Norman's patch to turn all <?'s into fully qualified
  <?php's.
parent 47319817
......@@ -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
<?
<?php
include_once "includes/common.inc";
......
<?
<?php
include_once "includes/common.inc";
......@@ -17,7 +17,7 @@ function module($name, $module) {
?>
<!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 module($name, $module) {
</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);
......
<?
<?php
include_once "includes/common.inc";
......
<?
<?php
function error_flood() {
global $site_email;
......
<?
<?php
include_once "includes/common.inc";
......
<?
<?php
$type2index = array("addresses" => 0x01,
"profanity" => 0x02,
......
<?
<?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";
}
......
<?
<?php
function conf_init() {
global $HTTP_HOST, $REQUEST_URI;
......
<?
<?php
function db_connect($host, $user, $pass, $name) {
mysql_pconnect($host, $user, $pass) or die(mysql_Error());
......
<?
<?php
$na = "<I>na</I>";
......
<?
<?php
#
# Database settings:
......
<?
<?php
function locale_init() {
global $languages, $user;
......
<?
<?php
function module_iterate($function, $argument = "") {
global $repository;
......
<?
<?php
function search_form($keys) {
global $REQUEST_URI;
......
<?
<?php
function section_get() {
$array = array();
......
<?
<?php
class Story {
function Story($userid, $subject, $abstract, $article, $section, $timestamp) {
......
<?
<?php
function theme_init() {
global $user, $themes;
......
<?
<?php
$timer = 0;
......
<?
<?php
class User {
function User($userid, $passwd = 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment