*/
public static function getPocheUrl()
{
+ $baseUrl = "";
+
$https = (!empty($_SERVER['HTTPS'])
&& (strtolower($_SERVER['HTTPS']) == 'on'))
|| (isset($_SERVER["SERVER_PORT"])
$serverport = '';
}
- // check if BASE_URL is configured
- if(BASE_URL != null && BASE_URL != '') {
- $baseUrl = BASE_URL;
- } else {
- $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
- }
+ // check if BASE_URL is configured
+ if(BASE_URL) {
+ print_r(BASE_URL);
+ $baseUrl = BASE_URL;
+ } else {
+ $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
+ }
- return $baseUrl . $scriptname;
+ return $baseUrl . $scriptname;
+
}
/**
// Change this if not using the standart port for SSL - i.e you server is behind sslh
@define ('SSL_PORT', 443);
+// Define this only if you use wallabag behind a proxy and if you encounter problems
+@define ('BASE_URL', '');
+
@define ('MODE_DEMO', FALSE);
@define ('DEBUG_POCHE', FALSE);