当前位置: 首页>>代码示例>>PHP>>正文


PHP validator::validt_number方法代码示例

本文整理汇总了PHP中validator::validt_number方法的典型用法代码示例。如果您正苦于以下问题:PHP validator::validt_number方法的具体用法?PHP validator::validt_number怎么用?PHP validator::validt_number使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在validator的用法示例。


在下文中一共展示了validator::validt_number方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: libraryClass

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "vtype,body_bgColor,body_txtColor,body_txtSize,link_txtColor,link_hoverColor,link_activeColor,link_visitedColor,link_txtSize,input_txtColor,input_txtSize,useDefault");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
변수 처리
*/
if ($useDefault == "checked") {
    $useDefault = "Y";
} else {
    $useDefault = "N";
}
/*
검사
*/
$validator->validt_number("body_txtSize", 1, 10, 1, "");
$validator->validt_number("link_txtSize", 1, 10, 1, "");
$validator->validt_number("input_txtSize", 1, 10, 1, "");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_design_bodyStyle\n\t\tSET\n\t\tbody_bgColor='{$body_bgColor}',body_txtColor='{$body_txtColor}',body_txtSize='{$body_txtSize}',link_txtColor='{$link_txtColor}',link_hoverColor='{$link_hoverColor}',\n\t\tlink_activeColor='{$link_activeColor}',link_visitedColor='{$link_visitedColor}',link_txtSize='{$link_txtSize}',input_txtColor='{$input_txtColor}',input_txtSize='{$input_txtSize}',useDefault='{$useDefault}'\n\t\tWHERE vtype='{$vtype}'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=bodyStyle");
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:bodyStyle.submit.php

示例2: mysqlConnection

$mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$validator = new validator();
$method->method_param("POST", "type,name,memo,void_use,void_link,link,bleft,btop,target,img_ed,start_level,end_level,pop_article,pop_article_txt");
$method->method_param("FILE", "img");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
//입력값 검사
if ($type == "new" || $type == "modify") {
    $validator->validt_idx("name", 1, "");
    $validator->validt_null("memo", "");
    $validator->validt_number("btop", 0, 5, 1, "");
    $validator->validt_number("bleft", 0, 5, 1, "");
    if ($start_level < $end_level) {
        $validator->validt_diserror("start_level", "최소 레벨이 최대 레벨보다 클 수 없습니다.");
    }
    if ($pop_article == "select" && trim($pop_article_txt) == "") {
        $validator->validt_diserror("pop_article_txt", "");
    }
}
//추가 모드인 경우 추가 입력값 검사
if ($type == "new") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_admin_popupconfig\n\t\t\tWHERE name='{$name}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("name", "이미 존재하는 코드입니다.");
    }
    if (!$img['name']) {
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:popupList_modify.submit.php

示例3: libraryClass

include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "id,password,password02,nick,sex,phone,telephone,point");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
$validator->validt_email("id", 1, "");
$validator->validt_nick("nick", 1, "");
$validator->validt_phone("phone", 0, "");
$validator->validt_phone("telephone", 0, "");
$validator->validt_number("point", 1, 10, 0, "");
/*
최고 운영자 기본 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE me_admin='Y' AND me_level=1\n\t");
$mysql->fetchArray("me_password,me_point,me_idno");
$array = $mysql->array;
/*
비밀번호 인풋에 값이 입력된 경우 비밀번호를 변경함
*/
if (trim($password) != "") {
    if ($password != $password02) {
        $validator->validt_diserror("password02", "비밀번호와 비밀번호 확인이 일치하지 않습니다.");
    }
    $validator->validt_password("password", 1, "");
    $password_val = "password('{$password}')";
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:adminInfo.submit.php

示例4: validator

$validator = new validator();
$method->method_param("POST", "type,board_id,skin,name,use_list,use_m_list,use_secret,use_comment,use_likes,use_reply,use_category,category,use_file1,use_file2,file_limit,list_limit,list_m_limit,length_limit,length_m_limit,array_level,write_level,secret_level,comment_level,delete_level,read_level,controll_level,reply_level,write_point,read_point,top_file,top_source,bottom_file,bottom_source,thumb_width,thumb_m_width,thumb_height,thumb_m_height,articleIMG_width,articleIMG_m_width,articleIMG_height,articleIMG_m_height,article_length,article_m_length,ico_file_p,ico_file_m,ico_mobile_p,ico_mobile_m,ico_secret_p,ico_secret_m,ico_secret_def,ico_new_p,ico_new_m,ico_new_def,ico_hot_def_v,ico_hot_def_r,ico_hot_def_type,ico_hot_p,ico_hot_m,tc_1,tc_2,tc_3,tc_4,tc_5");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
if ($type == "new") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_config\n\t\t\tWHERE board_id='{$board_id}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("board_id", "이미 존재하는 코드입니다.");
    }
    $validator->validt_idx("board_id", 1, "");
}
$validator->validt_null("name", "");
$validator->validt_number("list_limit", 1, 10, 1, "");
$validator->validt_number("list_m_limit", 1, 10, 1, "");
$validator->validt_number("length_limit", 1, 10, 1, "");
$validator->validt_number("length_m_limit", 1, 10, 1, "");
$validator->validt_number("file_limit", 1, 10, 1, "");
$validator->validt_number("article_length", 1, 10, 1, "");
$validator->validt_number("article_m_length", 1, 10, 1, "");
$validator->validt_number("write_point", 1, 10, 1, "");
$validator->validt_number("read_point", 1, 10, 1, "");
$validator->validt_number("thumb_width", 1, 10, 1, "");
$validator->validt_number("thumb_m_width", 1, 10, 1, "");
$validator->validt_number("thumb_height", 1, 10, 1, "");
$validator->validt_number("thumb_m_height", 1, 10, 1, "");
$validator->validt_number("articleIMG_width", 1, 10, 1, "");
$validator->validt_number("articleIMG_m_width", 1, 10, 1, "");
$validator->validt_number("articleIMG_height", 1, 10, 1, "");
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:boardList_modify.submit.php

示例5:

}
if ($use_smtp == "checked") {
    $use_smtp = "Y";
} else {
    $use_smtp = "N";
}
/*
검사
*/
$validator->validt_null("site_name", "");
$validator->validt_null("site_title", "");
$validator->validt_email("ad_email", 1, "");
$validator->validt_null("ad_phone", "");
if ($use_smtp == "Y") {
    $validator->validt_null("smtp_server", "");
    $validator->validt_number("smtp_port", 1, "");
    $validator->validt_null("smtp_id", "");
    $validator->validt_null("smtp_pwd", "");
} else {
    $validator->validt_number("smtp_port", 0, "");
}
/*
파비콘 업로드
*/
$fileUploader->savePath = __DIR_PATH__ . "upload/siteInformations/";
$fileUploader->filedotType = "ico";
$pavicon_name = "";
if ($pavicon['size'] > 0) {
    $fileUploader->saveFile = $pavicon;
    //경로 및 파일 검사
    $fileUploader->filePathCheck();
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:siteDefaultInfo.submit.php


注:本文中的validator::validt_number方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。