mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
bug #104
This commit is contained in:
parent
1fa2231c20
commit
f3bd216112
2 changed files with 24 additions and 20 deletions
14
boot.php
14
boot.php
|
@ -1,9 +1,5 @@
|
|||
<?php
|
||||
|
||||
set_time_limit(0);
|
||||
ini_set('pcre.backtrack_limit', 250000);
|
||||
|
||||
|
||||
define ( 'FRIENDIKA_VERSION', '2.2.1044' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||
define ( 'DB_UPDATE_VERSION', 1075 );
|
||||
|
@ -179,6 +175,12 @@ define ( 'GRAVITY_COMMENT', 6);
|
|||
*
|
||||
*/
|
||||
|
||||
function startup() {
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
set_time_limit(0);
|
||||
ini_set('pcre.backtrack_limit', 250000);
|
||||
|
||||
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
|
||||
while (list($key, $val) = each($process)) {
|
||||
|
@ -195,6 +197,8 @@ if (get_magic_quotes_gpc()) {
|
|||
unset($process);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* translation system
|
||||
*/
|
||||
|
@ -260,6 +264,8 @@ class App {
|
|||
|
||||
$this->query_string = '';
|
||||
|
||||
startup();
|
||||
|
||||
$this->scheme = ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'])) ? 'https' : 'http' );
|
||||
|
||||
if(x($_SERVER,'SERVER_NAME')) {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
|
||||
/**
|
||||
*
|
||||
* Friendika
|
||||
|
|
Loading…
Reference in a new issue