Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

viglink_ask_admin_wait.php

Zuletzt modifiziert: 02.04.2025, 15:02 - Dateigröße: 788.00 Bytes


01  <?php
02  /**
03   *
04   * VigLink extension for the phpBB Forum Software package.
05   *
06   * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
07   * @license GNU General Public License, version 2 (GPL-2.0)
08   *
09   */
10   
11  namespace phpbb\viglink\migrations;
12   
13  /**
14   * Migration to only ask admin once per day
15   */
16  class viglink_ask_admin_wait extends \phpbb\db\migration\migration
17  {
18      public static function depends_on()
19      {
20          return array('\phpbb\viglink\migrations\viglink_ask_admin');
21      }
22   
23      public function effectively_installed()
24      {
25          return isset($this->config['viglink_ask_admin_last']);
26      }
27   
28      public function update_data()
29      {
30          return array(
31              array('if', array(
32                  (!$this->config->offsetExists('viglink_ask_admin_last')),
33                  array('config.add', array('viglink_ask_admin_last', '0')),
34              )),
35          );
36      }
37  }
38