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


PHP validator::validt_success方法代码示例

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


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

示例1: libraryClass

<?php

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", "sourceCode");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
$validator->validt_tags("sourceCode", 1, "");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_mailling_template SET\n\t\tsource='{$sourceCode}',regdate=now()\n\t\tWHERE type='account'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=mailTplAccount");
开发者ID:devwit,项目名称:toonytool,代码行数:23,代码来源:mailTplAccount.submit.php

示例2: implode

$lib->security_filter("request_get");
/*
레벨 POST변수 배열화
*/
$level['1'] = $level_1;
$level['2'] = $level_2;
$level['3'] = $level_3;
$level['4'] = $level_4;
$level['5'] = $level_5;
$level['6'] = $level_6;
$level['7'] = $level_7;
$level['8'] = $level_8;
$level['9'] = $level_9;
/*
검사
*/
for ($i = 1; $i <= 9; $i++) {
    if (trim($level[$i]) == "") {
        $validator->validt_diserror("level_" . $i, "");
    }
}
/*
DB 수정
*/
$level_vars = implode(",", $level);
$mysql->query("\n\t\tUPDATE toony_admin_siteconfig\n\t\tSET ad_member_type='{$level_vars}'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=memberLevel");
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:memberLevel.submit.php

示例3: stripslashes

} else {
    $mail_query_where = "\n\t\t\t(me_level<={$min_level} AND me_level>={$max_level}) AND me_drop_regdate IS NULL\n\t\t";
}
/*
DB저장
*/
$mysql->query("\n\t\tINSERT INTO toony_admin_mailling\n\t\t(me_idno,min_level,max_level,subject,memo,regdate)\n\t\tVALUES\n\t\t('{$receiver_idno}','{$min_level}','{$max_level}','{$subject}','{$memo}',now())\n\t");
/*
메일 발송
*/
$mysql->select("\n\t\tSELECT me_id,me_nick\n\t\tFROM toony_member_list\n\t\tWHERE {$mail_query_where}\n\t\tORDER BY me_regdate DESC\n\t");
if ($mysql->numRows() > 0) {
    $sendCount = 0;
    do {
        $mailSender->template = "mailling";
        $mailSender->t_email = $mysql->fetch("me_id");
        $mailSender->t_name = $mysql->fetch("me_nick");
        $mailSender->subject = $subject;
        $mailSender->memo = str_replace('\\"', '"', stripslashes($memo));
        $mailSender->mail_send();
        $sendCount++;
    } while ($mysql->nextRec());
} else {
    $validator->validt_diserror("", "수신할 회원이 한명도 없습니다.");
    exit;
}
/*
완료 후 리턴
*/
$validator->validt_success($sendCount . "명에게 성공적으로 발송 되었습니다.", "admin/?p=mailling");
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:mailling.submit.php

示例4: libraryClass

<?php

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", "skinType,skinName");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
홈페이지, 모바일페이지를 구분하여 DB update 구문 작성
*/
if ($skinType == "p") {
    $update = "ad_site_layout='{$skinName}'";
} else {
    $update = "ad_msite_layout='{$skinName}'";
}
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_siteconfig SET\n\t\t{$update}\n\t");
/*
완료후 리턴
*/
$validator->validt_success("성공적으로 반영 되었습니다.", "");
开发者ID:devwit,项目名称:toonytool,代码行数:27,代码来源:layoutSkin.submit.php

示例5:

    } else {
        $img_name = $img_ed;
    }
}
/**************************************************
	추가 모드인 경우
	**************************************************/
if ($type == "new") {
    /*
    DB수정
    */
    $mysql->query("\n\t\t\tINSERT INTO toony_admin_popupconfig\n\t\t\t(name,img,memo,void_use,void_link,link,bleft,btop,target,start_level,end_level,pop_article,pop_article_txt,regdate)\n\t\t\tVALUES\n\t\t\t('{$name}','{$img_name}','{$memo}','{$void_use}','{$void_link}','{$link}','{$bleft}','{$btop}','{$target}','{$start_level}','{$end_level}','{$pop_article}','{$pop_article_txt}',now())\n\t\t");
    /*
    완료 후 리턴
    */
    $validator->validt_success("성공적으로 추가 되었습니다.", "admin/?p=popupList&vtype={$vtype}");
}
/**************************************************
	수정 모드인 경우
	**************************************************/
