Updated version number metadata in system plugin files; added some comments and removed unused code from index.php and includes/graphs.php
authorDan
Sat, 07 Jun 2008 12:49:45 -0400
changeset 564 a1c450a911a6
parent 563 0103428e2179
child 565 df5a40ca2f7a
Updated version number metadata in system plugin files; added some comments and removed unused code from index.php and includes/graphs.php
includes/graphs.php
index.php
plugins/PrivateMessages.php
plugins/SpecialAdmin.php
plugins/SpecialCSS.php
plugins/SpecialGroups.php
plugins/SpecialPageFuncs.php
plugins/SpecialRecentChanges.php
plugins/SpecialSearch.php
plugins/SpecialUpdownload.php
plugins/SpecialUserPrefs.php
--- a/includes/graphs.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/includes/graphs.php	Sat Jun 07 12:49:45 2008 -0400
@@ -742,6 +742,8 @@
 // http://web.archive.org/web/20030130065944/szewo.com/php/graph/graph.class.php3.txt
 // License unknown, however sources on the web have shown this to be either GPL or public domain.
 
+// At this point this class has been very nearly rewritten for Enano.
+
 class GraphMaker_compat {
   var $_values;
   var $_ShowLabels;
--- a/index.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/index.php	Sat Jun 07 12:49:45 2008 -0400
@@ -28,10 +28,6 @@
   global $do_gzip;
   $do_gzip = true;
   
-  if(isset($_SERVER['PATH_INFO'])) $v = $_SERVER['PATH_INFO'];
-  elseif(isset($_GET['title'])) $v = $_GET['title'];
-  else $v = '';
-  
   if ( isset($_GET['nocompress']) )
     $aggressive_optimize_html = false;
   
@@ -42,6 +38,7 @@
     ob_start();
   }
   
+  // start up Enano
   require('includes/common.php');
   
   global $db, $session, $paths, $template, $plugins; // Common objects
@@ -586,7 +583,7 @@
     // Done, send it to the user
     echo( $html );
   }
-
+  
   $db->close();  
   gzip_output();
   
--- a/plugins/PrivateMessages.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/PrivateMessages.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_privatemessages_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialAdmin.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialAdmin.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialadmin_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
@@ -1962,27 +1962,47 @@
       }
       if ( t == namespace_list.Admin + 'AdminLogout' )
       {
-        var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, $lang.get('user_logout_confirm_title_elev'), $lang.get('user_logout_confirm_body_elev'));
-        mb.onclick['Yes'] = function() {
-          var tigraentry = document.getElementById('i_div0_0').parentNode;
-          var tigraobj = $(tigraentry);
-          var div = document.createElement('div');
-          div.style.backgroundColor = '#FFFFFF';
-          domObjChangeOpac(70, div);
-          div.style.position = 'absolute';
-          var top = tigraobj.Top();
-          var left = tigraobj.Left();
-          var width = tigraobj.Width();
-          var height = tigraobj.Height();
-          div.style.top = top + 'px';
-          div.style.left = left + 'px';
-          div.style.width = width + 'px';
-          div.style.height = height + 'px';
-          var body = document.getElementsByTagName('body')[0];
-          enlighten(true);
-          body.appendChild(div);
-          ajaxPageBin(namespace_list.Admin + 'AdminLogout');
-        }
+        miniPromptMessage({
+            title: $lang.get('user_logout_confirm_title_elev'),
+            message: $lang.get('user_logout_confirm_body_elev'),
+            buttons: [
+              {
+                text: $lang.get('user_logout_confirm_btn_logout'),
+                color: 'red',
+                style: {
+                  fontWeight: 'bold'
+                },
+                onclick: function()
+                {
+                  var tigraentry = document.getElementById('i_div0_0').parentNode;
+                  var tigraobj = $(tigraentry);
+                  var div = document.createElement('div');
+                  div.style.backgroundColor = '#FFFFFF';
+                  domObjChangeOpac(70, div);
+                  div.style.position = 'absolute';
+                  var top = tigraobj.Top();
+                  var left = tigraobj.Left();
+                  var width = tigraobj.Width();
+                  var height = tigraobj.Height();
+                  div.style.top = top + 'px';
+                  div.style.left = left + 'px';
+                  div.style.width = width + 'px';
+                  div.style.height = height + 'px';
+                  var body = document.getElementsByTagName('body')[0];
+                  miniPromptDestroy(true);
+                  body.appendChild(div);
+                  ajaxPageBin(namespace_list.Admin + 'AdminLogout');
+                }
+              },
+              {
+                text: $lang.get('etc_cancel'),
+                onclick: function()
+                {
+                  miniPromptDestroy(this);
+                }
+              }
+            ]
+          });
         return;
       }
       ajaxPageBin(t);
--- a/plugins/SpecialCSS.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialCSS.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialcss_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialGroups.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialGroups.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialgroups_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialPageFuncs.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialPageFuncs.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialpagefuncs_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialRecentChanges.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialRecentChanges.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialrecentchanges_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialSearch.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialSearch.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialsearch_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialUpdownload.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialUpdownload.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialupdownload_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
--- a/plugins/SpecialUserPrefs.php	Sat Jun 07 12:48:39 2008 -0400
+++ b/plugins/SpecialUserPrefs.php	Sat Jun 07 12:49:45 2008 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialuserprefs_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.3",
+  "Version"      : "1.1.4",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/