Forum » Server-Side scripting » opties werkt niet
Gamescript V0.2 beta
Berichten: 107
avatar
Offline Stuur privebericht
als ik naar deze pagina ga krijg ik niets te zien (siteopties in adminpanneel) het is om de site aan te passen. opensource gamescript
Code | Selecteer Alles
minimaliseren
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
<?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\">&nbsp;$lang_site_options</td>
            </tr>
            <tr>
             <td width=\"20%\" 
$tdreg2><SPAN class=\"content\"><B>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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>&nbsp;$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";

?>

Laatst gewijzigd door retefreter op 2011-02-17 18:13:39
17-02-2011 18:08
Dit topic is 198 keer bekeken door 38 verschillende leden
Reacties op: "opties werkt niet"
1
Berichten: 491
avatar
Offline Stuur privébericht
Staat deze op 1? : $access_options
17-02-2011 18:57
Gamescript V0.2 beta
Berichten: 107
avatar
Offline Stuur privébericht
ja krijg em ni te zien de site

Nieuwe reactie samengevoegd met originele reactie op 23.02.11 19:36:56:
fout is opgelost topic mag dicht
18-02-2011 18:17
Reageer op: "opties werkt niet"
1
Je kan niet reageren omdat je niet bent ingelogd. Inloggen of Aanmelden