File: 012_fix_version_display.diff

package info (click to toggle)
phpbb2 2.0.21-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,224 kB
  • ctags: 12
  • sloc: sh: 476; makefile: 108; perl: 29; php: 21
file content (47 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download | duplicates (2)
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
diff -ur phpBB2.orig/admin/page_footer_admin.php phpBB2/admin/page_footer_admin.php
--- phpBB2.orig/admin/page_footer_admin.php	2005-10-31 08:32:35.000000000 +0100
+++ phpBB2/admin/page_footer_admin.php	2005-10-31 21:09:38.000000000 +0100
@@ -35,7 +35,7 @@
 );
 
 $template->assign_vars(array(
-	'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '', 
+	'PHPBB_VERSION' => PHPBB_VERSION,
 	'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''))
 );
 
diff -ur phpBB2.orig/common.php phpBB2/common.php
--- phpBB2.orig/common.php	2005-10-31 08:32:37.000000000 +0100
+++ phpBB2/common.php	2005-10-31 21:09:01.000000000 +0100
@@ -24,6 +24,8 @@
 	die("Hacking attempt");
 }
 
+define('PHPBB_VERSION', '@VERSION@');
+
 //
 error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
 set_magic_quotes_runtime(0); // Disable magic_quotes_runtime
diff -ur phpBB2.orig/includes/page_tail.php phpBB2/includes/page_tail.php
--- phpBB2.orig/includes/page_tail.php	2005-10-31 08:32:36.000000000 +0100
+++ phpBB2/includes/page_tail.php	2005-10-31 21:10:19.000000000 +0100
@@ -37,6 +37,7 @@
 );
 
 $template->assign_vars(array(
+	'PHPBB_VERSION' => PHPBB_VERSION,
 	'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
 	'ADMIN_LINK' => $admin_link)
 );
diff -ur phpBB2.orig/templates/subSilver/overall_footer.tpl phpBB2/templates/subSilver/overall_footer.tpl
--- phpBB2.orig/templates/subSilver/overall_footer.tpl	2005-10-31 08:32:36.000000000 +0100
+++ phpBB2/templates/subSilver/overall_footer.tpl	2005-10-31 21:09:01.000000000 +0100
@@ -10,7 +10,7 @@
 
 	The phpBB Group : 2002
 // -->
-Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group<br />{TRANSLATION_INFO}</span></div>
+Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001, 2005 phpBB Group<br />{TRANSLATION_INFO}</span></div>
 		</td>
 	</tr>
 </table>