Commit 1e106ce5686795856ea1d771a08c4ffdb6da3246
Exists in
master
and in
108 other branches
Merge branch 'master' of gitlab1.irap.omp.eu:CDPP/AMDA_IHM
Showing
2 changed files
with
25 additions
and
5 deletions
Show diff stats
js/resources/css/styles.css
... | ... | @@ -47,6 +47,16 @@ padding-top: 20px; |
47 | 47 | background: #F6F3E7; |
48 | 48 | } |
49 | 49 | |
50 | +#main2 | |
51 | +{ | |
52 | +width: 710px; | |
53 | +height: 750px; | |
54 | +padding: 10px; | |
55 | +padding-top: 20px; | |
56 | +/*background: #ffffff; */ | |
57 | +background: #F6F3E7; | |
58 | +} | |
59 | + | |
50 | 60 | #back |
51 | 61 | { |
52 | 62 | width: 738px; |
... | ... | @@ -60,16 +70,17 @@ width: 738px; |
60 | 70 | |
61 | 71 | #right H3 |
62 | 72 | { |
63 | -width: 210px; | |
73 | +width: 160px; | |
64 | 74 | height: 29px; |
65 | 75 | font-size: 14px; |
66 | 76 | font-weight: bold; |
67 | 77 | padding-left: 0px; |
68 | 78 | padding-top: 10px; |
69 | 79 | text-transform: uppercase; |
80 | +text-decoration: underline; | |
70 | 81 | color: #555555; |
71 | 82 | text-align: center; |
72 | -background: url(../images/right.png) no-repeat; | |
83 | +/*background: url(../images/test.png) no-repeat; */ | |
73 | 84 | } |
74 | 85 | |
75 | 86 | #right H4 | ... | ... |
php/RemoteDataCenter/getRemoteDDBaseProxies.php
... | ... | @@ -47,12 +47,13 @@ |
47 | 47 | |
48 | 48 | $basesRemote = $basesDomRemote->getElementsByTagName("dataCenter"); |
49 | 49 | foreach ($basesRemote as $baseRemote) { |
50 | + | |
50 | 51 | $baseId = $baseRemote->getAttribute("xml:id"); |
51 | - | |
52 | + $baseDir = DATAPATH."/RemoteData/$baseId"; | |
53 | + $baseDirRemote = DDSERVICE."/BASE/INFO/bases/$baseId"; | |
54 | + | |
52 | 55 | // add remote base if it doesn't exist |
53 | 56 | if (!$basesDom->getElementById($baseId)) { |
54 | - $baseDir = DATAPATH."/RemoteData/$baseId"; | |
55 | - $baseDirRemote = DDSERVICE."/BASE/INFO/bases/$baseId"; | |
56 | 57 | if (!is_dir($baseDir)) mkdir($baseDir, 0775, true); |
57 | 58 | chmod($baseDir,0775); |
58 | 59 | if (!copy("$baseDirRemote/base.xml", "$baseDir/base.xml")) { |
... | ... | @@ -67,6 +68,14 @@ |
67 | 68 | $center->makeAllParams(); |
68 | 69 | } |
69 | 70 | } |
71 | + }// just copy base xml | |
72 | + else { | |
73 | + if (!copy("$baseDirRemote/base.xml", "$baseDir/base.xml")) { | |
74 | + echo "Cannot copy base.xml for $baseId".PHP_EOL; | |
75 | + } | |
76 | + else { | |
77 | + echo "Copied base.xml for $baseId".PHP_EOL; | |
78 | + } | |
70 | 79 | } |
71 | 80 | } |
72 | 81 | } | ... | ... |