cvs: php-gtk-web /manual set-magic-cookie.php

[email protected] ("Colin Viebrock") Thu, 09 Aug 2001 17:13:08 -0000
Newsgroups php.gtk
Message-ID <cvscmv997377188@cvsserver>
cmv		Thu Aug  9 13:13:08 2001 EDT

  Modified files:              
    /php-gtk-web/manual	set-magic-cookie.php 
  Log:
  oops
  
  
Index: php-gtk-web/manual/set-magic-cookie.php
diff -u php-gtk-web/manual/set-magic-cookie.php:1.1 php-gtk-web/manual/set-magic-cookie.php:1.2
--- php-gtk-web/manual/set-magic-cookie.php:1.1	Thu Aug  9 13:05:23 2001
+++ php-gtk-web/manual/set-magic-cookie.php	Thu Aug  9 13:13:08 2001
@@ -1,15 +1,15 @@
 <?
-commonHeader('Magic Cookie');
-
-echo '<h1>Magic Cookie</h1>';
-
 if (isset($user) && isset($pass)) {
 	$MAGIC_COOKIE = base64_encode("$user:$pass");
 	# we set a cookie good for five years
 	SetCookie("MAGIC_COOKIE", base64_encode("$user:$pass"), time()+157248000);
+	commonHeader('Magic Cookie');
+	echo '<h1>Magic Cookie</h1>';
 	echo "<P><b>Cookie set</b>.</P>";
 }
 if (isset($MAGIC_COOKIE)) {
+	commonHeader('Magic Cookie');
+	echo '<h1>Magic Cookie</h1>';
 	list($user,$pass) = explode(":", base64_decode($MAGIC_COOKIE));
 }