-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadr_copyright.php
69 lines (56 loc) · 2 KB
/
adr_copyright.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/***************************************************************************
* adr_copyright.php
* ------------------------
* begin : 28/02/2004
* copyright : Malicious Rabbit / Dr DLP
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
define('IN_PHPBB', true);
define('IN_ADR_COPYRIGHT', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'adr/includes/adr_global.'.$phpEx);
$loc = 'character_prefs';
$sub_loc = 'adr_character_prefs';
//
// Start session management
$userdata = session_pagestart($user_ip, PAGE_ADR);
init_userprefs($userdata);
// End session management
//
// Includes the tpl and the header
adr_template_file('adr_copyright_body.tpl');
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// Get the general settings
$adr_general = adr_get_general_config();
if ( $lang['Translator'] )
{
$template->assign_block_vars('translator' , array());
}
$template->assign_vars(array(
'TRANSLATOR' => $lang['Translator'],
'L_COPYRIGHT_EXPLAIN' => $lang['Adr_copyright_explain'],
'L_IMAGES' => $lang['Adr_copyright_images'],
'L_TRANSLATOR' => $lang['Adr_copyright_translator'],
'L_THANKS' => $lang['Adr_copyright_thanks'],
'L_AUTHOR' => $lang['Adr_copyright_author'],
'L_NEW_AUTHOR' => $lang['Adr_copyright_new_author'],
));
include($phpbb_root_path . 'adr/includes/adr_header.'.$phpEx);
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
// Empty the memory
$db->sql_freeresult($result);
?>