ļ»æ
include_once ('inc/ez_sql_core.php');
include_once ('inc/ez_sql_mysql.php');
include ('inc/config.inc.php');
session_start();
include ('inc/check.inc.php');
flush();
check();
include ('inc/strip.inc.php');
$obj = new Stuff();
?>
$leht = addslashes($_GET['page']);
$query = $db->get_row('SELECT link, pagetitle FROM `pages` WHERE pagename = "'.$db->Escape($leht).'" LIMIT 1');
if($db->num_rows == 0)
{
$msg = 'Estonian Style Roleplay avaleht';
}
/* else
{
$msg = "Reallife ".$query->pagetitle;
}*/
?>
<br />
Cufon.replace('h1, h2, h3, h4, h5', { fontFamily: 'Andika Basic' });<br />
$(document).ready(function(){$(".field").focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("")}});$(".field").blur( function(){if($(this).val()==""){$(this).val($(this).attr("title"))}})});<br />
Tere tulemast kasutaja kontrollpaneeli if($_SESSION['loggedin'] == true) { echo ", ".$obj->Kasutajanimi($_SESSION['id']).""; } ?>.
Avaleht
Foorum
Abi
Kuidas alustada?
Tƶƶkohad
Uuendused
MƤngijad
if($_SESSION['loggedin'] == false)
{
echo 'Registreeri kasutaja';
}
?>
if ($_SESSION['loggedin'] == true && $_SESSION['AdminLevel'] >= 1)
{ ?>
} ?>
if($_SESSION['loggedin'] == true)
{
$q111 = $db->get_row('SELECT id, Name, Sugu, Banned FROM players WHERE LOWER(Name) = LOWER("'.$_SESSION['Name'].'")');
if($db->num_rows == 1)
{
if($q111->Sugu == 0)
{
echo '
Sinu karakteril pole sugu mƤƤratud. Vajuta siia, et karakteri sugu valida.
';
}
}
$q222 = $db->get_row('SELECT Username, accept FROM elulood WHERE LOWER(Username) = LOWER("'.$_SESSION['Name'].'")');
if($db->num_rows == 1)
{
if($q222->accept == 0)
{
echo '
Sinu rollimƤngu testi pole veel Ć¼le kontrollitud.
';
}
if($q222->accept == 2)
{
echo '
Sinu rollimƤngutest ei sobinud. Vajuta siia, et test uuesti esitada.
';
}
}
}
$page = addslashes($_GET['page']);
$query = $db->get_row('SELECT link FROM `pages` WHERE pagename = "'.$db->Escape($page).'" LIMIT 1');
if($db->num_rows == 0)
{
echo ' top.document.location="index.php?page=home"; ';
}
else
{
$page_link = $query->link;
if($_SESSION['loggedin'] == true && $q111->Banned == 1)
{
echo '
Sinu konto on blokeeritud!
';
}
// echo $page_link;
include ($page_link);
}
if (isset($_POST['Login']))
{
$nimi = $db->Escape($_POST['Nick']);
$parool = $db->Escape($_POST['Password']);
$_POST['Nick'] = strip_html_tags(addslashes($_POST['Nick']));
$_POST['Password'] = strip_html_tags(addslashes($_POST['Password']));
$userid = new UserControl();
if ($userid->check_user($_POST['Nick'],$_POST['Password']) != 0)
{
if(preg_match("/^[A-Z][a-z]+_[A-Z][a-z]{1,3}[A-Z]?[a-z]*+$/", $nimi))
{
$userid->login($userid->user->id);
}
else
{
echo '
Kasutajanimi ei vasta nƵuetele!
';
}
}
else
{
if($nimi != 'Kasutaja_Nimi')
{
if(preg_match("/^[A-Z][a-z]+_[A-Z][a-z]{1,3}[A-Z]?[a-z]*+$/", $nimi))
{
$test = $db->get_row('SELECT Name, active FROM backup WHERE Name = "'.$nimi.'"');
if($db->num_rows == 0)
{
echo '
Sellist kasutajat ei leitud!
';
}
else
{
if(md5($parool) != $test->Password)
{
echo '
Sisestasid vale parooli!
';
}
if($test->active == 0)
{
echo '
Sa pead kasutaja emailil oleva lingiga aktiveerima!
';
}
}
}
else
{
echo '
Kasutajanimi ei vasta nƵuetele!
';
}
}
}
}
if(isset($_POST['Logout']))
{
if($_SESSION['loggedin'] == true)
{
$_SESSION['loggedin'] = false;
session_destroy();
echo 'Sa oled edukalt vƤlja loginud, palun oota.. ';
echo ' top.document.location=self.document.location; ';
}
else
{
echo ' top.document.location=self.document.location; ';
}
}
?>
if ($_SESSION['loggedin'] == false)
{
?>
Registreeri kasutaja
Kuidas alustada?
Tƶƶkohad
Abi
}
else
{
echo '';
echo 'Sinu profiil';
echo 'Sinu rollimƤngu test';
echo 'Muuda sugu';
if ($_SESSION['DonateRank'] > 0)
{
echo 'Muuda vanust';
}
echo 'Muuda parool';
echo '';
}
?>
if ($_SESSION['loggedin'] == true && $_SESSION['AdminLevel'] > 1)
{
?>
if($_SESSION['AdminLevel'] >= 1337)
{
echo 'vLogid';
}
if($_SESSION['AdminLevel'] >= 1338)
{
echo 'vAdminid';
}
if($_SESSION['AdminLevel'] >= 5)
{
echo 'RollimƤngu testid';
echo 'Kontrollimata testid';
echo 'Otsi mƤngijat';
echo 'Autod';
}
if($_SESSION['AdminLevel'] >= 1340)
{
echo '1000+ level';
echo 'Lisa uudis';
echo 'Logi!';
echo 'Annetajad';
}
?>
}
?>
if ($_SESSION['loggedin'] == true)
{
?>
Logi vƤlja
}
if ($_SESSION['loggedin'] == false)
{
$page = addslashes($_GET['page']);
if($page == "home")
{
?>
Logi sisse
}
else
{
?>
}
}
?>
$query = $db->get_row("SELECT COUNT(id) AS `test` FROM `players` WHERE Linked = 1 AND Banned = 0 AND ConnectTime > 10 LIMIT 1");
$db->query("SET character_set_results = 'utf8'");
$nimi = $db->get_row("SELECT id, Name FROM `players` ORDER BY id DESC LIMIT 1");
?>
Aktiivseid kasutajaid kokku: echo $query->test; ?>
Viimati regas:
echo $obj->Kasutajanimi($nimi->id);
?>
Serveri ip: echo $config->game; ?>
Mumble: echo $config->voice; ?>
© Margus