User:Pyramide/DB2wiki

DB2wiki
Use this script to generate the lists and tables on Tables and its subpages.

<?php //This script is used to generate the pages at http://wiki.phpbb.com/Tables //usage: http://yourserver/db2wiki.php for the list of tables //and http://yourserver/db2wiki.php?table=phpbb_foo for individual tables //Author: Pyramide (Frank Dreyer)

define('IN_PHPBB', true); $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx);

if(!defined('STDIN')) {   header('Content-type:text/plain'); }

if(isset($_GET['table'])) {   $table = $_GET['table']; } elseif(isset($argv[1])) {   $table = $argv[1]; } else {   //list of tables ?> List of tables

{|border="1" cellspacing="0" cellpadding="3" ! name ! content sql_query($sql); while($row = $db->sql_fetchrow($result)) {       $name = $row[key($row)]; echo "|-\n"; echo "| $name\n"; echo "| tbd\n"; }   echo "|}"; exit; }

if(strstr($table, '`')) {   die('hacking attempt'); }

?> description goes here

Keys


Config values
