# HG changeset patch # User Dan # Date 1212857385 14400 # Node ID a1c450a911a62d68d72fc69169da9c8ab974c56c # Parent 0103428e2179ab9f81250feaf81b3d3916ebbdb6 Updated version number metadata in system plugin files; added some comments and removed unused code from index.php and includes/graphs.php diff -r 0103428e2179 -r a1c450a911a6 includes/graphs.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; diff -r 0103428e2179 -r a1c450a911a6 index.php --- 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(); diff -r 0103428e2179 -r a1c450a911a6 plugins/PrivateMessages.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialAdmin.php --- 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); diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialCSS.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialGroups.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialPageFuncs.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialRecentChanges.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialSearch.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialUpdownload.php --- 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/" } **!*/ diff -r 0103428e2179 -r a1c450a911a6 plugins/SpecialUserPrefs.php --- 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/" } **!*/