Browse Source

当前路径加 ./

visuddhinanda 4 years ago
parent
commit
cdef8a6d0f

+ 5 - 5
app/pcdl/js/index.js

@@ -32,7 +32,7 @@ function index_render_res_list(book_id,album_id,paragraph,goback=false){
   else{
 	res_list_stack.push({ book: book_id, album: album_id,paragraph: paragraph });
   }
-  $.get("get_res_index.php", { book: book_id, album: album_id,paragraph: paragraph },
+  $.get("./get_res_index.php", { book: book_id, album: album_id,paragraph: paragraph },
   function(data){
 	$("#para_res_list").html(data);
 	document.getElementById("para_res_list_shell").style.display="block";
@@ -46,7 +46,7 @@ function index_render_res_list(book_id,album_id,paragraph,goback=false){
 }
 function show_par_res_in_toc(book,paragraph){
 	if($("#toc_para_res_"+paragraph).html()==""){
-		$.get("get_res_index.php", { book: book, album: "-1",paragraph: paragraph },
+		$.get("./get_res_index.php", { book: book, album: "-1",paragraph: paragraph },
 		function(data){
 			$(".toc_para_res").html("");
 			$(".toc_para_res").slideUp();
@@ -102,7 +102,7 @@ function wizard_palicannon_heading_change(base=-1,select=-1){
 				parNum=toc_info[iPar].paragraph;
 				output += "<div class=\"book_list_item "+cssSelected+" level_"+maxLevel+"\" >";
 				if(toc_type=="album"){
-					output  += "<button><a href='reader.php?book="+gCurrBookId+"&album="+toc_album+"&paragraph="+parNum+"' target='_blank'>读</a></button>";
+					output  += "<button><a href='./reader.php?book="+gCurrBookId+"&album="+toc_album+"&paragraph="+parNum+"' target='_blank'>读</a></button>";
 				}
 				else{
 					output  += "<button onclick=\"show_par_res_in_toc('"+gCurrBookId+"',"+parNum+")\">资</button>";
@@ -314,7 +314,7 @@ function main_menu_show(id){
 }
 
 function search_tag(search_tag){
-	$.post("tag_search.php",
+	$.post("./tag_search.php",
 			{
 				tag:search_tag,
 				order:"hit"
@@ -324,7 +324,7 @@ function search_tag(search_tag){
 			});	
 }
 function search_best(search_type){
-	$.get("get_best.php",
+	$.get("./get_best.php",
 			{
 				op:search_type,
 			},

+ 3 - 3
app/pcdl/js/reader.js

@@ -200,7 +200,7 @@ function reader_init() {
     let begin = $(this).attr("begin");
     let end = $(this).attr("end");
     window.location.assign(
-      "reader.php?view=sent&book=" +
+      "./reader.php?view=sent&book=" +
         book +
         "&para=" +
         para +
@@ -268,7 +268,7 @@ function reader_init() {
     let end = $(this).attr("end");
     let id = $(this).attr("sent_id");
     window.location.assign(
-      "reader.php?view=sent&book=" +
+      "./reader.php?view=sent&book=" +
         book +
         "&para=" +
         para +
@@ -354,7 +354,7 @@ function reader_init() {
       view = "chapter";
     }
     window.location.assign(
-      "reader.php?view=" + view + "&book=" + book + "&para=" + para
+      "./reader.php?view=" + view + "&book=" + book + "&para=" + para
     );
   });
   term_get_dict();

+ 1 - 1
app/pcdl/js/search.js

@@ -4,7 +4,7 @@ var search_search_xml_http=null;
 
 
 function pre_search(type="pre",find_word){
-	$.get("search.php",
+	$.get("./search.php",
 		{
 			op:type,
 			word:find_word

+ 2 - 2
app/pcdl/js/wizard.js

@@ -56,7 +56,7 @@ function wizard_new_finish(){
 	var xmlText = txtXML;
 	var newFileName = new_save(xmlText);
 	if(newFileName){
-		window.open("editor.php?op=open&filename="+newFileName,"_blank");
+		window.open("./editor.php?op=open&filename="+newFileName,"_blank");
 		//window.location.assign("index_new.php");
 		window.history.back();
 	}
@@ -87,7 +87,7 @@ function new_save(strData){
 				g_filename=gConfigDirMydocument+inputFileName+".pcs";
 			}
 		}
-	  xmlHttp.open("POST", "dom_http.php", false);
+	  xmlHttp.open("POST", "./dom_http.php", false);
 	  var sendHead="filename="+g_filename+"#";
 	  xmlHttp.send(sendHead+strData);
 	  var_dump(xmlHttp.responseText);

+ 3 - 3
app/search/js/search.js

@@ -61,7 +61,7 @@ function dict_update_bold(currpage){
 	booklist=booklist.slice(0,-1);
 	booklist+=")";
 	
-	$.get("search.php",
+	$.get("./search.php",
 	  {
 		op:"update",
 		target:"bold",
@@ -108,7 +108,7 @@ function search_search(word){
 	{
 		dict_search_xml_http.onreadystatechange=dict_search_serverResponse;
 		word=word.replace(/\+/g,"%2b");
-		dict_search_xml_http.open("GET", "search.php?op=search&word="+word, true);
+		dict_search_xml_http.open("GET", "./search.php?op=search&word="+word, true);
 		dict_search_xml_http.send();
 	}
 	else
@@ -155,7 +155,7 @@ function search_pre_search(word){
 	if (dict_pre_search_xml_http!=null)
 	{
 		dict_pre_search_xml_http.onreadystatechange=dict_pre_search_serverResponse;
-		dict_pre_search_xml_http.open("GET", "search.php?op=pre&word="+word, true);
+		dict_pre_search_xml_http.open("GET", "./search.php?op=pre&word="+word, true);
 		dict_pre_search_xml_http.send();
 	}
 	else

+ 2 - 2
app/search/paliword.js

@@ -345,7 +345,7 @@ function dict_update_bold(currpage) {
 	booklist += ")";
 
 	$.get(
-		"paliword_search.php",
+		"./paliword_search.php",
 		{
 			op: "update",
 			target: "bold",
@@ -391,7 +391,7 @@ function search_search(word) {
 	if (dict_search_xml_http != null) {
 		dict_search_xml_http.onreadystatechange = dict_search_serverResponse;
 		word = word.replace(/\+/g, "%2b");
-		dict_search_xml_http.open("GET", "paliword_search.php?op=search&word=" + word, true);
+		dict_search_xml_http.open("GET", "./paliword_search.php?op=search&word=" + word, true);
 		dict_search_xml_http.send();
 	} else {
 		alert("Your browser does not support XMLHTTP.");

+ 3 - 3
app/search/title.js

@@ -51,7 +51,7 @@ function dict_update_bold(currpage) {
   booklist += ")";
 
   $.get(
-    "title_search.php",
+    "./title_search.php",
     {
       op: "search",
       word: title_search_curr_key,
@@ -98,7 +98,7 @@ function search_search(word) {
     word = word.replace(/\+/g, "%2b");
     dict_search_xml_http.open(
       "GET",
-      "title_search.php?op=search&word=" + word,
+      "./title_search.php?op=search&word=" + word,
       true
     );
     dict_search_xml_http.send();
@@ -146,7 +146,7 @@ function search_pre_search(word) {
     dict_pre_search_xml_http.onreadystatechange = dict_pre_search_serverResponse;
     dict_pre_search_xml_http.open(
       "GET",
-      "title_search.php?op=pre&word=" + word,
+      "./title_search.php?op=pre&word=" + word,
       true
     );
     dict_pre_search_xml_http.send();

+ 1 - 1
app/studio/js/common.js

@@ -421,7 +421,7 @@ function indexInit() {
 function goHome() {
 	var r = confirm("在返回前请保存文件。否则所有的更改将丢失。\n 按<确定>回到主页。按<取消>留在当前页面。");
 	if (r == true) {
-		window.location.assign("index.php?device=" + g_device);
+		window.location.assign("./index.php?device=" + g_device);
 	}
 }
 

+ 4 - 4
app/studio/js/data.js

@@ -172,7 +172,7 @@ function doc_setWordDataById(wordId, key, value) {
 }
 function doc_file_info_get() {
 	$.post(
-		"file_index.php",
+		"./file_index.php",
 		{
 			op: "getall",
 			doc_id: g_docid,
@@ -214,7 +214,7 @@ function doc_file_info_get() {
 
 function doc_info_change(field, value) {
 	$.post(
-		"file_index.php",
+		"./file_index.php",
 		{
 			op: "set",
 			doc_id: g_docid,
@@ -232,7 +232,7 @@ function doc_info_title_change(obj) {
 	document.getElementById("editor_doc_title").innerHTML = obj.value;
 	document.getElementById("file_title").innerHTML = obj.value;
 	$.post(
-		"file_index.php",
+		"./file_index.php",
 		{
 			op: "set",
 			doc_id: g_docid,
@@ -252,7 +252,7 @@ function _doc_info_title_change(id, title, callback = null) {
 		};
 	}
 	$.post(
-		"file_index.php",
+		"./file_index.php",
 		{
 			op: "set",
 			doc_id: id,

+ 3 - 3
app/studio/js/dict.js

@@ -7,7 +7,7 @@ var g_curr_word="";
 
 function dict_turbo_split(){
 	let word = $("#dict_ref_search_input").val();
-	$.post("dict_find4.php",
+	$.post("./dict_find4.php",
 	{
 	word:word
 	},
@@ -51,7 +51,7 @@ function dict_search(word,take_split=true){
 	{
 		dict_search_xml_http.onreadystatechange=dict_search_serverResponse;
 		word=word.replace(/\+/g,"%2b");
-		dict_search_xml_http.open("GET", "dict_find3.php?op=search&word="+word, true);
+		dict_search_xml_http.open("GET", "./dict_find3.php?op=search&word="+word, true);
 		dict_search_xml_http.send();
 	}
 	else
@@ -125,7 +125,7 @@ function dict_pre_search(word){
 	if (dict_pre_search_xml_http!=null)
 	{
 		dict_pre_search_xml_http.onreadystatechange=dict_pre_search_serverResponse;
-		dict_pre_search_xml_http.open("GET", "dict_find3.php?op=pre&word="+word, true);
+		dict_pre_search_xml_http.open("GET", "./dict_find3.php?op=pre&word="+word, true);
 		dict_pre_search_xml_http.send();
 	}
 	else

+ 8 - 8
app/studio/js/dictionary.js

@@ -72,7 +72,7 @@ function menu_view_script_sinhala(){
 	if (xmlHttp!=null)
 	{
 		var d=new Date();
-		var strLink = "spt_get.php";
+		var strLink = "./spt_get.php";
 		xmlHttp.open("GET", strLink, false);
 		xmlHttp.send(null);
 		xmlText=xmlHttp.responseText;
@@ -138,7 +138,7 @@ function menu_view_script_sinhala(){
 		  }
 		var d=new Date();
 		dict_xmlhttp.onreadystatechange=dict_serverResponse;
-		dict_xmlhttp.open("GET","dict_get_list.php?t="+d.getTime(),true);
+		dict_xmlhttp.open("GET","./dict_get_list.php?t="+d.getTime(),true);
 		dict_xmlhttp.send();
 		}
 
@@ -278,7 +278,7 @@ function dict_loadDictFromDB(strFileName,dictName){
 		var wordList=dict_getAllWordList();
 		if(wordList!=null){
 			document.getElementById('id_dict_msg').innerHTML="开始匹配字典"+dictName.name;
-			dict_DictXmlHttp.open("POST", "dict_find2.php", true);
+			dict_DictXmlHttp.open("POST", "./dict_find2.php", true);
 			dict_DictXmlHttp.send(dictName.type+"$"+dictName.filename+"$"+g_dictFindParentLevel+"$"+wordList);
 		}
 		else{
@@ -1112,7 +1112,7 @@ function save(){
 	if (xmlHttp!=null)
 	  {
 	  var_dump("ok");
-	  xmlHttp.open("POST", "dom_http.php", false);
+	  xmlHttp.open("POST", "./dom_http.php", false);
 	  var sendHead="filename="+g_filename+"#";
 	  xmlHttp.send(sendHead+xmlToString(xmlDoc));
 	  var_dump(xmlHttp.responseText);
@@ -1140,7 +1140,7 @@ function menu_file_export_csv(){
 	if (xmlHttp!=null)
 	  {
 	  var_dump("ok");
-	  xmlHttp.open("POST", "export_csv.php", false);
+	  xmlHttp.open("POST", "./export_csv.php", false);
 	  var sendHead="filename="+g_filename+"#";
 	  xmlHttp.send(sendHead+xmlToString(xmlDoc));
 	  var_dump(xmlHttp.responseText);
@@ -1172,7 +1172,7 @@ function dict_loadDataFromCSV(strFileName){
 	if (dict_CSVXmlHttp!=null)
 	{
 		var d=new Date();
-		var strLink = "import_csv.php?filename="+strFileName;
+		var strLink = "./import_csv.php?filename="+strFileName;
 		dict_CSVXmlHttp.onreadystatechange=dict_csv_serverResponse;
 		dict_CSVXmlHttp.open("GET", strLink, true);
 		dict_CSVXmlHttp.send(null);
@@ -1449,7 +1449,7 @@ function dict_UserDictUpdata(recorderName,thisObj){
 		queryString+="</wordlist>";
 		dict_DictUpdataXmlHttp.onreadystatechange=dict_UserDictUpdata_serverResponse;
 		debugOutput("updata user dict start.",0);
-		dict_DictUpdataXmlHttp.open("POST", "dict_updata_user.php", true);
+		dict_DictUpdataXmlHttp.open("POST", "./dict_updata_user.php", true);
 		dict_DictUpdataXmlHttp.send(queryString);
 		
 		var i=recorderName;
@@ -1579,7 +1579,7 @@ function dict_WbwUpdata(wordIdFrom,wordIdTo){
 		queryString+="</wordlist>";
 		dict_wbwUpdataXmlHttp.onreadystatechange=dict_wbwDictUpdata_serverResponse;
 		debugOutput("updata user dict start.",0);
-		dict_wbwUpdataXmlHttp.open("POST", "dict_updata_wbw.php", true);
+		dict_wbwUpdataXmlHttp.open("POST", "./dict_updata_wbw.php", true);
 		dict_wbwUpdataXmlHttp.send(queryString);
 		
 

+ 17 - 17
app/studio/js/editor.js

@@ -127,7 +127,7 @@ function editor_getDictFileList() {
 	}
 	var d = new Date();
 	editor_xmlhttp.onreadystatechange = editor_serverResponse;
-	editor_xmlhttp.open("GET", "dict_get_list.php?t=" + d.getTime(), true);
+	editor_xmlhttp.open("GET", "./dict_get_list.php?t=" + d.getTime(), true);
 	editor_xmlhttp.send();
 }
 
@@ -520,7 +520,7 @@ function editor_loadDictFromDB(strFileName, dictName) {
 	if (editor_DictXmlHttp != null) {
 		var d = new Date();
 		var strLink =
-			"dict_find.php?mode=xml&filename=" + strFileName + "&type=" + dictName.type + "&dict=" + dictName.filename;
+			"./dict_find.php?mode=xml&filename=" + strFileName + "&type=" + dictName.type + "&dict=" + dictName.filename;
 		editor_DictXmlHttp.onreadystatechange = editor_dict_serverResponse;
 		//var wordList=getAllWordList();
 
@@ -528,7 +528,7 @@ function editor_loadDictFromDB(strFileName, dictName) {
 
 		if (wordList != null) {
 			document.getElementById("id_dict_msg").innerHTML = "开始匹配字典" + dictName.name;
-			editor_DictXmlHttp.open("POST", "dict_find2.php", true);
+			editor_DictXmlHttp.open("POST", "./dict_find2.php", true);
 			//editor_DictXmlHttp.send(dictName.type+"$"+dictName.filename+"$"+g_dictFindParentLevel+"$"+wordList);
 			editor_DictXmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
 			editor_DictXmlHttp.send(
@@ -1728,7 +1728,7 @@ function menu_file_convert() {
 
 function editor_save() {
 	$.post(
-		"dom_http.php",
+		"./dom_http.php",
 		{
 			fileid: g_docid,
 			xmldata: com_xmlToString(gXmlBookData),
@@ -1780,7 +1780,7 @@ function menu_file_export_ild() {
 
 	if (xmlHttp != null) {
 		var_dump(gLocal.gui.ok);
-		xmlHttp.open("POST", "export_ild.php", false);
+		xmlHttp.open("POST", "./export_ild.php", false);
 		var sendHead = "filename=" + g_filename + "#";
 		var dictDataString = "<dict>";
 		for (iDict in g_DictWordList) {
@@ -2014,7 +2014,7 @@ function editor_UserDictUpdata(recorderName, thisObj) {
 		queryString += "</wordlist>";
 		editor_DictUpdataXmlHttp.onreadystatechange = editor_UserDictUpdata_serverResponse;
 		debugOutput("updata user dict start.", 0);
-		editor_DictUpdataXmlHttp.open("POST", "dict_updata_user.php", true);
+		editor_DictUpdataXmlHttp.open("POST", "./dict_updata_user.php", true);
 		editor_DictUpdataXmlHttp.send(queryString);
 
 		var i = recorderName;
@@ -2377,7 +2377,7 @@ function upload_to_my_dict(wordIdFrom = -1, wordIdTo = -1) {
 	if (iCount == 0) {
 		ntf_show("no word update");
 	} else {
-		$.post("dict_updata_wbw.php", queryString, function (data, status) {
+		$.post("./dict_updata_wbw.php", queryString, function (data, status) {
 			ntf_show("Data: " + data + "\nStatus: " + status);
 		});
 	}
@@ -2573,7 +2573,7 @@ function editor_WbwUpdata(wordIdFrom, wordIdTo) {
 		if (iCount > 0) {
 			editor_wbwUpdataXmlHttp.onreadystatechange = editor_wbwDictUpdata_serverResponse;
 			console.log("updata user dict start.", 0);
-			editor_wbwUpdataXmlHttp.open("POST", "dict_updata_wbw.php", true);
+			editor_wbwUpdataXmlHttp.open("POST", "./dict_updata_wbw.php", true);
 			editor_wbwUpdataXmlHttp.send(queryString);
 		} else {
 			console.log("no user dicttionary data need updata.", 0);
@@ -3379,7 +3379,7 @@ function input_org_change() {
 	if (arrNewPart.length > 0) {
 		//如果有内存字典里面没有的单词,查询
 		$.get(
-			"dict_find_one.php",
+			"./dict_find_one.php",
 			{
 				word: arrNewPart.join(),
 				type: "part",
@@ -3425,7 +3425,7 @@ function load_my_formula() {
 	//如果有内存字典里面没有的单词,查询
 	console.log("load_my_formula - dict_find_one.php");
 	$.get(
-		"dict_find_one.php",
+		"./dict_find_one.php",
 		{
 			word: "_formula_",
 			dict_name: db_name,
@@ -4034,9 +4034,9 @@ function editor_openProject(strFileId, filetype) {
 		var d = new Date();
 		var strLink = "";
 		if (filetype == "db") {
-			strLink = "project_load_db.php?id=" + strFileId;
+			strLink = "./project_load_db.php?id=" + strFileId;
 		} else {
-			strLink = "project_load.php?id=" + strFileId;
+			strLink = "./project_load.php?id=" + strFileId;
 		}
 		editor_openProjectXmlHttp.onreadystatechange = editor_open_project_serverResponse;
 		editor_openProjectXmlHttp.open("GET", strLink, true);
@@ -4179,7 +4179,7 @@ function on_word_mouse_enter() {
 					gCurrLookupWord = paliword;
 					$.ajax({
 						type: "GET",
-						url: "dict_find_one.php",
+						url: "./dict_find_one.php",
 						dataType: "json",
 						data: "word=" + paliword,
 						success: function (response) {
@@ -4866,7 +4866,7 @@ function editor_importOldVer(strFileName) {
 	if (editor_importOldVerXmlHttp != null) {
 		var d = new Date();
 		var strLink = "";
-		strLink = "com_fileopen.php?filename=" + strFileName;
+		strLink = "./com_fileopen.php?filename=" + strFileName;
 		if (strLink.length > 0) {
 			editor_importOldVerXmlHttp.onreadystatechange = editor_import_old_ver_serverResponse;
 			editor_importOldVerXmlHttp.open("GET", strLink, true);
@@ -5176,7 +5176,7 @@ function editor_word_status(wElement, newStatus = null) {
 //载入用户设置
 function editor_setup_load() {
 	$.post(
-		"user_setup.php",
+		"./user_setup.php",
 		{
 			op: "load",
 		},
@@ -5190,7 +5190,7 @@ function editor_setup_load() {
 //修改用户设置
 function editor_setup_save(key, value) {
 	$.post(
-		"user_setup.php",
+		"./user_setup.php",
 		{
 			op: "save",
 			key: key,
@@ -5287,7 +5287,7 @@ function menu_dict_match1() {
 //自动查词典
 function auto_match_wbw(para_index) {
 	$.get(
-		"dict_find_auto.php",
+		"./dict_find_auto.php",
 		{
 			book: _para_list[para_index].book,
 			para: _para_list[para_index].para,

+ 1 - 1
app/studio/js/filenew.js

@@ -36,7 +36,7 @@ else if (window.ActiveXObject)
 if (xmlHttp!=null)
   {
   var_dump("ok");
-  xmlHttp.open("POST", "xml_save.php", false);
+  xmlHttp.open("POST", "./xml_save.php", false);
   var sendHead="filename="+"../user/My Document/"+fileName+"#";
   xmlHttp.send(sendHead+txtXML);
   var_dump(xmlHttp.responseText);

+ 6 - 6
app/studio/js/index_mydoc.js

@@ -93,9 +93,9 @@ function file_list_refresh() {
 
 					let $link;
 					if (file_list[x].doc_info && file_list[x].doc_info.length > 1) {
-						$link = "<a href='editor.php?op=opendb&fileid=" + file_list[x].id + "' target='_blank'>";
+						$link = "<a href='./editor.php?op=opendb&fileid=" + file_list[x].id + "' target='_blank'>";
 					} else {
-						$link = "<a href='editor.php?op=open&fileid=" + file_list[x].id + "' target='_blank'>";
+						$link = "<a href='./editor.php?op=open&fileid=" + file_list[x].id + "' target='_blank'>";
 					}
 
 					html += $link + "<span id='title_" + file_list[x].id + "'>" + file_list[x].title;
@@ -258,7 +258,7 @@ function file_del() {
 	}
 	if (file_list.length > 0) {
 		$.post(
-			"file_index.php",
+			"./file_index.php",
 			{
 				op: "delete",
 				file: file_list.join(),
@@ -281,7 +281,7 @@ function file_remove() {
 	}
 	if (file_list.length > 0) {
 		$.post(
-			"file_index.php",
+			"./file_index.php",
 			{
 				op: "remove",
 				file: file_list.join(),
@@ -304,7 +304,7 @@ function file_restore() {
 	}
 	if (file_list.length > 0) {
 		$.post(
-			"file_index.php",
+			"./file_index.php",
 			{
 				op: "restore",
 				file: file_list.join(),
@@ -331,7 +331,7 @@ function file_share(isShare) {
 			var share = 0;
 		}
 		$.post(
-			"file_index.php",
+			"./file_index.php",
 			{
 				op: "share",
 				share: share,

+ 3 - 3
app/studio/js/index_share.js

@@ -26,10 +26,10 @@ function file_list_refresh() {
 						//html += "[新]";
 					}
 					if (file_list[x].doc_info && file_list[x].doc_info.length > 1) {
-						$link = "<a href='project.php?op=open&doc_id=" + file_list[x].id + "' target='_blank'>[db]";
+						$link = "<a href='./project.php?op=open&doc_id=" + file_list[x].id + "' target='_blank'>[db]";
 					}
 					else {
-						$link = "<a href='editor.php?op=open&fileid=" + file_list[x].id + "&filename=" + file_list[x].file_name + "' target='_blank'>";
+						$link = "<a href='./editor.php?op=open&fileid=" + file_list[x].id + "&filename=" + file_list[x].file_name + "' target='_blank'>";
 
 					}
 					html += "<div class=\"file_list_title\">" + $link + file_list[x].title + "</a></div>";
@@ -57,7 +57,7 @@ function file_list_refresh() {
 
 					html += '<div class="file_list_col_4" >';
 					if (file_list[x].my_doc_id.length > 20) {
-						html += "<a href='editor.php?op=opendb&doc_id=" + file_list[x].my_doc_id + "' target='_blank'>[" + gLocal.gui.open + "]</a>";
+						html += "<a href='./editor.php?op=opendb&doc_id=" + file_list[x].my_doc_id + "' target='_blank'>[" + gLocal.gui.open + "]</a>";
 					}
 					else {
 						html += "[" + gLocal.gui.folk + "]";

+ 1 - 1
app/studio/js/message.js

@@ -68,7 +68,7 @@ function msg_send() {
 	}
 
 	$.post(
-		"message.php",
+		"./message.php",
 		{
 			op: operation,
 			lastid: iMsgLastUpdateId,

+ 3 - 3
app/studio/js/search.js

@@ -13,7 +13,7 @@ function search_text_search(word) {
 
 	if (search_text_search_xml_http != null) {
 		search_text_search_xml_http.onreadystatechange = search_text_search_serverResponse;
-		search_text_search_xml_http.open("GET", "search_text.php?op=search&word=" + word, true);
+		search_text_search_xml_http.open("GET", "./search_text.php?op=search&word=" + word, true);
 		search_text_search_xml_http.send();
 	}
 	else {
@@ -56,7 +56,7 @@ function search_text_pre_search(word) {
 
 	if (search_text_pre_search_xml_http != null) {
 		search_text_pre_search_xml_http.onreadystatechange = search_text_pre_search_serverResponse;
-		search_text_pre_search_xml_http.open("GET", "search_text.php?op=pre&word=" + word, true);
+		search_text_pre_search_xml_http.open("GET", "./search_text.php?op=pre&word=" + word, true);
 		search_text_pre_search_xml_http.send();
 	}
 	else {
@@ -279,5 +279,5 @@ function search_edit(bookid, par) {
 	newRes.subver = 1;
 	var arrRes = new Array();
 	arrRes.push(newRes);
-	window.open("project.php?op=create&data=" + JSON.stringify(arrRes));
+	window.open("./project.php?op=create&data=" + JSON.stringify(arrRes));
 }

+ 1 - 1
app/studio/js/vn.js

@@ -316,7 +316,7 @@ function goHome(){
 var r=confirm("在返回前请保存文件。否则所有的更改将丢失。\n 按<确定>回到主页。按<取消>留在当前页面。");
 if (r==true)
   {
-  window.location.assign("index.php?device="+g_device);
+  window.location.assign("./index.php?device="+g_device);
   }
 }
 

+ 6 - 6
app/studio/js/wizard.js

@@ -56,7 +56,7 @@ function wizard_new_finish(){
 	var xmlText = txtXML;
 	var newFileName = new_save(xmlText);
 	if(newFileName){
-		window.open("editor.php?op=open&filename="+newFileName,"_blank");
+		window.open("./editor.php?op=open&filename="+newFileName,"_blank");
 		//window.location.assign("index_new.php");
 		window.history.back();
 	}
@@ -87,7 +87,7 @@ function new_save(strData){
 				g_filename=gConfigDirMydocument+inputFileName+".pcs";
 			}
 		}
-	$.post("dom_http.php",
+	$.post("./dom_http.php",
 	  {
 		filename:g_filename,
 		fileid:0,
@@ -812,7 +812,7 @@ function wizard_palicannon_show_filelist(strBook){
 	gCurrSelectedBook=strBook;
 	var d=new Date();
 	wizard_palicannon_xmlhttp.onreadystatechange=wizard_palicannon_serverResponse;
-	wizard_palicannon_xmlhttp.open("GET","pc_get_book_index.php?t="+d.getTime()+"&book="+strBook,true);
+	wizard_palicannon_xmlhttp.open("GET","./pc_get_book_index.php?t="+d.getTime()+"&book="+strBook,true);
 	wizard_palicannon_xmlhttp.send();
 }
 
@@ -1087,7 +1087,7 @@ function wizard_palicannon_pali_text_query(bookId){
 	}
 	var d=new Date();
 	wizard_palicannon_pali_text_xmlhttp.onreadystatechange=wizard_palicannon_pali_text_serverResponse;
-	wizard_palicannon_pali_text_xmlhttp.open("GET","pc_get_pali_text.php?book="+bookId,true);
+	wizard_palicannon_pali_text_xmlhttp.open("GET","./pc_get_pali_text.php?book="+bookId,true);
 	wizard_palicannon_pali_text_xmlhttp.send();
 }
 
@@ -1592,7 +1592,7 @@ function pc_res_preview(resIndex){
 		edition=gResList[resIndex].edition;
 		subver=gResList[resIndex].subver;
 		
-		var link="pc_get_res_preview.php?res_type="+res+"&book="+book+"&begin="+thisParNum+"&end="+thisParEnd+"&author="+author+"&editor="+editor+"&revision="+revision+"&language="+language+"&edition="+edition+"&subver="+subver;
+		var link="./pc_get_res_preview.php?res_type="+res+"&book="+book+"&begin="+thisParNum+"&end="+thisParEnd+"&author="+author+"&editor="+editor+"&revision="+revision+"&language="+language+"&edition="+edition+"&subver="+subver;
 	
 	return(link);
 }
@@ -1797,7 +1797,7 @@ function wizard_palicannon_nav_level_show(showLevel){
  */
 function wizard_save_download_list(){
 	var strDownload = JSON.stringify(gResDownloadList);
-	$.post("user_file.php",
+	$.post("./user_file.php",
 	{
 		op:"save",
 		filename:"dl.json",

+ 2 - 2
app/studio/module/editor_dictionary/module_function.js

@@ -40,10 +40,10 @@ function editor_loadDataFromILD(strFileName){
 		var d=new Date();
 		var strLink ="";
 		if(strFileName.substr(-4)==".ild"){
-			strLink = "import_ild.php?filename="+strFileName;
+			strLink = "./import_ild.php?filename="+strFileName;
 		}
 		else if(strFileName.substr(-4)==".pcs"){
-			strLink = "import_wbw.php?filename="+strFileName;
+			strLink = "./import_wbw.php?filename="+strFileName;
 		}
 		if(strLink.length>0){
 			editor_ILDXmlHttp.onreadystatechange=editor_ild_serverResponse;

+ 2 - 2
app/studio/module/editor_palicannon/palicannon.js

@@ -61,7 +61,7 @@ function palicannon_show_filelist(strBook){
 	gCurrSelectedBook=strBook;
 	var d=new Date();
 	palicannon_xmlhttp.onreadystatechange=palicannon_serverResponse;
-	palicannon_xmlhttp.open("GET","pc_get_book_index.php?t="+d.getTime()+"&book="+strBook,true);
+	palicannon_xmlhttp.open("GET","./pc_get_book_index.php?t="+d.getTime()+"&book="+strBook,true);
 	palicannon_xmlhttp.send();
 }
 
@@ -163,7 +163,7 @@ function palicannon_load_book_par(strBook,parIndex,strVer){
 	}
 	var d=new Date();
 	palicannon_xmlLoadBookhttp.onreadystatechange=palicannon_load_book_serverResponse;
-	palicannon_xmlLoadBookhttp.open("GET","pc_get_book_xml.php?t="+d.getTime()+"&book="+strBook+"&paragraph="+parIndex+"&ver="+strVer,true);
+	palicannon_xmlLoadBookhttp.open("GET","./pc_get_book_xml.php?t="+d.getTime()+"&book="+strBook+"&paragraph="+parIndex+"&ver="+strVer,true);
 	palicannon_xmlLoadBookhttp.send();
 }
 

+ 2 - 2
app/studio/module/palicannon/palicannon.js

@@ -151,7 +151,7 @@ function palicannon_show_filelist(strFolder){
 	}
 	var d=new Date();
 	palicannon_xmlhttp.onreadystatechange=palicannon_serverResponse;
-	palicannon_xmlhttp.open("GET","palicannonfilelist.php?t="+d.getTime()+"&folder="+strFolder,true);
+	palicannon_xmlhttp.open("GET","./palicannonfilelist.php?t="+d.getTime()+"&folder="+strFolder,true);
 	palicannon_xmlhttp.send();
 }
 
@@ -166,7 +166,7 @@ function palicannon_serverResponse(){
 			{
 				var dir_myPaliCannon="../user/My Pali Canon/";
 				fileList = fileList + "<ul>"
-				fileList = fileList + "<li><a href=\"editor.php?filename="+dir_myPaliCannon+strBookFolder+"/"+arrFileList[x]+"&device="+g_device+"&language=zh\">"+arrFileList[x]+"</a></li>"
+				fileList = fileList + "<li><a href=\"./editor.php?filename="+dir_myPaliCannon+strBookFolder+"/"+arrFileList[x]+"&device="+g_device+"&language=zh\">"+arrFileList[x]+"</a></li>"
 				fileList = fileList + "</ul>"
 			}
 			document.getElementById('id_palicannon_index_filelist').innerHTML=fileList;

+ 1 - 1
app/studio/offline/js/xml.js

@@ -630,7 +630,7 @@ else if (window.ActiveXObject)
 if (xmlHttp!=null)
   {
   var_dump("ok");
-  xmlHttp.open("POST", "dom_http.php", false);
+  xmlHttp.open("POST", "./dom_http.php", false);
   var sendHead="filename="+g_filename+"#";
   xmlHttp.send(sendHead+xmlToString(xmlDoc));
   var_dump(xmlHttp.responseText);

+ 1 - 1
app/studio/plugin/system_layout/module_function.js

@@ -50,7 +50,7 @@ function menu_view_script(showto, code) {
 
 	if (xmlHttp != null) {
 		var d = new Date();
-		var strLink = "spt_get.php?code=" + code;
+		var strLink = "./spt_get.php?code=" + code;
 		xmlHttp.open("GET", strLink, false);
 		xmlHttp.send(null);
 		xmlText = xmlHttp.responseText;

+ 6 - 6
app/studio/plugin/system_project/module_function.js

@@ -420,7 +420,7 @@ function project_res_info_click(type, index) {
 
 var g_new_album_guid = "";
 function project_show_album_info(album_id, book, type) {
-	$.get("album.php",
+	$.get("./album.php",
 		{
 			op: "get_album",
 			book: book,
@@ -434,7 +434,7 @@ function project_show_album_info(album_id, book, type) {
 				var bFound = false;
 				for (var i = 0; i < album_data.length; i++) {
 					if (album_data[i].id == currResObj[currResIndex].album_id) {
-						var alink = "album.php?op=show_info&album_id=" + album_data[i].id;
+						var alink = "./album.php?op=show_info&album_id=" + album_data[i].id;
 						html = "专辑名称:<a href='" + alink + "' target='_blank'>《" + album_data[i].title + "》</a><button>删除</button>";
 						bFound = true;
 						break;
@@ -457,7 +457,7 @@ function project_show_album_info(album_id, book, type) {
 				}
 				for (var i = 0; i < album_data.length; i++) {
 					if (album_data[i].used == false) {
-						var alink = "album.php?op=show_info&album_id=" + album_data[i].id;
+						var alink = "./album.php?op=show_info&album_id=" + album_data[i].id;
 						var album_id = album_data[i].id;
 						var album_guid = album_data[i].guid;
 						html_album_list += "<li><a href='" + alink + "' target='_blank'>《" + album_data[i].title + "》</a>" + album_data[i].author + album_data[i].language + " <button onclick=\"project_apply_album('" + album_id + "','" + album_guid + "')\">使用此专辑发布</button></li>";
@@ -546,7 +546,7 @@ function project_new_album_submit() {
 		alert("标题不能为空");
 		return;
 	}
-	$.get("album.php",
+	$.get("./album.php",
 		{
 			op: "new",
 			album_guid: album_guid,
@@ -609,7 +609,7 @@ function editor_project_publish() {
 	}
 
 	if (xmlHttp != null) {
-		xmlHttp.open("POST", "pc_publish.php", false);
+		xmlHttp.open("POST", "./pc_publish.php", false);
 		xmlHttp.send(com_xmlToString(gXmlBookData));
 		var_dump(xmlHttp.responseText);
 	}
@@ -684,7 +684,7 @@ function editor_project_res_publish() {
 		var album_title = getNodeText(xmlParInfo, "album_title");
 		var book = getNodeText(xmlParInfo, "book");
 
-		window.open("publish.php?step=1&id=" + album_id + "&filename=" + g_filename + "&type=" + album_type + "&book=" + book + "&lang=" + album_lang + "&author=" + album_author + "&title=" + album_title, "_blank");
+		window.open("./publish.php?step=1&id=" + album_id + "&filename=" + g_filename + "&type=" + album_type + "&book=" + book + "&lang=" + album_lang + "&author=" + album_author + "&title=" + album_title, "_blank");
 
 	}
 }

+ 1 - 1
app/wiki/wiki.js

@@ -368,7 +368,7 @@ function wiki_pre_search(keyword) {
 			if (result.length > 0) {
 				for (x in result) {
 					html +=
-						"<li><a href='wiki.php?op=get&word=" +
+						"<li><a href='./wiki.php?op=get&word=" +
 						result[x].word +
 						"'>" +
 						result[x].word +