本文整理匯總了PHP中security::secure方法的典型用法代碼示例。如果您正苦於以下問題:PHP security::secure方法的具體用法?PHP security::secure怎麽用?PHP security::secure使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類security
的用法示例。
在下文中一共展示了security::secure方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: check_pers
<?php
function check_pers($per, $total)
{
// $num = ceil($snum);
$total = ceil($total);
$num = ceil($total * $per) / 100;
return $num;
}
if (isset($_POST['sendsilk'])) {
// $user = $sec->secure($_POST['username']);
$email = security::secure($_POST['name']);
$amont = security::secure($_POST['amont']);
//$check = core::$sql -> exec("SELECT * FROM TB_User WHERE StrUserID = '".$user."'");
if (empty($_POST['amont']) || empty($_POST['name'])) {
echo 'Error:';
echo '<br />';
echo "You left some fields blank! <a href = '?pg=forgot'>go back and try again!</a>";
unset($_POST['sendsilk']);
}
if (user::accountExists($email) == 1) {
echo '
Error
<br />
<form method="POST">
<label><span style="color: red;font-weight:bold;font-size: medium;"> character name !!! </span></label>
';
} else {
$IDs = user::accountJIDbyUsername($_SESSION['username']);
$silk_own = user::getSilkByUsername($IDs);
if ($_POST['amont'] > $silk_own) {