Changeset 3280
- Timestamp:
- 05/16/07 14:35:13 (20 months ago)
- Location:
- sandbox
- Files:
-
- 2 modified
-
lib/view/view.php (modified) (3 diffs)
-
script/common2.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sandbox/lib/view/view.php
r3108 r3280 36 36 ob_start(); 37 37 ?> 38 38 39 <!-- 39 40 <?php echo TEXTCUBE_NAME." ".TEXTCUBE_VERSION.CRLF;?> … … 43 44 --> 44 45 <script type="text/javascript"> 45 //<![CDATA[ 46 var servicePath = "<?php echo $service['path'];?>"; 47 var blogURL = "<?php echo $blogURL;?>"; 48 //]]> 46 //<![CDATA[ 47 var servicePath = "<?php echo $service['path'];?>"; 48 var blogURL = "<?php echo $blogURL;?>"; 49 var prevURL = "<?php echo isset($paging['prev']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['prev']}{$paging['postfix']}") : '';?>"; 50 var nextURL = "<?php echo isset($paging['next']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['next']}{$paging['postfix']}") : '';?>"; 51 var commentKey = "<?php echo md5(filemtime(ROOT . '/config.php'));?>"; 52 var doesHaveOwnership = <?php echo doesHaveOwnership() ? 'true' : 'false'; ?>; 53 var messages = { 54 "trackbackUrlCopied": "<?php echo _text('엮인글 주소가 복사되었습니다.');?>", 55 "operationFailed": "<?php echo _text('실패했습니다.');?>", 56 "confirmTrackbackDelete": "<?php echo _text('선택된 글걸기를 삭제합니다. 계속 하시겠습니까?');?>", 57 "confirmEntryDelete": "<?php echo _text('이 글 및 이미지 파일을 완전히 삭제합니다. 계속 하시겠습니까?');?>" 58 } 59 //]]> 49 60 </script> 50 61 <script type="text/javascript" src="<?php echo $service['path'];?>/script/EAF2.js"></script> … … 57 68 <?php 58 69 } 59 ?> 60 <script type="text/javascript"> 61 //<![CDATA[ 62 function processShortcut(event) { 63 if (isIE) 64 { 65 event = window.event; 66 event.target = event.srcElement; 67 } 68 69 if (event.altKey || event.ctrlKey) 70 return; 71 switch (event.target.nodeName) { 72 case "INPUT": 73 case "SELECT": 74 case "TEXTAREA": 75 return; 76 } 77 switch (event.keyCode) { 78 case 81: //Q 79 window.location = "<?php echo $blogURL;?>/owner"; 80 break; 81 case 82: //R 82 window.location = "<?php echo $blogURL;?>/owner/reader"; 83 break; 84 case 84: //T 85 window.location = "<?php echo $blogURL;?>/owner/reader/?forceRefresh"; 86 break; 87 <?php 88 if (isset($paging['prev'])) { 89 ?> 90 case 65: //A 91 window.location = "<?php echo escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['prev']}{$paging['postfix']}");?>"; 92 break; 93 <?php 94 } 95 if (isset($paging['next'])) { 96 ?> 97 case 83: //S 98 window.location = "<?php echo escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['next']}{$paging['postfix']}");?>"; 99 break; 100 <?php 101 } 102 ?> 103 case 90: //Z 104 window.location = "#recentEntries"; 105 break; 106 case 88: //X 107 window.location = "#recentComments"; 108 break; 109 case 67: //C 110 window.location = "#recentTrackback"; 111 break; 112 } 113 } 114 document.onkeydown = processShortcut; 115 116 function addComment(caller, entryId) { 117 var oForm = findFormObject(caller); 118 if (!oForm) 119 return false; 120 var request = new HTTPRequest("POST", oForm.action); 121 request.onSuccess = function () { 122 document.getElementById("entry" + entryId + "Comment").innerHTML = this.getText("/response/commentBlock"); 123 if(getObject("recentComments") != null) 124 document.getElementById("recentComments").innerHTML = this.getText("/response/recentCommentBlock"); 125 if(getObject("commentCount" + entryId) != null) 126 document.getElementById("commentCount" + entryId).innerHTML = this.getText("/response/commentView"); 127 if(getObject("commentCountOnRecentEntries" + entryId) != null) 128 document.getElementById("commentCountOnRecentEntries" + entryId).innerHTML = "(" + this.getText("/response/commentCount") + ")"; 129 } 130 request.onError = function() { 131 alert(this.getText("/response/description")); 132 } 133 134 var queryString = "key=<?php echo md5(filemtime(ROOT . '/config.php'));?>"; 135 136 tempComment = 'comment_' + entryId; 137 tempHomepage = 'homepage_' + entryId; 138 tempName = 'name_' + entryId; 139 tempPassword = 'password_' + entryId; 140 tempSecret = 'secret_' + entryId; 141 142 for (i=0; i<oForm.elements.length; i++) { 143 if (queryString != "") 144 linker = "&"; 145 else 146 linker = ""; 147 148 // disabled 상태이면 패스. 149 if (oForm.elements[i].disabled == true) 150 continue; 151 152 if (oForm.elements[i].tagName.toLowerCase() == "input") { 153 switch (oForm.elements[i].type) { 154 case "checkbox": 155 case "radio": 156 if (oForm.elements[i].checked == true) { 157 if (oForm.elements[i].name == tempSecret) 158 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 159 else if (oForm.elements[i].id == tempSecret) 160 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 161 else if (oForm.elements[i].name != '') 162 queryString += linker + oForm.elements[i].name + '_' + entryId + '=' + encodeURIComponent(oForm.elements[i].value); 163 else if (oForm.elements[i].id != '') 164 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 165 } 166 break; 167 case "text": 168 case "password": 169 case "hidden": 170 case "button": 171 case "submit": 172 if (oForm.elements[i].name == tempName) 173 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 174 else if (oForm.elements[i].id == tempName) 175 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 176 else if (oForm.elements[i].name == tempPassword) 177 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 178 else if (oForm.elements[i].id == tempPassword) 179 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 180 else if (oForm.elements[i].name == tempHomepage) 181 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 182 else if (oForm.elements[i].id == tempHomepage) 183 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 184 else if (oForm.elements[i].name != '') 185 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].value); 186 else if (oForm.elements[i].id != '') 187 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 188 break; 189 //case "file": 190 // break; 191 } 192 } else if (oForm.elements[i].tagName.toLowerCase() == "select") { 193 num = oForm.elements[i].selectedIndex; 194 if (oForm.elements[i].name != '') 195 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].options[num].value); 196 else if (oForm.elements[i].id != '') 197 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].options[num].value); 198 } else if (oForm.elements[i].tagName.toLowerCase() == "textarea") { 199 if (oForm.elements[i].name == tempComment) 200 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 201 else if (oForm.elements[i].name != '') 202 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].value); 203 else if (oForm.elements[i].id != '') 204 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 205 } 206 } 207 request.send(queryString); 208 } 209 210 var openWindow=''; 211 212 function alignCenter(win,width,height) { 213 try{ // sometimes fail. 214 win.moveTo(screen.width/2-width/2,screen.height/2-height/2); 215 } catch (e) {} 216 } 217 218 function deleteComment(id) { 219 width = 450; 220 height = 400; 221 if(openWindow != '') openWindow.close(); 222 openWindow = window.open("<?php echo $blogURL;?>/comment/delete/" + id, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 223 openWindow.focus(); 224 alignCenter(openWindow,width,height); 225 } 226 227 function commentComment(parent) { 228 width = 450; 229 height = 380; 230 if(openWindow != '') openWindow.close(); 231 openWindow = window.open("<?php echo $blogURL;?>/comment/comment/" + parent, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 232 openWindow.focus(); 233 alignCenter(openWindow,width,height); 234 } 235 236 function editEntry(parent,child) { 237 width = 1020; 238 height = 550; 239 if(openWindow != '') openWindow.close(); 240 openWindow = window.open("<?php echo $blogURL;?>/owner/entry/edit/" + parent + "?popupEditor&returnURL=" + child,"tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0"); 241 openWindow.focus(); 242 alignCenter(openWindow,width,height); 243 } 244 245 function guestbookComment(parent) { 246 width = 450; 247 height = 360; 248 if(openWindow != '') openWindow.close(); 249 openWindow = window.open("<?php echo $blogURL;?>/comment/comment/" + parent, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 250 openWindow.focus(); 251 alignCenter(openWindow,width,height); 252 } 253 254 function sendTrackback(id) { 255 width = 700; 256 height = 500; 257 if(openWindow != '') openWindow.close(); 258 openWindow = window.open("<?php echo $blogURL;?>/trackback/send/" + id, "tatter", "width=580,height=400,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0"); 259 openWindow.focus(); 260 alignCenter(openWindow,width,height); 261 } 262 263 function copyUrl(url){ 264 if(isIE) { 265 window.clipboardData.setData('Text',url); 266 window.alert("<?php echo _text('엮인글 주소가 복사되었습니다.');?>"); 267 } 268 } 269 270 271 function deleteTrackback(id,entryId) { 272 <?php 273 if (doesHaveOwnership()) { 274 ?> 275 if (!confirm("<?php echo _text('선택된 글걸기를 삭제합니다. 계속 하시겠습니까?');?>")) 276 return; 277 278 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/trackback/delete/" + id); 279 request.onSuccess = function() { 280 document.getElementById('entry' + entryId + 'Trackback').innerHTML = this.getText("/response/trackbackList"); 281 document.getElementById('entry' + entryId + 'Trackback').style.display = "block"; 282 try { 283 obj = document.getElementById('trackbackCount' + entryId); 284 if (obj != null) obj.innerHTML = this.getText("/response/trackbackCount"); 285 } catch(e) { } 286 try { 287 obj = document.getElementById("recentTrackbacks"); 288 if(obj != null) obj.innerHTML = this.getText("/response/recentTrackbacks"); 289 } catch(e) { } 290 } 291 request.onError = function() { 292 alert('<?php echo _text('실패했습니다.');?>'); 293 } 294 request.send(); 295 <?php 296 } else { 297 ?> 298 alert('<?php echo _text('실패했습니다.');?>'); 299 <?php 300 } 301 ?> 302 } 303 <?php 304 if (doesHaveOwnership()) { 305 ?> 306 function changeVisibility(id, visibility) { 307 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/entry/visibility/" + id + "?visibility=" + visibility); 308 request.onSuccess = function() { 309 window.location.reload(); 310 } 311 request.send(); 312 } 313 314 function deleteEntry(id) { 315 if (!confirm("<?php echo _text('이 글 및 이미지 파일을 완전히 삭제합니다. 계속 하시겠습니까?');?>")) 316 return; 317 var request = new HTTPRequest("GET", "<?php echo $blogURL;?>/owner/entry/delete/" + id); 318 request.onSuccess = function() { 319 window.location.href = "<?php echo $blogURL;?>"; 320 } 321 request.send(); 322 } 323 <?php 324 } 325 ?> 326 function reloadEntry(id) { 327 var password = document.getElementById("entry" + id + "password"); 328 if (!password) { 329 passwords = document.getElementsByName("entry" + id + "password"); 330 if (passwords != null && passwords.Count > 0) 331 password = passwords; 332 } 333 if (!password) 334 return; 335 document.cookie = "GUEST_PASSWORD=" + escape(password.value) + ";path=<?php echo $service['path'];?>"; 336 337 window.location.href = window.location.href; 338 } 339 //]]> 340 </script> 341 <?php 70 342 71 $view = ob_get_contents(); 343 72 ob_end_clean(); -
sandbox/script/common2.js
r3106 r3280 941 941 return false; 942 942 } 943 944 function processShortcut(event) { 945 event = STD.event(event); 946 if(event.altKey || event.ctrlKey) 947 return; 948 switch(event.target.nodeName) { 949 case "INPUT": 950 case "SELECT": 951 case "TEXTAREA": 952 return; 953 } 954 switch(event.keyCode) { 955 case 81: //Q 956 window.location = blogURL + "/owner"; 957 break; 958 case 82: //R 959 window.location = blogURL + "/owner/reader"; 960 break; 961 case 84: //T 962 window.location = blogURL + "/owner/reader/?forceRefresh"; 963 break; 964 case 65: //A 965 if(prevURL) 966 window.location = prevURL; 967 break; 968 case 83: //S 969 if(nextURL) 970 window.location = nextURL; 971 break; 972 case 90: //Z 973 window.location = "#recentEntries"; 974 break; 975 case 88: //X 976 window.location = "#recentComments"; 977 break; 978 case 67: //C 979 window.location = "#recentTrackback"; 980 break; 981 } 982 } 983 984 document.onkeydown = processShortcut; 985 986 function addComment(caller, entryId) { 987 var oForm = findFormObject(caller); 988 if (!oForm) 989 return false; 990 var request = new HTTPRequest("POST", oForm.action); 991 request.onSuccess = function () { 992 document.getElementById("entry" + entryId + "Comment").innerHTML = this.getText("/response/commentBlock"); 993 if(getObject("recentComments") != null) 994 document.getElementById("recentComments").innerHTML = this.getText("/response/recentCommentBlock"); 995 if(getObject("commentCount" + entryId) != null) 996 document.getElementById("commentCount" + entryId).innerHTML = this.getText("/response/commentView"); 997 if(getObject("commentCountOnRecentEntries" + entryId) != null) 998 document.getElementById("commentCountOnRecentEntries" + entryId).innerHTML = "(" + this.getText("/response/commentCount") + ")"; 999 } 1000 request.onError = function() { 1001 alert(this.getText("/response/description")); 1002 } 1003 1004 var queryString = "key=" + commentKey; 1005 1006 tempComment = 'comment_' + entryId; 1007 tempHomepage = 'homepage_' + entryId; 1008 tempName = 'name_' + entryId; 1009 tempPassword = 'password_' + entryId; 1010 tempSecret = 'secret_' + entryId; 1011 1012 for (i=0; i<oForm.elements.length; i++) { 1013 if (queryString != "") 1014 linker = "&"; 1015 else 1016 linker = ""; 1017 1018 // disabled 상태이면 패스. 1019 if (oForm.elements[i].disabled == true) 1020 continue; 1021 1022 if (oForm.elements[i].tagName.toLowerCase() == "input") { 1023 switch (oForm.elements[i].type) { 1024 case "checkbox": 1025 case "radio": 1026 if (oForm.elements[i].checked == true) { 1027 if (oForm.elements[i].name == tempSecret) 1028 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 1029 else if (oForm.elements[i].id == tempSecret) 1030 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 1031 else if (oForm.elements[i].name != '') 1032 queryString += linker + oForm.elements[i].name + '_' + entryId + '=' + encodeURIComponent(oForm.elements[i].value); 1033 else if (oForm.elements[i].id != '') 1034 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 1035 } 1036 break; 1037 case "text": 1038 case "password": 1039 case "hidden": 1040 case "button": 1041 case "submit": 1042 if (oForm.elements[i].name == tempName) 1043 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 1044 else if (oForm.elements[i].id == tempName) 1045 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 1046 else if (oForm.elements[i].name == tempPassword) 1047 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 1048 else if (oForm.elements[i].id == tempPassword) 1049 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 1050 else if (oForm.elements[i].name == tempHomepage) 1051 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 1052 else if (oForm.elements[i].id == tempHomepage) 1053 queryString += linker + oForm.elements[i].id + '=' + encodeURIComponent(oForm.elements[i].value); 1054 else if (oForm.elements[i].name != '') 1055 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].value); 1056 else if (oForm.elements[i].id != '') 1057 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 1058 break; 1059 //case "file": 1060 // break; 1061 } 1062 } else if (oForm.elements[i].tagName.toLowerCase() == "select") { 1063 num = oForm.elements[i].selectedIndex; 1064 if (oForm.elements[i].name != '') 1065 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].options[num].value); 1066 else if (oForm.elements[i].id != '') 1067 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].options[num].value); 1068 } else if (oForm.elements[i].tagName.toLowerCase() == "textarea") { 1069 if (oForm.elements[i].name == tempComment) 1070 queryString += linker + oForm.elements[i].name + '=' + encodeURIComponent(oForm.elements[i].value); 1071 else if (oForm.elements[i].name != '') 1072 queryString += linker + oForm.elements[i].name + '_' + entryId + "=" + encodeURIComponent(oForm.elements[i].value); 1073 else if (oForm.elements[i].id != '') 1074 queryString += linker + oForm.elements[i].id + "=" + encodeURIComponent(oForm.elements[i].value); 1075 } 1076 } 1077 request.send(queryString); 1078 } 1079 1080 var openWindow=''; 1081 1082 function alignCenter(win,width,height) { 1083 try{ // sometimes fail. 1084 win.moveTo(screen.width/2-width/2,screen.height/2-height/2); 1085 } catch (e) {} 1086 } 1087 1088 function deleteComment(id) { 1089 width = 450; 1090 height = 400; 1091 if(openWindow != '') openWindow.close(); 1092 openWindow = window.open(blogURL + "/comment/delete/" + id, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 1093 openWindow.focus(); 1094 alignCenter(openWindow,width,height); 1095 } 1096 1097 function commentComment(parent) { 1098 width = 450; 1099 height = 380; 1100 if(openWindow != '') openWindow.close(); 1101 openWindow = window.open(blogURL + "/comment/comment/" + parent, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 1102 openWindow.focus(); 1103 alignCenter(openWindow,width,height); 1104 } 1105 1106 function editEntry(parent,child) { 1107 width = 1020; 1108 height = 550; 1109 if(openWindow != '') openWindow.close(); 1110 openWindow = window.open(blogURL + "/owner/entry/edit/" + parent + "?popupEditor&returnURL=" + child,"tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0"); 1111 openWindow.focus(); 1112 alignCenter(openWindow,width,height); 1113 } 1114 1115 function guestbookComment(parent) { 1116 width = 450; 1117 height = 360; 1118 if(openWindow != '') openWindow.close(); 1119 openWindow = window.open(blogURL + "/comment/comment/" + parent, "tatter", "width="+width+",height="+height+",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0"); 1120 openWindow.focus(); 1121 alignCenter(openWindow,width,height); 1122 } 1123 1124 function sendTrackback(id) { 1125 width = 700; 1126 height = 500; 1127 if(openWindow != '') openWindow.close(); 1128 openWindow = window.open(blogURL + "/trackback/send/" + id, "tatter", "width=580,height=400,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0"); 1129 openWindow.focus(); 1130 alignCenter(openWindow,width,height); 1131 } 1132 1133 function copyUrl(url){ 1134 if(STD.isIE) { 1135 window.clipboardData.setData("Text", url); 1136 window.alert(messages.trackbackUrlCopied); 1137 } 1138 } 1139 1140 function deleteTrackback(id, entryId) { 1141 if (!doesHaveOwnership) { 1142 alert(messages.operationFailed); 1143 return; 1144 } 1145 if (!confirm(messages.confirmTrackbackDelete)) 1146 return; 1147 1148 var request = new HTTPRequest("GET", blogURL + "/trackback/delete/" + id); 1149 request.onSuccess = function() { 1150 document.getElementById('entry' + entryId + 'Trackback').innerHTML = this.getText("/response/trackbackList"); 1151 document.getElementById('entry' + entryId + 'Trackback').style.display = "block"; 1152 try { 1153 obj = document.getElementById('trackbackCount' + entryId); 1154 if (obj != null) obj.innerHTML = this.getText("/response/trackbackCount"); 1155 } catch(e) { } 1156 try { 1157 obj = document.getElementById("recentTrackbacks"); 1158 if(obj != null) obj.innerHTML = this.getText("/response/recentTrackbacks"); 1159 } catch(e) { } 1160 } 1161 request.onError = function() { 1162 alert(messages.operationFailed); 1163 } 1164 request.send(); 1165 } 1166 1167 function changeVisibility(id, visibility) { 1168 if (!doesHaveOwnership) 1169 return; 1170 var request = new HTTPRequest("GET", blogURL + "/owner/entry/visibility/" + id + "?visibility=" + visibility); 1171 request.onSuccess = function() { 1172 window.location.reload(); 1173 } 1174 request.send(); 1175 } 1176 1177 function deleteEntry(id) { 1178 if (!doesHaveOwnership) 1179 return; 1180 if (!confirm(messages.confirmEntryDelete)) 1181 return; 1182 var request = new HTTPRequest("GET", blogURL + "/owner/entry/delete/" + id); 1183 request.onSuccess = function() { 1184 window.location.href = blogURL; 1185 } 1186 request.send(); 1187 } 1188 1189 function reloadEntry(id) { 1190 var password = document.getElementById("entry" + id + "password"); 1191 if (!password) { 1192 passwords = document.getElementsByName("entry" + id + "password"); 1193 if (passwords != null && passwords.Count > 0) 1194 password = passwords; 1195 } 1196 if (!password) 1197 return; 1198 document.cookie = "GUEST_PASSWORD=" + escape(password.value) + ";path=" + servicePath; 1199 1200 window.location.href = window.location.href; 1201 }
