about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/instadisc.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 11:37:40 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-06 11:37:40 +0000
commitb0a04dab2757b6d3ff20f82ac8215c161a6eb030 (patch)
tree58005ed2c92d8897e103c9091c8d58cc26ef9feb /update/plugin/phpBB3/trunk/root/instadisc.php
parent821e016263ef1f083c587f32d61d3a2f000a1ac4 (diff)
downloadinstadisc-b0a04dab2757b6d3ff20f82ac8215c161a6eb030.tar.gz
instadisc-b0a04dab2757b6d3ff20f82ac8215c161a6eb030.tar.bz2
instadisc-b0a04dab2757b6d3ff20f82ac8215c161a6eb030.zip
Update: Created phpBB3 plugin Subscription File
Also started on the plugin's update library, currently uses a function identical to the library's. May want to
change it so that it does more post-object work than the foreign function has to. Refs #7
Diffstat (limited to 'update/plugin/phpBB3/trunk/root/instadisc.php')
-rw-r--r--update/plugin/phpBB3/trunk/root/instadisc.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/update/plugin/phpBB3/trunk/root/instadisc.php b/update/plugin/phpBB3/trunk/root/instadisc.php new file mode 100644 index 0000000..76771f7 --- /dev/null +++ b/update/plugin/phpBB3/trunk/root/instadisc.php
@@ -0,0 +1,37 @@
1<?php
2/**
3*
4* @package phpBB3
5* @version $Id: instadisc.php 2008-08-06 07:12:00Z hatkirby $
6* @version (c) 2008 Starla Insigna
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8*
9*/
10
11/**
12* @ignore
13*/
14define('IN_PHPBB', true);
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
17include($phpbb_root_path . 'common.' . $phpEx);
18include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
19
20// Start session
21$user->session_begin();
22$auth->acl($user->data);
23
24$user->setup('mods/instadisc', $forum_data['forum_style']);
25
26$template->set_filenames(array(
27 'body' => 'instadisc.html')
28);
29
30$template->assign_vars(array(
31 'S_SUBSCRIPTION' => ($config['server_protocol'] . $config['server_name'] . $config['script_path'] . '/'),
32 'S_TITLE' => $config['id_subscription_title'],
33));
34
35page_footer();
36
37?>