Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
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 $version_helper = $phpbb_container->get('version_helper');
37 try
38 {
39 $recheck = $request->variable('versioncheck_force', false);
40 $updates_available = $version_helper->get_suggested_updates($recheck);
41 }
42 catch (\RuntimeException $e)
43 {
44 $template->assign_var('S_VERSIONCHECK_FAIL', true);
45
46 $updates_available = array();
47 }
48
49 foreach ($updates_available as $branch => $version_data)
50 {
51 $template->assign_block_vars('updates_available', $version_data);
52 }
53
54 $update_link = append_sid($phpbb_root_path . 'install/index.' . $phpEx, 'mode=update');
55
56 $template->assign_vars(array(
57 'S_UP_TO_DATE' => empty($updates_available),
58 'U_ACTION' => $this->u_action,
59 'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&versioncheck_force=1'),
60
61 'CURRENT_VERSION' => $config['version'],
62
63 'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $update_link),
64 ));
65 }
66 }
67