]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Cache class rewritten to better convention
[mailer.git] / inc / modules / admin / what-sub_points.php
index 6ac305396f32c467db5fe2f63911d4e2ef034bfe..e16508200fc34bdcaa0a91897acb0c9fcf2a33f5 100644 (file)
@@ -64,11 +64,11 @@ if ($_GET['u_id'] == "all")
                                if ((isset($_POST['ok'])) && (!empty($_POST['points'])))
                                {
                                        // Ok, add points to used points and send an email to him...
-                                       SUB_POINTS($uid, $_POST['points']);
+                                       SUB_POINTS("admin_all", $uid, $_POST['points']);
 
                                        // Prepare content
                                        $content = array(
-                                               'text' => SQL_ESCAPE($_POST['reason']),
+                                               'text'   => SQL_ESCAPE($_POST['reason']),
                                                'points' => bigintval($_POST['points'])
                                        );
 
@@ -104,11 +104,11 @@ if ($_GET['u_id'] == "all")
                if ((isset($_POST['ok'])) && (!empty($_POST['points'])))
                {
                        // Ok, add to used points and send an email to him...
-                       SUB_POINTS(bigintval($_GET['u_id']), $_POST['points']);
+                       SUB_POINTS("admin_single", bigintval($_GET['u_id']), $_POST['points']);
 
                        // Prepare content
                        $content = array(
-                               'text' => SQL_ESCAPE($_POST['reason']),
+                               'text'   => SQL_ESCAPE($_POST['reason']),
                                'points' => bigintval($_POST['points'])
                        );
 
@@ -123,7 +123,7 @@ if ($_GET['u_id'] == "all")
                {
                        // Opps, missing form here
                        define('__USER_VALUE', "<A href=\"".CREATE_EMAIL_LINK($email, "user_data")."\">".$sname." ".$fname."</A>");
-                       define('__UID_VALUE', $_GET['u_id']);
+                       define('__UID', bigintval($_GET['u_id']));
                        LOAD_TEMPLATE("admin_sub_points");
                }
        }