Wishmaster
01.11.2003, 12:10
ALso ich wollte einen Hack installieren der auch automatisch die DB Tabellen anlegt. Leider bricht die Tabellerstellung immer ab. Deswegen wollte ich die Querries manuel ausführen
Dies ist der komplette Inhalt der Datei die die Querries ausführt. Wenn ich diese nun manuel ausführen möchte, muss ich nur das Fettgedruckte ausführen oder noch anderes ?
Datei:
<?php
require("./global.php");
cpheader();
if (!isset($action)) {
?>
<title>Jukebox Hack 1.0 Database Changes</title>
<blockquote>
<br><br><b>Jukebox Hack 1.0 Database Changes</b><br>By Trafix
<br>
<form action="Jukeboxquery.php" method="post">
<p>This script will make the necessary database changes for the Jukebox Hack 1.0 hack.<br>
Do you want to continue?
<br><br><input type="submit" name="action" value="Yes">
</form>
</blockquote>
<?
}
if ($action=="Yes") {
echo ("<br><br><b>Jukebox Hack 1.0</b><br>by Trafix");
echo ("<p>Altering Tables");
$DB_site->query("CREATE TABLE jukebox (
songsid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
sname varchar(255) NOT NULL,
surl varchar(255) NOT NULL,
splay varchar(5) NOT NULL,
PRIMARY KEY (songsid)
)");
echo "<p>Jukebox Table Created";
$DB_site->query("CREATE TABLE jukeboxadmin (
event smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
playtype smallint(5) DEFAULT '0',
defultsong varchar(255) NOT NULL,
defultdetail varchar(255) NOT NULL,
defultaudio smallint(5) DEFAULT '0',
storehack smallint(5) DEFAULT '0',
PRIMARY KEY (event)
)");
echo "<p>Jukebox Admin Table Created";
$DB_site->query("INSERT INTO jukeboxadmin VALUES (NULL,'2', 'http://www.xxxx.xxx/midi/midi/xxxx.xxx', 'Description', '1', '0')");
echo "<p>Default Admin values added in jukeboxadmin table";
echo "<p><br><b>Done!</b> U can delete this file now.<br>";
echo "<p>Trafix";
}
?>
Dies ist der komplette Inhalt der Datei die die Querries ausführt. Wenn ich diese nun manuel ausführen möchte, muss ich nur das Fettgedruckte ausführen oder noch anderes ?
Datei:
<?php
require("./global.php");
cpheader();
if (!isset($action)) {
?>
<title>Jukebox Hack 1.0 Database Changes</title>
<blockquote>
<br><br><b>Jukebox Hack 1.0 Database Changes</b><br>By Trafix
<br>
<form action="Jukeboxquery.php" method="post">
<p>This script will make the necessary database changes for the Jukebox Hack 1.0 hack.<br>
Do you want to continue?
<br><br><input type="submit" name="action" value="Yes">
</form>
</blockquote>
<?
}
if ($action=="Yes") {
echo ("<br><br><b>Jukebox Hack 1.0</b><br>by Trafix");
echo ("<p>Altering Tables");
$DB_site->query("CREATE TABLE jukebox (
songsid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
sname varchar(255) NOT NULL,
surl varchar(255) NOT NULL,
splay varchar(5) NOT NULL,
PRIMARY KEY (songsid)
)");
echo "<p>Jukebox Table Created";
$DB_site->query("CREATE TABLE jukeboxadmin (
event smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
playtype smallint(5) DEFAULT '0',
defultsong varchar(255) NOT NULL,
defultdetail varchar(255) NOT NULL,
defultaudio smallint(5) DEFAULT '0',
storehack smallint(5) DEFAULT '0',
PRIMARY KEY (event)
)");
echo "<p>Jukebox Admin Table Created";
$DB_site->query("INSERT INTO jukeboxadmin VALUES (NULL,'2', 'http://www.xxxx.xxx/midi/midi/xxxx.xxx', 'Description', '1', '0')");
echo "<p>Default Admin values added in jukeboxadmin table";
echo "<p><br><b>Done!</b> U can delete this file now.<br>";
echo "<p>Trafix";
}
?>