'what','action','module' and 'output_mode' wrapped into functions (WARNUNG: Code...
[mailer.git] / inc / modules / admin / what-config_points.php
index 51aef758e7ef7fe878a037d3d3e613200cf20e57..4c10dafb62d17d45359fc47989e9735ec8d4a921 100644 (file)
@@ -51,15 +51,14 @@ $message = '';
 // 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');
@@ -69,18 +68,17 @@ if (REQUEST_ISSET_GET('sub')) {
        }
 } 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':