Showing
2 changed files
with
9 additions
and
3 deletions
@@ -794,6 +794,11 @@ foreach ($files as $file) { | @@ -794,6 +794,11 @@ foreach ($files as $file) { | ||
794 | } else | 794 | } else |
795 | die('"subdiv-code" is not set'); | 795 | die('"subdiv-code" is not set'); |
796 | } | 796 | } |
797 | + if (isset($_GET['resourse-sshrequired'])) { | ||
798 | + $_GET['resourse-sshrequired'] = 'да'; | ||
799 | + } else { | ||
800 | + $_GET['resourse-sshrequired'] = 'нет'; | ||
801 | + } | ||
797 | $subdivs = json_decode(file_get_contents('https://cps.mephi.ru/?cmd=getsubdivinfo&s_code='.$_GET['subdiv-code'])); | 802 | $subdivs = json_decode(file_get_contents('https://cps.mephi.ru/?cmd=getsubdivinfo&s_code='.$_GET['subdiv-code'])); |
798 | $subdiv = $subdivs->result->s0; | 803 | $subdiv = $subdivs->result->s0; |
799 | $_GET['subdiv-name'] = $subdiv->name; | 804 | $_GET['subdiv-name'] = $subdiv->name; |
@@ -4,15 +4,16 @@ | @@ -4,15 +4,16 @@ | ||
4 | \textbf{Веб-ресурс} | 4 | \textbf{Веб-ресурс} |
5 | \\ | 5 | \\ |
6 | \begin{tabular}{ l p {10 cm} } | 6 | \begin{tabular}{ l p {10 cm} } |
7 | -Наименование & [{resourse-description}]\\ | 7 | +Наименование & [{resourse-description}]\\ |
8 | -Доменное имя & [{resourse-domain}] \\ | 8 | +Доменное имя & [{resourse-domain}] \\ |
9 | +Требуется SSH-доступ & [{resource-sshrequired}] \\ | ||
9 | \end{tabular} | 10 | \end{tabular} |
10 | \\ | 11 | \\ |
11 | \\ | 12 | \\ |
12 | \textbf{Подразделение} | 13 | \textbf{Подразделение} |
13 | \\ | 14 | \\ |
14 | \begin{tabular}{ l p {10 cm} } | 15 | \begin{tabular}{ l p {10 cm} } |
15 | -Номер & [{subdiv-code}] \\ | 16 | +Номер & [{subdiv-code}] \\ |
16 | Наименование & «[{subdiv-name}]»\\ | 17 | Наименование & «[{subdiv-name}]»\\ |
17 | \end{tabular} | 18 | \end{tabular} |
18 | \\ | 19 | \\ |
-
Please register or login to post a comment