From: vincent@cubedesigners.com Date: Fri, 4 Mar 2022 17:25:52 +0000 (+0000) Subject: wait #5126 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0243a2ad6f6e53e9c846d1e12e2f2d155a8704d6;p=cubeextranet.git wait #5126 @2 --- diff --git a/inc/commons/class.common.url.php b/inc/commons/class.common.url.php index 110f39b64..2dc5812c3 100644 --- a/inc/commons/class.common.url.php +++ b/inc/commons/class.common.url.php @@ -10,7 +10,12 @@ class commonUrl // Si l'utilisateur n'est pas connecté, on affiche le formulaire // de login - $bypass = array('stats', 'telecharger', 'telechargerr', 'orpiref', 'resetPassword','relay','relayfb'); + $closesession = ['relay', 'relayfb']; + $bypass = array_merge(['stats', 'telecharger', 'telechargerr', 'orpiref', 'resetPassword'], $closesession); + if (in_array($args[0], $closesession)) { + session_write_close(); + } + if ((!isset($args[0]) || !in_array($args[0], $bypass)) && (is_null($core->user) || !$core->user)) { $args = array('login'); diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index 2988e9a3e..c238fdbd0 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -13,6 +13,7 @@ class wsMaintenance } } + public static function cleanOriginauxPDF() { global $core; @@ -1586,12 +1587,6 @@ class wsMaintenance } } - public static function test() - { - global $core; - $dao = new wsDAOTheme($core->con); - print_r($dao->selectById('3641')); - } public static function getAdditionalSettingsMap(): array { diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 5d8a1b38b..4a86c805d 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -997,6 +997,8 @@ html.tall{height:150%}' . "\n"; { global $core; + session_write_close(); + $nointerface = isset($_GET['nointerface']); $args = cubePage::getArgs($args); @@ -2040,6 +2042,8 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co { global $core; + session_write_close(); + array_shift($args); $file = ROOT . '/' . implode('/', $args); @@ -2071,7 +2075,7 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co exit; } header('Content-Length: ' . filesize($file)); - header('Content-Type: ' . files::getMimeType($file)); + header('Content-Type: ' . files::getMimeType($file)); header('X-Sendfile: ' . $file); } @@ -2097,6 +2101,9 @@ html,body{height:100%;cursor: wait;font-family: "Open Sans", Arial;background-co public static function relayfb($args) { global $core; + + session_write_close(); + array_shift($args); $fb = array_shift($args); $hash = array_shift($args); diff --git a/inc/ws/prepend.php b/inc/ws/prepend.php index d1fd8caa1..f93e4a89a 100644 --- a/inc/ws/prepend.php +++ b/inc/ws/prepend.php @@ -6,7 +6,6 @@ $core->url->register('s', 's', '^s/(.*)$', array('wsServices', 'in')); $core->url->register('maintenance', 'maintenance', '^maintenance(.*)$', array('wsMaintenance', 'in')); $core->url->register('editor', 'editor', '^editor/(.*)$', array('wsUrl', 'editor')); $core->url->register('restoreLinks', 'restoreLinks', '^restoreLinks/(.*)$', array('wsUrl', 'restoreLinks')); -$core->url->register('viewer', 'viewer', '^viewer/(.*)$', array('wsUrl', 'viewer')); $core->url->register('viewerh', 'viewerh', '^viewerh/(.*)$', array('wsUrl', 'viewerh')); $core->url->register('viewers', 'viewers', '^viewers/(.*)$', array('wsUrl', 'viewers'));