1function gettoken(mode){ 2 var accesstoken=""; 3 var url = '/system/resource/getToken.jsp?mode='+ mode+'&r=' + Math.random(); 4 $.ajax({ 5 url: url, 6 contentType:"application/json", 7 async:false, 8 success: function(response){ 9 accesstoken=(""+response+""); 10 } 11 }); 12 return accesstoken; 13} 14 15function getsession(){ 16 var sessionid=""; 17 var url = '/system/resource/getSession.jsp?r=' + Math.random(); 18 $.ajax({ 19 url: url, 20 contentType:"application/json", 21 async:false, 22 success: function(response){ 23 sessionid=(""+response+""); 24 } 25 }); 26 return sessionid; 27} 28 29function filterSensitiveWords(owner,content){ 30 var filterContent = ""; 31 var url = '/system/resource/sensitiveFilter.jsp?r=' + Math.random(); 32 $.ajax({ 33 type: 'POST', 34 url: url, 35 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 36 async:false, 37 data:{ 38 'owner':owner, 39 'content':content 40 }, 41 success: function(response){ 42 filterContent=(""+response+""); 43 } 44 }); 45 return filterContent; 46}
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.