if ($type == "modify") {
    /*
    DB수정
    */
    $mysql->query("\n\t\t\tUPDATE toony_admin_popupconfig SET\n\t\t\timg='{$img_name}',bleft='{$bleft}',btop='{$btop}',target='{$target}',link='{$link}',void_link='{$void_link}',void_use='{$void_use}',memo='{$memo}',start_level='{$start_level}',end_level='{$end_level}',pop_article='{$pop_article}',pop_article_txt='{$pop_article_txt}'\n\t\t\tWHERE name='{$name}'\n\t\t");
    /*
    완료 후 리턴
    */
    $validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=popupList_modify&type=modify&vtype={$vtype}&act={$name}");
    /**************************************************
    	삭제 모드인 경우
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:popupList_modify.submit.php

示例6: libraryClass

<?php

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", "scriptCode,sourceCode,vtype");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_design_mainVisual SET\n\t\tscriptCode='{$scriptCode}',sourceCode='{$sourceCode}'\n\t\tWHERE vtype='{$vtype}'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=mainVisual&vtype={$vtype}");
开发者ID:devwit,项目名称:toonytool,代码行数:19,代码来源:mainVisual.submit.php

示例7:

if (trim($password) != "") {
    if ($password != $password02) {
        $validator->validt_diserror("password02", "비밀번호와 비밀번호 확인이 일치하지 않습니다.");
    }
    $validator->validt_password("password", 1, "");
    $password_val = "password('{$password}')";
} else {
    $password_val = "'{$array['me_password']}'";
}
/*
포인트 변경시 변경 이력 DB에 기록 남김
*/
if ($point != $array['me_point']) {
    $point_var_void = $point - $array['me_point'];
    if ($point_var_void > 0) {
        $lib->func_member_point_add($array['me_idno'], "in", $point_var_void, "운영자 포인트 조정");
    } else {
        if ($point_var_void < 0) {
            $lib->func_member_point_add($array['me_idno'], "out", $point_var_void / -1, "운영자 포인트 조정");
        }
    }
}
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_member_list\n\t\tSET me_id='{$id}',me_password={$password_val},me_nick='{$nick}',me_sex='{$sex}',me_phone='{$phone}',me_telephone='{$telephone}',me_point='{$point}'\n\t\tWHERE me_admin='Y' AND me_level=1\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("수정이 완료 되었습니다.", "admin/?p=adminInfo");
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:adminInfo.submit.php

示例8:

        $validator->validt_diserror("password02", "비밀번호와 비밀번호 확인이 일치하지 않습니다.");
    }
    if (trim($password) != "") {
        $validator->validt_password("password", 1, "");
        $password_val = "password('{$password}')";
    } else {
        $password_val = "'" . $member['me_password'] . "'";
    }
    /*
    DB수정
    */
    $mysql->query("\n\t\t\tUPDATE toony_member_list\n\t\t\tSET me_password={$password_val},me_nick='{$nick}',me_sex='{$sex}',me_phone='{$phone}',me_telephone='{$telephone}'\n\t\t\tWHERE me_idno='{$member['me_idno']}' AND me_drop_regdate IS NULL\n\t\t");
    /*
    완료 후 리턴
    */
    $validator->validt_success("성공적으로 수정 되었습니다.", "window.document.location.reload");
    /**************************************************
    	탈퇴 모드인 경우
    	**************************************************/
} else {
    if ($type == "leave") {
        /*
        검사
        */
        if ($member['me_admin'] == "Y") {
            $validator->validt_diserror("", "최고 회원은 탈퇴할 수 없습니다.");
        }
        /*
        탈퇴처리
        */
        $mysql->query("\n\t\t\tUPDATE toony_member_list\n\t\t\tSET me_drop_regdate=now()\n\t\t\tWHERE me_idno='{$member['me_idno']}' AND me_drop_regdate IS NULL\n\t\t");
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:myInformation.submit.php

示例9: libraryClass

<?php

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,scriptCode,sourceCode");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_design_footer SET\n\t\tscriptCode='{$scriptCode}',sourceCode='{$sourceCode}'\n\t\tWHERE vtype='{$vtype}'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=footerDesign&vtype={$vtype}");
开发者ID:devwit,项目名称:toonytool,代码行数:19,代码来源:footerDesign.submit.php

示例10: libraryClass

<?php

include "include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
include __DIR_PATH__ . "capcha/zmSpamFree.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "name,email,phone,memo,capcha");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
$validator->validt_nick("name", 1, "");
$validator->validt_email("email", 1, "");
$validator->validt_phone("phone", 1, "");
$validator->validt_null("memo", "");
if (!isset($__toony_member_idno) && zsfCheck($capcha, "") != true) {
    $validator->validt_diserror("capcha", "NOT_CAPCHA");
}
/*
DB 저장
*/
$mysql->query("\n\t\tINSERT INTO toony_customer_qna\n\t\t(me_idno,memo,cst_name,cst_email,cst_phone,regdate)\n\t\tVALUES\n\t\t('{$member['me_idno']}','{$memo}','{$name}','{$email}','{$phone}',now())\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 접수 되었습니다.\n\n신속한 답변 드리도록 하겠습니다.", "window.document.location.reload");
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:contactUs.submit.php

示例11: setcookie

$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE me_id='{$id}' AND me_password=password('{$password}') AND me_drop_regdate IS NULL\n\t");
if ($mysql->numRows() < 1) {
    $validator->validt_diserror("id", "아이디 혹은 비밀번호가 잘못 되었습니다.");
}
if ($mysql->fetch("me_idCheck") == "N") {
    $validator->validt_returnAjax("이메일 인증이 필요한 아이디입니다.", "account.idCheck.send.php");
}
/*
로그인 처리
*/
$member['me_id'] = $mysql->fetch("me_id");
$member['me_idno'] = $mysql->fetch("me_idno");
$session->session_register("__toony_member_idno", $member['me_idno']);
/*
로그인 내역 기록
*/
$mysql->query("\n\t\tUPDATE toony_member_list\n\t\tSET me_login_ip='{$_SERVER['REMOTE_ADDR']}',me_login_regdate=now()\n\t\tWHERE me_idno='{$member['me_idno']}';\n\t");
/*
아이디 저장을 체크한 경우 아이디를 쿠키에 저장
*/
if ($save_id == "checked") {
    setcookie("__toony_member_saveId", $member['me_id'], time() + 2592000, "/");
} else {
    setcookie("__toony_member_saveId", "", 0, "/");
}
/*
완료 후 리턴
*/
//로그인 후 이동할 페이지 URI를 리턴
$validator->validt_success("", urldecode($redirect));
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:login.submit.php

示例12:

$mysql->select("\n\t\tSELECT me_idno\n\t\tFROM toony_member_list \n\t\tWHERE me_id='{$id}'\n\t");
if ($mysql->numRows() < 1) {
    $validator->validt_diserror("id", "존재하지 않는 아이디입니다.");
}
/*
임시 비밀번호 생성 후 회원의 비밀번호를 임시 비밀번호로 DB 변경
*/
$upw = md5(date("YmdHis") . $id);
$mysql->query("\n\t\tUPDATE toony_member_list \n\t\tSET me_password=password('{$upw}')\n\t\tWHERE me_id='{$id}' AND me_drop_regdate IS NULL\n\t");
/*
회원의 기본 정보 로드
*/
$mysql->select("\n\t\tSELECT me_nick\n\t\tFROM toony_member_list\n\t\tWHERE me_id='{$id}' AND me_drop_regdate IS NULL\n\t");
$mysql->fetchArray("me_nick");
$array = $mysql->array;
$nick = $array['me_nick'];
/*
회원의 이메일로 임시 비밀번호 발송
*/
$mailSender->template = "password";
$mailSender->t_email = $id;
$mailSender->t_name = $nick;
$mailSender->subject = "{$nick}님의 {$site_config['ad_site_name']} 로그인 임시 비밀번호";
$mailSender->account_password = $upw;
$mailSender->mail_send();
/*
완료 후 리턴
*/
//로그인 후 이동할 페이지 URI를 리턴
$validator->validt_success("회원님의 이메일로 임시 비밀번호가\n\n성공적으로 발송 되었습니다.", "window.document.location.reload");
开发者ID:devwit,项目名称:toonytool,代码行数:30,代码来源:findPassword.submit.php

示例13: urlencode

    //회원인 경우 회원 아이디를 이메일 주소로 기록
    if ($type == 2 && isset($__toony_member_idno)) {
        $email = $member['me_id'];
    }
    //회원인 경우 회원 이름을 작성자에 기록
    if ($type == 2 && isset($__toony_member_idno)) {
        $writer = $member['me_nick'];
    }
    //DB 기록
    $mysql->query("\n\t\t\tINSERT INTO toony_module_board_data_{$board_id}\n\t\t\t(category,me_idno,writer,password,email,ment,subject,file1,file2,use_secret,use_notice,use_html,use_email,ip,regdate,ln,td_1,td_2,td_3,td_4,td_5) \n\t\t\tVALUES\n\t\t\t('{$category}','{$member['me_idno']}','{$writer}','{$password}','{$email}','{$ment}','{$subject}','{$file1_name}','{$file2_name}','{$use_secret}','{$use_notice}','{$use_html}','{$use_email}','{$_SERVER['REMOTE_ADDR']}',now(),'{$ln_array['ln_max']}','{$td_1}','{$td_2}','{$td_3}','{$td_4}','{$td_5}')\n\t\t");
    //작성된 글을 다시 로드해옴
    $mysql->select("\n\t\t\tSELECT idno \n\t\t\tFROM toony_module_board_data_{$board_id}\n\t\t\tWHERE writer='{$writer}' AND subject='{$subject}' AND ment='{$ment}'\n\t\t");
    //조회수 세션 등록
    $session->session_register('__toony_board_view_' . $mysql->fetch("idno"), $mysql->fetch("idno"));
    //완료 후 리턴
    $validator->validt_success("", "?article={$article}&category=" . urlencode($category_ed) . "&p=read&read={$mysql->fetch("idno")}");
}
/**************************************************
	글 수정인 경우
	**************************************************/
