From e554fa7fbceeab7ca16b4be9b2671c19c8c36d90 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Aug 2008 00:44:44 +0000 Subject: Update: Started InstaDisc ACP for phpBB3 plugin Refs #7 --- .../phpBB3/trunk/root/adm/style/acp_instadisc.html | 27 +++++++++++++ .../trunk/root/includes/acp/acp_instadisc.php | 44 ++++++++++++++++++++++ .../trunk/root/includes/acp/info/acp_instadisc.php | 39 +++++++++++++++++++ .../trunk/root/language/en/mods/instadisc.php | 41 ++++++++++++++++++++ 4 files changed, 151 insertions(+) create mode 100644 update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html create mode 100644 update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php create mode 100644 update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php create mode 100644 update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php (limited to 'update') diff --git a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html new file mode 100644 index 0000000..2722623 --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html @@ -0,0 +1,27 @@ + + + + +

{L_INSTADISC}

+ +

{L_INSTADISC_EXPLAIN} +{L_INSTADISC_LINK_TEXT} +

+ +
+
+ {L_HELLO}  {S_HELLO} +
+
+
+
+ +
+

+   + +

+
+ + + diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php new file mode 100644 index 0000000..77b9b75 --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php @@ -0,0 +1,44 @@ +add_lang('mods/instadisc'); + + // Set up the page + $this->tpl_name = 'acp_instadisc'; + $this->page_title = 'ACP_INSTADISC'; + + // Set up general vars + $greeter = request_var('hello', '', true); + $submit = isset($_POST['submit']) ? true : false; + $hello = 'Starla'; + + if ($submit) + { + trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING); + } else { + $template->assign_vars(array( + 'S_HELLO' => $hello, + 'S_SUBMIT' => $this->u_action + )); + } + } +} diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php new file mode 100644 index 0000000..5692f6c --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/includes/acp/info/acp_instadisc.php @@ -0,0 +1,39 @@ + 'acp_instadisc', + 'title' => 'ACP_INSTADISC', + 'version' => '1.0.0', + 'modes' => array( + 'instadisc' => array( + 'title' => 'INSTADISC', + 'auth' => 'acl_a_board && acl_a_server', + 'cat' => array('ACP_AUTOMATION') + ) + ) + ); + } + + function install() + { + } + + function uninstall() + { + } +} diff --git a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php new file mode 100644 index 0000000..629adba --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php @@ -0,0 +1,41 @@ + 'InstaDisc', + + 'INSTADISC' => 'InstaDisc', + 'INSTADISC_EXPLAIN' => 'Welcome to the InstaDisc Update Server admin panel. To set up your subscriptions, you have to do a few things. For more information, see', + 'INSTADISC_LINK_TEXT' => 'the InstaDisc phpBB3 plugin page', +)); + +?> -- cgit 1.4.1