当前位置: 首页>>代码示例>>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;未经允许,请勿转载。