From fc3ce061c3dc8c918690432913d944ebe82c3f2c Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Thu, 22 Mar 2007 05:54:08 +0000 Subject: [PATCH] Rename most of the _parts_ .php files too (not the preamble though) Fix plans, from too much over- and under-quoting. --- parts/{head.php => head.inc} | 0 parts/{library.php => library.inc} | 0 parts/{member_stuff.php => member_stuff.inc} | 0 parts/{menu.php => menu.inc} | 0 parts/{news_search.php => news_search.inc} | 0 parts/{postamble.php => postamble.inc} | 0 parts/preamble.php | 16 ++++++++-------- parts/{titletable.php => titletable.inc} | 0 parts/{topmain.php => topmain.inc} | 0 parts/{topstrip.php => topstrip.inc} | 0 plan_add.php | 9 ++++++--- plan_edit.php | 20 +++----------------- 12 files changed, 17 insertions(+), 28 deletions(-) rename parts/{head.php => head.inc} (100%) rename parts/{library.php => library.inc} (100%) rename parts/{member_stuff.php => member_stuff.inc} (100%) rename parts/{menu.php => menu.inc} (100%) rename parts/{news_search.php => news_search.inc} (100%) rename parts/{postamble.php => postamble.inc} (100%) rename parts/{titletable.php => titletable.inc} (100%) rename parts/{topmain.php => topmain.inc} (100%) rename parts/{topstrip.php => topstrip.inc} (100%) diff --git a/parts/head.php b/parts/head.inc similarity index 100% rename from parts/head.php rename to parts/head.inc diff --git a/parts/library.php b/parts/library.inc similarity index 100% rename from parts/library.php rename to parts/library.inc diff --git a/parts/member_stuff.php b/parts/member_stuff.inc similarity index 100% rename from parts/member_stuff.php rename to parts/member_stuff.inc diff --git a/parts/menu.php b/parts/menu.inc similarity index 100% rename from parts/menu.php rename to parts/menu.inc diff --git a/parts/news_search.php b/parts/news_search.inc similarity index 100% rename from parts/news_search.php rename to parts/news_search.inc diff --git a/parts/postamble.php b/parts/postamble.inc similarity index 100% rename from parts/postamble.php rename to parts/postamble.inc diff --git a/parts/preamble.php b/parts/preamble.php index e535c20..d1a4f8e 100644 --- a/parts/preamble.php +++ b/parts/preamble.php @@ -3,16 +3,16 @@ $columns = 'content'; define ('siteHome', "/home/groups/q/qu/quake/htdocs"); - require siteHome . "/parts/library.php"; // Load function library + require siteHome . "/parts/library.inc"; // Load function library if ($need) { need ($need); unset ($need); } - require siteHome . "/parts/head.php"; // Load the HEAD and open BODY - require siteHome . "/parts/topstrip.php"; // Display top strip - require siteHome . "/parts/titletable.php"; // Display main title w/ logos - require siteHome . "/parts/menu.php"; // Load up the menu + require siteHome . "/parts/head.inc"; // Load the HEAD and open BODY + require siteHome . "/parts/topstrip.inc"; // Display top strip + require siteHome . "/parts/titletable.inc"; // Display main title w/ logos + require siteHome . "/parts/menu.inc"; // Load up the menu $contentClass = ''; if ($modules && $modules = explode (" ", $modules)) { @@ -22,7 +22,7 @@ echo '
'; for ($i = 0; $i < count ($modules); $i++) { - include siteHome . "/parts/" . $modules[$i] . ".php"; + include siteHome . "/parts/" . $modules[$i] . ".inc"; } echo '
'; } @@ -41,7 +41,7 @@ ?>
id="content"> ' - . 'Subject:
' + . 'Subject: ' + . '' + . '
' . '
' . '' . '' diff --git a/plan_edit.php b/plan_edit.php index 2bc6d89..77333fc 100644 --- a/plan_edit.php +++ b/plan_edit.php @@ -6,25 +6,11 @@ if (!$userInfo['u_admin']) // no access from non-admin bailout ('

You don\'t have access to this page (yet?). Bug an admin to delete a plan post.

'); - need ('sql'); - - function convertToHTML ($string) - { - $table = array_flip (get_html_translation_table (HTML_ENTITIES)); - - return strtr ($string, $table); - } - - function convertFromHTML ($string) - { - $table = get_html_translation_table (HTML_ENTITIES); - - return strtr ($string, $table); - } + need ('boxes date html news sql table'); function planEntrySummary ($a) { - need ("date"); + need ('date html'); return '' @@ -37,7 +23,7 @@ function planEntryEditor ($array) { - need ("boxes date news"); + need ('boxes date html'); $id = $array['p_id']; $usr = $array['p_user'];