mirror of
https://github.com/waytotheweb/scripts.git
synced 2026-03-29 19:47:06 +00:00
GPL v3 Release
This commit is contained in:
34
csf/vestacp/index.php
Normal file
34
csf/vestacp/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
error_reporting(NULL);
|
||||
$TAB = 'CSF';
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
||||
top_panel(empty($_SESSION['look']) ? $_SESSION['user'] : $_SESSION['look'], $TAB);
|
||||
|
||||
?>
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
<div class="l-center units">
|
||||
<iframe scrolling='auto' name='myiframe' id='myiframe' src='frame.php' frameborder='0' width='100%' onload='resizeIframe(this);'></iframe>
|
||||
<script>
|
||||
function resizeIframe(obj) {
|
||||
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
|
||||
window.scrollTo(0,0);
|
||||
window.parent.scrollTo(0,0);
|
||||
window.parent.parent.scrollTo(0,0);
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/scripts.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');
|
||||
Reference in New Issue
Block a user