本文整理汇总了PHP中secure::strSecureDecode方法的典型用法代码示例。如果您正苦于以下问题:PHP secure::strSecureDecode方法的具体用法?PHP secure::strSecureDecode怎么用?PHP secure::strSecureDecode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类secure
的用法示例。
在下文中一共展示了secure::strSecureDecode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
} else {
$response = array('success' => true, 'data' => false);
}
}
echo ajax::sdgJSONencode($response);
} elseif (!empty($_GET['q']) && defined(strtoupper($_GET['q']))) {
echo constant($_GET['q']);
} elseif (isset($_GET['score']) && is_numeric($_GET['score']) && $_GET['score'] <= 5 && $_GET['score'] >= 1 && isset($_GET['id']) && is_numeric($_GET['id']) && $_GET['id']) {
$articles = new articles();
$articles->rateArticle($_GET['score'], $_GET['id']);
} elseif (isset($_POST['dl']) && (int) $_POST['dl'] && 0 < $_POST['dl']) {
$user = new user();
$result = $user->ajaxDeleteUserLogo($_POST['dl']);
echo 'ok' === $result ? $result : ('noisset' === $result ? ERROR_USER_NOT_EXISTS : ERROR_DELETE_LOGO);
} elseif (isset($_GET['sendto'])) {
if (!isset($_POST['sendto']) || !($sendto = secure::strSecureDecode($_POST['sendto'])) || !validate::validateEmail($sendto)) {
echo 'errSendto';
} elseif (!isset($_POST['email']) || !validate::validateEmail($_POST['email'])) {
echo 'errEmail';
} elseif (!isset($_GET['respAnn']) && SECURE_CAPTCHA && (!isset($_POST['keystring']) || !($securimage = new securimage()) || !$securimage->check($_POST['keystring']))) {
echo 'errKeystring';
} else {
$mailer = new mailer();
if (!empty($_POST['message'])) {
$mailer->setAddReplace(array('%FEEDBACK%' => $_POST['message']));
$mailTemplate = 'feedback.txt';
$mailText = false;
} elseif (!empty($_POST['text'])) {
$mailTemplate =& $_POST['text'];
$mailText = true;
} else {