mxml/www/phplib/globals.php
Michael R Sweet 8c31377933 Allow logged in users to see their private articles and STRs.
Allow logged in users to modify their articles (sets is_published to 0).

Send article notification emails to admin address.

Fix LOGIN_foo globals in auth.php (didn't declare as global everywhere)

Tweek background colors for softer appearance.

Add PHP_URL global for full URL to pages.

Fix notification emails to use the full URL.
2004-05-19 21:17:47 +00:00

40 lines
937 B
PHP

<?php
//
// "$Id: globals.php,v 1.4 2004/05/19 21:17:47 mike Exp $"
//
// Global PHP constants and variables...
//
// This file should be included using "include_once"...
//
//
// Global vars...
//
$PROJECT_NAME = "Mini-XML"; // Title of project
$PROJECT_EMAIL = "mxml@easysw.com"; // Default notification address
$PAGE_MAX = 10; // Max items per page
//
// PHP transition stuff...
//
global $_COOKIE, $_FILES, $_POST, $_SERVER;
$argc = $_SERVER["argc"];
$argv = $_SERVER["argv"];
$PHP_SELF = $_SERVER["PHP_SELF"];
$REQUEST_METHOD = $_SERVER["REQUEST_METHOD"];
$SERVER_NAME = $_SERVER["SERVER_NAME"];
if (array_key_exists("ISHTTPS", $_SERVER))
$PHP_URL = "https://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]";
else
$PHP_URL = "http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]";
//
// End of "$Id: globals.php,v 1.4 2004/05/19 21:17:47 mike Exp $".
//
?>