<?php header("Content-Type:text/html;charset=UTF-8"); include "../../function/new_function.php"; include "../../gd.php"; //宣告tool物件 $tool = new My_tool(); if (isset($_POST['submit'])) { //新增目錄 copy($_FILES["upload"]["tmp_name"], "../images/download.doc"); $tool->show('上傳完畢!'); } //submit事件結束符號 ?> <style type="text/css"> <!-- body { margin-left: 9px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; background-image: url(../../images/mainbg.gif); background-repeat: no-repeat; } body,td,th { font-size: 13px; font-family: Arial, Helvetica, sans-serif; color: #333333; } --> </style>
function ro_str($str) { $f**k = array("幹你娘", "幹您娘", "F**K", "王八蛋", "畜牲", "wyler", "王八", "中出", "內射"); if (!in_array($str, $f**k) === NULL) { $tool = new My_tool(); $tool->error("留言失敗!留言內含過濾字元。"); exit; } }