Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: index.php

Parašė ManTinux· 2011 Sau. 26 17:01:48
#1

ka reikia nutrinti kad registracija butu nemokama ?

<?php
include("config/namai.php");
include("config/db.php");
?>
<?php
////// Puslapio Nustatymai
$getinfoo=mysql_query("SELECT * FROM nustatymai");
$nust=mysql_fetch_array($getinfoo);

/// PAKVIESTI VARTOTOJAI
$v= $_GET['v'];

/// Slaptas kodas
$sk= $_GET['sk'];

/// USERIO INFO IS MYSQL
$get=mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'");
$informacija=mysql_fetch_array($get);

/// BALSAVIMO
$getvote=mysql_query("SELECT * FROM balsavimas ORDER BY ID DESC LIMIT 1");
$vote=mysql_fetch_array($getvote);

/// TOPIKO
$getTopic=mysql_query("SELECT * FROM topic ORDER BY ID DESC LIMIT 1");
$topic=mysql_fetch_array($getTopic);

echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<title>$title</title>
<link rel=\"shortcut icon\" href=\"img/shortcut.png\"/>";
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==0)
{
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/Default.css\"/>";
}
else
{
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/$informacija[stilius].css\"/>";
}
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
<meta name=\"keywords\" content=\"mp3, leituviska, download, siustis, hardstyle, electro, house, free, nemokama muzika, wap, rusiska, bendravimas, nuotraukos, pazintys, komentarai\"/>
<meta name=\"description\" content=\"MP3.OUR.LT - Visiskai nemokama muzika, pokalbiai, naujos pazintys, nuotraukos ir daug DAUGIAU! ;)\" />
<meta name=\"verify-webtopay\" content=\"db03c3ab92259bb5b6c52dcbe43c7d18\"/>
</head>
<body class=\"body\">";

$naujos_PM=mysql_num_rows(mysql_query("SELECT * FROM pastas WHERE kam='$n' AND naujiskumas='NEW'"));
$viso_PM=mysql_num_rows(mysql_query("SELECT * FROM pastas WHERE kam='$n'"));

if (!$n=="")
{
$laikas=date("Y.m.d H:i:s");
mysql_query("UPDATE user SET paskutinis_log = '$laikas' WHERE nick = '$n'");
$timulis=time();
mysql_query("UPDATE user SET paskutinis_log_2 = '$timulis' WHERE nick = '$n'");
}

