}
// 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'] = "";
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'])
);
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'])
);
{
// 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");
}
}