View file sejkmotorv1.0/index.php

File size: 1.75Kb
<?php
include("gore.php");
?>
<div class="a">
<?php
$ime=$_GET['ime'];
$sifra=$_GET['sifra'];
if(!$ime or !$sifra){
echo "<a href=\"login.php\">Log in</a> <b>|</b> <a href=\"reg.php\">Register</a>";
}
else
{
$v=ucfirst($ime);
echo "Hello <a href=\"profil.php?ime=$ime&sifra=$sifra&p=$ime\">$v</a> ! <br/> <a href=\"logout.php?ime=$ime&sifra=$sifra\">Log out</a> <b>|</b> <a href=\"meni.php?ime=$ime&sifra=$sifra\">My menu</a>";
}
?>
</div>
<div class="a">Shoutbox<small>(<a href="razglas.php?ime=<?php echo "$ime&sifra=$sifra"; ?>">write</a>)</small><br/>

<?php
$fajl="razglas.sejk";
$delovi=file_get_contents($fajl);
$deo=explode("@#@", $delovi);
echo "<b><a href=\"profil.php?ime=$ime&sifra=$sifra&p=$deo[0]\">$deo[0]</a>:</b><br/> $deo[1]";
?>
</div>
<div class="a">Main</div>
<div class="c">
<a href="koder.php?ime=<?php echo "$ime"; ?>&sifra=<?php echo "$sifra"; ?>">Encode/decode</a><br/>
<a href="trazi.php?ime=<?php echo "$ime"; ?>&sifra=<?php echo "$sifra"; ?>">Search user</a><br/>
<a href="pravila.php?ime=<?php echo "$ime"; ?>&sifra=<?php echo "$sifra"; ?>">Rules</a><br/>
<a href="smajli.php?ime=<?php echo "$ime&sifra=$sifra"; ?>">Smiles</a><br/>
</div>
<div class="a">Chat</div>
<div class="c">
<a href="chat.php?ime=<?php echo "$ime&sifra=$sifra"; ?>&c=relax">Relax</a><br/>
<a href="chat.php?ime=<?php echo "$ime&sifra=$sifra"; ?>&c=main">Main</a><br/>
<a href="chat.php?ime=<?php echo "$ime&sifra=$sifra"; ?>&c=boys">Boys</a><br/>
<a href="chat.php?ime=<?php echo "$ime&sifra=$sifra"; ?>&c=girls">Girls</a><br/>
<a href="chat.php?ime=<?php echo "$ime&sifra=$sifra"; ?>&c=wapmas">Wapmaster</a><br/>
</div>
<div class="a">Info</div>
<div class="c">
<?php
include("info.php");
?>
</div>
<?php
include("dole.php");
?>