guestBookPost(1, 0); $ActionMessage = ""; } elseif ($check_info) { guestBookPost(0, 0); } break; // 新增留言,顯示為隱藏 加入 spam 記號 // 新增留言,顯示為隱藏 加入 spam 記號 case "hidden": case "default": default: if ($isSpam == 1) { guestBookPost(1, 0); $ActionMessage = ""; } elseif ($check_info) { guestBookPost(0, 0); } break; } /* if ($check_info){ $_POST['isSecret']=(isset($_POST['isSecret']))?$_POST['isSecret']:0; $author=(isset($_POST['username']))?$_POST['username']:$_SESSION['username']; $replypassword=(isset($_POST['replypassword']))?md5($_POST['replypassword']):""; //$_POST['homepage']=(isset($_POST['homepage']))?$_POST['homepage']:""; if (!empty($_POST['homepage'])) { if (strpos(";".$_POST['homepage'],"http://")<1) { $_POST['homepage']="http://".$_POST['homepage']; } } else { $_POST['homepage']="";
guestBookPost($id, 1, 0, $settingInfo, $gourl); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($id, 0, 0, $settingInfo, $gourl); } break; // 新增留言,顯示為隱藏 加入 spam 記號 // 新增留言,顯示為隱藏 加入 spam 記號 case "hidden": case "default": default: if ($isSpam == 1) { guestBookPost($id, 1, 0, $settingInfo, $gourl); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($id, 0, 0, $settingInfo, $gourl); } break; } /* if ($check_info || intval($intSpamFiler)==1){ $parent=0; $_POST['isSecret']=($_POST['isSecret'])?$_POST['isSecret']:0; $author=($_POST['username'])?$_POST['username']:$_SESSION['username']; $replypassword=($_POST['replypassword'])?md5($_POST['replypassword']):""; $_POST['bookface']=!empty($_POST['bookface'])?$_POST['bookface']:"face1"; if (isset($_POST['homepage'])) { if (strpos(";".$_POST['homepage'],"http://")<1) { $_POST['homepage']="http://".$_POST['homepage']; } } else {
guestBookPost($id, 1, 0); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($id, 0, 0); } break; // 新增留言,顯示為隱藏 加入 spam 記號 // 新增留言,顯示為隱藏 加入 spam 記號 case "hidden": case "default": default: if ($isSpam == 1) { guestBookPost($id, 1, 0); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($id, 0, 0); } break; } function guestBookPost($id, $intSpamFiler, $intIsSecret) { global $DMC, $DBPrefix, $arrSideModule; $parent = 0; $_POST['isSecret'] = !empty($_POST['isSecret']) ? $_POST['isSecret'] : 0; $author = !empty($_POST['username']) ? $_POST['username'] : $_SESSION['username']; $replypassword = !empty($_POST['replypassword']) ? md5($_POST['replypassword']) : ""; $_POST['bookface'] = !empty($_POST['bookface']) ? $_POST['bookface'] : "face1"; if (!empty($_POST['homepage'])) { if (strpos(";" . $_POST['homepage'], "http://") < 1) { $_POST['homepage'] = "http://" . $_POST['homepage']; }
guestBookPost($postid, $id, 1, 0, $gourl, $arrSideModule, $settingInfo); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($postid, $id, 0, 0, $gourl, $arrSideModule, $settingInfo); } break; // 新增留言,顯示為隱藏 加入 spam 記號 // 新增留言,顯示為隱藏 加入 spam 記號 case "hidden": case "default": default: if ($isSpam == 1) { guestBookPost($postid, $id, 1, 0, $gourl, $arrSideModule, $settingInfo); $ActionMessage = ""; } elseif ($check_info) { guestBookPost($postid, $id, 0, 0, $gourl, $arrSideModule, $settingInfo); } break; } /* if ($check_info){ $_POST['isSecret']=(isset($_POST['isSecret']))?$_POST['isSecret']:0; $author=(isset($_POST['username']))?$_POST['username']:$_SESSION['username']; $replypassword=(isset($_POST['replypassword']))?md5($_POST['replypassword']):""; //$_POST['homepage']=(isset($_POST['homepage']))?$_POST['homepage']:""; if (!empty($_POST['homepage'])) { if (strpos(";".$_POST['homepage'],"http://")<1) { $_POST['homepage']="http://".$_POST['homepage']; } } else { $_POST['homepage']="";
guestBookPost(1, 0, $arrSideModule, $settingInfo, $op_table, $op_update, $postid, $gourl, $id); $ActionMessage = ""; } elseif ($check_info) { guestBookPost(0, 0, $arrSideModule, $settingInfo, $op_table, $op_update, $postid, $gourl, $id); } break; // 新增留言,顯示為隱藏 加入 spam 記號 // 新增留言,顯示為隱藏 加入 spam 記號 case "hidden": case "default": default: if ($isSpam == 1) { guestBookPost(1, 0, $arrSideModule, $settingInfo, $op_table, $op_update, $postid, $gourl, $id); $ActionMessage = ""; } elseif ($check_info) { guestBookPost(0, 0, $arrSideModule, $settingInfo, $op_table, $op_update, $postid, $gourl, $id); } break; } /* if ($check_info){ $author=(!empty($_POST['username']))?$_POST['username']:$_SESSION['username']; $replypassword=(!empty($_POST['replypassword']))?md5($_POST['replypassword']):$old_password; $_POST['isSecret']=(isset($_POST['isSecret']))?intval($_POST['isSecret']):0; $sql="update $op_table set password='******',ip='".getip()."',content='".encode($_POST['message'])."',isSecret='".max(intval($intIsSecret),intval($_POST['isSecret']))."'$op_update where id='".$postid."'"; //echo $sql; $DMC->query($sql); //exit; //更新cache