|
@@ -601,7 +601,7 @@ def hook_preconvert_compat():
|
601
|
601
|
fp = open(os.path.join(options.project, "output", "index.php"), 'w')
|
602
|
602
|
fp.write("<?\n")
|
603
|
603
|
fp.write("// Auto generated xyCMS compatibility index.php\n")
|
604
|
|
- fp.write("$loc = 'https://www.xythobuz.de/index.de.html';\n")
|
|
604
|
+ fp.write("$loc = '" + get_conf("base_url") + "/index.de.html';\n")
|
605
|
605
|
fp.write("if (isset($_GET['p'])) {\n")
|
606
|
606
|
fp.write(" if (isset($_GET['lang'])) {\n")
|
607
|
607
|
fp.write(" $_GET['p'] .= 'EN';\n")
|
|
@@ -612,7 +612,7 @@ def hook_preconvert_compat():
|
612
|
612
|
tmp = p["compat"]
|
613
|
613
|
if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
|
614
|
614
|
tmp = tmp + "EN"
|
615
|
|
- fp.write(_COMPAT % (tmp, "https://www.xythobuz.de", p.url))
|
|
615
|
+ fp.write(_COMPAT % (tmp, get_conf("base_url"), p.url))
|
616
|
616
|
fp.write("\n")
|
617
|
617
|
fp.write(_COMPAT_404 % "/404.html")
|
618
|
618
|
fp.write(" }\n")
|
|
@@ -765,7 +765,7 @@ def hook_postconvert_mobilecompat():
|
765
|
765
|
fp = codecs.open(os.path.join(directory, "index.php"), "w", "utf-8")
|
766
|
766
|
fp.write("<?\n")
|
767
|
767
|
fp.write("// Auto generated xyCMS compatibility mobile/index.php\n")
|
768
|
|
- fp.write("$loc = 'https://www.xythobuz.de/index.de.html';\n")
|
|
768
|
+ fp.write("$loc = '" + get_conf("base_url") + "/index.de.html';\n")
|
769
|
769
|
fp.write("if (isset($_GET['p'])) {\n")
|
770
|
770
|
fp.write(" if (isset($_GET['lang'])) {\n")
|
771
|
771
|
fp.write(" $_GET['p'] .= 'EN';\n")
|
|
@@ -776,7 +776,7 @@ def hook_postconvert_mobilecompat():
|
776
|
776
|
tmp = p["compat"]
|
777
|
777
|
if p.get("lang", DEFAULT_LANG) == DEFAULT_LANG:
|
778
|
778
|
tmp = tmp + "EN"
|
779
|
|
- fp.write(_COMPAT_MOB % (tmp, "https://www.xythobuz.de", re.sub(".html", ".html", p.url)))
|
|
779
|
+ fp.write(_COMPAT_MOB % (tmp, get_conf("base_url"), re.sub(".html", ".html", p.url)))
|
780
|
780
|
fp.write("\n")
|
781
|
781
|
fp.write(_COMPAT_404_MOB % "/404.mob.html")
|
782
|
782
|
fp.write(" }\n")
|