Commit 7ac3e07eba59bb6affd7ae6b6f36c1e1c4870a95
1 parent
04a579a5
Exists in
master
and in
110 other branches
do not check user in PROCESSDELETE function
Showing
8 changed files
with
97 additions
and
54 deletions
Show diff stats
desktop.php
... | ... | @@ -30,15 +30,13 @@ |
30 | 30 | <link rel="stylesheet" type="text/css" href="js/lib/ext/resources/css/ext-all.css" /> |
31 | 31 | <link rel="icon" href="favicon.ico" type="image/x-icon"> |
32 | 32 | <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> |
33 | - | |
34 | -<!-- <script type="text/javascript" src="js/lib/ext/builds/ext-core.js"></script> --> | |
35 | -<!-- <script type="text/javascript" src="js/lib/ext/bootstrap.js"></script> --> | |
36 | -<!-- <script type="text/javascript" src="js/lib/ext/ext-all-debug-w-comments.js"></script> --> | |
37 | - <script type="text/javascript" src="js/lib/ext/ext-all.js"></script> | |
38 | - <!-- <script type="text/javascript" src="js/lib/ext/ext-all-dev.js"> --> | |
39 | - <!-- <script type="text/javascript" src="js/lib/ext-override.js"></script> --> | |
40 | - | |
41 | 33 | |
34 | +<!-- <script type="text/javascript" src="js/lib/ext/builds/ext-core.js"></script> --> | |
35 | +<!-- <script type="text/javascript" src="js/lib/ext/bootstrap.js"></script> --> | |
36 | + <script type="text/javascript" src="js/lib/ext/ext-all-debug-w-comments.js"></script>--> | |
37 | +<!-- <script type="text/javascript" src="js/lib/ext/ext-all.js"></script> --> | |
38 | +<!-- <script type="text/javascript" src="js/lib/ext/ext-all-dev.js"> --> | |
39 | +<!-- <script type="text/javascript" src="js/lib/ext-override.js"></script> --> | |
42 | 40 | |
43 | 41 | <!-- Direct API --> |
44 | 42 | <script type="text/javascript" src="php/api.php"></script> | ... | ... |
generic_data/Functions/functions.xml
... | ... | @@ -101,6 +101,10 @@ |
101 | 101 | <info_brief>Arc-tangent</info_brief> |
102 | 102 | <new_kernel>atan</new_kernel> |
103 | 103 | </function> |
104 | + <function name="atan2(,)" kind="idl"> | |
105 | + <info_brief>Arc-tangent</info_brief> | |
106 | + <new_kernel>atan_2f</new_kernel> | |
107 | + </function> | |
104 | 108 | <function name="cos()" kind="idl"> |
105 | 109 | <info_brief>cosine</info_brief> |
106 | 110 | <new_kernel>cos</new_kernel> |
... | ... | @@ -109,11 +113,11 @@ |
109 | 113 | <info_brief>Hyperbolic cosine</info_brief> |
110 | 114 | <new_kernel>cosh</new_kernel> |
111 | 115 | </function> |
112 | - <function name="deriv_()" kind="idl"> | |
116 | + <!--<function name="deriv_()" kind="idl"> | |
113 | 117 | <prompt/> |
114 | 118 | <info_brief>deriv() function with possibly unequal point spacing</info_brief> |
115 | 119 | <new_kernel>#deriv</new_kernel> |
116 | - </function> | |
120 | + </function>--> | |
117 | 121 | <function name="exp()" kind="idl"> |
118 | 122 | <info_brief>Natural exponential function</info_brief> |
119 | 123 | <new_kernel>exp</new_kernel> | ... | ... |
generic_data/SpecialSettings/Groups.xml
index.html
1 | -<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Welcome on Amda</title> <link href="js/resources/css/AccueilAmda.css" rel="stylesheet" type="text/css"> <!-- Login --> <link rel="stylesheet" type="text/css" href="js/resources/css/login.css" /> <link rel="icon" href="favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> </head> <body> <div id="centrage"> <div id="trou"> <div id="couvercle"></div> <div id="TousLesBoutons"> <div id="Btn_FirstVisit" onclick="location.href='help.html';""></div> <div id="Btn_Rules" onclick="location.href='help/policy.html';"></div> <form method="POST" action="desktop.php"> <input type="text" name="username" placeholder="LOGIN" id="Btn_EnterLogin" class="PlaceHolder" /> <input type="password" name="password" placeholder="PASSWORD" id="Btn_EnterPassword" class="PlaceHolder"/> <div><input id="Btn_Login" type="submit" value=""/></div> </form> <a href="mailto:amda@irap.omp.eu?subject=AMDA registration" id="Btn_Register"></a> <a href="mailto:amda@irap.omp.eu?subject=AMDA contact" id="Btn_Contact"></a> <a href="http://cdpp.eu/" id="Logo_CDPP"></a> <div id="PaveGuest"> <div id="TitrePaveGuest">Try AMDA as a guest</div> <div id="TextePaveGuest">login: guest</div> <div id="TextePaveGuest">password : your e-mail address</div> </div> <div id="Logos_partenaires"></div> <div id="PaveAnnoucements"> <div id="TitrePaveAnnoucement">Announcements </div> <div id="DateAnnoucement">12/05/2016</div> <div id="TexteAnnoucement">New instance for CU tests </div> </div> </div><!--TousLesBoutons--> </div><!--trou--> </div><!--centrage--> </body> </html> | |
2 | 1 | \ No newline at end of file |
2 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
3 | +<html> | |
4 | +<head> | |
5 | +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
6 | +<title>AmdaNG Login</title> | |
7 | + | |
8 | +<!-- Login --> | |
9 | +<link rel="stylesheet" type="text/css" href="js/resources/css/login.css" /> | |
10 | +<link rel="icon" href="favicon.ico" type="image/x-icon"> | |
11 | +<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> | |
12 | +<!--<script type="text/javascript" src="client/misc/cookies.js"></script> --> | |
13 | +<!--<script type="text/javascript" src="js/login/login.js"></script>--> | |
14 | +</head> | |
15 | + | |
16 | +<body> | |
17 | +<div id="qo-panel"> | |
18 | + <!--<img alt="" src="js/resources/images/default/s.gif" class="qo-logo qo-abs-position" />--> | |
19 | + <span class="qo-supported qo-abs-position"> | |
20 | + <b>Supported Browsers</b><br /> | |
21 | + <a href="http://www.mozilla.org/download.html" target="_blank">Firefox</a><br/> | |
22 | + <!--<a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx" target="_blank">Internet Explorer 7+</a><br />--> | |
23 | + <!--<a href="http://www.opera.com/download/" target="_blank">Opera 9+</a><br />--> | |
24 | + <a href="http://www.apple.com/safari/download/" target="_blank">Safari</a><br/> | |
25 | + <a href="http://www.google.com/chrome/" target="_blank">Google-Chrome</a> | |
26 | + </span> | |
27 | + | |
28 | + <a href="http://www.extjs.com/" target="_blank"> | |
29 | + <img alt="" src="js/resources/images/s.gif" class="qo-extjs-logo qo-abs-position" /></a> | |
30 | + <span class="qo-library qo-abs-position"> | |
31 | + built with the <a href="http://www.extjs.com/" target="_blank">Ext JS</a> library. | |
32 | + </span> | |
33 | + | |
34 | + <span class="qo-signup-link qo-abs-position"> | |
35 | + <a href="signup.html">I want to sign up</a> | |
36 | + </span> | |
37 | + | |
38 | + <span class="qo-forgot-link qo-abs-position"> | |
39 | + <a href="forgot-password.html">I forgot my password</a> | |
40 | + </span> | |
41 | + <form method="POST" action="desktop.php"> | |
42 | + <label id="field1-label" class="qo-abs-position">Login</label> | |
43 | + <input class="qo-abs-position" type="text" name="username" id="field1" /> | |
44 | + | |
45 | + <label id="field2-label" class="qo-abs-position">Password</label> | |
46 | + <input class="qo-abs-position" type="password" name="password" id="field2" /> | |
47 | + <input id="submitBtn" class="qo-submit qo-abs-position" type="submit" value=""/> | |
48 | + </form> | |
49 | + | |
50 | + <!--<input id="resetBtn" class="qo-reset qo-abs-position" type="image" src="js/resources/images/s.gif" />--> | |
51 | +</div> | |
52 | + | |
53 | +</body> | |
54 | +</html> | |
3 | 55 | \ No newline at end of file | ... | ... |
js/lib/ext-override.js
... | ... | @@ -95,10 +95,25 @@ Ext.onReady(function () { |
95 | 95 | comp.setPosition(x,y); |
96 | 96 | } |
97 | 97 | } |
98 | - });*/ | |
99 | - | |
98 | + }); | |
100 | 99 | |
101 | - /*Ext.override(Ext.selection.Model, { | |
100 | + Ext.override(Ext.selection.TreeModel, { | |
101 | + | |
102 | + onRowClick: function (view, record, item, index, e) { | |
103 | + // Record index will be -1 if the clicked record is a metadata record and not selectable | |
104 | + if (index !== -1) { | |
105 | + if (!this.allowRightMouseSelection(e)) { | |
106 | + return ; | |
107 | + } | |
108 | + | |
109 | + //Don't process if it's a right-click over a previously selected record. | |
110 | + // if (!(e.type === 'contextmenu' && this.isSelected(record))) { | |
111 | + this.processSelection(view, record, item, index, e); | |
112 | + // } | |
113 | + } | |
114 | + } | |
115 | + }); | |
116 | + Ext.override(Ext.selection.Model, { | |
102 | 117 | storeHasSelected: function(record) { |
103 | 118 | var store = this.store, |
104 | 119 | records, | ... | ... |
php/AmdaUpdate.php
... | ... | @@ -21,8 +21,7 @@ |
21 | 21 | exit(1); |
22 | 22 | } |
23 | 23 | $updateOnly = false; |
24 | - } | |
25 | - | |
24 | + } | |
26 | 25 | |
27 | 26 | $amda = new AmdaClient($updateOnly); |
28 | 27 | |
... | ... | @@ -37,35 +36,6 @@ |
37 | 36 | } */ |
38 | 37 | } |
39 | 38 | |
40 | - | |
41 | - $locBases = $amda->getAvailableMissions(); | |
42 | - | |
43 | - if(is_string($locBases)) { | |
44 | - $msg = "Warning: No Local Amda Data info exists!".PHP_EOL; | |
45 | - print_r($msg); | |
46 | - } | |
47 | - else { | |
48 | - | |
49 | -/* | |
50 | -* update DD_*.xml files for local bases. If 'updateOnly', we keep DD_*.xml that already exists to not erase current user modifications. | |
51 | -*/ | |
52 | - $amda->getDDLocalParamsFiles($locBases); | |
53 | - | |
54 | -/* | |
55 | -* Update Start Stop for AMDA local data | |
56 | -*/ | |
57 | - $ok = $amda->updateStartStop($locBases); | |
58 | - | |
59 | -/* | |
60 | - * Create/update Orbites.xml file | |
61 | - */ | |
62 | -// if (!$updateOnly) { | |
63 | -// $postProcessing = new PostProcessing(); | |
64 | -// $postProcessing->createOrbites(); | |
65 | -// $postProcessing->createOrbites(LocalDataParam.'InternalParams.xml'); | |
66 | -// $postProcessing->createOrbitesInfoFiles($locBases); | |
67 | -// } | |
68 | - | |
69 | 39 | /* |
70 | 40 | * Get available external bases if exist |
71 | 41 | */ | ... | ... |
php/classes/AmdaAction.php
... | ... | @@ -906,9 +906,11 @@ class AmdaAction |
906 | 906 | |
907 | 907 | private function executeRequest($obj, $function) |
908 | 908 | { |
909 | - $res = $this->checkUser($obj); | |
910 | - if (!$res['success']) return $res; | |
911 | - | |
909 | + if ($function != FunctionTypeEnumClass::PROCESSDELETE) { | |
910 | + $res = $this->checkUser($obj); | |
911 | + if (!$res['success']) return $res; | |
912 | + } | |
913 | + | |
912 | 914 | $requestManager = new RequestManagerClass(); |
913 | 915 | |
914 | 916 | try | ... | ... |
php/my_config.php
... | ... | @@ -3,18 +3,18 @@ |
3 | 3 | * @file my_config.php |
4 | 4 | * @version $Id: my_config.php 2372 2014-05-21 09:38:38Z myriam $ |
5 | 5 | * |
6 | - * | |
7 | 6 | */ |
8 | 7 | |
9 | 8 | //AKKA - Path to AMDA_Integration base dir |
10 | -define('INTEGRATION_BASE_PATH', '/home/benjamin/AMDA-GIT/AMDA_Integration/'); | |
9 | +define('INTEGRATION_BASE_PATH', '/home/budnik/AMDA/AMDA_Integration/'); | |
11 | 10 | |
12 | 11 | require_once(INTEGRATION_BASE_PATH.'config/AMDAIntegrationConfig.php'); |
13 | 12 | |
14 | 13 | define('CEFLIB', '/usr/local/cef/lib'); |
15 | 14 | define('CDFLIB', '/opt/local/lib'); |
15 | + | |
16 | 16 | define('SYS_LIBS', '/lib:/usr/lib:/usr/local/lib64'); |
17 | -define('SYS_BIN','/bin:/usr/bin/:/usr/local/bin/'); | |
17 | +define('SYS_BIN', '/bin:/usr/bin/:/usr/local/bin/'); | |
18 | 18 | |
19 | 19 | //AKKA - For compatibility with IHM |
20 | 20 | define('BASE_PATH', IHM_SRC_DIR); |
... | ... | @@ -26,9 +26,9 @@ define('log', IHM_SRC_DIR.'LOG'); |
26 | 26 | // User apache |
27 | 27 | define('APACHE_USER', 'apache'); |
28 | 28 | // Alias for name of AMDA |
29 | -define('APACHE_ALIAS', '/NEWAMDA-BENJAMIN/'); | |
29 | +define('APACHE_ALIAS', '/NEWAMDA/'); | |
30 | 30 | //email to send errors from AmdaUpdate/AmdaInstall |
31 | -define('email','brenard@irap.omp.eu'); | |
31 | +define('email','ebudnik@irap.omp.eu'); | |
32 | 32 | |
33 | 33 | //DDPATH |
34 | 34 | define('DDBIN','/opt/local/bin/'); |
... | ... | @@ -38,6 +38,7 @@ define('DDLIB','/opt/local/lib/'); |
38 | 38 | define('DD_WSDL','http://amda-dev.irap.omp.eu/BASE/DDService/dd.wsdl'); |
39 | 39 | define('TITLE', 'AMDANEW-Test'); |
40 | 40 | |
41 | + | |
41 | 42 | $is64 = true; |
42 | 43 | |
43 | 44 | ?> | ... | ... |