Location: PHPKode > scripts > WH Social > wh_social/admin/index.php
<?php

    if(file_exists('handler/stay.php') == TRUE) {

        require('handler/stay.php');

        }else{

        echo '<p class="red_span" align="center">Error - Fehler</p>';
        exit;
        }

?>

<?php define('INCLUDE_CHECK',1); define('MYSQL_CHECK',1); ?>

<?php require('../framework/config.php'); ?>
<?php require('../framework/mysql.php'); ?>
<?php require('../framework/constants.php'); ?>
<?php require('../framework/class/cache_class.php'); no_cache(); ?>
<?php require('../framework/security.php'); ?>
<?php require('handler/language.php'); ?>

<?php require('structure/header.inc.php'); ?>

    <div class="menu">
        <div class="menu_left">
            <ul id="admin_navi">
                <li class="active"><a href="index.php"><?php echo $lang['blank_admin_area']; ?></a></li>
                <li><a href="members.php"><?php echo $lang['admin_members']; ?></a></li>
                <li><a href="discussions.php"><?php echo $lang['discussions']; ?></a></li>
                <li><a href="topics.php"><?php echo $lang['blank_topics']; ?></a></li>
                <li><a href="news.php"><?php echo $lang['news']; ?></a></li>
                <li><a href="events.php"><?php echo $lang['events']; ?></a></li>
                <li><a href="newsletter.php"><?php echo $lang['newsletter']; ?></a></li>
                <li><a href="statistic.php"><?php echo $lang['statistic']; ?></a></li>
            </ul>
        </div>
        <div class="menu_right">
            <?php

            if(isset($_SESSION['admin']) && $_SESSION['admin'] == TRUE) {

            echo '<div class="admin_settings">
            <a class="admin_account"><span>' . $lang['blank_navigation'] . '</span></a>
            <div class="admin_submenu" style="display: none;">
                <ul class="root">
                    <li><a href="' . $url . '" target="_blank">' . $lang['goto_network'] . '</a></li>
                    <li><a href="signout.php">' . $lang['signout'] . '</a></li>
                </ul>
            </div>
            </div>';
            }

            ?>
        </div>
    </div>
</div>

<div class="clear"></div>

