Exemple #1
0
     }
     echo "<h2>" . lang('ADMIN_LOG_13') . "</h2>";
     echo "<form method=\"post\" action=\"" . $PHP_SELF . "\">";
     // Gameserver IP
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_14') . ":</label><br><input name=\"socket_host\" type=\"text\" size=\"35\" value=\"" . settinginfo(socket_host) . "\"></div>";
     // Channel Ports
     echo "<h2>" . lang('ADMIN_LOG_15') . "</h2>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_16') . ":</label><br><input name=\"port_ch1\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_ch1) . "\"></div>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_17') . ":</label><br><input name=\"port_ch2\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_ch2) . "\"></div>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_18') . ":</label><br><input name=\"port_ch3\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_ch3) . "\"></div>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_19') . ":</label><br><input name=\"port_ch4\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_ch4) . "\"></div>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_20') . ":</label><br><input name=\"port_ch99\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_ch99) . "\"></div>";
     // Other Ports
     echo "<h2>" . lang('ADMIN_LOG_21') . "</h2>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_22') . ":</label><br><input name=\"port_login\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_login) . "\"></div>";
     echo "<div id=\"box\"><label>" . lang('ADMIN_LOG_23') . ":</label><br><input name=\"port_db\" type=\"text\" size=\"35\" value=\"" . settinginfo(port_db) . "\"></div>";
     // Submit
     echo "<input name=\"setting_server_ok\" type=\"submit\" id=\"setting_server_ok\" value=\"" . lang('ADMIN_LOG_12') . "\"></form>";
 }
 // ################################
 // ### Admin Overview
 // ################################
 if (!$action) {
     echo "<h2>" . lang('ADMIN_LOG_24') . "</h2><div id=\"box\">" . lang('ADMIN_LOG_25') . ": <b>" . $conf_settings['cms_ver'] . "</b><br>";
     echo lang('ADMIN_LOG_26') . ": <b>" . date("d.m.Y - H:i", filemtime(basename($_SERVER["SCRIPT_NAME"])));
     echo lang('ADMIN_LOG_27');
     $mic_end = time() + (double) microtime();
     $mic_diff = round($mic_end - $mic_start, 6);
     echo $mic_diff . lang('ADMIN_LOG_28') . "<div id=\"box\">";
     //Usage
     getFreespace(".");
Exemple #2
0
         echo "<input type=\"submit\" value=\"" . lang('ADMIN_SEARCH') . "\">";
         echo "</form>";
     }
 }
 // ################################
 // ### Admin Overview
 // ################################
 if (!$action) {
     //get the path
     $path = "index.php?page=admin_ticket";
     // connect to db
     $mysqli = getConnected("account");
     $query = mysqli_query($mysqli, "SELECT * FROM cms_tickets ORDER BY status ASC, id DESC");
     $data_per_page = settinginfo(page_entries);
     // Number of entrys to be displayed per page
     $p = settinginfo(pagination_entries);
     // Number of links in the pagination
     // start with pagination
     $total = $query->num_rows;
     $pages = ceil($total / $data_per_page);
     if (empty($_GET['go'])) {
         $go = 1;
     } elseif ($_GET['go'] <= 0 || $_GET['go'] > $pages) {
         $go = 1;
     } else {
         $go = htmlentities($_GET['go']);
         if (!is_numeric($go)) {
             $go = 1;
         } else {
             $go = mysqli_real_escape_string($mysqli, $go);
         }
Exemple #3
0
         $autoloot = 365;
         //Tage autoloot,safebox
         // expiredate
         $expiredate = date("Y-m-d H:i:s", time() + 60 * 60 * 24 * 365);
         // insert to database
         $mysqli = getConnected("account");
         // SQL Injection Prevention
         $f_username_todb = mysqli_real_escape_string($mysqli, $f_username);
         $f_password_todb = mysqli_real_escape_string($mysqli, $f_password);
         $f_mail_todb = mysqli_real_escape_string($mysqli, $f_mail);
         $f_delkey_todb = mysqli_real_escape_string($mysqli, $f_delkey);
         $sql = mysqli_query($mysqli, "INSERT INTO account (login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert)\n            VALUES \n            ('" . $f_username_todb . "',PASSWORD('" . $f_password_todb . "'),'Your Name','" . $f_mail_todb . "','" . $f_delkey_todb . "','1','" . md5("Answer") . "','" . $sqlZeit . "','OK','" . settinginfo(reg_coins) . "','" . $expiredate . "','" . $expiredate . "','OK')");
         if ($sql) {
             // Write Coins log and get coins if its more than 0
             if (settinginfo(reg_coins) > 0) {
                 write_coinslog(settinginfo(reg_coins), "get", "Registration", "0", "{$f_username}");
                 // "coins","get/lose","reason/IS/AH","vnum","additional user ID. If not: 0" - If there is an item reason give the vnum.
             }
             echo "<div class=\"success\">" . lang('SIGNUP_OK') . "</div>";
         } else {
             echo "<div class=\"error\">" . lang('SIGNUP_ERR') . "</div>";
         }
         mysqli_close($mysqli);
         // Set hideform to 1
         $hideform = 1;
     } else {
         echo "<div class=\"error\">{$errormsg}</div>";
     }
 }
 if (!logged_in()) {
     // Captcha
Exemple #4
0
function autoLanguageDet()
{
    // if auto language detection is enabled
    if (settinginfo(autolang) == 1) {
        if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
            $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
            // check if languagefile is exist
            if (file_exists("language/" . $lang . ".php")) {
                return $lang;
            } else {
                // if language file doesn't exist, load default lang
                return settinginfo(language);
            }
        } else {
            // if HTTP_ACCEPT_LANGUAGE isnt set, load default lang
            return settinginfo(language);
        }
    } else {
        // if auto language detection is disabled, load default lang
        return settinginfo(language);
    }
}
Exemple #5
0
<?php

