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-09-28 19:08:18 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-28 19:08:18 +0000
commit65e7975414f6b6887fed9834bb6e1a3fa6d12863 (patch)
tree87863220c0e0f15a85e45749b5a0b3ba41067aeb /update/plugin/phpBB3/trunk/root/instadisc.php
parentdbdf94e953b0b1fe7c19e98888d512d6d16ee4cf (diff)
downloadinstadisc-65e7975414f6b6887fed9834bb6e1a3fa6d12863.tar.gz
instadisc-65e7975414f6b6887fed9834bb6e1a3fa6d12863.tar.bz2
instadisc-65e7975414f6b6887fed9834bb6e1a3fa6d12863.zip
Update: Modifed phpBB3 ACP
Also modified subscription file to look pretty and to show verification when the subscription is encrypted. Fixes #68
Diffstat (limited to 'update/plugin/phpBB3/trunk/root/instadisc.php')
-rw-r--r--update/plugin/phpBB3/trunk/root/instadisc.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/update/plugin/phpBB3/trunk/root/instadisc.php b/update/plugin/phpBB3/trunk/root/instadisc.php index 185fc78..6fecd06 100644 --- a/update/plugin/phpBB3/trunk/root/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/instadisc.php
@@ -30,9 +30,16 @@ $template->set_filenames(array(
30$template->assign_vars(array( 30$template->assign_vars(array(
31 'S_SUBSCRIPTION' => ('http://' . $_SERVER['SERVER_NAME'] . '/forum-post/' . generateSlug($config['id_subscription_title']) . '/'), 31 'S_SUBSCRIPTION' => ('http://' . $_SERVER['SERVER_NAME'] . '/forum-post/' . generateSlug($config['id_subscription_title']) . '/'),
32 'S_TITLE' => $config['id_subscription_title'], 32 'S_TITLE' => $config['id_subscription_title'],
33 'S_KEY' => $config['id_activation_key'],
34)); 33));
35 34
35if ($config['id_encryption_key'] != '')
36{
37 $verID = rand(1,2147483647);
38
39 $template->assign_block_vars('encrypted', array( 'S_VERIFICATION' => md5($config['id_subscription_title'] . ':' . md5($config['id_encryption_key']) . ':' . $verID),
40 'S_VERID' => $verID));
41}
42
36page_footer(); 43page_footer();
37 44
38function generateSlug($title) 45function generateSlug($title)