cvs: php-gtk-web /include config.inc layout.php

[email protected] ("Steph Fox") Sun, 09 Jul 2006 15:19:38 -0000
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1152458378@cvsserver>
sfox		Sun Jul  9 15:19:38 2006 UTC

  Modified files:              
    /php-gtk-web/include	config.inc layout.php 
  Log:
  Tidy up and add a mail switch
  
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/config.inc?r1=1.5&r2=1.6&diff_format=u
Index: php-gtk-web/include/config.inc
diff -u php-gtk-web/include/config.inc:1.5 php-gtk-web/include/config.inc:1.6
--- php-gtk-web/include/config.inc:1.5	Sun Jul  9 08:37:09 2006
+++ php-gtk-web/include/config.inc	Sun Jul  9 15:19:37 2006
@@ -20,6 +20,7 @@
 $stats      =  DB_DIR.'/gtkstats.txt';
 $last_id    =  DB_DIR.'/gtklastid.txt';
 $okfile     =  DB_DIR.'/gtkgolive.txt';
+$mailfile   =  DB_DIR.'/gktmaillive.txt';
 
 /* db update checks. Settings of 15, 10 and 2 could have prevented phpdoc's last attack */
 $recent     = strtotime("15 minutes ago");
@@ -38,4 +39,6 @@
 	$last_id   = DB_DIR."/$user.lastid.txt";
 }
 
+$mail = file_exists($mailfile) ? true : false;
+
 ?>
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/layout.php?r1=1.55&r2=1.56&diff_format=u
Index: php-gtk-web/include/layout.php
diff -u php-gtk-web/include/layout.php:1.55 php-gtk-web/include/layout.php:1.56
--- php-gtk-web/include/layout.php:1.55	Sun Jul  9 08:37:09 2006
+++ php-gtk-web/include/layout.php	Sun Jul  9 15:19:37 2006
@@ -1,5 +1,5 @@
 <?php
-/* $Id: layout.php,v 1.55 2006/07/09 08:37:09 sfox Exp $ */
+/* $Id: layout.php,v 1.56 2006/07/09 15:19:37 sfox Exp $ */
 
 # spacer()
 # print a IMG tag for a sized spacer GIF
@@ -70,8 +70,8 @@
     }
 
     $return = make_image($file, $alt, $align, $extras, $dir, $border);
+    $return = str_replace(' border="' . $border . '"', '', '<input type="image"' . substr($return, 4));
 
-    $return = str_replace(' border="' . $border . '"', '', '<input type="image"' . substr($return,4));
     return $return;
 }
 
@@ -293,6 +293,10 @@
 <?php
 }
 
+# stretchPage()
+#
+#
+
 function stretchPage($pixels) {
 	$div = "<div style = 'margin: ".$pixels."%'>";
 	return $div;