當前位置: 首頁>>代碼示例>>PHP>>正文


PHP myclass::clean_input方法代碼示例

本文整理匯總了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'));
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:more-look.php

示例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>
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:adminlogin.php


注:本文中的myclass::clean_input方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。