コード例 #1
0
ファイル: addok.php プロジェクト: robocon/iopr
$msn = trim(htmlspecialchars($msn));
$yahoo = trim(htmlspecialchars($yahoo));
$qq = trim(htmlspecialchars($qq));
if ($login_true || $admin_user) {
} else {
    if (USE_CAPCHA) {
        check_captcha($_POST['security_code']);
    }
}
if ($first_name == "" || $last_name == "" || $nic_name == "" || $sex == "" || $age == "" || $numid == '' || $yearfin == '' || $province == "" || $email == "") {
    $showmsg = "<br><br><center><font size='3' face='MS Sans Serif'><b>" . _MEMBER_MOD_FORM_JAVA_DATA_NOT . "</b></font><br><br>\n<input type='button' value='" . _MEMBER_MOD_FORM_JAVA_RETERN . "' onclick='history.back();'></center>";
    showerror($showmsg);
    exit;
}
// »éͧ¡Ñ¹¤ÓËÂÒº¢Í§ Comment
$comment = CheckRude($comment);
// á»Å§ Çѹ/à´×͹/»Õà¡Ô´
$birthday = "{$day}/{$month}/{$year}";
$MPics = $_FILES['MPic'];
//	echo $MPics['name'];
// µÃǨÊͺ¤ÇÒÁ¡ÇéÒ§¢Í§ÃÙ»
if (empty($MPics['tmp_name'])) {
    $filenames = "";
} else {
    $size = getimagesize($MPics['tmp_name']);
    if ($size[0] > _ALUMNUS_LIMIT_PICWIDTH) {
        //¶éÒ¤ÇÒÁ¡ÇéÒ§ÁÒ¡¡ÇèÒ 100 pixels (á¡éä¢ä´é·Õè config)
        echo "<br><br><center><font size=3><b>" . _ALUM_MOD_SAVE_MPIC_WIDTH1 . " " . _ALUMNUS_LIMIT_PICWIDTH . " pixels  " . _ALUM_MOD_SAVE_MPIC_WIDTH2 . " " . $size[0] . " pixels " . _ALUM_MOD_SAVE_MPIC_WIDTH3 . "<br><br><a href='javascript:history.back(1)'>[ " . _JAVA_FORM_BACK_EDIT . " ]</a></b></font></center>";
        exit;
    }
    // µÃǨÊͺ¢¹Ò´¢Í§ÃÙ»
コード例 #2
0
ファイル: post.php プロジェクト: robocon/iopr
     echo "<script language='javascript'>";
     echo "alert('" . _JAVA_DATA_NULL . "')";
     echo "</script>";
     echo "<script language='javascript'>javascript:history.go(-1)</script>";
     exit;
 }
 if ($_SESSION['login_true'] || $_SESSION['admin_user']) {
 } else {
     if (USE_CAPCHA) {
         check_captcha($_POST['security_code']);
     }
 }
 //����ẹ��ɳ�
 $TOPIC = checkban($_POST['topic']);
 $DETAIL = banword($_POST['detail']);
 $POSTNAME = CheckRude($_POST['post_name']);
 if (substr_count($_POST['detail'], '<p>') == 1) {
     $temp = preg_replace("/<p>/i", "", $_POST['detail']);
     $temp = preg_replace("/<\\/p>/i", "", $temp);
     $_POST['detail'] = $temp;
 }
 $FILE = $_FILES['FILE'];
 $FILEATT = $_FILES['FILEATT'];
 if ($FILE['size'] > _WEBBOARD_LIMIT_UPLOAD) {
     echo "<script language='javascript'>";
     echo "alert('" . _WEBBOARD_EDIT_ADD_PIC_WIDTH . " " . _WEBBOARD_LIMIT_UPLOAD / 1024 . " kB " . _WEBBOARD_EDIT_ADD_PIC_WIDTH . "')";
     echo "</script>";
     echo "<script language='javascript'>javascript:history.back()</script>";
     exit;
 }
 if ($FILEATT['size'] > _WEBBOARD_LIMIT_UPLOADS) {