forked from MatteoRagni/Force
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsshinterf.php
executable file
·70 lines (57 loc) · 1.93 KB
/
sshinterf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!--
Elementi da implementare:
* Upload files
* generazione dello script di
* inserimento di una console ssh implementata in ruby magari?
* visualizzazione dello stato dell coda
* visualizzazione dello stato del singolo job
-->
<!-- HTTPS CONTROL -->
<?
if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == ""){
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header("Location: $redirect");
}
?>
<!-- SESSION CONTROL -->
<?
session_start();
include_once('globals.php');
$redirect = "https://".$_SERVER['HTTP_HOST']."/index.php";
if (!isset($_SESSION['username'])) { header("Location:$redirect"); }
if (!isset($_SESSION['password'])) { header("Location:$redirect"); }
if (!isset($_SESSION['home'])) { header("Location:$redirect"); }
?>
<html>
<!-- ##################################### -->
<head>
<title>SSH | <? echo $world['ClusterName']; ?> | FORCE - Torque Web Interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Styles and scripts -->
<? include('html_include/styles.php'); ?>
<!-- ###################################### -->
<body>
<!-- Header and navigation bar -->
<? $active = 'ssh'; include('html_include/header.php'); ?>
<!-- Fine Header -->
<!-- Body -->
<!-- Suddivisione in Tab: header delle tab -->
<div class="container" id="common-page">
<ul class="nav nav-tabs" id="myTab">
<li class="active">
<a href="#sshinterf" data-toggle="tab"><h3>Status Queue</h3></a>
</li>
</ul>
<!-- Suddivisione in Tab: Contenuto delle tab -->
<div id="myTabContent" class="tab-content">
<div class="tab-pane active" id="sshinterf">
<h3>Under construction!</h3>
</div> <!-- /container -->
</div>
</div> <!-- div myTabContent -->
<!-- Fine Body -->
<!-- FOOTER -->
<? include('html_include/footer.php'); ?>
<!-- FINE FOOTER -->
</body>
</html>