Verzeichnisstruktur phpBB-2.0.0


Veröffentlicht
03.04.2002

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

most_users_update.php

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 1.11 KiB


01  <html>
02  <body>
03  <?php
04   
05  //
06  // Security message:
07  //
08  // This script is potentially dangerous.
09  // Remove or comment the next line (die(".... ) to enable this script.
10  // Do NOT FORGET to either remove this script or disable it after you have used it.
11  //
12  die("Please read the first lines of this script for instructions on how to enable it");
13   
14  //
15  // Do not change anything below this line.
16  //
17   
18      $phpbb_root_path = "../";
19   
20      include($phpbb_root_path . 'extension.inc');
21      include($phpbb_root_path . 'common.'.$phpEx);
22   
23      echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
24          (config_name, config_value) VALUES ('record_online_users', '1')";
25      if( !$result = $db->sql_query($sql) )
26      {
27   
28          message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_users'", "", __LINE__, __FILE__, $sql);
29      }
30   
31      echo "\n<br >\n" . $sql = "INSERT INTO " . CONFIG_TABLE . "
32          (config_name, config_value) VALUES ('record_online_date', '".time()."')";
33      if( !$result = $db->sql_query($sql) )
34      {  
35          message_die(GENERAL_ERROR, "Couldn't insert config key 'record_online_date'", "", __LINE__, __FILE__, $sql);
36      }
37   
38      echo "\n<br />\nCOMPLETE";
39   
40  ?>
41  </body>
42  </html>
43