if($pg =="")
{
$kur="Pagrindinis";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "&#171; <b><a href=\"index.php?$infooo&amp;pg=reklama_virsuje\">Tavo URL &#269;ia</a></b> &#187;<br/>";
echo "<a href=\"http://wlap.eu\">WAP Paslaugos</a><br/>";
echo "$linija";
echo "<img src=\"img/logo.gif\" alt=\"Plogo\"/><br/>";
echo "$linija";
if(!$topic[tekstas] =="")
{
echo "$topic[tekstas]<br/>";
echo "<b>$topic[kas]</b><br/>";
echo "$linija";
}
if ($nust[balsavimas]=="ON")
{
echo "<b>$vote[klausimas]</b><br/>";
echo "<b><a href=\"index.php?$infooo&amp;pg=balsavimas\">Balsavimas</a></b><br/>";
echo "$linija";
}
$gett=mysql_query("SELECT * FROM naujienos ORDER BY ID DESC");
$nnn=mysql_fetch_array($gett);
$timee=time();
if ($nnn[galiojimas_iki] > $timee)
{
echo "<b>Naujienos:</b><br/>";
echo "<img src=\"img/icon/tick.png\" alt=\"News\"/> <a href=\"index.php?$infooo&amp;pg=info_naujienos_placiau&amp;new=$nnn[ID]\">20$nnn[data]</a><br/>";
echo "$linija";
}
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "<b>Atsitiktin&#279;:</b><br/>";
$getttt=mysql_query("SELECT * FROM muzika order by rand() limit 1");
$muzika2=mysql_fetch_array($getttt);
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=siustis&amp;f=$muzika2[ID]&amp;albumas=$muzika[albumas]\">$muzika2[pavadinimas]</a><br/>";
echo "<b>Paskutin&#279; si&#371;sta:</b><br/>";
$gettttt=mysql_query("SELECT * FROM muzika_paskutine");
$muzika3=mysql_fetch_array($gettttt);
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=siustis&amp;f=$muzika3[dainos_ID]&amp;albumas=$muzika3[albumas]\">$muzika3[pavadinimas]</a><br/>";
echo "<b>Naujausios:</b><br/>";
$nuskaitoma = mysql_query("SELECT * FROM muzika");
$viso = mysql_num_rows($nuskaitoma);
$nnn = $_GET['nnn'];
if($nnn == "") {
$nnn = 0;
}
$puslapiu_skaicius = 5;
$nuskaitymas = mysql_query("SELECT * FROM muzika ORDER BY id DESC LIMIT $nnn,$puslapiu_skaicius");
if($viso == false) {
echo "Dain&#371; n&#279;ra!<br/>";
}
echo "<div class=\"left\">";
while ($s=mysql_fetch_array($nuskaitymas))
{
/// $s[pavadinimas]=str_replace("&", "&amp;", $s[pavadinimas]);
if($s[rekomenduojam] =="TAIP")
{
echo "<a style=\"color:#ff0000;\">&#187;</a> <a href=\"muzika.php?$infooo&amp;pg=siustis&amp;f=$s[ID]\">$s[pavadinimas]</a><br/>";
}
else
{
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=siustis&amp;f=$s[ID]\">$s[pavadinimas]</a><br/>";
}
}
echo "</div>";
echo "</div>";
echo "$linija2";
echo "<div style=\"padding-left: 4px;\">";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/music2.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"index.php?$infooo&amp;pg=muzika\">Muzika</a></b><br/>";
$nuskaitoma = mysql_query("SELECT * FROM muzika");
$viso = mysql_num_rows($nuskaitoma);
echo "<div class=\"bg6\">";
echo "<i>Viso dain&#371;: $viso</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/chat.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"pokalbiai.php?$infooo\">Pokalbiai</a></b><br/>";
$chaton=strpos($chaton,' ');
$chaton=mysql_num_rows(mysql_query("SELECT * FROM online WHERE kur='Pokalbiai &#187; $kanalai[kanalas]'"));
echo "<div class=\"bg6\">";
echo "<i>Pokalbi&#371; zona</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/plugin_edit.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"diskusijos.php?$infooo\">Diskusijos</a></b><br/>";
echo "<div class=\"bg6\">";
echo "<i>Diskusij&#371; zona</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/photo_gallery.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"galerija.php?$infooo\">Foto galerija</a></b><br/>";
echo "<div class=\"bg6\">";
echo "<i>Nari&#371; nuotraukos</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/fun.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"index.php?$infooo&amp;pg=pramogos\">Pramogos</a></b><br/>";
echo "<div class=\"bg6\">";
echo "<i>Laisvalaikio praleidimui</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/info.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"index.php?$infooo&amp;pg=informacija\">Informacija</a></b><br/>";
echo "<div class=\"bg6\">";
echo "<i>Daugiau apie mus</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==1)
{
echo "<table>";
echo "<tr>";
echo "<td>";
echo "<img src=\"img/icon/menu.png\" alt=\".\"/>";
echo "</td>";
echo "<td>";
echo "<b><a href=\"mym.php?$infooo\">Mano Meniu</a></b><br/>";
echo "<div class=\"bg6\">";
echo "<i>$n meniu</i><br/>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</table>";
}
echo "</div>";
echo "</div>";
echo "$linija";
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==0)
{
echo "<b><a href=\"index.php?pg=log\">Prisijungti</a></b><br/>";
if($v =="")
{
$reg="index.php?pg=reg";
}
else
{
$reg="index.php?pg=reg&amp;v=$v";
}
echo "<b><a href=\"$reg\">Registracija</a></b><br/>";
echo "$linija";
}
$result = mysql_query("SELECT DISTINCT kas, ip, narsykle, kur, portas FROM online");
$kiek = mysql_num_rows($result);
echo "Online: (<b><a href=\"index.php?pg=online&amp;$infooo\">$kiek</a></b>)<br/>";
echo "$linija";
echo "<b><a href=\"index.php?$infooo&amp;pg=reklama\">Reklama</a></b><br/>";
$lentele = mysql_query("SELECT * FROM reklama ORDER BY uid DESC LIMIT 3");
while ($url = mysql_fetch_array($lentele))
{
$name = str_replace('http://', '', $url[url]);
echo "<a href=\"$url[url]\">$name</a><br/>";
}
echo "$linija";
echo "<a href=\"http://countreg.com/count.php?1;inf=mp3ourlt\"><img src=\"http://countreg.com/?mp3ourlt\" alt=\"countreg.com\"/></a><br/>";
echo "<a href=\"http://wtop.us/i.php?id=mp3our\"><img src=\"http://wtop.us/count.php?id=mp3our\" alt=\"WAP TOP\"/></a><br/>";
echo "$linija";
$tikrinimass=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimass==1)
{
echo "<b>X</b> <a href=\"mym.php?$infooo&amp;pg=atsijungti\">Atsijungti</a><br/>";
echo "$linija";
}
echo "$teises";
echo "</div>";
}

