diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-06 00:44:44 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-06 00:44:44 +0000 |
commit | e554fa7fbceeab7ca16b4be9b2671c19c8c36d90 (patch) | |
tree | 335ff48807261d4b27b55ec6d2585b96bab88b0f /update/plugin/phpBB3 | |
parent | ad7b861b840c12637097c7ee20e14227d6aae571 (diff) | |
download | instadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.tar.gz instadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.tar.bz2 instadisc-e554fa7fbceeab7ca16b4be9b2671c19c8c36d90.zip |
Update: Started InstaDisc ACP for phpBB3 plugin
Refs #7
Diffstat (limited to 'update/plugin/phpBB3')
4 files changed, 151 insertions, 0 deletions
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 @@ | |||
1 | <!-- INCLUDE overall_header.html --> | ||
2 | |||
3 | <A NAME="maincontent"></A> | ||
4 | |||
5 | <H1>{L_INSTADISC}</H1> | ||
6 | |||
7 | <P>{L_INSTADISC_EXPLAIN} | ||
8 | <A HREF="http://fourisland.com/projects/instadisc/wiki/Update/phpBB3">{L_INSTADISC_LINK_TEXT}</A> | ||
9 | </P> | ||
10 | |||
11 | <form id="acp_hello" method="post" action="{U_ACTION}"> | ||
12 | <fieldset> | ||
13 | <legend>{L_HELLO} {S_HELLO}</legend> | ||
14 | <dl> | ||
15 | <dt><label for="hello">{L_HELLO_WHO}:</label></dt> | ||
16 | <dd><input name="hello" type="text" id="hello" maxlength="255" /></dd> | ||
17 | </dl> | ||
18 | |||
19 | </fieldset> | ||
20 | <p class="submit-buttons"> | ||
21 | <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" /> | ||
22 | <input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" /> | ||
23 | </p> | ||
24 | </form> | ||
25 | |||
26 | <!-- INCLUDE overall_footer.html --> | ||
27 | |||
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 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * | ||
4 | * @package acp | ||
5 | * @version $Id: v3_modules.xml 52 2008-08-05 18:55:00Z hatkirby $ | ||
6 | * @copyright (c) 2008 Starla Insigna | ||
7 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | /** | ||
12 | * @package acp | ||
13 | */ | ||
14 | class acp_instadisc | ||
15 | { | ||
16 | var $u_action; | ||
17 | |||
18 | function main($id, $mode) | ||
19 | { | ||
20 | global $db, $user, $auth, $template; | ||
21 | global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; | ||
22 | |||
23 | $user->add_lang('mods/instadisc'); | ||
24 | |||
25 | // Set up the page | ||
26 | $this->tpl_name = 'acp_instadisc'; | ||
27 | $this->page_title = 'ACP_INSTADISC'; | ||
28 | |||
29 | // Set up general vars | ||
30 | $greeter = request_var('hello', '', true); | ||
31 | $submit = isset($_POST['submit']) ? true : false; | ||
32 | $hello = 'Starla'; | ||
33 | |||
34 | if ($submit) | ||
35 | { | ||
36 | trigger_error(sprintf($user->lang['SAY_HELLO'], $greeter, $hello) . adm_back_link($this->u_action), E_USER_WARNING); | ||
37 | } else { | ||
38 | $template->assign_vars(array( | ||
39 | 'S_HELLO' => $hello, | ||
40 | 'S_SUBMIT' => $this->u_action | ||
41 | )); | ||
42 | } | ||
43 | } | ||
44 | } | ||
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 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * | ||
4 | * @package acp | ||
5 | * @version $Id: v3_modules.xml 52 2008-08-05 18:46:00Z hatkirby $ | ||
6 | * @copyright (c) 2008 Starla Insigna | ||
7 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | /** | ||
12 | * @package module_install | ||
13 | */ | ||
14 | class acp_instadisc_info | ||
15 | { | ||
16 | function module() | ||
17 | { | ||
18 | return array( | ||
19 | 'filename' => 'acp_instadisc', | ||
20 | 'title' => 'ACP_INSTADISC', | ||
21 | 'version' => '1.0.0', | ||
22 | 'modes' => array( | ||
23 | 'instadisc' => array( | ||
24 | 'title' => 'INSTADISC', | ||
25 | 'auth' => 'acl_a_board && acl_a_server', | ||
26 | 'cat' => array('ACP_AUTOMATION') | ||
27 | ) | ||
28 | ) | ||
29 | ); | ||
30 | } | ||
31 | |||
32 | function install() | ||
33 | { | ||
34 | } | ||
35 | |||
36 | function uninstall() | ||
37 | { | ||
38 | } | ||
39 | } | ||
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 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * | ||
4 | * instadisc [English] | ||
5 | * | ||
6 | * @package language | ||
7 | * @version $Id: v3_modules.xml 52 2008-08-05 19:03:00Z hatkirby $ | ||
8 | * @copyright (c) 2008 Starla Insigna | ||
9 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | /** | ||
14 | * DO NOT CHANGE | ||
15 | */ | ||
16 | if (empty($lang) || !is_array($lang)) | ||
17 | { | ||
18 | $lang = array(); | ||
19 | } | ||
20 | |||
21 | // DEVELOPERS PLEASE NOTE | ||
22 | // | ||
23 | // All language files should use UTF-8 as their encoding and the files must not contain a BOM. | ||
24 | // | ||
25 | // Placeholders can now contain order information, e.g. instead of | ||
26 | // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows | ||
27 | // translators to re-order the output of data while ensuring it remains correct | ||
28 | // | ||
29 | // You do not need this where single placeholders are used, e.g. 'Message %d' is fine | ||
30 | // equally where a string contains only two placeholders which are used to wrap text | ||
31 | // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine | ||
32 | |||
33 | $lang = array_merge($lang, array( | ||
34 | 'ACP_INSTADISC' => 'InstaDisc', | ||
35 | |||
36 | 'INSTADISC' => 'InstaDisc', | ||
37 | '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', | ||
38 | 'INSTADISC_LINK_TEXT' => 'the InstaDisc phpBB3 plugin page', | ||
39 | )); | ||
40 | |||
41 | ?> | ||