本文整理汇总了PHP中myclass::clean_input方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::clean_input方法的具体用法?PHP myclass::clean_input怎么用?PHP myclass::clean_input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::clean_input方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
# initialize 1
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
// echo " <bR><br><bR><Br>mno ".$_SESSION['mno'];
// echo " $mno ";
/*
if ( empty($_GET['id'])) {
$mc->go("/");
$looks = $mc-> retreive_specific_user_all_looks( $mno , "order by plno desc " );
$_GET['id'] = $looks[0]["plno"];
}else{
}
*/
echo " get " . $_GET['id'] . '<br>';
$plno = $_GET['id'];
$plno = $mc->clean_input($plno);
if ($mc->look_exist($plno)) {
} else {
// $mc->go("/");
}
$mc->auto_detect_path();
$_SESSION['plno'] = $plno;
// $plno = $plno;
$img = "{$mc->look_folder_lookdetails}/{$plno}.jpg";
$modal['table_name'] = 'postedlooks';
$modal['table_id'] = $plno;
$mc->get_visitor_info("", "lookdetails page lookid = {$plno} ", "home");
$nno = !empty($_GET['nno']) ? intval($_GET['nno']) : 0;
# UPDATE NOTIFICATION AS VIEWED
if ($nno != 0) {
$response = $mc->posted_modals_notification_Query(array('nno' => $nno, 'notification_query' => 'set-notification-viewed'));
示例2: myclass
<?php
require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/myclass.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
$mc = new myclass();
if (!empty($_SESSION['adm_no'])) {
$mc->go("admindashboard");
} else {
if (isset($_POST['admin_submit_login'])) {
$admin_username = $mc->clean_input($_POST['admin_username']);
$admin_password = $mc->clean_input($_POST['admin_password']);
$logIn = $mc->set_Login_admin($admin_username, $admin_password, array('tableName' => 'admin', 'userRow' => 'adm_user', 'passRow' => 'adm_pass'));
if ($logIn) {
// echo"login";
$_SESSION['adm_no'] = 1;
$mc->go("admindashboard");
} else {
$_SESSION['admin'] = 0;
// echo"Invalid info";
}
}
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="fs_folders/admin/css/adminlogin.css">
<title> admin | log in</title>