als ik naar deze pagina ga krijg ik niets te zien (siteopties in adminpanneel) het is om de site aan te passen. opensource gamescript
PHP
<?php
echo "<br><SPAN class=\"texthuge\">$lang_site_options";
if (!$_REQUEST[skin]) {
echo " (default skin)";
} else {
echo " ($_REQUEST[skin])";
}
echo "</SPAN><br><br>";
if ($access_options == '1') {
if ($_POST[SUBMIT] == "SUBMIT") {
$query = "UPDATE config SET font_ondark2='$_POST[font_ondark2]', font_ondark1='$_POST[font_ondark1]', font_onlight5='$_POST[font_onlight5]', font_onlight4='$_POST[font_onlight4]', font_onlight3='$_POST[font_onlight3]', font_onlight2='$_POST[font_onlight2]', font_onlight1='$_POST[font_onlight1]', table_bg2_light='$_POST[table_bg2_light]', table_bg1_light='$_POST[table_bg1_light]', form_dropdown2='$_POST[form_dropdown2]', form_dropdown1='$_POST[form_dropdown1]', form_textbox='$_POST[form_textbox]', nowplaying='$_POST[nowplaying]', ads='$_POST[ads]', tdreg3='$_POST[tdreg3]', tdreg2='$_POST[tdreg2]', tablereg='$_POST[tablereg]', tdreg='$_POST[tdreg]', font_bright_onlight='$_POST[font_bright_onlight]', font_bright_ondark='$_POST[font_bright_ondark]', sitename=\"$_POST[sitename]\", email='$_POST[email]', shouts='$_POST[shouts]', siteurl='$_POST[siteurl]', imagepath='$_POST[imagepath]', body='$_POST[body]', header='$_POST[header]', form_submit='$_POST[form_submit]', form='$_POST[form]', font='$_POST[font]', font_large='$_POST[font_large]', ct_width='$_POST[ct_width]', avatar_width='$_POST[avatar_width]', avatar_height='$_POST[avatar_height]', dlsetting='$_POST[dlsetting]', submitsys='$_POST[submitsys]', time_s='$_POST[time_s]', time_an='$_POST[time_an]', time_c='$_POST[time_c]', time_f='$_POST[time_f]' where id='{$_REQUEST['id']}'";
$result = mysql_query($query);
echo "<center><SPAN class=\"content\"><B>$lang_website_details_updated</B><br><br>";
}
if (!$_REQUEST[skin]) {
$skinq = mysql_query("SELECT * FROM skin where current='1'");
} else {
$skinq = mysql_query("SELECT * FROM skin where name='$_REQUEST[skin]'");
}
while ($row = mysql_fetch_assoc($skinq)) {
$current_skin = $row[name];
$skinid = $row[id];
}
$sskin = mysql_query("SELECT * FROM config where skin='$current_skin'");
while ($row = mysql_fetch_assoc($sskin)) {
$configid = $row[id];
echo "<form action=\"?page=Site Options&id=$configid&skin=$current_skin\" method=\"post\">";
echo "<table align=\"center\" width=\"100%\" $tablereg>
<tr>
<td width=\"100%\" colspan=\"2\" $tdreg3><SPAN class=\"headertitle\"> $lang_site_options</td>
</tr>
<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_site_title</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"sitename\" size=\"50\" style=\"$form\" value=\"$row[sitename]\"></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_websiteurl</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"siteurl\" size=\"50\" style=\"$form\" value=\"$row[siteurl]\"></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_contactemail</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"email\" size=\"50\" style=\"$form\" value= \"$row[email]\"></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_imagepath</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"imagepath\" size=\"30\" style=\"$form\" value=\"$row[imagepath]\"></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_pagebody</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"body\" size=\"75\" style=\"$form\" value='$row[body]'></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_enableshoutbox</td>
<td width=\"80%\" $tdreg><select name=\"shouts\" style=\"$form\">
<option value=\"$row[shouts]\">";
if ($row[shouts] == '1') {
echo "Yes";
} else {
echo "No";
}
echo "</option>
<option value=\"$row[shouts]\">-</option>
<option value=\"1\">Yes</option>
<option value=\"0\">No</option>
</select> </td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_enable_nowplaying</td>
<td width=\"80%\" $tdreg><select name=\"nowplaying\" style=\"$form\">
<option value=\"$row[nowplaying]\">";
if ($row[nowplaying] == 'Yes') {
echo "Yes";
} else {
echo "No";
}
echo "</option>
<option value=\"$row[nowplaying]\">-</option>
<option value=\"Yes\">Yes</option>
<option value=\"No\">No</option>
</select> </td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_show_ads</td>
<td width=\"80%\" $tdreg><select name=\"ads\" style=\"$form\">
<option value=\"$row[ads]\">";
if ($row[ads] == 'Yes') {
echo "Yes";
} else {
echo "No";
}
echo "</option>
<option value=\"$row[ads]\">-</option>
<option value=\"Yes\">Y</option>
<option value=\"No\">N</option>
</select> </td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_header</td>
<td width=\"80%\" $tdreg><textarea name=\"header\" rows=\"5\" cols=\"75\" style=\"$form_textbox\">$row[header]</textarea></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_form_style</td>
<td width=\"80%\" $tdreg><textarea name=\"form\" rows=\"4\" cols=\"75\" style=\"$form_textbox\">$row[form]</textarea></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_formsubmitstyle</td>
<td width=\"80%\" $tdreg><textarea name=\"form_submit\" rows=\"4\" cols=\"75\" style=\"$form_textbox\">$row[form_submit]</textarea></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_max_avatarwidth</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"avatar_width\" size=\"3\" style=\"$form\" value='$row[avatar_width]'></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_max_avatar_height</td>
<td width=\"80%\" $tdreg><input type=\"text\" name=\"avatar_height\" size=\"3\" style=\"$form\" value='$row[avatar_height]'></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_guestdownloading</td>
<td width=\"80%\" $tdreg><select name=\"dlsetting\" style=\"$form\">
<option value=\"$row[dlsetting]\">";
if ($row[dlsetting] == 'Y') {
echo "Y";
} else {
echo "N";
}
echo "</option>
<option value=\"$row[dlsetting]\">-</option>
<option value=\"Y\">Y</option>
<option value=\"N\">N</option>
</select> <SPAN class=\"contentlight\">$lang_a_display_link_for_guests</td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_enable_submit</td>
<td width=\"80%\" $tdreg><select name=\"submitsys\" style=\"$form\">
<option value=\"$row[submitsys]\">";
if ($row[submitsys] == 'Y') {
echo "Y";
} else {
echo "N";
}
echo "</option>
<option value=\"$row[submitsys]\">-</option>
<option value=\"Y\">Y</option>
<option value=\"N\">N</option>
</select> <SPAN class=\"contentlight\">$lang_a_enablesubmit_text</td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_datetime_format</td>
<td width=\"80%\" $tdreg><SPAN class=\"contentlight\"><input type=\"text\" name=\"time_an\" size=\"15\" style=\"$form\" value='$row[time_an]'> $lang_a_newsarticles<br>
<input type=\"text\" name=\"time_s\" size=\"15\" style=\"$form\" value='$row[time_s]'> $lang_a_shoutbox<br>
<input type=\"text\" name=\"time_c\" size=\"15\" style=\"$form\" value='$row[time_c]'> $lang_a_comments<br>
<input type=\"text\" name=\"time_f\" size=\"15\" style=\"$form\" value='$row[time_f]'> $lang_a_forums<br>
$lang_a_timevariables</SPAN></td>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_table_col</td>
<td width=\"80%\" $tdreg><SPAN class=\"contentlight\"><input type=\"text\" name=\"table_bg1_light\" size=\"7\" style=\"$form\" value='$row[table_bg1_light]'> $lang_a_lightbackground1<br>
<input type=\"text\" name=\"table_bg2_light\" size=\"7\" style=\"$form\" value='$row[table_bg2_light]'> $lang_a_lightbackground2<br>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_tableproperties</td>
<td width=\"80%\" $tdreg>
<SPAN class=\"contentlight\"><input type=\"text\" name=\"tablereg\" size=\"70\" style=\"$form\" value=\"$row[tablereg]\"> $lang_a_contenttableprops<br>
<input type=\"text\" name=\"tdreg\" size=\"70\" style=\"$form\" value='$row[tdreg]'> $lang_a_tdreg<br>
<input type=\"text\" name=\"tdreg2\" size=\"70\" style=\"$form\" value='$row[tdreg2]'> $lang_a_tdreg2<br>
<input type=\"text\" name=\"tdreg3\" size=\"70\" style=\"$form\" value='$row[tdreg3]'> $lang_a_tdreg3<br></SPAN>
</tr>";
echo "<tr>
<td width=\"20%\" $tdreg2><SPAN class=\"content\"><B> $lang_a_formprop</td>
<td width=\"80%\" $tdreg>
<SPAN class=\"contentlight\"><input type=\"text\" name=\"form_textbox\" size=\"70\" style=\"$form\" value='$row[form_textbox]'> $lang_a_textarea_style<br>
<input type=\"text\" name=\"form_dropdown1\" size=\"70\" style=\"$form\" value='$row[form_dropdown1]'> $lang_a_dds1<br>
<input type=\"text\" name=\"form_dropdown2\" size=\"70\" style=\"$form\" value='$row[form_dropdown2]'> $lang_a_dds2<br></SPAN>
</tr>";
echo "<tr>
<td width=\"100%\" colspan=\"2\" $tdreg2><input type=\"SUBMIT\" name=\"SUBMIT\" value=\"SUBMIT\" style=\"$form_submit\"></td>
</tr>";
echo "</table><br>";
}
} else {
echo "$lang_a_denied";
?>
Toon Meer