forked from minfucui/html
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsub.php
More file actions
28 lines (25 loc) · 668 Bytes
/
Copy pathappsub.php
File metadata and controls
28 lines (25 loc) · 668 Bytes
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
<?PHP
include 'header.php';
include 'language.php';
include 'clusters.php';
$uname=$_SESSION['uname'];
$admin=$_SESSION['admin'];
$setenvdir = 'export CB_ENVDIR='.$_SESSION['mycluster']['env'].';';
$cmdPrefix = 'source ./env.sh;'.$setenvdir;
$cmdExt = $_SESSION['ext'];
$app=isset($_GET['app']) ? $_GET['app'] : '';
if ($app == '')
header ("Location: login.php");
exec('getent passwd '.$uname.' | cut -d: -f6', $r, $errno);
if ($errno==0)
$olpath=$r[0];
else
$olpath='/tmp';
?>
<!DOCTYPE html>
<html>
<?php include('header.html');?>
<body class="hold-transition <?PHP echo $skin;?> sidebar-mini">
<?PHP include 'apps/'.$app.'.php'; ?>
</body>
</html>