File size: 558B
<?php
if(!file_exists('includes/lang.ini'))
{
exit('Language file not exists');
}
else
{
$data = parse_ini_file('includes/lang.ini', FALSE);
foreach($data as $word => $translate)
{
define($word, $translate);
}
}
// считываем данные об авторизации
require_once('includes/db.php');
$users = mysql_query('SELECT login, password FROM admins WHERE id = 1');
$user = mysql_fetch_array($users, MYSQL_ASSOC);
if($user['login'] == '')
{
// на случай если упадет БД
header('Location: login.php');
exit;
}
?>