learnandwin_path = function() { var oServerConfig = { aTypeExForumId : { "jquery":"2", "SQL":"6", "trainings":"7", "CSS":"8", "jscript":"9", "PHP":"10", "java":"11", "xml":"12", "mcalcul":"13" } }, serverPath = "",hostForum = "http://www.toitl.com", publicPath = serverPath+"/public/", //"../", // appliPath = serverPath+"", oFilePathLangue = { uk : { help_php : publicPath+"l/learnandwin_help.php" }, fr : { help_php : publicPath+"l/learnandwin_help_fr.php" } }, appliPathNoServer = "/public/helpdesk/", appliPath = serverPath+appliPathNoServer, oApplicationFilePathLangue = { }, getFile = function(sTag,l) { var oFPL = (oApplicationFilePathLangue !== undefined) ? oApplicationFilePathLangue : oFilePathLangue; if (l === undefined) { l = "uk"; } //alert(l); if (oFPL === undefined || oFPL.uk === undefined || oFPL.uk[sTag] === undefined) { oFPL = oFilePathLangue; } if (oFPL[l] !== undefined && oFPL[l][sTag] !== undefined) { sRet = oFPL[l][sTag]; } else { sRet = oFPL.uk[sTag]; } return sRet; }, getServerConfig = function(sTag) { var oRet = {}; if (oServerConfig !== undefined) { oRet = oServerConfig[sTag]; } return oRet; }; return { serverPath : serverPath, dataPath : "data/", rootPath : serverPath+"", //"../../", publicPath : publicPath, fGetFile : getFile, heldeskPath : serverPath+"/public/helpdesk/", //"", hostForum : hostForum, appliPathNoServer : appliPathNoServer, appliPath : appliPath, fGetServerConfig : getServerConfig }; }(); // end of function learnandwin_path