mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-22 22:02:15 +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
13
common.php
13
common.php
|
@ -33,7 +33,6 @@ class Common {
|
||||||
|
|
||||||
public static function construct() {
|
public static function construct() {
|
||||||
|
|
||||||
global $cookie_lifetime;
|
|
||||||
$path = str_replace( "index.php", "", $_SERVER['SCRIPT_FILENAME'] );
|
$path = str_replace( "index.php", "", $_SERVER['SCRIPT_FILENAME'] );
|
||||||
foreach ( array( "components", "plugins" ) as $folder ) {
|
foreach ( array( "components", "plugins" ) as $folder ) {
|
||||||
|
|
||||||
|
@ -295,12 +294,6 @@ class Common {
|
||||||
public static function start_session() {
|
public static function start_session() {
|
||||||
|
|
||||||
Common::construct();
|
Common::construct();
|
||||||
global $cookie_lifetime;
|
|
||||||
|
|
||||||
if( isset( $cookie_lifetime ) && $cookie_lifetime != "" ) {
|
|
||||||
|
|
||||||
ini_set( "session.cookie_lifetime", $cookie_lifetime );
|
|
||||||
}
|
|
||||||
|
|
||||||
//Set a Session Name
|
//Set a Session Name
|
||||||
session_name( md5( BASE_PATH ) );
|
session_name( md5( BASE_PATH ) );
|
||||||
|
@ -355,12 +348,6 @@ class Common {
|
||||||
public static function startSession() {
|
public static function startSession() {
|
||||||
|
|
||||||
Common::construct();
|
Common::construct();
|
||||||
global $cookie_lifetime;
|
|
||||||
|
|
||||||
if( isset( $cookie_lifetime ) && $cookie_lifetime != "" ) {
|
|
||||||
|
|
||||||
ini_set( "session.cookie_lifetime", $cookie_lifetime );
|
|
||||||
}
|
|
||||||
|
|
||||||
//Set a Session Name
|
//Set a Session Name
|
||||||
session_name( md5( BASE_PATH ) );
|
session_name( md5( BASE_PATH ) );
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
if( option != codiad.filemanager.auto_reload ) {
|
if( option != codiad.filemanager.auto_reload ) {
|
||||||
|
|
||||||
//codiad.auto_save.reload_interval();
|
//codiad.auto_save.reload_interval();
|
||||||
window.location.reload();
|
window.location.reload( true );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -509,7 +509,7 @@
|
||||||
codiad.editor.getActive().removeEventListener( "change", _this.refreshPreview );
|
codiad.editor.getActive().removeEventListener( "change", _this.refreshPreview );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_this.preview.location.reload();
|
_this.preview.location.reload( true );
|
||||||
} catch( e ) {
|
} catch( e ) {
|
||||||
|
|
||||||
console.log( e );
|
console.log( e );
|
||||||
|
|
Loading…
Reference in a new issue