// include config
include_once "config.php";
// include config
include_once "cms_functions.php";
// check auto languagedetection and load language file
if (!logged_in()) {
    include_once "../scripts/language/" . autoLanguageDet() . ".php";
} else {
    include_once "../scripts/language/" . settinginfo(language) . ".php";
}
// ################################
// ### Search Functionality
// ################################
// Output HTML Formating
$html = '';
$html .= '<li class="result">';
$html .= '<a href="urlString">';
$html .= '<b>nameString</b> | ';
$html .= '(functionString)';
$html .= '</a>';
$html .= '</li>';
// Get Search
$mysqli = getConnected("account");
$search_string = preg_replace("/[^A-Za-z0-9]/", " ", $_POST['query']);
$search_string = mysqli_real_escape_string($mysqli, $search_string);
// Check Length More Than 2 Character
if (strlen($search_string) >= 2 && $search_string !== ' ') {
    // Build Query
    $query = 'SELECT login, id FROM account WHERE login LIKE "%' . $search_string . '%" OR id LIKE "%' . $search_string . '%"';
Exemple #6
0
        <div id="admin_box">
            <ul class="column_result"> 
                <li class="result_column"><span><b>Admin Center</b></span></li>
                <li><a href="index.php?page=admin_setting"><span>General Settings</span></a></li>
                <li><a href="index.php?page=admin_user"><span>Manage Users</span></a></li>
                <li><a href="index.php?page=admin_ticket"><span>Manage Tickets</span></a></li>  
                <li><a href="index.php?page=admin_ticket"><span>Manage Poll</span></a></li>  
                <li><a href="index.php?page=admin_stats"><span>Statistics</span></a></li>  
                <li><a href="index.php?page=admin_logs"><span>Logs</span></a></li>  
            </ul>   
        </div>
        <?php 
    }
}
// Counter
if (settinginfo(addon_stats) == 1) {
    ?>
<div id="box">
    <ul class="column_result2">
        <li class="result_column"><span><b>Statistics</b></span></li>
        <?php 
    if ($showuser == 1) {
        // Guests today
        $mysqli = getConnected("account");
        $ref = mysqli_query($mysqli, "SELECT sum(user) FROM cms_statistik_day");
        $user = mysqli_result($ref, 0, 0);
        echo "<li><span>Guests overall: {$user}</span></li>";
        mysqli_close($mysqli);
    }
    if ($showheute == 1) {
        // today
Exemple #7
0
        include $includePath;
    } else {
        include $includeDefault;
    }
} else {
    include $includeDefault;
}
?>
            </div>
            <div id="box">
                <center>
                    <?php 
echo date("Y");
?>
 &copy; by <?php 
echo "<a href=\"" . settinginfo(url) . "\">" . settinginfo(titel_page) . "</a> - Recoded with &hearts; by <a href='http://www.elitepvpers.com/forum/members/4853633--po-u-.html'><b>.PolluX</b> (master branch v." . $conf_settings['cms_ver'] . ")</a>. Base System build by <a href='https://github.com/iseries/MT2cms' target='_blank'>Ayaka</a>.<br><i>A few fragments remain from an earlier release by <b>hen!</b> (MT2GS CMS 1.3).</i>";
?>
                </center>
            </div> 
        </div>       
        <div id="right">                
            <?php 
// include navigation
include "navigation.php";
?>
 
            <div id="box">
                test
            </div>
        </div>
    </div>