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

insert_server_info.php

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


01  <?php
02   
03  //
04  // Security message:
05  //
06  // This script is potentially dangerous.
07  // Remove or comment the next line (die(".... ) to enable this script.
08  // Do NOT FORGET to either remove this script or disable it after you have used it.
09  //
10  die("Please read the first lines of this script for instructions on how to enable it");
11   
12  //
13  // Do not change anything below this line.
14  //
15  $phpbb_root_path = "../";
16  include($phpbb_root_path . 'extension.inc');
17  include($phpbb_root_path . 'common.'.$phpEx);
18   
19  echo "Inserting new config vars<br /><br />\n";
20   
21  echo "server_name :: ";
22  flush();
23  $sql = "INSERT INTO " . CONFIG_TABLE . "
24      (config_name, config_value) VALUES ('server_name', 'www.myserver.tld')";
25  if( !$db->sql_query($sql) )
26  {  
27      print "Failed inserting server_name config ... probably exists already<br />\n";
28  }
29  else
30  {
31      echo "DONE<br />\n";
32  }
33   
34  echo "script_path :: ";
35  flush();
36  $sql = "INSERT INTO " . CONFIG_TABLE . "
37      (config_name, config_value) VALUES ('script_path', '/phpBB2/')";
38  if( !$db->sql_query($sql) )
39  {  
40      print "Failed inserting script_path config ... probably exists already<br />\n";
41  }
42  else
43  {
44      echo "DONE<br />\n";
45  }
46   
47  echo "server_port :: ";
48  flush();
49  $sql = "INSERT INTO " . CONFIG_TABLE . "
50      (config_name, config_value) VALUES ('server_port', '80')";
51  if( !$db->sql_query($sql) )
52  {  
53      print "Failed inserting server_port config ... probably exists already<br />\n";
54  }
55  else
56  {
57      echo "DONE<br />\n";
58  }
59   
60  $db->sql_close();
61   
62  echo "<br />COMPLETE<br />\n";
63   
64  ?>
65