php4-beta | 200004

[PHP4BETA] cvs: /php4/ext/standard info.c info.h From: Colin Viebrock (cmv <email protected>)
Date: 04/19/00

cmv Wed Apr 19 16:17:32 2000 EDT

  Modified files:
    /php4/ext/standard info.c info.h
  Log:
  A little easter egg for April 1st ... :)
  
  
  
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.84 php4/ext/standard/info.c:1.85
--- php4/ext/standard/info.c:1.84 Wed Apr 19 05:43:54 2000
+++ php4/ext/standard/info.c Wed Apr 19 16:17:02 2000
@@ -23,6 +23,7 @@
 #include "ext/standard/head.h"
 #include "info.h"
 #include "SAPI.h"
+#include <time.h>
 #if !defined(PHP_WIN32)
 #include "build-defs.h"
 #endif
@@ -123,6 +124,12 @@
         char *php_uname;
         int expose_php = INI_INT("expose_php");
 
+ time_t the_time;
+ struct tm *ta, tmbuf;
+
+ the_time = time(NULL);
+ ta = localtime_r(&the_time, &tmbuf);
+
 #ifdef PHP_WIN32
         char php_windows_uname[256];
         DWORD dwBuild=0;
@@ -155,12 +162,15 @@
                         PUTS("<a href=\"http://www.php.net/\"><img src=\"");
                         if (SG(request_info).request_uri) {
                                 PUTS(SG(request_info).request_uri);
+ }
+ if ((ta->tm_mon==3) && (ta->tm_mday==1)) {
+ PUTS("?=PHPE9568F36-D428-11d2-A769-00AA001ACF42\" border=0 align=\"right\"></a>");
+ } else {
+ PUTS("?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=0 align=\"right\"></a>");
                         }
- PUTS("?=PHPE9568F34-D428-11d2-A769-00AA001ACF42\" border=0 align=\"right\"></a>");
                 }
                 php_printf("<H1>PHP Version %s</H1>\n", PHP_VERSION);
                 php_info_print_box_end();
-
                 php_info_print_table_start();
                 php_info_print_table_row(2, "System", php_uname );
                 php_info_print_table_row(2, "Build Date", __DATE__ );
@@ -601,6 +611,11 @@
 PHP_FUNCTION(php_logo_guid)
 {
         RETURN_STRINGL(PHP_LOGO_GUID, sizeof(PHP_LOGO_GUID)-1, 1);
+}
+
+PHP_FUNCTION(php_egg_logo_guid)
+{
+ RETURN_STRINGL(PHP_EGG_LOGO_GUID, sizeof(PHP_EGG_LOGO_GUID)-1, 1);
 }
 
 
Index: php4/ext/standard/info.h
diff -u php4/ext/standard/info.h:1.11 php4/ext/standard/info.h:1.12
--- php4/ext/standard/info.h:1.11 Fri Apr 7 09:41:19 2000
+++ php4/ext/standard/info.h Wed Apr 19 16:17:02 2000
@@ -27,7 +27,7 @@
    | Zeev Suraski <zeev <email protected>> |
    +----------------------------------------------------------------------+
  */
-/* $Id: info.h,v 1.11 2000/04/07 16:41:19 cmv Exp $ */
+/* $Id: info.h,v 1.12 2000/04/19 23:17:02 cmv Exp $ */
 
 #ifndef _INFO_H
 #define _INFO_H
@@ -54,8 +54,9 @@
 #define PHP_CREDITS_FULLPAGE (1<<5)
 #define PHP_CREDITS_ALL 0xFFFFFFFF
 
-#define PHP_LOGO_GUID "PHPE9568F34-D428-11d2-A769-00AA001ACF42"
-#define ZEND_LOGO_GUID "PHPE9568F35-D428-11d2-A769-00AA001ACF42"
+#define PHP_LOGO_GUID "PHPE9568F34-D428-11d2-A769-00AA001ACF42"
+#define PHP_EGG_LOGO_GUID "PHPE9568F36-D428-11d2-A769-00AA001ACF42"
+#define ZEND_LOGO_GUID "PHPE9568F35-D428-11d2-A769-00AA001ACF42"
 
 PHP_FUNCTION(phpversion);
 PHP_FUNCTION(phpinfo);

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>