mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-13 07:11:14 +01:00
Attempt at fix for response headers too big on some servers,
This commit is contained in:
parent
2307466e7b
commit
b4f42db8fa
3 changed files with 4 additions and 17 deletions
15
common.php
15
common.php
|
@ -32,8 +32,7 @@ class Common {
|
|||
//////////////////////////////////////////////////////////////////
|
||||
|
||||
public static function construct() {
|
||||
|
||||
global $cookie_lifetime;
|
||||
|
||||
$path = str_replace( "index.php", "", $_SERVER['SCRIPT_FILENAME'] );
|
||||
foreach ( array( "components", "plugins" ) as $folder ) {
|
||||
|
||||
|
@ -295,12 +294,6 @@ class Common {
|
|||
public static function start_session() {
|
||||
|
||||
Common::construct();
|
||||
global $cookie_lifetime;
|
||||
|
||||
if( isset( $cookie_lifetime ) && $cookie_lifetime != "" ) {
|
||||
|
||||
ini_set( "session.cookie_lifetime", $cookie_lifetime );
|
||||
}
|
||||
|
||||
//Set a Session Name
|
||||
session_name( md5( BASE_PATH ) );
|
||||
|
@ -355,12 +348,6 @@ class Common {
|
|||
public static function startSession() {
|
||||
|
||||
Common::construct();
|
||||
global $cookie_lifetime;
|
||||
|
||||
if( isset( $cookie_lifetime ) && $cookie_lifetime != "" ) {
|
||||
|
||||
ini_set( "session.cookie_lifetime", $cookie_lifetime );
|
||||
}
|
||||
|
||||
//Set a Session Name
|
||||
session_name( md5( BASE_PATH ) );
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
if( option != codiad.filemanager.auto_reload ) {
|
||||
|
||||
//codiad.auto_save.reload_interval();
|
||||
window.location.reload();
|
||||
window.location.reload( true );
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -509,7 +509,7 @@
|
|||
codiad.editor.getActive().removeEventListener( "change", _this.refreshPreview );
|
||||
return;
|
||||
}
|
||||
_this.preview.location.reload();
|
||||
_this.preview.location.reload( true );
|
||||
} catch( e ) {
|
||||
|
||||
console.log( e );
|
||||
|
|
|
@ -151,7 +151,7 @@ class Settings {
|
|||
}
|
||||
|
||||
if( ! empty( $return ) ) {
|
||||
|
||||
|
||||
$return = $return["value"];
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Reference in a new issue