Commit 240945c563e022b98b6a2bf5b9c9631d427cd1f7

Authored by Benjamin Renard
2 parents 1e8c4961 b59622f5

Merge branch 'master' into create-user

@@ -4,8 +4,9 @@ @@ -4,8 +4,9 @@
4 * @version $Id: desktop.php 2934 2015-06-03 13:23:22Z elena $ 4 * @version $Id: desktop.php 2934 2015-06-03 13:23:22Z elena $
5 * 5 *
6 */ 6 */
7 - 7 +
8 require_once('php/config.php'); 8 require_once('php/config.php');
  9 +
9 // error_reporting(E_ALL); 10 // error_reporting(E_ALL);
10 if (!isset($_POST['username'])) { 11 if (!isset($_POST['username'])) {
11 header('Location: index.html'); 12 header('Location: index.html');
@@ -13,8 +14,8 @@ @@ -13,8 +14,8 @@
13 } 14 }
14 15
15 if (!isset($_POST['username'])) die('<a href="index.html">LOGIN SVP</a>'); 16 if (!isset($_POST['username'])) die('<a href="index.html">LOGIN SVP</a>');
16 -  
17 $usrMgr = new UserMgr(); 17 $usrMgr = new UserMgr();
  18 +
18 $sessionID = $usrMgr->init(); 19 $sessionID = $usrMgr->init();
19 if ($sessionID === FALSE) { 20 if ($sessionID === FALSE) {
20 header('Location: index.html?error=1'); 21 header('Location: index.html?error=1');
@@ -109,7 +110,6 @@ @@ -109,7 +110,6 @@
109 var gatewayTimeout = '<?php if (defined('GATEWAY_TIMEOUT')) echo GATEWAY_TIMEOUT; else echo 300000; ?>'; // in msec 110 var gatewayTimeout = '<?php if (defined('GATEWAY_TIMEOUT')) echo GATEWAY_TIMEOUT; else echo 300000; ?>'; // in msec
110 111
111 var logExecTime = <?php echo (defined('LOG_EXEC_TIME') && (LOG_EXEC_TIME === TRUE) ? 'true' : 'false'); ?>; 112 var logExecTime = <?php echo (defined('LOG_EXEC_TIME') && (LOG_EXEC_TIME === TRUE) ? 'true' : 'false'); ?>;
112 -  
113 //create mask class (LoadMask for elements has been deprecated, use Ext.dom.Element.mask & Ext.dom.Element.unmask) 113 //create mask class (LoadMask for elements has been deprecated, use Ext.dom.Element.mask & Ext.dom.Element.unmask)
114 var AMDAMask = new Ext.Class({ 114 var AMDAMask = new Ext.Class({
115 show : function(interactivePlot) 115 show : function(interactivePlot)
@@ -175,7 +175,7 @@ @@ -175,7 +175,7 @@
175 175
176 if (response && response.statusText) { 176 if (response && response.statusText) {
177 if (response.timedout) 177 if (response.timedout)
178 - alert('Request processing time exceeds gateway timeout.<br/>In case of parameter from Remote Bases : please re-launch the same request in 10 min,<br/>otherwise contact AMDA team'); 178 + alert('Request processing time exceeds gateway timeout\n In case of parameter from Remote Bases : please re-launch the same request in 10 min,\n otherwise select "non-screen" FileOutput or contact AMDA team');
179 else 179 else
180 alert(response.statusText); 180 alert(response.statusText);
181 } 181 }
js/app/models/PlotObjects/PlotObjectConfig.js
@@ -224,7 +224,7 @@ Ext.define(&#39;amdaPlotObj.PlotObjectConfig&#39;, { @@ -224,7 +224,7 @@ Ext.define(&#39;amdaPlotObj.PlotObjectConfig&#39;, {
224 ], 224 ],
225 225
226 availableFileOutputsForPng : [ 226 availableFileOutputsForPng : [
227 - {'key' : 'INTERACTIVE', 'value' : 'Interactive mode'}, 227 + {'key' : 'INTERACTIVE', 'value' : 'screen'},
228 {'key' : 'TGZ', 'value' : 'tar+gzip archive'}, 228 {'key' : 'TGZ', 'value' : 'tar+gzip archive'},
229 {'key' : 'ZIP', 'value' : 'zip archive'} 229 {'key' : 'ZIP', 'value' : 'zip archive'}
230 ], 230 ],