PageSourceSearch

https://fyndignews.com/_helpers/_js/netfu_board.class.js?time=1791257586

js fyndignews.com collected 2026-10-06 03:34:04 UTC 5,101 bytes, 164 lines download raw bytes

1var netfu_board = function() {
2
3	this.del = function() {
4	}
5
6
7	this.board_read = function(el, bo_table, no) {
8		$.post("/include/regist.php", "mode=board_read&bo_table="+bo_table+"&no="+no, function(data){
9			data = $.parseJSON(data);
10			if(data.msg) alert(data.msg);
11			if(data.js) eval(data.js);
12			if(data.move) location.href = data.move;
13		});
14	}
15
16
17	this.board_btn_click = function(el, bo_table, no, code) {
18		$.post("/include/regist.php", "mode=board_btn_click&code="+code+"&bo_table="+bo_table+"&no="+no, function(data) {
19			data = $.parseJSON(data);
20			if(data.msg) alert(data.msg);
21			if(data.js) eval(data.js);
22			if(data.move) location.href = data.move;
23		});
24	}
25
26
27	this.board_add_file = function(el, code) {
28		switch(code) {
29			case "add":
30				if(location.href.indexOf("/m/")==-1) {
31				var tag = '<div class="file_item_"><div class="item_"><div class="file_bx"><input type="file" id="" name="file_name[]" value=""></div></div><div style="float:left; margin-bottom:5px; width:100%; "></div></div>';
32				} else {
33					var tag = '<div class="file_item_"><div class="item_"><span><input type="file" id="" name="file_name[]" value=""></span></div><div style="float:left; margin-bottom:5px; width:100%; "></div></div>';
34				}
35				$(el).closest("tr").find("td.file").find(".file-in-").append(tag);
36				break;
37
38			case "del":
39				if(confirm("삭제하시겠습니까?")) {
40					var _len = $(el).closest("tr").find(".file").find(".file_item_").length;
41					if(_len<=1) {
42						alert("1개이하는 삭제할 수 없습니다.");
43						return;
44					}
45					$(el).closest("tr").find(".file").find(".file_item_").eq(_len-1).remove();
46				}
47				break;
48		}
49	}
50
51
52	this.board_file_delete = function(el, bo_table, no, k) {
53		var chk = $(el).closest(".file_item_").find(".file_chk-")[0].checked;
54		if(!chk) {
55			alert("파일을 삭제하실려면 파일명앞에 체크박스에 체크해주셔야합니다.");
56		} else {
57			if(confirm("삭제하시겠습니까?")) {
58				$.post(url+"/board/process/regist.php", "mode=file_delete&bo_table="+bo_table+"&no="+no+"&k="+k, function(data){
59					data = $.parseJSON(data);
60					if(data.msg) alert(data.msg);
61					if(data.move) location.href = data.move;
62					if(data.js) eval(data.js);
63				});
64			}
65		}
66	}
67
68
69	this.is_goods = function(el) {
70		var board_code = $(el).attr("board_code");
71		var code = $(el).attr("code");
72		var bo_table = $(el).attr("bo_table");
73		var no = $(el).attr("no");
74		$.post(url+"/board/process/good.php", { ajax:'true', good:'good', board_code:board_code, code:code, bo_table:bo_table, wr_no:no }, function(result){
75			switch(result){
76				case '0046': alert("회원만 추천 가능합니다."); break;
77				case '0047': alert("값이 제대로 넘어오지 않았습니다."); break;
78				case '0048': alert("해당 게시물에서만 추천 또는 비추천 하실 수 있습니다."); break;
79				case '0049': alert("게시판이 존재하지 않습니다."); break;
80				case '0050': alert("자신의 글에는 추천 또는 비추천 하실 수 없습니다."); break;
81				case '0051': alert("이 게시판은 추천 기능을 사용하지 않습니다."); break;
82				case '0052': alert("이 게시판은 비추천 기능을 사용하지 않습니다."); break;
83				default :
84					alert(result);
85					if(result.indexOf('이 글을')>=0) location.reload();
86				break;
87			}
88
89		});
90	}
91
92
93	this.fwrite_submit = function() {
94
95		var f = document.fwrite;
96		var con = '';
97
98		if(location.href.indexOf("/m/")==-1) {
99			if (document.getElementById('tx_wr_content')) {
100				if (!ed_wr_content.outputBodyText()) { 
101					alert('내용을 입력하십시오.'); 
102					ed_wr_content.returnFalse();
103					return false;
104				}
105			}
106
107			// : 게시판 글쓸때 이 함수가 꼭 있어야함.
108			editor_check();
109
110			document.getElementById('tx_wr_content').value = ed_wr_content.outputBodyHTML();
111		}
112		
113		var subject = "";
114		var content = "";
115
116		if(validate(f)){
117
118		
119			if(_editor_use['wr_content']) con = _editor_use['wr_content'].outputBodyHTML();
120			else con = f.wr_content.value;
121
122			$.ajax({
123				url: "/include/regist.php",
124				type: "POST",
125				data: {
126					"mode":"board_filter",
127					"bo_table" : f.bo_table.value,
128					"subject": f.wr_subject.value,
129					"content": con
130				},
131				dataType: "json",
132				async: false,
133				cache: false,
134				success: function(data, textStatus) {
135					subject = data.subject;
136					content = data.content;
137
138					if (subject) {
139						alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
140						f.wr_subject.focus();
141						return false;
142					}
143
144					if (content) {
145						alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
146						if (typeof(ed_wr_content) != "undefined") 
147							ed_wr_content.returnFalse();
148						else 
149							f.wr_content.focus();
150						return false;
151					}
152
153					f.action = '/board/process/regist.php';
154					f.submit();
155				}
156			});
157		}
158
159		return false;
160	}
161
162}
163
164var netfu_board = new netfu_board();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.