No need to declare superglobals global
[infodrom.org/www.zeitungsliste.de] / lib / layout.inc
index da85a1d..a2e5ae1 100644 (file)
@@ -24,8 +24,6 @@ function pageheader()
 {
   global $cfg;
   global $zlist;
-  global $_POST;
-  global $_SERVER;
 
   $ret .= '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
   $ret .= '<html lang="de">';
@@ -229,8 +227,6 @@ function layout_bookmarks($rel, $title)
  */
 function layout_sitemap()
 {
-  global $_SESSION;
-  global $_SERVER;
   global $cfg;
 
   if (!is_spider())
@@ -294,7 +290,6 @@ function layout_sitemap()
 
 function layout_showpaper($archived=false)
 {
-  global $_GET;
   global $zlist;
 
   if (!isset($_GET['zeitung']) || !is_numeric($_GET['zeitung']))
@@ -323,7 +318,6 @@ function layout_showpaper($archived=false)
 function layout_archive()
 {
   global $zlist;
-  global $_GET;
   global $cfg;
 
   if (!isset($_GET['archiv']) || !is_numeric($_GET['archiv']))
@@ -364,7 +358,6 @@ function layout_showtag()
 {
   global $cfg;
   global $zlist;
-  global $_GET;
 
   if (!isset($_GET['tag']))
     $ret = warning('Keine derartiges Merkmal gefunden.');
@@ -416,7 +409,6 @@ function layout_showtag()
 function layout_topic()
 {
   global $zlist;
-  global $_GET;
 
   if  (!isset($_GET['topic']) || !is_numeric($_GET['topic']))
     $ret = warning('Keine passende Diskussion gefunden.');
@@ -449,8 +441,6 @@ function notfound()
 function contact_send($topic, $email, $body)
 {
   global $cfg;
-  global $_SESSION;
-  global $_SERVER;
 
   $header = array();
   if (!empty($email)) {
@@ -476,9 +466,6 @@ function contact_send($topic, $email, $body)
 
 function process_contact()
 {
-  global $_SERVER;
-  global $_POST;
-
   if ($_SERVER['REQUEST_METHOD'] == 'POST') {
     if (empty($_POST['topic']))
       $ret = warning('Sie haben keinen Titel für die Nachricht angegeben!');
@@ -506,5 +493,3 @@ function process_contact()
 
   return load_javascript('contact.js') . load_template('contact.html', $replace);
 }
-
-?>
\ No newline at end of file