<div id="content_wrapper">
    <div class="content">

    <?php

    echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td height="130" align="center" valign="top"><a href="members.php" class="management_links"><div class="admin_menu"><img src="../style/admin/members.png" alt="' . $lang['admin_members'] . '" vspace="5" border="0"><br>' . $lang['admin_members'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="discussions.php" class="management_links"><div class="admin_menu"><img src="../style/admin/discussions.png" alt="' . $lang['discussions'] . '" vspace="5" border="0"><br>' . $lang['discussions'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="topics.php" class="management_links"><div class="admin_menu"><img src="../style/admin/topics.png" alt="' . $lang['blank_topics'] . '" vspace="5" border="0"><br>' . $lang['blank_topics'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="news.php" class="management_links"><div class="admin_menu"><img src="../style/admin/news.png" alt="' . $lang['news'] . '" vspace="5" border="0"><br>' . $lang['news'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="events.php" class="management_links"><div class="admin_menu"><img src="../style/admin/events.png" alt="' . $lang['events'] . '" vspace="5" border="0"><br>' . $lang['events'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="newsletter.php" class="management_links"><div class="admin_menu"><img src="../style/admin/newsletter.png" alt="' . $lang['newsletter'] . '" vspace="5" border="0"><br>' . $lang['newsletter'] . '</div></a></td>
        <td height="130" align="center" valign="top"><a href="statistic.php" class="management_links"><div class="admin_menu"><img src="../style/admin/statistic.png" alt="' . $lang['statistic'] . '" vspace="5" border="0"><br>' . $lang['statistic'] . '</div></a></td>
    </tr>
    </table>';
    
    ?>

    <?php

        include_once('../framework/functions/statistic.php');
        include_once('../framework/functions/online.php');
        include_once('handler/serverinfo.php');

    ?>

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
        <td width="33%" valign="top"><?php
        echo '<h1 class="p_space">' . $lang['infos'] . '</h1>';

        stat_topics(); echo ' ' . $lang['blank_topics'] . '<br><br>';
        stat_pinboards(); echo ' ' . $lang['pinboard_publications'] . '<br><br>';
        stat_photos(); echo ' ' . $lang['photos'] . '<br><br>';
        stat_comments(); echo ' ' . $lang['blank_comments'] . '<br><br>';
        stat_discussions(); echo ' ' . $lang['discussions'] . '<br><br>';
        stat_news(); echo ' ' . $lang['news'] . '<br><br>';
        stat_friends(); echo ' ' . $lang['blank_friends'] . '<br><br>';
        stat_guestbook(); echo ' ' . $lang['blank_guestbooks'] . '<br><br>';
        stat_messages(); echo ' ' . $lang['messages'] . '<br><br>';
        stat_events(); echo ' ' . $lang['events'] . '<br><br>';
        ?></td>
        <td width="33%" valign="top"><?php
        echo '<h1 class="p_space">' . $lang['statistic'] . '</h1>';

        stat_members(); echo ' ' . $lang['blank_members'];
        echo '<p><strong>' . $showonline . '</strong> ' . $lang['members_online'] . '</p>';

        include_once('../modules/show.inc.php');

        echo '<br><h1>' . $lang['disc_usage'] . '</h1>';
        include_once('handler/usage.php');
        echo '<p>' . $lang['avatars_plural'] . ': ' . avatars_usage("../uploads/avatars/") . ' Bytes</p>';
        echo '<p>' . $lang['photos'] . ': ' . photos_usage("../uploads/photos/") . ' Bytes</p>';

        echo '<br><h1>' . $lang['infos'] . '</h1>';
        include_once('../framework/functions/badwords.php');
        include_once('../framework/functions/smileys.php');
        include_once('../framework/filter.php');
        include_once('handler/request.php');
        include_once('handler/status.php');
        ?></td>
        <td width="33%" valign="top"><?php
        echo '<h1 class="p_space">' . $lang['server_script'] . '</h1>';

        $php_version = phpversion();
        echo '<p><strong>PHP Version:</strong> ' . $php_version . '</p>

        <p><strong>MySQL Version:</strong> ';
        print_r(mysqlVersion());
        echo '</p><br>

        <p><strong>' . SCRIPTNAME . '</strong></p>
        <p>' . VERSION . '</p>
        <p>' . FRAMEWORK . '</p>
        <p>' . ADMINPANEL . '</p><br>

        <p><strong>' . $lang['site_owner'] . '</strong></p>
        <p>' . $url . '</p>
        <p>' . $lang['copyright'] . ': ' . COPYRIGHT . '</p>';
        ?></td>
        </tr>
    </table>

    <?php

    echo '<div id="pr_line"></div>';

    echo '<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="33%" valign="top"><h1>' . $lang['important_settings'] . '</h1>
    <p class="p_space"><a href="admin.php" class="buttons">' . $lang['new_admin_create'] . '</a></p>
    <p class="p_space"><a href="backup.php" class="buttons">' . $lang['add_mysql'] . '</a></p>
    <p class="p_space"><a href="appointments.php" class="buttons">' . $lang['appointments'] . '</a></p>
    <p class="p_space"><a href="badwords.php" class="buttons">' . $lang['link_badwords'] . '</a></p>
    <p class="p_space"><a href="meta.php" class="buttons">' . $lang['meta_tags'] . '</a></p>
    <p class="p_space"><a href="maintenance.php" class="buttons">' . $lang['maintenance'] . '</a></p>
    </td>';

    echo '<td width="33%" valign="top"><h1>' . $lang['all_new_topics'] . '</h1>';
        include_once('handler/listall.php');
    echo '</td>';

    echo '<td width="33%" valign="top"><h1>' . $lang['admin_new_members'] . '</h1>';
        include_once('handler/newest.php');
    echo '</td>
    </tr>
    </table>';

    ?>

<?php require('structure/footer.inc.php'); ?>
Return current item: WH Social