aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-14 04:54:26 -0700
committerfriendica <info@friendica.com>2012-04-14 04:54:26 -0700
commitf4ea764aaf125adc1bd94c921d1afd5e308f61bf (patch)
treed73c4d0d11dedb4a811b5fea5abef93e8b3ea5b3
parent9dd0ef2aeb5fba611042b89ba59236ca23ded965 (diff)
downloadvolse-hubzilla-f4ea764aaf125adc1bd94c921d1afd5e308f61bf.tar.gz
volse-hubzilla-f4ea764aaf125adc1bd94c921d1afd5e308f61bf.tar.bz2
volse-hubzilla-f4ea764aaf125adc1bd94c921d1afd5e308f61bf.zip
zrl hook
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index 5dd93523e..442173eeb 100644
--- a/index.php
+++ b/index.php
@@ -40,8 +40,8 @@ load_translation_table($lang);
require_once("dba.php");
if(! $install) {
-$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
- unset($db_host, $db_user, $db_pass, $db_data);
+ $db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
+ unset($db_host, $db_user, $db_pass, $db_data);
/**
* Load configs from db. Overwrite configs from .htconfig.php
@@ -95,6 +95,10 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
if(x($_GET,'zrl')) {
$_SESSION['my_url'] = $_GET['zrl'];
$a->query_string = preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is','',$a->query_string);
+ if(! $install) {
+ $arr = array('zrl' => $_SESSION['my_url'], 'url' => $a->cmd);
+ call_hooks('zrl_init',$arr);
+ }
}
/**