X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-sub_points.php;h=e16508200fc34bdcaa0a91897acb0c9fcf2a33f5;hb=c08df20b10d0771e7f749d7afbe1f76be9f1b028;hp=3625940960ac71cedabaab809f8cf4b41c790307;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/modules/admin/what-sub_points.php b/inc/modules/admin/what-sub_points.php index 3625940960..e16508200f 100644 --- a/inc/modules/admin/what-sub_points.php +++ b/inc/modules/admin/what-sub_points.php @@ -38,7 +38,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); // Fix a notice if (!isset($_GET['u_id'])) $_GET['u_id'] = ""; @@ -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', "".$sname." ".$fname.""); - define('__UID_VALUE', $_GET['u_id']); + define('__UID', bigintval($_GET['u_id'])); LOAD_TEMPLATE("admin_sub_points"); } }