-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplications.php
More file actions
73 lines (69 loc) · 2.13 KB
/
Copy pathapplications.php
File metadata and controls
73 lines (69 loc) · 2.13 KB
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
71
72
73
<?PHP
include 'header.php';
include 'language.php';
include 'clusters.php';
$uname=$_SESSION['uname'];
$admin=$_SESSION['admin'];
?>
<!DOCTYPE html>
<html>
<?php include('header.html');?>
<body class="hold-transition <?PHP echo $skin;?> sidebar-mini">
<div class="wrapper">
<!-- Navigation -->
<?PHP include 'navigation.php';?>
<div class="content-wrapper">
<section class="content-header">
<h1 class="page-header">
<?PHP
echo $lang['APPLICATIONS'];
?>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-solid">
<div class="box-body">
<?PHP
$f = scandir("apps");
foreach($f as $file) {
if ($file != '.' && $file != '..' && strpos($file, '_sub.php') == false && !strpos($file, ".png")) {
$menuapp = basename($file, '.php');
echo '<div class="col-md-2">';
echo '<a href="appsub.php?app='.urlencode($menuapp).'">';
if (file_exists('apps/'.$menuapp.'.png'))
$imgf = 'apps/'.$menuapp.'.png';
else
$imgf = 'imgs/'.substr($menuapp, 0, 1).'.png';
echo '<center>';
echo '<img src="'.$imgf.'" height="80" width="80"><br>';
echo '<h4>'.(array_key_exists($menuapp, $lang)?$lang[$menuapp]:$menuapp).'</h4>';
echo '</center><br></a>';
echo '</div>';
echo "\n";
}
}
?>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<?PHP include('js.html');?>
<script type="text/javascript">
$(function() {
var height = window.innerHeight;
var width = window.innerWidth;
var screensize = (width - 16).toString() + "x" +
(height - 24).toString();
// console.log(screensize);
$.get("php/screensize.php?screen="+screensize, function (data) {
console.log(data);
});
});
</script>
</body>
</html>