Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
acp_update.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 /**
15 * @ignore
16 */
17 if (!defined('IN_PHPBB'))
18 {
19 exit;
20 }
21
22 class acp_update
23 {
24 var $u_action;
25
26 function main($id, $mode)
27 {
28 global $config, $user, $template, $request;
29 global $phpbb_root_path, $phpEx, $phpbb_container;
30
31 $user->add_lang('install');
32
33 $this->tpl_name = 'acp_update';
34 $this->page_title = 'ACP_VERSION_CHECK';
35
36 /* @var $version_helper \phpbb\version_helper */
37 $version_helper = $phpbb_container->get('version_helper');
38 try
39 {
40 $recheck = $request->variable('versioncheck_force', false);
41 $updates_available = $version_helper->get_suggested_updates($recheck);
42 }
43 catch (\RuntimeException $e)
44 {
45 $template->assign_var('S_VERSIONCHECK_FAIL', true);
46
47 $updates_available = array();
48 }
49
50 foreach ($updates_available as $branch => $version_data)
51 {
52 $template->assign_block_vars('updates_available', $version_data);
53 }
54
55 $update_link = $phpbb_root_path . 'install/app.' . $phpEx;
56
57 $template->assign_vars(array(
58 'S_UP_TO_DATE' => empty($updates_available),
59 'U_ACTION' => $this->u_action,
60 'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&versioncheck_force=1'),
61
62 'CURRENT_VERSION' => $config['version'],
63
64 'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $update_link),
65 ));
66
67 // Incomplete update?
68 if (phpbb_version_compare($config['version'], PHPBB_VERSION, '<'))
69 {
70 $database_update_link = $phpbb_root_path . 'install/app.php/update';
71
72 $template->assign_vars(array(
73 'S_UPDATE_INCOMPLETE' => true,
74 'FILES_VERSION' => PHPBB_VERSION,
75 'INCOMPLETE_INSTRUCTIONS' => $user->lang('UPDATE_INCOMPLETE_EXPLAIN', $database_update_link),
76 ));
77 }
78 }
79 }
80