File size: 1.56Kb
<?php
include ('../config.php');
include ('session.php');
include ($config->real() . $config->header);
if ($layout == 'mob') { ?>
<div class="container"><div class="title">PAIv2 Panel</div>Welcome <?php echo
str_replace('root', 'Main Admin', $session['user']); ?>!</div>
<?php } else {
?>
<div class="wrap">
<div style="float: left; width: 18%; margin-bottom: 5px;" class="container">
<div class="title">Hello</div><div style="padding: 5px;">Welcome <?php echo
str_replace('root', 'Main Admin', $session['user']); ?>!</div></div></div>
<div style="float: right; width:80%;">
<?php
} ?>
<div class="container"><div class="title">Select Feature</div>
<?php if ($layout == 'web') {
echo '<div style="padding:5px;">';
} ?>
<?php
if ($session['user'] !== 'root') {
if (@$_GET['error'] == 'noaccess') {
echo '<table width="100%" cellspacing="0" style="text-align:center;"><tr class="error"><td><img src="' . $config->
installdir . '/customization/error.png" height="48" width="48" /></td><td>You don\'t have the rights to access that page!</td></tr></table>';
}
}
$i = 1;
foreach ($functions as $item) {
if ($layout == 'mob')
$css = ($i % 2 == 0) ? 'Mainlight' : 'Mainwhite';
else
$css = 'item';
echo '<div class="' . $css . '"><img src="' . $config->installdir .
'/customization/item.png" /> <a href="' . $config->installdir . '/panel/' . $item['File'] .
'">' . $item['Name'] . '</a><br />' . $item['Desc'] . '</div>';
$i++;
}
?>
</div>
<?php if ($layout == 'web') {
echo '</div></div></div>';
}
?>
<?php
include ($config->real() . $config->footer);
?>