本文整理匯總了PHP中kekezu::filter_input方法的典型用法代碼示例。如果您正苦於以下問題:PHP kekezu::filter_input方法的具體用法?PHP kekezu::filter_input怎麽用?PHP kekezu::filter_input使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類kekezu
的用法示例。
在下文中一共展示了kekezu::filter_input方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_info
if ($is_submit && kekezu::submitcheck(isset($formhash))) {
$url = "index.php?do={$do}&view={$view}";
$user or kekezu::admin_show_msg($_lang['username_uid_can_not_null'], $url, 3, '', 'warning');
$info = get_info($user, $user_type);
$cash = floatval($cash);
$cash == 0 and kekezu::admin_show_msg($_lang['cash_can_not_null'], $url, 3, '', 'warning');
if ($cash_type == 1) {
$res = keke_finance_class::cash_in($info['uid'], floatval($cash), 'admin_charge', '', 'admin_charge');
} else {
if ($cash > $info['balance']) {
kekezu::admin_show_msg($_lang['user_deduct_limit'] . $info['balance'] . $_lang['yuan'], $url, 3, '', 'warning');
} else {
$res = keke_finance_class::cash_out($info['uid'], floatval($cash), 'admin_charge', '', 'admin_charge');
}
}
$charge_reason = kekezu::filter_input($charge_reason);
$sql2 = "update " . TABLEPRE . "witkey_finance set fina_mem='{$charge_reason}' where fina_id = last_insert_id()";
db_factory::execute($sql2);
if ($res) {
if ($cash_type == 1) {
$v_arr = array('用戶名' => $info[username], '金額動作' => '充值', '金額' => $cash);
keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '後台手動充值通知', $v_arr, 2);
kekezu::admin_show_msg('手動充值現金成功', $url, 3, '', 'success');
} else {
$v_arr = array('用戶名' => $info[username], '金額動作' => '扣除', '金額' => $cash);
keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '後台手動充值通知', $v_arr, 2);
kekezu::admin_show_msg('手動扣除現金成功', $url, 3, '', 'success');
}
} else {
kekezu::admin_show_msg('手動充值或扣除失敗', "index.php?do={$do}&view={$view}", 3, '', 'warning');
}