aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/index.php b/index.php
index 097c61e..11495df 100644
--- a/index.php
+++ b/index.php
@@ -28,8 +28,9 @@ $conference = new Conference();
$tpl = new PhpTemplate('template/page.phtml');
$tpl->set(array(
- 'baseurl' => baseurl(),
+ 'baseurl' => forceslash(baseurl()),
'route' => $route,
+ 'canonicalurl' => forceslash(baseurl()).forceslash($route),
'assemblies' => './template/assemblies/',
'conference' => $conference,
@@ -37,6 +38,13 @@ $tpl->set(array(
'schedule' => new Schedule(),
));
+if(startswith('//', @$GLOBALS['CONFIG']['BASEURL']))
+{
+ $tpl->set(array(
+ 'httpsurl' => forceslash('https:'.$GLOBALS['CONFIG']['BASEURL']).forceslash($route),
+ 'httpurl' => forceslash('http:'. $GLOBALS['CONFIG']['BASEURL']).forceslash($route),
+ ));
+}
ob_start();
try {