gethost.js 746 B

123456789101112131415161718192021222324252627282930
  1. function gethost_Version(){
  2. return "1.0.0 - 20200910";
  3. }
  4. function getbasepath(){
  5. var host = window.location.hostname;
  6. if (host == "127.0.0.1")
  7. {
  8. host = "http://192.168.178.26"; // jomjol interner test
  9. // host = "http://192.168.178.22"; // jomjol interner Real
  10. // host = "."; // jomjol interner localhost
  11. }
  12. else
  13. {
  14. host = "http://" + host;
  15. }
  16. return host;
  17. }
  18. function UpdatePage(_dosession = true){
  19. var zw = location.href;
  20. zw = zw.substr(0, zw.indexOf("?"));
  21. if (_dosession) {
  22. window.location = zw + '?session=' + Math.floor((Math.random() * 1000000) + 1);
  23. }
  24. else {
  25. window.location = zw;
  26. }
  27. }