本文整理汇总了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) {