function go_clipboard_add() { $ids = $_POST['ids']; $points = $_POST['points']; $currency = $_POST['currency']; $bonus_currency = $_POST['bonus_currency']; $penalty = $_POST['penalty']; $minutes = $_POST['minutes']; $reason = $_POST['reason']; $badge_ID = $_POST['badge_ID']; foreach ($ids as $key => $value) { if ($reason != '') { if ($points != '') { go_add_currency($value, $reason, 6, $points, 0, false); } if ($currency != '') { go_add_currency($value, $reason, 6, 0, $currency, false); } if ($bonus_currency != '') { go_add_bonus_currency($value, $bonus_currency, $reason); } if ($penalty != '') { go_add_penalty($value, $penalty, $reason); } if ($minutes != '') { go_add_minutes($value, $minutes, $reason); } if ($badge_ID != '') { do_shortcode("[go_award_badge id='{$badge_ID}' repeat = 'off' uid='{$value}']"); } go_message_user($value, $reason); } } die; }
function go_admin_bar_add() { $points_points = $_POST['go_admin_bar_points_points']; $points_reason = $_POST['go_admin_bar_points_reason']; $currency_points = $_POST['go_admin_bar_currency_points']; $currency_reason = $_POST['go_admin_bar_currency_reason']; $bonus_currency_points = $_POST['go_admin_bar_bonus_currency_points']; $bonus_currency_reason = $_POST['go_admin_bar_bonus_currency_reason']; $penalty_points = $_POST['go_admin_bar_penalty_points']; $penalty_reason = $_POST['go_admin_bar_penalty_reason']; $minutes_points = $_POST['go_admin_bar_minutes_points']; $minutes_reason = $_POST['go_admin_bar_minutes_reason']; $user_id = get_current_user_id(); if ($points_points != '' && $points_reason != '') { go_add_currency($user_id, $points_reason, 6, $points_points, 0, false); go_update_ranks($current_user_id, $current_points); } if ($currency_points != '' && $currency_reason != '') { go_add_currency($user_id, $currency_reason, 6, 0, $currency_points, false); } if ($bonus_currency_points != '' && $bonus_currency_reason != '') { go_add_bonus_currency($user_id, $bonus_currency_points, $bonus_currency_reason); } if ($penalty_points != '' && $penalty_reason != '') { go_add_penalty($user_id, $penalty_points, $penalty_reason); } if ($minutes_points != '' && $minutes_reason != '') { go_add_minutes($user_id, $minutes_points, $minutes_reason); } die; }