// Is the 'sub' parameter set?
if (REQUEST_ISSET_GET('sub')) {
// Yes, then do some sanity-checks
- switch (REQUEST_GET('sub'))
- {
- case "points":
+ switch (REQUEST_GET('sub')) {
+ case 'points':
if ((!REQUEST_ISSET_POST(('points_register'))) || (!REQUEST_ISSET_POST(('points_ref')))) {
REQUEST_UNSET_POST('ok');
}
break;
- case "ref":
+ case 'ref':
if (REQUEST_ISSET_GET('do')) {
if (((!REQUEST_ISSET_POST(('lvl'))) || (!REQUEST_ISSET_POST(('perc')))) && (REQUEST_GET('do') == 'add')) {
REQUEST_UNSET_POST('ok');
}
} else {
// Display overview
- REQUEST_SET_GET('sub', "overview");
+ REQUEST_SET_GET('sub', 'overview');
}
if (isFormSent()) {
INIT_SQLS();
- switch (REQUEST_GET('sub'))
- {
- case "points":
+ switch (REQUEST_GET('sub')) {
+ case 'points':
ADD_SQL("UPDATE `{!_MYSQL_PREFIX!}_config` SET points_register='".REQUEST_POST('points_register')."', points_ref='".REQUEST_POST('points_ref')."' WHERE config=0 LIMIT 1");
break;
- case "ref":
+ case 'ref':
switch (REQUEST_GET('do'))
{
case 'add':