Nur in MySql Datenbanken
Erstellt ne Datei:
admin_query.php im Adminpanel mit folgendem Inhalt:
Code: Alles auswählen
<?php
/***************************************************************************
* admin_query.php
* -------------------
* begin : Saturday, Febr 9, 2002
* copyright : (C) 2002 XpertNetCoderZ
* email : dwing@weingarten-net.de
*
* $Id: admin_querye.php, v 1.00 2002/02/9 16:01:00 Dwing $
*
*
* uses phpBB technology (c) 2001 phpB<http://www.phpbb.com/>
*
***************************************************************************/
/* **************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
if($setmodules == 1)
{
$file = basename(__FILE__);
$module['General']['Query Database'] = "$file?mode=query";
return;
}
//
// Load default header
//
$phpbb_root_dir = "./../";
require('pagestart.inc');
if(!$mode == "query")
{
if($mysql_query($query))
{
echo "Mysql Query succesfull";
}
else
{
echo "Error: Query could't used succesfull";
}
}
else
{
?>
<h1>Query Database</h1>
<p> </p>
<p> </p>
<form method="POST" action="admin_query.php">
<table class="forumline" cellSpacing="1" cellPadding="4" align="center" border="0">
<tbody>
<tr>
<th class="thHead" align="middle">Query Database</th>
</tr>
<tr>
<td class="row1" align="middle"><p><textarea rows="7" name="query" cols="40">Query</textarea></p>
<input class="mainoption" type="submit" value="Query" name="pruneset"> </td>
</tr>
</tbody>
</table>
</form>
<?
}
?>