aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-18 20:49:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-18 20:49:10 -0700
commit21f0cd206d1f533af8754542821f18c82e5c8df5 (patch)
tree4bb5f5b07b2ca8b4c0533e6fab2c26d2ccedf480 /boot.php
parent07274bb922204a39889e8a3db42adb94708572fb (diff)
downloadvolse-hubzilla-21f0cd206d1f533af8754542821f18c82e5c8df5.tar.gz
volse-hubzilla-21f0cd206d1f533af8754542821f18c82e5c8df5.tar.bz2
volse-hubzilla-21f0cd206d1f533af8754542821f18c82e5c8df5.zip
more poll stuff ahead of item revamp
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 02c37a93f..1ecd6e677 100644
--- a/boot.php
+++ b/boot.php
@@ -33,6 +33,7 @@ class App {
private $scheme;
private $hostname;
private $path;
+ private $baseurl;
private $db;
function __construct() {
@@ -69,12 +70,20 @@ class App {
}
function get_baseurl($ssl = false) {
-
- return (($ssl) ? 'https' : $this->scheme) . "://" . $this->hostname
+ if(strlen($this->baseurl))
+ return $this->baseurl;
+
+ $this->baseurl = (($ssl) ? 'https' : $this->scheme) . "://" . $this->hostname
. ((isset($this->path) && strlen($this->path))
? '/' . $this->path : '' );
+ return $this->baseurl;
+ }
+
+ function set_baseurl($url) {
+ $this->baseurl = $url;
}
+
function set_path($p) {
$this->path = ltrim(trim($p),'/');
}
@@ -330,6 +339,11 @@ function notice($s) {
}}
+if(! function_exists('get_max_import_size')) {
+function get_max_import_size() {
+ global $a;
+ return ((x($a->config,'max_import_size')) ? $a->config['max_import_size'] : 0 );
+}}
if(! function_exists('xmlify')) {
function xmlify($str) {