Example #1
0
    include $SSIfile;
}
//////////////////////////////////////////////////////////////
include_once $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "bin/CTipOfTheDay.php";
require $Root_Path . "bin/CFrontNews.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "includes/language.php";
$user = trim($_POST['txtName']);
$pass = trim($_POST['txtPassword']);
$languagefile = trim($_POST['slctlanguage']);
$chkAutoLogin = trim($_POST['chkAutoLogin']);
//////////////////////////////////////////////////////////////
//Instantiate the Classes
$oR3DCQuery = new CR3DCQuery($config);
$oFrontNews = new CFrontNews($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
//LOGIN methods
//manage cookie data
if ($_COOKIE['TestCookie'] != "") {
    list($user1, $pass1, $languagefile1) = preg_split("/\\|/", $_COOKIE['TestCookie'], 3);
    $user = $user1;
    $pass = base64_decode($pass1);
    $languagefile = $languagefile1;
    $chkAutoLogin = "******";
}
if ($user != "" && $pass != "") {
    $sid = $oR3DCQuery->Login($user, $pass);
    $id = $oR3DCQuery->GetIDByUserID($config, $user);
Example #2
0
     $oServMsg->GetMessagesForMobile();
     echo "</RESPONSE>\n";
     $oServMsg->Close();
     unset($oServMsg);
     break;
     ////////////////////////////////////////////////////////////////////////////////////////////
     // news
     // Params: action
     ////////////////////////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////////////////////////
 // news
 // Params: action
 ////////////////////////////////////////////////////////////////////////////////////////////
 case "news":
     //Instantiate the CFrontNews Class
     $oFrontNews = new CFrontNews($config);
     echo "<RESPONSE>\n";
     $oFrontNews->GetFrontNewsForMobile();
     echo "</RESPONSE>\n";
     $oFrontNews->Close();
     unset($oFrontNews);
     break;
     ////////////////////////////////////////////////////////////////////////////////////////////
     // playerstats
     // Params: action, sid, playerid
     ////////////////////////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////////////////////////
 // playerstats
 // Params: action, sid, playerid
 ////////////////////////////////////////////////////////////////////////////////////////////
 case "playerstats":
if (file_exists($SSIfile)) {
    include $SSIfile;
}
//////////////////////////////////////////////////////////////
require $Root_Path . "bin/CR3DCQuery.php";
require $Root_Path . "bin/CAdmin.php";
require $Root_Path . "bin/config.php";
require $Root_Path . "includes/siteconfig.php";
require $Root_Path . "bin/CFrontNews.php";
require $Root_Path . "bin/CTipOfTheDay.php";
require $Root_Path . "includes/language.php";
$login = "******";
//////////////////////////////////////////////////////////////
//Instantiate the Classes
$oR3DCQuery = new CR3DCQuery($config);
$oFrontNews = new CFrontNews($config);
$bCronEnabled = $oR3DCQuery->IsCronManagementEnabled();
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////
//Login Processing
////////////////////////////////////////////////
//Check if admin is logged in already
if (!isset($_SESSION['LOGIN'])) {
    $login = "******";
    header('Location: ./index.php');
} else {
    if ($_SESSION['LOGIN'] != true) {
        if (isset($_SESSION['UNAME'])) {
            unset($_SESSION['UNAME']);
        }
        if (isset($_SESSION['LOGIN'])) {