if ($mode == "modify") {
    //작성자 처리
    if ($wquery['me_idno'] == $__toony_member_idno && $type == 2) {
        $writer = $member['me_nick'];
    } else {
        if ($wquery['me_idno'] != 0 && $type == 2) {
            $writer = $wquery['writer'];
        } else {
            $writer = $writer;
        }
    }
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:write.submit.php

示例14:

    검사
    */
    $validator->validt_idx("name", 1, "");
    $validator->validt_null("memo", "");
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_page_list\n\t\t\tWHERE name='{$name}' AND vtype='{$vtype}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("name", "이미 등록된 코드명입니다.");
    }
    /*
    DB추가
    */
    $mysql->query("\n\t\t\tINSERT INTO toony_page_list\n\t\t\t(name,vtype,scriptCode,memo,source,level,regdate)\n\t\t\tVALUES\n\t\t\t('{$name}','{$vtype}','{$scriptCode}','{$memo}','{$sourceCode}','{$level}',now())\n\t\t");
    /*
    완료 후 리턴
    */
    $validator->validt_success("성공적으로 추가 되었습니다.", "admin/?p=pageList&vtype={$vtype}");
    /**************************************************
    	수정 모드인 경우
    	**************************************************/
} else {
    if ($type == "modify") {
        /*
        검사
        */
        $validator->validt_null("memo", "");
        /*
        DB수정
        */
        $mysql->query("\n\t\t\tUPDATE toony_page_list\n\t\t\tSET memo='{$memo}',scriptCode='{$scriptCode}',source='{$sourceCode}',level='{$level}'\n\t\t\tWHERE idno='{$idno}' AND vtype='{$vtype}'\n\t\t");
        /*
        완료 후 리턴
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:pageList_modify.submit.php

示例15:

    검사
    */
    $validator->validt_null("ip", "");
    $validator->validt_null("memo", "");
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_admin_security_ip\n\t\t\tWHERE ip='{$ip}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("ip", "이미 등록된 ip입니다.");
    }
    /*
    DB 저장
    */
    $mysql->query("\n\t\t\tINSERT INTO toony_admin_security_ip (ip,memo,regdate)\n\t\t\tVALUES\n\t\t\t('{$ip}','{$memo}',now())\n\t\t");
    /*
    완료 후 리턴
    */
    $validator->validt_success("성공적으로 추가 되었습니다.", "admin/?p=blockIP");
    /**************************************************
    	삭제 모드인 경우
    	**************************************************/
} else {
    if ($type == "delete") {
        if (sizeof($cnum) < 1) {
            $validator->validt_diserror("", "하나의 항목도 선택되지 않았습니다.");
        }
        $b = 0;
        for ($i = 0; $i < sizeof($cnum); $i++) {
            if ($cnum[$i] != "") {
                /*
                DB Delete
                */
                $mysql->query("\n\t\t\t\t\tDELETE FROM toony_admin_security_ip\n\t\t\t\t\tWHERE idno='{$cnum[$i]}'\n\t\t\t\t");
开发者ID:devwit,项目名称:toonytool,代码行数:31,代码来源:blockIP.submit.php


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