Skip to content

Commit

Permalink
Responsive resign, some TYPOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychical committed Oct 26, 2016
1 parent 9f0091b commit 6531a24
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 24 deletions.
51 changes: 30 additions & 21 deletions index.php
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/styles.css" media="screen" />
Expand All @@ -17,40 +18,41 @@
include 'lang/'.$main_lang.'.php';
}

$s = addslashes($_COOKIE["lang"]) ? addslashes($_COOKIE["lang"]) : $main_lang;

$f_page = 1;
$p = $_GET['p'];
?>
<title><?php echo $web_title; ?></title>
</head>
<body>
<div class="main">
<div class="left">
<body style="margin-top: 15px;">
<div class="row">
<div class="col-md-0 col-lg-3"></div>
<div class="col-md-4 col-lg-2">
<div class="panel panel-default">
<div class="panel-heading">
<b>Navigacija</b>
</div>
<div class="panel-body">
<?php if(addslashes($_COOKIE["unban_loged"])) : ?>
<a href="admin/admin.php" style="color: red;">Administravimas</a>
<hr />
<?php endif;
$s = addslashes($_COOKIE["lang"]) ? addslashes($_COOKIE["lang"]) : $main_lang;
$menu_select = $mysqli->query("SELECT * FROM `unban_links` WHERE `lang` = '".$s."' ORDER BY `sort_place` ASC");
while($msl = $menu_select->fetch_object()) {
if($msl->show) {
echo $i.'. <a href="'.$msl->url.'">'.$msl->name.'</a><br />';
$i++;
}
}
?>
<?php $menu_select = $mysqli->query("SELECT * FROM `unban_links` WHERE (`lang` = '".$s."' OR `lang` = '*') AND `show` = '1' ORDER BY `sort_place` ASC"); ?>
<ul class="nav nav-pills nav-stacked" style="text-transform: uppercase;">
<?php if(addslashes($_COOKIE["unban_loged"])): ?>
<li role="presentation" class="active"><a href="admin/admin.php">Administravimas</a></li>
<hr />
<?php endif; ?>

<?php while($msl = $menu_select->fetch_object()): ?>
<li role="presentation"><a href="<?php echo $msl->url; ?>"><?php echo $msl->name; ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
<div class="right">
<div class="col-md-8 col-lg-4">
<?php if($fl->num_rows > 1) : ?>
<div class="panel panel-default countrys">
<?php echo $unban['18']; while($row = $fl->fetch_object()): ?>
<a href='./index.php' onclick='setCookie("lang", "<?php echo $row->prefix; ?>")'>
<a href="#" onclick='window.location.reload(true); setCookie("lang", "<?php echo $row->prefix; ?>")'>
<img src='img/flags/<?php echo $row->prefix; ?>.gif' border='0'>
</a>
<?php endwhile; ?>
Expand All @@ -67,11 +69,18 @@
?>
</div>
</div>
<div style="clear: both;"></div>
<div class="panel panel-default footers text-center">
<small>2011-<?php echo date("Y"); ?> &copy; <a href="http://www.amxmodx.lt/viewtopic.php?f=34&t=1035" target="_blank">Mini TVS</a></small>
<div class="col-md-0 col-lg-3"></div>
</div>
<div class="row">
<div class="col-md-0 col-lg-3"></div>
<div class="col-md-12 col-lg-6">
<div class="panel panel-default footers text-center">
<small>2011 - <?php echo date("Y"); ?> &copy; <a href="http://www.amxmodx.lt/viewtopic.php?f=34&t=1035" target="_blank">Mini TVS</a></small>
</div>
</div>
<div class="col-md-0 col-lg-3"></div>
</div>

</html>
<?php
$mysqli->close();
Expand Down
2 changes: 1 addition & 1 deletion lang/en.php
@@ -1,5 +1,5 @@
<?php
$unban['18'] = "Choose Language:";
$unban['18'] = "Country:";

//First menu
$unban['1'] = "All Bans:";
Expand Down
2 changes: 1 addition & 1 deletion lang/lt.php
@@ -1,5 +1,5 @@
<?php
$unban['18'] = "Pasirinkite &#353;al&#303;:";
$unban['18'] = "&#353;al&#303;:";

//Pirmasis menu
$unban['1'] = "Viso Ban&#371;:";
Expand Down
2 changes: 1 addition & 1 deletion lang/ru.php
@@ -1,5 +1,5 @@
<?php
$unban['18'] = "Выберите страну;:";
$unban['18'] = "страна:";

//First menu
$unban['1'] = "все Bans:";
Expand Down

0 comments on commit 6531a24

Please sign in to comment.