Graphisme sur la page des VMs
This commit is contained in:
parent
a0142f57be
commit
ecd99c82f8
|
@ -50,14 +50,14 @@ include_once("head.php");
|
||||||
<hr/>
|
<hr/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<?php if ($error) { ?>
|
<?php if (!empty($error)) { ?>
|
||||||
<div>
|
<div>
|
||||||
<span class="error">
|
<span class="error">
|
||||||
<?php echo implode('<br />', $error); ?>
|
<?php echo implode(" - ", array_unique($error)); ?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -92,37 +92,37 @@ include_once("head.php");
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<h3><?php __("Tips"); ?></h3>
|
<h3><?php __("Tips"); ?></h3>
|
||||||
<a href="javascript:;" onclick="$('#tips-script').toggle();"><?php __("Can I start or stop my console access with a script?"); ?></a>
|
|
||||||
<div id='tips-script'>
|
<div id="tabs-tips-vm">
|
||||||
<fieldset>
|
|
||||||
<?php __("You can script the launch the console access in command line by using this url:"); ?>
|
<ul>
|
||||||
<pre>
|
<li class="help"><a href="#tabs-tips-soft"><?php __("Available softwares"); ?></a></li>
|
||||||
http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1&action=start' ?>
|
<li class="help"><a href="#tabs-tips-script"><?php __("Remotely start/stop a VM"); ?></a></li>
|
||||||
</pre>
|
</ul>
|
||||||
<?php __("You can halt the vm by using:"); ?>
|
|
||||||
<pre>
|
|
||||||
http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1&action=stop' ?>
|
<div id='tabs-tips-script'>
|
||||||
</pre>
|
<?php __("You can script the launch the console access in command line by using this url:"); ?>
|
||||||
<?php __("And you can see existing vm information (if the vm is running) by using:"); ?>
|
<pre>http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1&action=start' ?></pre>
|
||||||
<pre>
|
<?php __("You can halt the vm by using:"); ?>
|
||||||
http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1' ?>
|
<pre>http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1&action=stop' ?></pre>
|
||||||
</pre>
|
<?php __("And you can see existing vm information (if the vm is running) by using:"); ?>
|
||||||
<i><?php __("Warning: if you do not use HTTPS, your password will be transfered without any protection"); ?></i>
|
<pre>http://<?php echo $mem->user['login'].':ALTERNC_PASSWORD@'.$host.'/vm.php?http_auth=1&script=1' ?></pre>
|
||||||
</fieldset>
|
<i><?php __("Warning: if you do not use HTTPS, your password will be transfered without any protection"); ?></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<div id='tabs-tips-soft'>
|
||||||
<a href="javascript:;" onclick="$('#tips-soft').toggle();"><?php __("Which software can I use?"); ?></a>
|
<?php __("To access a remote console with SSH, you can use Putty.");?>
|
||||||
<div id='tips-soft'>
|
<br/>
|
||||||
<fieldset>
|
<?php __("To transfer files, you can use Filezilla in SFTP mode."); ?>
|
||||||
<?php __("To access a remote console with SSH, you can use Putty. To transfer files, you can use Filezilla in SFTP mode."); ?>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div><!-- tabs-tips-vm -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('#tips-script').toggle();
|
$(function() {$( "#tabs-tips-vm" ).tabs();});
|
||||||
$('#tips-soft').toggle();
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -87,7 +87,7 @@ class m_lxc implements vm {
|
||||||
*/
|
*/
|
||||||
private function sendMessage($params) {
|
private function sendMessage($params) {
|
||||||
global $L_FQDN,$hooks;
|
global $L_FQDN,$hooks;
|
||||||
$fp = fsockopen($this->IP, $this->PORT, $errno, $errstr, $this->TIMEOUT);
|
$fp = @fsockopen($this->IP, $this->PORT, $errno, $errstr, $this->TIMEOUT);
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
$this->error[] = 'Unable to connect';
|
$this->error[] = 'Unable to connect';
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue