gethost.js 848 B

1234567891011121314151617181920212223242526272829303132
  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") || (host == "localhost"))
  7. {
  8. // host = "http://192.168.2.118"; // jomjol interner test
  9. // host = "http://192.168.178.26"; // jomjol interner test
  10. host = "http://192.168.178.22"; // jomjol interner Real
  11. // host = "."; // jomjol interner localhost
  12. }
  13. else
  14. {
  15. host = "http://" + host;
  16. }
  17. return host;
  18. }
  19. function UpdatePage(_dosession = true){
  20. var zw = location.href;
  21. zw = zw.substr(0, zw.indexOf("?"));
  22. if (_dosession) {
  23. window.location = zw + '?session=' + Math.floor((Math.random() * 1000000) + 1);
  24. }
  25. else {
  26. window.location = zw;
  27. }
  28. }