if($pg =="vagis")
{
$kur="Pagrindinis / Vagis";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Raimundas Tu&#269;ka</b><br/>";
echo "LT14 1400 0450 4080 5741<br/>";
echo "$linija";
echo "<b>VAGIS!</b><br/>";
echo "Kai ji surasiu (o surasiu 100%) subide isspardysiu kaip niekas dar nesparde, defektas blt!<br/>";
echo "Tegu apie amara google suzino ir tada visi zinos.<br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="muzika")
{
$kur="Pagrindinis / Muzika";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Muzika</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "&#187; <a href=\"muzika.php?$infooo\">Muzika</a><br/>";
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=albumai\">Albumai</a><br/>";
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=set/mix\">Setai/Mixai</a><br/>";
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=prikolai\">Prikolai</a><br/>";
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=prasyti_dainos\">Pra&#353;ymai</a><br/>";
echo "&#187; <a href=\"muzika.php?$infooo&amp;pg=paieska\">Paie&#353;ka</a><br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="pramogos")
{
$kur="Pagrindinis / Pramogos";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Pramogos</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "&#187; <a href=\"mp3tube.php?$infooo\">YouTube</a><br/>";
echo "&#187; <a href=\"laikrastis.php?$infooo\">Spauda</a><br/>";
echo "&#187; <a href=\"naudinga.php?$infooo&amp;pg=orai\">Orai</a><br/>";
echo "&#187; <a href=\"naudinga.php?$infooo&amp;pg=horoskopai\">Horoskopai</a><br/>";
echo "&#187; <a href=\"naudinga.php?$infooo&amp;pg=skaiciavimai\">Skai&#269;iavimai</a><br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="informacija")
{
$kur="Pagrindinis / Informacija";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Informacija</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
$gett=mysql_query("SELECT * FROM naujienos ORDER BY ID DESC");
$nnn=mysql_fetch_array($gett);
echo "&#187; <a href=\"knyga.php?$infooo\">Komentarai</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_naujienos\">Naujienos</a> ($nnn[data])<br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=atsakomybe&amp;reg=ne\">I&#353;si&#382;ad&#279;jimas</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=partneriai\">Partneriai</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_vartotojai\">Vartotojai</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_ban\">Blokuoti vartotojai</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_sypsniukai\">&#352;ypsniukai</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_parama\">Parama</a><br/>";
echo "&#187; <a href=\"index.php?$infooo&amp;pg=info_kontaktai\">Kontaktai</a><br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="balsavimas")
{
$kur="Pagrindinis / Balsavimas";
require('online.php');
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==0)
{
include("config/check.php");
}
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Klausimas</b><br/>";
echo "$vote[klausimas]<br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
$tikrinimasss=mysql_num_rows(mysql_query("SELECT * FROM balsavimas_balsavo WHERE klausimo_id='$vote[ID]' AND kas='$n'"));
if (!$tikrinimasss==1)
{
echo "<form action=\"index.php?$infooo&amp;pg=balsavimas_2&amp;kls=$vote[ID]\" method=\"post\">";
echo "<div class=\"noname\">";
echo "<select name=\"atsakymas\">";
$getvotats=mysql_query("SELECT * FROM balsavimas_atsakymai where klausimo_id='$vote[ID]'");
while ($votinimas=mysql_fetch_array($getvotats))
{
echo "<option value=\"$votinimas[ID]\" >$votinimas[atsakymas]</option>";
}
echo "</select><br/>";
echo "<div class=\"new\"></div>";
echo "<input class=\"button\" type=\"submit\" value=\"Balsuoti &gt;\"/>";
echo "</div>";
echo "</form>";
}
else
{
$i=1;
$ge2=mysql_query("SELECT *, SUM(kiek_atsake) FROM balsavimas_atsakymai WHERE klausimo_id='$vote[ID]'");
$g2=mysql_fetch_array($ge2);
$visi=$g2['SUM(kiek_atsake)'];
$ge=mysql_query("SELECT * FROM balsavimas_atsakymai WHERE klausimo_id='$vote[ID]' ORDER BY ID");
while($g=mysql_fetch_array($ge))
{
echo "$g[atsakymas] ($g[kiek_atsake])<br/>";
$kiekk=$g[kiek_atsake]/$visi*100;
$procent=substr($kiekk, 0, 4);
echo "<img src=\"balsavimas/chart.php?procent=$procent&amp;c=$i\" alt=\".......\"/><br/>";
$i++;
}
}
echo "</div>";
echo "</div>";
echo "$linija";
$tikrinimasss=mysql_num_rows(mysql_query("SELECT * FROM balsavimas_balsavo WHERE klausimo_id='$vote[ID]' AND kas='$n'"));
if ($tikrinimasss==1)
{
$how_much = mysql_num_rows(mysql_query("SELECT * FROM knyga_balsavimas where balsavimoID='$g2[ID]'"));
echo "<a href=\"knyga_balsavimas.php?$infooo&amp;new=$g2[ID]\">Komentarai</a> ($how_much)<br/>";
echo "$linija";
}
$tikrinimasss=mysql_num_rows(mysql_query("SELECT * FROM balsavimas_balsavo WHERE klausimo_id='$vote[ID]' AND kas='$n'"));
if ($tikrinimasss==1)
{
echo "Balsavo: (<b>$visi</b>)<br/>";
echo "$linija";
}
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="balsavimas_2")
{
$kur="Pagrindinis / Balsavimas";
require('online.php');
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==0)
{
include("config/check.php");
}
$atsakymas=$_POST['atsakymas'];
$kls= $_GET['kls'];
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Klausimas</b><br/>";
echo "$vote[klausimas]<br/>";
echo "$linija";

$tikrinimasss=mysql_num_rows(mysql_query("SELECT * FROM balsavimas_balsavo WHERE klausimo_id='$kls' AND kas='$n'"));
if (!$tikrinimasss==1)
{
echo "<b>A&#269;i&#363; u&#382; bals&#261;!</b><br/>";
$kiekkkkkkkkkkk=mysql_query("SELECT kiek_atsake FROM balsavimas_atsakymai WHERE ID='$atsakymas'");
$rowwwww=mysql_fetch_array($kiekkkkkkkkkkk);
$prideti=$rowwwww[kiek_atsake]+1;
mysql_query("UPDATE balsavimas_atsakymai SET kiek_atsake = '$prideti' WHERE ID='$atsakymas'");
mysql_query("INSERT INTO balsavimas_balsavo (klausimo_id, kas) VALUES ('$kls', '$n')");
echo "$linija";
}

echo "<b>Rezultatai</b><br/>";
$i=1;

$ge2=mysql_query("SELECT *, SUM(kiek_atsake) FROM balsavimas_atsakymai WHERE klausimo_id='$kls'");
$g2=mysql_fetch_array($ge2);

$visi=$g2['SUM(kiek_atsake)'];

$ge=mysql_query("SELECT * FROM balsavimas_atsakymai WHERE klausimo_id='$kls' ORDER BY ID");
while($g=mysql_fetch_array($ge))
{
echo "$g[atsakymas] ($g[kiek_atsake])<br/>";
$kiekk=$g[kiek_atsake]/$visi*100;
$procent=substr($kiekk, 0, 4);
echo "<img src=\"balsavimas/chart.php?procent=$procent&amp;c=$i\" alt=\".......\"/><br/>";
$i++;
}


echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=balsavimas\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="partneriai")
{
$kur="Pagrindinis / Partneriai";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Partneriai</b><br/>";
echo "$linija";
$pp=$_GET['pp'];
$puslapyje=10;
if (empty($pp))
{
$pp=1;
}
$start=($puslapyje*$pp)-$puslapyje;
$getpart=mysql_query("SELECT * FROM partneriai ORDER BY ID DESC LIMIT $start, $puslapyje");
$kiek_ju = mysql_num_rows(mysql_query("SELECT * FROM partneriai"));
$visoPuslapiu=ceil($kiek_ju / $puslapyje);
if ($kiek_ju<=0)
{
echo "Partneri&#371; n&#279;ra!<br/>";
}
while ($part=mysql_fetch_array($getpart))
{
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
$encode = base64_encode($part[ID]);
echo "<img src=\"img/icon/star.png\" alt=\"&#8226;\"/> <a href=\"part_logout.php?id=$encode\">$part[titulinis]</a> - $part[aprasymas]<br/>";
echo "</div>";
echo "</div>";
}

echo "$linija";
echo "Norint tapti partneriais pra&#353;ome ra&#353;yti lai&#353;k&#261; &#303; <b>lefteyelt@gmail.com</b> arba susisiekti kitais kontaktais <a href=\"index.php?$infooo&amp;pg=info_kontaktai\">&#269;ia</a>.<br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="reklama")
{
$kur="Pagrindinis / Reklama";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Reklama</b><br/>";
echo "$linija";
echo "Jei norite u&#382;d&#279;ti savo puslapio reklam&#261; m&#363;s&#371; svetain&#279;je tiesiog &#303; sms ra&#353;ymo laukel&#303; &#303;veskite:<br/>";
echo "<b>MP3R http://j&#363;s&#371;.psl.lt</b>...gt;";
echo "Ir si&#371;skite numeriu - <b>1679</b><br/>";
echo "SMS kaina tik <b>0.50</b> LTL<br/>";
echo "<b>P.S.</b> Rodomos 3 reklamos i&#353; eil&#279;s!<br/>";
echo "$linija";
echo "Kokyb&#279;s &#382;enklas<br/>";
echo "<img src=\"https://www.mokejimai.lt/payment/m/m_images/wfiles/i75gk157.gif\" alt=\"Kokyb&#279;s &#382;enklas\"/><br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="reklama_virsuje")
{
$kur="Pagrindinis / Reklama vir&#353;uje";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Reklama vir&#353;uje</b><br/>";
echo "$linija";
echo "Kainos:<br/>";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 2px;\">";
echo "&#187; Paprasta nuoroda - 5 Lt/m&#279;n.<br/>";
echo "&#187; Pary&#353;kinta nuoroda - 7 Lt/m&#279;n.<br/>";
echo "&#187; 120x20 baneris - 10 Lt/m&#279;n.<br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 2px;\">";
echo "&#187; Minimalus u&#382;sakymas 1 m&#279;nuo.<br/>";
echo "&#187; Perkant reklam&#261; ilgesniam laikui nei 1 m&#279;nuo taikoma nuolaida.<br/>";
echo "&#187; Atsiskaitymas banku, SMS arba papildymais.<br/>";
echo "&#187; Susidom&#279;jai? Kontaktai <a href=\"index.php?$infooo&amp;pg=info_kontaktai\">&#269;ia</a>.<br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}


if($pg =="online")
{
$kur="Online";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Online</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 2px;\">";

$result = mysql_query("SELECT DISTINCT kas, ip, kur, narsykle FROM online ORDER by kas ='Sve&#269;ias'");
$kiek = mysql_num_rows($result);

while($row=mysql_fetch_array($result))
{
if ($row[kas]=="Sve&#269;ias")
{
$pos=strpos($row[narsykle],'/');
if($pos!=0)
{
$row[narsykle]=substr($row[narsykle],0,$pos);
}
echo "<img src=\"img/icon/not_user.png\" alt=\"&#8226;\"/> Sve&#269;ias ($row[narsykle]) - [$row[kur]]<br/>";
}
else
{
$get=mysql_query("SELECT * FROM user WHERE nick='$row[kas]'");
$infoUser=mysql_fetch_array($get);
if ($infoUser[lytis]=="v")
{
echo "<img src=\"img/icon/boy.png\" alt=\"&#8226;\"/> <b><a href=\"about.php?$infooo&amp;user=$row[kas]\">$row[kas]</a></b> - [$row[kur]]<br/>";
}
else
{
echo "<img src=\"img/icon/girl.png\" alt=\"&#8226;\"/> <b><a href=\"about.php?$infooo&amp;user=$row[kas]\">$row[kas]</a></b> - [$row[kur]]<br/>";
}
}
}

echo "</div>";
echo "</div>";

echo "$linija";
echo "Online: (<b>$kiek</b>)<br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}


if($pg =="log")
{
$kur="Prisijungti";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Prisijungimas</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "<form action=\"index.php?pg=log_2\" method=\"post\">";
echo "<div class=\"noname\">";
echo "<b>Vartotojas:</b><br/>";
echo "<input type=\"text\" name=\"n\" maxlength=\"15\"/><br/>";
echo "<b>Slapta&#382;odis:</b><br/>";
echo "<input type=\"password\" name=\"p\" maxlength=\"15\"/><br/>";
echo "<div class=\"new\"></div>";
echo "<input class=\"button\" type=\"submit\" value=\"Prisijungti &gt;\"/>";
echo "</div>";
echo "</form>";
echo "<a href=\"index.php?pg=log_lost_password\">Pamir&#353;ai slapta&#382;od&#303;?</a><br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php\">^ Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="log_2")
{
$kur="Prisijungti";
require('online.php');
$n= $_POST['n'];
$p= $_POST['p'];
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Prisijungimas</b><br/>";
echo "$linija";
$tikrinimas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$n' AND pass='$p'"));
if ($tikrinimas==0)
{
echo "Duomenys klaidingi!<br/>";
$error="warning";
}

if (preg_match("/[^A-z0-9_\-]/", $n)
|| preg_match("/[^A-z0-9_\-]/", $p))
{
echo "Naudojami neleistini simboliai!<br/>";
$error="warning";
}

if ($error=="")
{
$encode = base64_encode($n."|".$p);
$decode = base64_decode($i);
$usrinf = explode('|',$decode);
$n = $usrinf[0];
$p = $usrinf[1];
echo "Prisijung&#279;te s&#279;kmingai!<br/>";
echo "$linija";
echo "<a href=\"mym.php?i=$encode\">Toliau --&gt;</a><br/>";
mysql_query("DELETE FROM online WHERE kur='Prisijungti'");
}

echo "$linija";
if ($error=="warning")
{
echo "<a href=\"index.php?pg=log&amp;$ss\">^ Atgal</a><br/>";
}
echo "<a href=\"index.php?$ss\">&lt; Pagrindinis</a><br/>";
echo "$linija";

echo "$teises";

echo "</div>";
}

if($pg =="log_lost_password")
{
$kur="Prisijungti / Slapta&#382;od&#382;io priminimas";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Slapta&#382;od&#382;io priminimas</b><br/>";
echo "$linija";
echo "<form action=\"index.php?pg=log_lost_password_3\" method=\"post\">";
echo "<div class=\"noname\">";
echo "<b>Vartotojas</b><br/>";
echo "<input type=\"text\" name=\"nick\" maxlength=\"15\"/><br/>";
echo "<b>Tavo el. pa&#353;tas:</b><br/>";
echo "<input type=\"text\" name=\"pastas\" maxlength=\"100\"/><br/>";
echo "<div class=\"new\"></div>";
echo "<input class=\"button\" type=\"submit\" value=\"Si&#371;sti &gt;\"/>";
echo "</div>";
echo "</form>";
echo "$linija";
echo "<a href=\"index.php?pg=log\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$ss\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="log_lost_password_3")
{
$nick= $_POST['nick'];
$pastas= $_POST['pastas'];
$getz=mysql_query("SELECT * FROM user WHERE nick='$nick'");
$lost=mysql_fetch_array($getz);
$kur="Prisijungti / Slapta&#382;od&#382;io priminimas";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Slapta&#382;od&#382;io priminimas</b><br/>";
echo "$linija";
$time = time();
$ji=fopen('txt/pass_priminimas_laikas.txt', "r");
$le = fread($ji, 4096);
$clock = $time - $le;
$clock = str_replace("-","",$clock);
if($le > $time)
{
echo "Naujas priminimas bus galimas u&#382; $clock sec.<br/>";
}
else
{
if($nick=="" || $pastas=="")
{
echo "B&#363;tina u&#382;pildyti visus laukelius!<br/>";
$error="warning";
}
if($lost[pastas]!=="$pastas")
{
echo "Suvesti neatitinkantys duomenys arba tokio vartotojo pas mus duomen&#371; baz&#279;je n&#279;ra.<br/>";
$error="warning";
}
if ($error=="")
{
echo "<b>Priminimas i&#353;si&#371;stas!</b><br/>";
echo "Patikrinkite savo pa&#353;to d&#279;&#382;ut&#281;, joje rasite nauj&#261; sugeneruot&#261; slapta&#382;od&#303;!<br/>";
$gen = str_shuffle('qwertyuioplkjhgfdsazxcvbnm123456789');
$gen = substr($gen, 0, 8);
mysql_query("UPDATE user SET pass = '$gen' WHERE nick = '$nick'");
$todayis = date("Y-m-d H:i") ;
$message ="
Mp3.Our.Lt slaptazodzio priminimo sistema!\n
Vartotojo: $nick, naujas slaptazodis: $gen\n
Pagarbiai administratorius Justinas ($administracija_el_pastas).
";
mail("$lost[pastas]", "Priminimas", "$message", "lefteyelt@gmail.com");
$dg = time();
$rog = 180;
$yig = $dg + $rog;
$bug=fopen('txt/pass_priminimas_laikas.txt', "w+");
fwrite($bug, $yig);
fclose($bug);
}
}
echo "$linija";
echo "<a href=\"index.php?pg=log_lost_password\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$ss\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}

if($pg =="reg")
{
$kur="Registracija";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Taisykl&#279;s</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "&#8226; Pra&#353;ome paskaityti atsakomyb&#279;s i&#353;si&#382;ad&#279;jim&#261; <a href=\"index.php?pg=atsakomybe\">&#269;ia</a>.<br/>";
echo "&#8226; Pokalbiuose pra&#353;ome elgtis kult&#363;ringai, visokie keiksma&#382;od&#382;iai nebus toleruojami.<br/>";
echo "&#8226; Visame puslapyje yra negalima bet kokia reklama &#303; kitus puslapius.<br/>";
echo "&#8226; <b>B&#363;kite draugi&#353;ki, linksmi ir su &#353;ypsena m&#363;s&#371; portale ir Jums tikrai bus atsid&#279;kota!</b><br/>";
echo "</div>";
echo "</div>";
echo "$linija";
echo "<a href=\"index.php?pg=reg_2\">Toliau &gt;</a><br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises<br/>";
echo "</div>";
}

if($pg =="reg_2")
{
$kur="Registracija";
require('online.php');
echo "<div class=\"center\">";

echo "$logo";
echo "$linija";
echo "<b>Registracija</b><br/>";
echo "$linija";

echo "<form action=\"index.php?pg=reg_4&amp;v=$v&amp;sk=$sk\" method=\"post\">";
echo "<div class=\"noname\">";
if($go =="slaptas_kodas")
{
echo "Registracijai reikalingas J&#363;s&#371; mobilaus telefono numeris.(Jis nebus rodomas vie&#353;ai)<br/>";
echo "Si&#371;skite sms su rakta&#382;od&#382;iu <b>TH1 aina</b>, numeriu <b>1614</b> ir i&#353;karto J&#363;s&#371; mobilaus telefono numeris bus &#303;trauktas &#303; duomen&#371; baz&#281;.<br/>";
echo "Sms kaina <b>1 LT</b>.<br/>";
echo "$linija";
}
echo "<b>Telefono numeris i&#353; kurio siunt&#279;te sms:</b> (<a href=\"index.php?pg=reg_2&amp;go=slaptas_kodas\">&#303;traukti numer&#303;</a>)<br/>";
echo "<input type=\"text\" name=\"slaptaskdoas\" value=\"3706\" maxlength=\"20\"/><br/>";
echo "$linija";
echo "<b>* Vartotojas:</b><br/>";
echo "<input type=\"text\" name=\"nick\" maxlength=\"20\"/><br/>";

echo "<b>* Slapta&#382;odis:</b><br/>";
echo "<input type=\"password\" name=\"pass\" maxlength=\"15\"/><br/>";

echo "<b>* Pakartoti slapta&#382;od&#303;:</b><br/>";
echo "<input type=\"password\" name=\"pass2\" maxlength=\"15\"/><br/>";

echo "$linija";

echo "<b>* Lytis:</b><br/>";
echo "<select name=\"lytis\">
<option value=\"v\" >Vyri&#353;ka</option>
<option value=\"m\" >Moteri&#353;ka</option>
</select><br/>";

echo "<b>* El. pa&#353;tas:</b><br/>";
echo "<input type=\"text\" name=\"pastas\" maxlength=\"60\"/><br/>";

echo "<b>Vardas:</b><br/>";
echo "<input type=\"text\" name=\"vardas\" maxlength=\"20\"/><br/>";

echo "<div class=\"new\"></div>";
echo "<input class=\"button\" name=\"submit\" type=\"submit\" value=\"Registruotis &gt;\"/>";
echo "</div>";
echo "</form>";

echo "$linija";
echo "<a href=\"index.php?pg=reg\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises<br/>";
echo "</div>";
}

if($pg =="reg_4")
{
$kur="Registracija";
require('online.php');
$slaptaskdoas=$_POST['slaptaskdoas'];
$nick= $_POST['nick'];
$pass= $_POST['pass'];
$pass2= $_POST['pass2'];
$lytis= $_POST['lytis'];
$pastas= $_POST['pastas'];
$numeris= $_POST['numeris'];
$vardas= $_POST['vardas'];
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Registracija</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 2px;\">";

$code = mysql_num_rows(mysql_query("SELECT * FROM reg_kodas WHERE kodas='$slaptaskdoas'"));
if ($code == 0)
{
echo "Telefono numeris n&#279;ra teisingas!<br/>";
$error="yra";
}

if ($nick=="")
{
echo "Neu&#382;pildytas laukelis: <b>Vartotojas</b>!<br/>";
$error="yra";
}
if ($pass=="")
{
echo "Neu&#382;pildytas laukelis: <b>Slapta&#382;odis</b>!<br/>";
$error="yra";
}
if ($pass2=="")
{
echo "Neu&#382;pildytas laukelis: <b>Pakartoti slapta&#382;od&#303;</b>!<br/>";
$error="yra";
}
if ($pastas=="")
{
echo "Neu&#382;pildytas laukelis: <b>El. pa&#353;tas</b>!<br/>";
$error="yra";
}
if (preg_match("/[^A-z0-9_\-]/", $nick)
|| preg_match("/[^A-z0-9_\-]/", $pass)
|| preg_match("/[^A-z0-9_\-]/", $pass2)
|| preg_match("/[^A-z0-9_\-]/", $vardas))
{
echo "Klaida: <b>Naudojami neleistini simboliai</b>!<br/>";
$error="yra";
}
$neuzimtas=mysql_num_rows(mysql_query("SELECT * FROM user WHERE nick='$nick'"));
if ($neuzimtas > 0)
{
echo "Klaida: <b>&#352;is vartotojo vardas ($nick) jau u&#382;imtas</b>!<br/>";
$error="yra";
}
$neuzimtas2=mysql_num_rows(mysql_query("SELECT * FROM user WHERE pastas='$pastas'"));
if ($neuzimtas2 > 0)
{
echo "Klaida: <b>Tokiu el. pa&#353;tu jau yra u&#382;siregistrav&#281;s vienas i&#353; vartotoj&#371;</b>!<br/>";
$error="yra";
}
if ($pass!="$pass2")
{
echo "Klaida: <b>Slapta&#382;od&#382;iai nesutapo</b>!<br/>";
$error="yra";
}
if (strlen($nick) < 4)
{
echo "Klaida: <b>Vartotojo vardas gali susidaryti ma&#382;iausiai i&#353; 4 simboli&#371;</b>!<br/>";
$error="yra";
}
if (strlen($pass) < 4)
{
echo "Klaida: <b>Slapta&#382;odis gali susidaryti ma&#382;iausiai i&#353; 4 simboli&#371;</b>!<br/>";
$error="yra";
}
echo "</div>";
echo "</div>";

if ($error=="")
{
if (!$v=="")
{
$pliusai=mysql_query("SELECT * FROM user WHERE ID = '$v'");
$row=mysql_fetch_array($pliusai);
$prideti=$row[pliusai]+100;
mysql_query("UPDATE user SET pliusai = '$prideti' WHERE ID = '$v'");
$ip=$_SERVER['REMOTE_ADDR'];
$narsykle = $_SERVER['HTTP_USER_AGENT'];
$data=date("Y.m.d H:i:s");
mysql_query("INSERT INTO log_ref_pliusai (nuo, registravosi, Laikas, IP, narsykle)
VALUES ('$row[nick]', '$nick', '$data', '$ip', '$narsykle')");
}
echo "<b>Registracija s&#279;kminga!</b><br/>";
echo "$linija";
echo "Galite prisijungti prie puslapio!<br/>";
echo "<b>D&#279;mesio!</b><br/> Pasikviesk draug&#371; ir Tau bus gan dosniai atsid&#279;kota!<br/>";
echo "Nepamir&#353;k jog &#269;ia ne vien siuntini&#371; portalas, bet ir bendravimo, tad b&#363;t&#371; malonu pamatyti Tave ir pokalbiuose. ;)<br/>";
echo "$linija";
echo "<b><a href=\"index.php?pg=log\">Prisijungimas</a></b><br/>";
$reg_kada=date("Y/m/d - H:i:s");
$metai=date("Y.m.d");
$time = time();
mysql_query("INSERT INTO user (nick, pass, vardas, pastas, telefonas, amzius, lytis, lygis, pliusai, pliusai_viktorinos, delione, aprasymas, miestas, nuotaika, paskutinis_log, paskutinis_log_2, kiek_foto, stilius, statusas, atejo, uzsiregistravo, fludas, pm_fludas, chat_fludas, chat_refresh, chat_zinutes_puslapyje, chat_zinuciu_redagavimas, chat_smailai, forum_admin_statusas, forum_fludas, forum_temos_fludas, foto_fludas, ban, kick, naryste, ispejimai, pakvietimai, nstop_planas)
VALUES ('$nick', '$pass', '$vardas', '$pastas', '$slaptaskdoas', '$metai', '$lytis', 'Vartotojas', '10', '0', '', '', '', 'Neutrali', 'nenurodyta', '', '5', 'Default', 'Naujokas', '$time', '$reg_kada', '0', '0', '0', '', '', '', '', '', '0', '0', '0', '0', '', 'OK', '0', '0', '0')");

mysql_query("DELETE FROM reg_kodas WHERE kodas='$slaptaskdoas'");

$dg = time();
$rog = 20;
$yig = $dg + $rog;
$bug=fopen('txt/reg_laikas.txt', "w+");
fwrite($bug, $yig);
fclose($bug);
}
if ($error=="yra")
{
echo "<a href=\"index.php?pg=reg_2&amp;v=$v\">Taisyti klaidas?</a><br/>";
}
echo "$linija";
echo "<a href=\"index.php?\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}


if($pg =="atsakomybe")
{
$reg=$_GET['reg'];
$kur="Atsakomyb&#279;s i&#353;si&#382;ad&#279;jimas";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>I&#353;si&#382;ad&#279;jimas</b><br/>";
echo "$linija";
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "&#8226; Visi &#353;iame puslapyje esantys failai yra patalpinti kitur ir tai n&#279;ra &#353;io puslapio dalis.<br/>";
echo "&#8226; Visos teis&#279;s priklauso muzikos autoriams.<br/>";
echo "&#8226; &#352;is projektas n&#279;ra komercinis.<br/>";
echo "&#8226; &#352;io projekto autorius neapsiima jokios atsakomyb&#279;s u&#382; failus.<br/>";
echo "&#8226; Jei su tuo nesutinki, i&#353;eik i&#353; puslapio!<br/>";
echo "&#8226; Mes visi&#353;kai neatsakome u&#382; Tavo veiksmus.<br/>";
echo "<br/>";
echo "Kaip man nepa&#382;eisti &#303;statym&#371;?<br/>";
echo "<br/>";
echo "&#8226; Naudok atsisi&#371;stus failus tik informaciniam tikslui (perklausyti k&#363;rinius).<br/>";
echo "&#8226; I&#353;trink atsisi&#371;stus failus po 24h.<br/>";
echo "&#8226; Jeigu patiko k&#363;riniai, nusipirk juos.<br/>";
echo "&#8226; Failus galima pasilikti tik jeigu turi originalius &#303;ra&#353;us.<br/>";
echo "&#8226; Jeigu neturi originalaus &#303;ra&#353;o ir pasilieki fail&#261;, tu pa&#382;eidi autorini&#371; teisi&#371; &#303;statym&#261;.<br/>";
echo "&#8226; Jeigu siuntiesi failus, vadinasi tu sutinki su &#353;iuo i&#353;si&#382;ad&#279;jimu.<br/>";
echo "</div>";
echo "</div>";

echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}


if($pg =="info_parama")
{
$kur="Informacija / Puslapio parama";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Parama</b><br/>";
echo "$linija";
echo "Si&#371;sk SMS: <b>MP3ACIU <i>tavo vardas</i></b>.<br/>";
echo "Paramos nr.: <b>1679</b>.<br/>";
echo "O paremsite mus 2 Litukais. Ir kas pad&#279;s mums gyvuoti labai dyyyydelis <b>A&#268;I&#362;</b>. :)<br/>";
echo "$linija";
echo "<img src=\"img/icon/star.png\" alt=\"*\"/> <b>A&#269;i&#363; sakome:</b><br/>";
$lentele = mysql_query("SELECT * FROM sms_parama_2lt ORDER BY ID DESC");
while ($par = mysql_fetch_array($lentele))
{
echo "$par[kas] ";
}
echo "<br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises";
echo "</div>";
}


if($pg =="info_vartotojai")
{
$kur="Informacija / Vartotojai";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Vartotojai</b><br/>";
echo "$linija";
echo "<form action=\"index.php?$infooo&amp;pg=info_vartotojai_2\" method=\"post\">";
echo "<div class=\"noname\">";
echo "Vartotojo paie&#353;ka:<br/>";
echo "<input type=\"text\" name=\"search\" maxlength=\"40\"/><br/>";
echo "<div class=\"new\"></div>";
echo "<input class=\"button\" type=\"submit\" value=\"Ie&#353;koti &gt;\"/>";
echo "</div>";
echo "</form>";
echo "$linija";
$pp=$_GET['pp'];
$puslapyje=20;
if (empty($pp))
{
$pp=1;
}

$lytis= $_GET['lytis'];

if($lytis =="")
{
$start=($puslapyje*$pp)-$puslapyje;
$getUsers=mysql_query("SELECT * FROM user ORDER BY ID DESC LIMIT $start, $puslapyje");
$kiek_ju = mysql_num_rows(mysql_query("SELECT * FROM user"));
$visoPuslapiu=ceil($kiek_ju / $puslapyje);
}
if($lytis =="v")
{
$start=($puslapyje*$pp)-$puslapyje;
$getUsers=mysql_query("SELECT * FROM user where lytis = 'v' ORDER BY ID DESC LIMIT $start, $puslapyje");
$kiek_ju = mysql_num_rows(mysql_query("SELECT * FROM user where lytis = 'v'"));
$visoPuslapiu=ceil($kiek_ju / $puslapyje);
}
if($lytis =="m")
{
$start=($puslapyje*$pp)-$puslapyje;
$getUsers=mysql_query("SELECT * FROM user where lytis = 'm' ORDER BY ID DESC LIMIT $start, $puslapyje");
$kiek_ju = mysql_num_rows(mysql_query("SELECT * FROM user where lytis = 'm'"));
$visoPuslapiu=ceil($kiek_ju / $puslapyje);
}

echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "<b>R&#363;&#353;iuoti:</b><br/>";
if($lytis =="")
{
echo "Visi / <a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=m\">Moterys</a> / <a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=v\">Vyrai</a><br/>";
}
if($lytis =="m")
{
echo "<a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=\">Visi</a> / Moterys / <a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=v\">Vyrai</a><br/>";
}
if($lytis =="v")
{
echo "<a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=\">Visi</a> / <a href=\"index.php?$infooo&amp;pg=info_vartotojai&amp;lytis=m\">Moterys</a> / Vyrai<br/>";
}
echo "</div>";
echo "</div>";

echo "$linija";
if ($kiek_ju<=0)
{
echo "<b>Vartotoj&#371; n&#279;ra!</b><br/>";
}

while ($thnx=mysql_fetch_array($getUsers))
{
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
echo "<img src=\"img/icon/user.png\" alt=\".\"/> <a href=\"about.php?$infooo&amp;user=$thnx[nick]\">$thnx[nick]</a><br/>";
echo "</div>";
echo "</div>";
}
echo "$linija";
if ($pp>1)
{
$atgal=$pp;
echo "<a href=\"index.php?$infooo&amp;pp=".--$atgal."&amp;pg=info_vartotojai&amp;lytis=$lytis\">&lt;-- Atgal</a><br/>";
echo "$linija";
}
if ($pp>=$visoPuslapiu)
{
}
else
{
$toliau=$pp;
echo "<a href=\"index.php?$infooo&amp;pp=".++$toliau."&amp;pg=info_vartotojai&amp;lytis=$lytis\">Toliau --&gt;</a><br/>";
echo "$linija";
}
echo "Viso: <b>($kiek_ju)</b><br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises<br/>";
echo "</div>";
}

if($pg =="info_vartotojai_2")
{
$search=$_POST["search"];
$kur="Informacija / Vartotoj&#371; paie&#353;ka";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Vartotojai</b><br/>";
echo "$linija";
$result = mysql_query("SELECT * FROM user WHERE nick LIKE '%$search%'");

$anymatches=mysql_num_rows($result);
if ($anymatches == 0)
{
echo "Vartotojas nerastas.<br/>";
$klaida="yra";
}

if($search =="")
{
echo "Neu&#382;pildytas laukelis.<br/>";
$klaida="yra";
}

if($klaida =="")
{
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
while($r=mysql_fetch_array($result))
{
echo "<img src=\"img/icon/user.png\" alt=\".\"/> <a href=\"about.php?$infooo&amp;user=$r[nick]\">$r[nick]</a><br/>";
}
echo "</div>";
echo "</div>";
}
if(!$search =="")
{
echo "$linija";
echo "<b>Ie&#353;kote:</b> $search<br/>";
}
echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises<br/>";
echo "</div>";
}

if($pg =="info_ban")
{
$kur="Informacija / Blokuoti vartotojai";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo "$linija";
echo "<b>Blokuoti vartotojai</b><br/>";
echo "$linija";
$pp=$_GET['pp'];
$puslapyje=10;
if (empty($pp))
{
$pp=1;
}

$start=($puslapyje*$pp)-$puslapyje;
$getUsers=mysql_query("SELECT * FROM bananas ORDER BY ID DESC LIMIT $start, $puslapyje");
$kiek_ju = mysql_num_rows(mysql_query("SELECT * FROM bananas"));
$visoPuslapiu=ceil($kiek_ju / $puslapyje);

if ($kiek_ju<=0)
{
echo "Blokuot&#371; vartotoj&#371; n&#279;ra!<br/>";
}
echo "<div class=\"left\">";
echo "<div style=\"padding-left: 4px;\">";
while ($thnx=mysql_fetch_array($getUsers))
{
echo "[&#187;] <a href=\"about.php?$infooo&amp;user=$thnx[lama]\">$thnx[lama]</a><br/>";
}
echo "</div>";
echo "</div>";
echo "$linija";
if ($pp>1)
{
$atgal=$pp;
echo "<a href=\"index.php?$infooo&amp;pp=".--$atgal."&amp;pg=info_ban\">&lt;-- Atgal</a><br/>";
echo "$linija";
}
if ($pp>=$visoPuslapiu)
{
}
else
{
$toliau=$pp;
echo "<a href=\"index.php?$infooo&amp;pp=".++$toliau."&amp;pg=info_ban\">Toliau --&gt;</a><br/>";
echo "$linija";
}
echo "Viso: <b>($kiek_ju)</b><br/>";
echo "$linija";
echo "<a href=\"index.php?$infooo&amp;pg=informacija\">^ Atgal</a><br/>";
echo "<a href=\"index.php?$infooo\">&lt; Pagrindinis</a><br/>";
echo "$linija";
echo "$teises<br/>";
echo "</div>";
}

if($pg =="info_naujienos")
{
$kur="Informacija / Naujienos";
require('online.php');
echo "<div class=\"center\">";
echo "$logo";
echo &quo