1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
|
if($action=="design") {
if(isset($_POST['send'])) {
$db->query("DELETE FROM bb".$n."_user_design WHERE userid='$wbbuserdata[userid]'");
$db->query("INSERT INTO bb".$n."_user_design (userid,hintergrund,text,anormal,ahover,bold,hcat,tabellea,tabelleb,tabellecat,spacer,css) VALUES ('$wbbuserdata[userid]','".addslashes($hintergrund)."','".addslashes($text)."','".addslashes($anormal)."','".addslashes($ahover)."','".addslashes($bold)."','".addslashes($hcat)."','".addslashes($tabellea)."','".addslashes($tabelleb)."','".addslashes($tabellecat)."','".addslashes($spacer)."','".addslashes($css)."')");
header("Location: own.php?action=design");
}
$row = $db->query_first("SELECT * FROM bb".$n."_user_design WHERE userid='$wbbuserdata[userid]'");
$hintergrund = $row['hintergrund'];
$text = $row['text'];
$anormal = $row['anormal'];
$ahover = $row['ahover'];
$bold = $row['bold'];
$hcat = $row['hcat'];
$tabellea = $row['tabellea'];
$tabelleb = $row['tabelleb'];
$tabellecat = $row['tabellecat'];
$spacer = $row['spacer'];
$css = $row['css'];
eval("\$tpl->output(\"".$tpl->get("design")."\");");
} |