about summary refs log tree commit diff stats
path: root/update/plugin/phpBB3/trunk/root/instadisc.php
diff options
context:
space:
mode:
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)