forked from SimonT-STHS/STHS-DynamicWebsite-Production
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.php
More file actions
24 lines (24 loc) · 2.08 KB
/
Footer.php
File metadata and controls
24 lines (24 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<br /><br /><br /><a href="#" class="scrollup">Back to the Top</a><div class="footer">
<?php If (isset($Footer) == True){echo $Footer . $LeagueOwner;
If ($LangOverwrite == TRUE){
If ($lang == "fr" ){
echo " - <a id=\"IgnoreLang\" href=\"" . str_replace('Lang=fr','Lang=en',basename($_SERVER['REQUEST_URI'])) . "\">English Version of the Website</a>";
echo "<script>\$(document).ready(function(){\$('a[href*=\".php\"').each(function(){if (this.id == 'IgnoreLang') {}else if (this.href.indexOf('?') != -1) {this.href = this.href.replace('.php?', '.php?Lang=fr&');}else{this.href = this.href.replace('.php', '.php?Lang=fr');}});});</script>";
}else{
echo " - <a id=\"IgnoreLang\" href=\"" . str_replace('Lang=en','Lang=fr',basename($_SERVER['REQUEST_URI'])) . "\">Version Française du Site Web</a>";
echo "<script>\$(document).ready(function(){\$('a[href*=\".php\"').each(function(){if (this.id == 'IgnoreLang') {}else if (this.href.indexOf('?') != -1) {this.href = this.href.replace('.php?', '.php?Lang=en&');}else{this.href = this.href.replace('.php', '.php?Lang=en');}});});</script>";
}
}else{
If(substr($_SERVER['REQUEST_URI'],-1) == "/"){echo " - <a href=\"";}else{echo " - <a href=\"" . basename($_SERVER['REQUEST_URI']);}
If ($lang == "fr"){
If (strpos(basename($_SERVER['REQUEST_URI']),'?') !== false){ echo "&Lang=en\">";}else{echo "?Lang=en\">";}
echo "English Version of the Website</a>";
}else{
If (strpos(basename($_SERVER['REQUEST_URI']),'?') !== false){ echo "&Lang=fr\">";}else{echo "?Lang=fr\">";}
echo "Version Française du Site Web</a>";
}
}
If (file_exists($DatabaseFile) == True){try{echo " - " . $DatabaseCreate;If (isset($LeagueGeneralMenu) == True){echo $LeagueGeneralMenu['DatabaseCreationDate'];}} catch (Exception $e) {}}}
If (isset($PerformanceMonitorStart)){echo "<script>console.log(\"STHS Page PHP Performance : " . (microtime(true)-$PerformanceMonitorStart) . " - Peak Memory Usage : " . round(memory_get_peak_usage() / 1024) . "KB - Peak Memory Usage : " . round(memory_get_peak_usage(true) / 1024) . "KB \"); </script>";}?>
</div>
</body></html>