Problem mit Buttonliste 1.1
Ich hab mir vor einiger Zeit die Buttonliste 1.1 aufgespielt. Aber nur mit einer Navbox.
Jetzt habe ich die Teile für die zweite Navbox installiert. Soweit alles gut. Der link zur Buttonlist 1 erscheint im Admin-Bereich. Wenn ich aber eine Tabelle für die Buttonlist 1 erstellen will, kommt die Meldung "Tabelle wurde nicht erstellt" und nichts passiert.
Was ist falsch?
Jetzt habe ich die Teile für die zweite Navbox installiert. Soweit alles gut. Der link zur Buttonlist 1 erscheint im Admin-Bereich. Wenn ich aber eine Tabelle für die Buttonlist 1 erstellen will, kommt die Meldung "Tabelle wurde nicht erstellt" und nichts passiert.
Was ist falsch?
table 'dbxxxxxxxx-xxxx.phpkit_buttonliste1' doesn't exist das sagt doch schon alles aus. in deiner datenbank fehlt die tabelle. schau mal nach ob diese dort überhaupt vorhanden ist
Seit 02.07.2010 Papa einer süssen Tocher !!!!
http://www.burnerfm.de
Mit den besten Hits der 80´s, 90´s und von heute. Plus einigen PHPKit Addons... uvm.
Mit den besten Hits der 80´s, 90´s und von heute. Plus einigen PHPKit Addons... uvm.
Diese Datei legt, denke ich, die Buttonliste an.
buttonliste1.php
buttonliste1.php
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
<?php
/* Name = Buttonliste
* Version = 1.1
* Datum = 03.05.2005
* Copyright = Dooki
* Homepage = http://www.php-gfx.net
* E-Mail = dooki@php-gfx.net
* * * * * * * * * * * * * * * * * * */
//---> Die wievielte Liste ist es?
//
$buttonlistenr = 1; // Trage hier die Nummer ein (Die Nummer die auch im Dateinamen steht)
//
//---> Einstellungen für den Adminbereich der Buttonliste
//
$location_url = "admin.php?path=buttonliste".$buttonlistenr.".php"; // URL (OHNE admin Ordner)
//
//-> Wenn man die Datei nicht aus dem Adminbereich aus aufruft:
// Ab welchem Status hat man Zugriff?
// | user ===> member ===> mod ===> admin |
//
$wer_darf_angucken = "admin"; // Wer darf Buttonliste sehen?
$wer_darf_anlegen = "admin"; // Wer darf neue Buttons anlegen?
$wer_darf_editieren = "admin"; // Wer darf die angelegten Buttons editieren/updaten?
$wer_darf_loeschen = "admin"; // Wer darf die angelegten Buttons löschen?
//
//---> Einstellungen für den Adminbereich der Buttonliste
if($_GET['buttonliste_admin'] == "1") {
if(trim($_GET['d']) != "" AND preg_match("/[a-fA-F0-9]{6}/",$_GET['d'])) $header_style = "style=\"color: #".$_GET['d'].";\"";
$header_ausgabe = "
<tr>
<td class=\"highlight\" ".$header_style." width=\"100%\" align=\"center\"><b>» ".trim($_GET['a'])." wurde ".trim($_GET['b'])." ".trim($_GET['c']).". «</b></td>
</tr>";
}
//---> Überschrift
$site_body = "
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"1\" cellpadding=\"4\">
<tr>
<td class=\"heads\" width=\"100%\" align=\"center\"><big><b>Buttonliste ".$buttonlistenr."</b></big></td>
</tr>
".$header_ausgabe."
</table><br>";
//---> Löschen
if(getrights($wer_darf_loeschen)) {
if($_POST['Button_loeschen_ja'] == "ja") {
if ($DB->query("DELETE FROM ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr." WHERE id='".intval(trim($_POST['buttonliste_id']))."' LIMIT 1;")) {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=erfolgreich&c=gelöscht&d=007700&PHPKITSID=".session_id()); exit();
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=nicht&c=gelöscht&d=770000&PHPKITSID=".session_id()); exit();
}
}
if ($_POST['Button_loeschen'] == "DEL") {
$ausgabe = "
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"1\" cellpadding=\"4\">
<form action=\"".$location_url."\" method=\"POST\">
<input type=\"hidden\" name=\"Button_loeschen_ja\" value=\"ja\">
<input type=\"hidden\" name=\"buttonliste_id\" value=\"".trim(intval($_POST['buttonliste_id']))."\">
<tr>
<td class=\"heads\" width=\"100%\" align=\"center\"><b>Wollen Sie den Eintrag wirklich löschen?</b></td>
</tr>
<tr>
<td class=\"highlight\" width=\"100%\" align=\"center\">
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td class=\"highlight\" align=\"right\"><b>ID des Buttons:</b></td>
<td class=\"highlight\" align=\"left\">".trim(intval($_POST['buttonliste_id']))."</td>
<td class=\"highlight\" align=\"right\"><b>Zeit des Eintrages:</b></td>
<td class=\"highlight\" align=\"left\">".trim($_POST['buttonliste_time'])."</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class=\"odd\" width=\"100%\" align=\"center\">
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td class=\"odd\" width=\"100%\" align=\"center\" colspan=\"4\"><b>Code des Buttons:</b></td>
</tr>
<tr>
<td class=\"odd\" width=\"100%\" align=\"center\" colspan=\"4\"><textarea style=\"width: 700px\" name=\"buttonliste_code\" rows=\"5\" wrap=\"soft\" readonly>".trim($_POST['buttonliste_code'])."</textarea></td>
</tr>
<tr>
<td class=\"odd\" width=\"100%\" align=\"center\" colspan=\"4\"><input type=\"submit\" name=\"button\" value=\"Löschen\" style=\"color: #DD0000; font-weight: bold;\"></td>
</tr>
</table>
</td>
</tr>
</form>
</table><br>";
}
}
//---> Editieren
if(getrights($wer_darf_editieren)) {
if ($_POST['Button_updaten_ja'] == "ja") {
if(trim($_POST['buttonliste_code']) != "") {
if ($DB->query("UPDATE ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr." SET code='".addslashes(trim($_POST['buttonliste_code']))."', aktiv='".trim(intval($_POST['buttonliste_aktiv']))."' WHERE id='".trim(intval($_POST['buttonliste_id']))."'")) {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=erfolgreich&c=geupdated&d=007700&PHPKITSID=".session_id()); exit();
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=nicht&c=geupdated&d=770000&PHPKITSID=".session_id()); exit();
}
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=nicht&c=geupdated&d=770000&PHPKITSID=".session_id()); exit();
}
}
if ($_POST['Button_updaten'] == "UPD") {
if(trim($_POST['buttonliste_aktiv']) == "1") {
$checked = "checked";
} else {
$checked = "";
}
$ausgabe = "
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"1\" cellpadding=\"4\">
<form action=\"".$location_url."\" method=\"POST\">
<input type=\"hidden\" name=\"Button_updaten_ja\" value=\"ja\">
<input type=\"hidden\" name=\"buttonliste_id\" value=\"".trim(intval($_POST['buttonliste_id']))."\">
<tr>
<td class=\"heads\" width=\"100%\" align=\"center\" colspan=\"2\" nowrap><b>Button updaten</b></td>
</tr>
<tr>
<td class=\"highlight\" width=\"100%\" align=\"center\" nowrap><b>Button-Code der ID ".trim(intval($_POST['buttonliste_id']))."</b></td>
<td class=\"highlight\" width=\"50\" align=\"center\" nowrap><b>Aktiv</b></td>
</tr>
<tr>
<td class=\"even\" width=\"100%\" align=\"center\" nowrap><textarea style=\"width: 650px\" name=\"buttonliste_code\" rows=\"5\" wrap=\"soft\">".trim(html_entity_decode($_POST['buttonliste_code']))."</textarea></td>
<td class=\"even\" width=\"50\" align=\"center\" nowrap><input type=\"checkbox\" name=\"buttonliste_aktiv\" value=\"1\" ".$checked."></td>
</tr>
<tr>
<td class=\"even\" width=\"100%\" align=\"center\" colspan=\"2\" nowrap><input type=\"submit\" name=\"button\" value=\"Update durchführen\"></td>
</tr>
</form>
</table><br>";
}
}
//---> Anlegen
if(getrights($wer_darf_anlegen)) {
if ($_POST['Button_anlegen'] == "ja") {
if(trim($_POST['buttonliste_code']) != "") {
if ($DB->query("INSERT INTO ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr." (code, aktiv, time) VALUES ('".addslashes(trim($_POST['buttonliste_code']))."', '1', '".time()."')")) {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=erfolgreich&c=hinzugefügt&d=007700&PHPKITSID=".session_id()); exit();
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=nicht&c=hinzugefügt&d=770000&PHPKITSID=".session_id()); exit();
}
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Button&b=nicht&c=hinzugefügt&d=770000&PHPKITSID=".session_id()); exit();
}
}
if ($_POST['Tabelle_anlegen'] == "ja") {
$create = "CREATE TABLE ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr." (id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, code TEXT NOT NULL DEFAULT '', aktiv TINYINT(1) NOT NULL DEFAULT '', time INT(14) NOT NULL DEFAULT '', PRIMARY KEY (id)) TYPE = MyISAM";
if ($DB->query($create)) {
header("location: ".$location_url."&buttonliste_admin=1&a=Tabelle&b=erfolgreich&c=erstellt&d=007700&PHPKITSID=".session_id()); exit();
} else {
header("location: ".$location_url."&buttonliste_admin=1&a=Tabelle&b=nicht&c=erstellt&d=770000&PHPKITSID=".session_id()); exit();
}
}
}
//---> Ausgabe
if(getrights($wer_darf_angucken)) {
$buttonliste_body .= $ausgabe;
if($DB->query("SELECT * FROM ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr."")) {
if(($_POST['Button_updaten'] != "UPD") && ($_POST['Button_loeschen'] != "DEL")) {
$buttonliste_body .= "
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"1\" cellpadding=\"4\">
<form action=\"".$location_url."\" method=\"POST\">
<input type=\"hidden\" name=\"Button_anlegen\" value=\"ja\">
<tr>
<td class=\"heads\" width=\"100%\" align=\"center\" nowrap><b>Weiteren Button anlegen</b></td>
</tr>
<tr>
<td class=\"highlight\" width=\"100%\" align=\"center\" nowrap><b>Button-Code</b></td>
</tr>
<tr>
<td class=\"even\" width=\"100%\" align=\"center\" nowrap><textarea style=\"width: 700px\" name=\"buttonliste_code\" rows=\"5\" wrap=\"soft\"></textarea></td>
</tr>
<tr>
<td class=\"even\" width=\"100%\" align=\"center\" nowrap><input type=\"submit\" name=\"button\" value=\"Neuen Button hinzufügen\"></td>
</tr>
</form>
</table>
<br>";
}
$buttonliste_body .= "
<table class=\"standard\" border=\"0\" align=\"center\" width=\"100%\" cellspacing=\"1\" cellpadding=\"4\">
<tr>
<td class=\"heads\" width=\"100%\" colspan=\"4\" align=\"center\" nowrap><b>Buttons die eingetragen wurden</b></td>
</tr>
<tr>
<td class=\"highlight\" width=\"30\" align=\"center\" nowrap><b>ID</b></td>
<td class=\"highlight\" width=\"100%\" align=\"center\"><b>Code</b></td>
<td class=\"highlight\" width=\"130\" align=\"center\" nowrap><b>Datum/Button</b></td>
<td class=\"highlight\" width=\"60\" align=\"center\" nowrap><b>Admin</b></td>
</tr>";
$getbuttonlistetable = $DB->query("SELECT * FROM ".addslashes($sqlprefix)."_buttonliste".$buttonlistenr." ORDER by id ASC");
while ($buttonlistetable = $DB->fetch_array($getbuttonlistetable)) {
$buttonliste_id = $buttonlistetable['id'];
$buttonliste_code = $buttonlistetable['code'];
$buttonliste_aktiv = $buttonlistetable['aktiv'];
$buttonliste_time = $buttonlistetable['time'];
if($buttonliste_aktiv == "1") {
$aktiv_color = "007700";
$aktiv_text = "aktiviert";
} else {
$aktiv_color = "770000";
$aktiv_text = "gesperrt";
}
$buttonliste_body .= "
<form action=\"".$location_url."\" method=\"POST\">
<input type=\"hidden\" name=\"buttonliste_id\" value=\"".$buttonliste_id."\">
<input type=\"hidden\" name=\"buttonliste_code\" value=\"".htmlentities($buttonliste_code)."\">
<input type=\"hidden\" name=\"buttonliste_aktiv\" value=\"".$buttonliste_aktiv."\">
<input type=\"hidden\" name=\"buttonliste_time\" value=\"".date('d.m.Y - H:i', $buttonliste_time)."\">
<tr>
<td class=\"even\" align=\"center\" nowrap><b>".$buttonliste_id."</b></td>
<td class=\"even\" align=\"center\"><textarea style=\"width: 500px; height: 90px;\" name=\"buttonliste_code\" wrap=\"soft\" readonly>".htmlentities($buttonliste_code)."</textarea></td>
<td class=\"odd\" align=\"center\" nowrap>".date('d.m.Y - H:i', $buttonliste_time)."<br><br>".$buttonliste_code."<br><br><font style=\"color: #".$aktiv_color.";\"><b>".$aktiv_text."</b></font></td>
<td class=\"even\" align=\"center\" nowrap><input type=\"submit\" name=\"Button_updaten\" value=\"UPD\" style=\"width: 50px; color: #0000DD; font-weight: bold;\"><br><br><input type=\"submit\" name=\"Button_loeschen\" value=\"DEL\" style=\"width: 50px; color: #DD0000; font-weight: bold;\"></td>
</tr>
</form>";
}
$buttonliste_body .= "</table>";
} else {
$buttonliste_body = "
<form action=\"".$location_url."\" method=\"POST\">
<input type=\"hidden\" name=\"Tabelle_anlegen\" value=\"ja\">
<input type=\"submit\" name=\"button\" value=\"Tabelle für die Buttonliste anlegen\"><br>
<font style=\"color: #FF0000;\">Folgende Fehlermeldung(en) nicht beachten, sondern fortfahren!</font>
</form>";
}
eval ("\$site_body .= \"".getTemplate("buttonliste")."\";");
} else {
header("location: include.php?event=1&PHPKITSID=".session_id()); exit();
}
?>
|
Hier mal die site_navigation_left.htm
vielleicht sieht ja jemand mehr wie ich.
vielleicht sieht ja jemand mehr wie ich.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
<table class="standard" border="0" cellspacing="0" cellpadding="1" width="125">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td class="heads">Konfiguration</td>
</tr>
$navigation_config
<tr>
<td class="heads">Mitglieder</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=member.php">Übersicht</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=edituser.php">Benutzer anlegen</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=profilefields.php">Profilfelder</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=usergroup.php">Benutzergruppen</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=infomail.php">Infomailer</a></td>
</tr>
<tr>
<td class="heads">Navigation</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=editnavcat.php">Kategorien verwalten</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=editnavlink.php">Links verwalten</a></td>
</tr>
<tr>
<td class="heads">Statistik</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=record.php">Seitenzugriffe</a>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=referer.php">Referer-Links</a></td>
</tr>
<tr>
<td class="heads">Extras</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=buttonliste.php">Buttonliste</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=buttonliste1.php">Buttonliste 1</a></td>
</tr>
<tr>
<td class="heads">Sonstiges</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=avatar.php">Avatare</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=adview.php">Banner</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=images.php">Grafiken</td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=comment.php">Kommentare</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=smilies.php">Smilies</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=style.php">Style</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=templates.php">Templates</a></td>
</tr>
<tr>
<td class="nav"><a class="nav" href="admin.php?path=database.php">Datenbank</a></td>
</tr>
$install_link
</table>
</td>
</tr>
</table>
|

- 1
- 2

Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Einlogproblem
(6. Januar 2008, 23:24)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Was ist mit der Laberecke??
(6. Januar 2008, 19:11)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Umlaute Problem
(1. Januar 2008, 15:29)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
$navigation_right in der welcome.htm
(6. Januar 2008, 20:42)


