diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-28 19:08:18 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-28 19:08:18 +0000 |
commit | 65e7975414f6b6887fed9834bb6e1a3fa6d12863 (patch) | |
tree | 87863220c0e0f15a85e45749b5a0b3ba41067aeb /update/plugin/phpBB3/trunk/root/instadisc.php | |
parent | dbdf94e953b0b1fe7c19e98888d512d6d16ee4cf (diff) | |
download | instadisc-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.php | 9 |
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 | ||
35 | if ($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 | |||
36 | page_footer(); | 43 | page_footer(); |
37 | 44 | ||
38 | function generateSlug($title) | 45 | function generateSlug($title) |