]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_points.php
Some missing brackes added, sponsor guest modules now depends on extension
[mailer.git] / inc / modules / admin / what-add_points.php
index e77b3f24fe9f6cc5f891650604d8ac4cdd03c6ca..f514b885cdee17f65e6ffebc4523d5000e16493f 100644 (file)
@@ -58,8 +58,14 @@ if ($_GET['u_id'] == "all") {
                                SQL_FREERESULT($result);
 
                                if ((isset($_POST['ok'])) && (!empty($_POST['points']))) {
+                                       global $DEPTH;
+                                       // Remove depth to prevent booking errors. This is a bad coding
+                                       // practice, thats also why we need to write this project from
+                                       // scratch...
+                                       unset($DEPTH);
+
                                        // Ok, add points and send an email to him...
-                                       ADD_POINTS_REFSYSTEM($uid, bigintval($_POST['points']), false, "0", false, "direct");
+                                       ADD_POINTS_REFSYSTEM("admin_all", $uid, bigintval($_POST['points']), false, "0", false, "direct");
 
                                        // Prepare content
                                        $content = array(
@@ -93,8 +99,14 @@ if ($_GET['u_id'] == "all") {
                SQL_FREERESULT($result);
 
                if ((isset($_POST['ok'])) && (!empty($_POST['points']))) {
+                       global $DEPTH;
+                       // Remove depth to prevent booking errors. This is a bad coding
+                       // practice, thats also why we need to write this project from
+                       // scratch...
+                       unset($DEPTH);
+
                        // Ok, add points and send an email to him...
-                       ADD_POINTS_REFSYSTEM(bigintval($_GET['u_id']), bigintval($_POST['points']), false, "0", false, "direct");
+                       ADD_POINTS_REFSYSTEM("admin_single", bigintval($_GET['u_id']), bigintval($_POST['points']), false, "0", false, "direct");
 
                        // Prepare content
                        $content = array(