diff --git a/e107_plugins/poll/admin_config.php b/e107_plugins/poll/admin_config.php index dc680de70..e3f25372a 100644 --- a/e107_plugins/poll/admin_config.php +++ b/e107_plugins/poll/admin_config.php @@ -11,19 +11,21 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/poll/admin_config.php,v $ -| $Revision: 1.4 $ -| $Date: 2007-11-01 22:46:19 $ +| $Revision: 1.5 $ +| $Date: 2008-08-16 16:25:45 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../../class2.php"); if (!is_object($tp)) $tp = new e_parse; -if (!getperms("P")) { +if (!getperms("P")) +{ header("location:".e_BASE."index.php"); exit; } $e_sub_cat = 'poll'; +include_lan_admin('poll'); require_once(e_ADMIN."auth.php"); require_once(e_PLUGIN."poll/poll_class.php"); require_once(e_HANDLER."form_handler.php"); diff --git a/e107_plugins/poll/languages/English.php b/e107_plugins/poll/languages/English.php index 41142bdd0..06dba59aa 100644 --- a/e107_plugins/poll/languages/English.php +++ b/e107_plugins/poll/languages/English.php @@ -11,30 +11,30 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/poll/languages/English.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-11-08 20:40:28 $ +| $Revision: 1.3 $ +| $Date: 2008-08-16 16:25:45 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ -define("POLL_ADLAN01", "Poll"); -define("POLL_ADLAN02", "The poll plugin allows you to define polls in either a menu or forum post."); -define("POLL_ADLAN03", "Configure polls"); -define("POLL_ADLAN04", "The poll plugin has been successfully installed. To add polls, click on the Polls icon in the plugin section of your admin front page, and remember to activate the menu item from your menus page."); +//define("POLL_ADLAN01", "Poll"); +//define("POLL_ADLAN02", "The poll plugin allows you to define polls in either a menu or forum post."); +//define("POLL_ADLAN03", "Configure polls"); +//define("POLL_ADLAN04", "The poll plugin has been successfully installed. To add polls, click on the Polls icon in the plugin section of your admin front page, and remember to activate the menu item from your menus page."); -define("POLL_ADLAN05", "Main Poll: "); -define("POLL_ADLAN06", "Forum Thread: "); -define("POLL_ADLAN07", "Type"); +//define("POLL_ADLAN05", "Main Poll: "); +//define("POLL_ADLAN06", "Forum Thread: "); +//define("POLL_ADLAN07", "Type"); define("POLLAN_MENU_CAPTION", "Poll"); -define("POLLAN_1", "Existing polls"); -define("POLLAN_2", "Create / edit polls"); -define("POLLAN_3", "Poll question"); -define("POLLAN_4", "Options"); -define("POLLAN_5", "Edit"); -define("POLLAN_6", "Delete"); -define("POLLAN_7", "No polls yet."); +//define("POLLAN_1", "Existing polls"); +//define("POLLAN_2", "Create / edit polls"); +//define("POLLAN_3", "Poll question"); +//define("POLLAN_4", "Options"); +//define("POLLAN_5", "Edit"); +//define("POLLAN_6", "Delete"); +//define("POLLAN_7", "No polls yet."); define("POLLAN_8", "Add another option"); define("POLLAN_9", "Allow multiple choices?"); define("POLLAN_10", "yes"); @@ -73,6 +73,6 @@ define("POLLAN_42", "This poll is restricted to administrators only"); define("POLLAN_43", "You do not have the required permissions to vote in this poll"); define("POLLAN_44", "Delete this poll?"); define("POLLAN_45", "Poll successfully updated"); -define("POLLAN_46", "Field(s) left blank"); +//define("POLLAN_46", "Field(s) left blank"); ?> \ No newline at end of file diff --git a/e107_plugins/poll/languages/admin/English.php b/e107_plugins/poll/languages/admin/English.php new file mode 100644 index 000000000..f99703103 --- /dev/null +++ b/e107_plugins/poll/languages/admin/English.php @@ -0,0 +1,80 @@ + \ No newline at end of file diff --git a/e107_plugins/poll/plugin.php b/e107_plugins/poll/plugin.php deleted file mode 100644 index eb48ad268..000000000 --- a/e107_plugins/poll/plugin.php +++ /dev/null @@ -1,87 +0,0 @@ - diff --git a/e107_plugins/poll/plugin.xml b/e107_plugins/poll/plugin.xml new file mode 100644 index 000000000..90fb8ba42 --- /dev/null +++ b/e107_plugins/poll/plugin.xml @@ -0,0 +1,22 @@ + + + + POLL_ADLAN01 + 2.0 + Steve Dunstan (jalist) + http://e107.org + POLL_ADLAN02 + 0.8 + true + poll + poll + + admin_config.php + images/polls_32.png + images/polls_16.png + POLL_ADLAN03 + POLL_ADLAN04 + + + + \ No newline at end of file