require_once('library/Mobile_Detect/Mobile_Detect.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '3.0.1480' );
+define ( 'FRIENDICA_VERSION', '3.0.1516' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1156 );
*/
function startup() {
+
error_reporting(E_ERROR | E_WARNING | E_PARSE);
+
set_time_limit(0);
// This has to be quite large to deal with embedded private photos
elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443))
$this->scheme = 'https';
-
if(x($_SERVER,'SERVER_NAME')) {
$this->hostname = $_SERVER['SERVER_NAME'];
$cmdline = implode($args," ");
if(get_config('system','proc_windows'))
- proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo));
+ proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo,dirname(__FILE__)));
else
- proc_close(proc_open($cmdline." &",array(),$foo));
+ proc_close(proc_open($cmdline." &",array(),$foo,dirname(__FILE__)));
}
}
}
return $pageURL;
}
+
+function random_digits($digits) {
+ $rn = '';
+ for($i = 0; $i < $digits; $i++) {
+ $rn .= rand(0,9);
+ }
+ return $rn;
+}