Просмотр файла sejkmotorv1.0/chat.php

Размер файла: 4.79Kb
<?php
include("conf.php");
include("gore.php");
?>
<?php
$chat=$_GET['c'];
if(!$chat){
echo "Wrong chat !!!";
}
else
{
if($chat==main){
echo "
<div class=\"a\">Chat - main</div>
<div class=\"b\">
<form name=\"input\" method=\"post\" action=\"chat2.php?ime=$ime&sifra=$sifra\">
Write:<br/>
<input type=\"text\" name=\"poruka\" maxlength=\"100\" /><br/>
<input type=\"submit\" value=\"Write\" />
</form>
<a href=\"smajli.php?ime=$ime&sifra=$sifra\">Smiles</a><br/>
<a href=\"bbkodovi.php?ime=$ime&sifra=$sifra\">BB codes</a><br/>
<hr/>
";
$fajl="chat.sejk";
$l=file($fajl);
$a=count($l);

$l=str_replace("@#@", "<a href=\"profil.php?ime=$ime&sifra=$sifra", $l);

$c1=$a-1;
$c2=$a-2;
$c3=$a-3;
$c4=$a-4;
$c5=$a-5;
$c6=$a-6;
$c7=$a-7;
$c8=$a-8;
$c9=$a-9;
$c10=$a-10;

echo "1. $l[$c1] <br/>";
echo "2. $l[$c2] <br/>";
echo "3. $l[$c3] <br/>";
echo "4. $l[$c4] <br/>";
echo "5. $l[$c5] <br/>";
echo "6. $l[$c6] <br/>";
echo "7. $l[$c7] <br/>";
echo "8. $l[$c8] <br/>";
echo "9. $l[$c9] <br/>";
echo "10. $l[$c10] ";
}
else
{
if($chat==relax){
echo "
<div class=\"a\">Chat - relax</div>
<div class=\"b\">
<form name=\"input\" method=\"post\" action=\"relax.php?ime=$ime&sifra=$sifra\">
Write:<br/>
<input type=\"text\" name=\"poruka\" maxlength=\"100\" /><br/>
<input type=\"submit\" value=\"Write\" />
</form>
<a href=\"smajli.php?ime=$ime&sifra=$sifra\">Smiles</a><br/>
<a href=\"bbkodovi.php?ime=$ime&sifra=$sifra\">BB codes</a><br/>
<hr/>
";
$fajl="relax.sejk";
$l=file($fajl);
$a=count($l);

$l=str_replace("@#@", "<a href=\"profil.php?ime=$ime&sifra=$sifra", $l);

$c1=$a-1;
$c2=$a-2;
$c3=$a-3;
$c4=$a-4;
$c5=$a-5;
$c6=$a-6;
$c7=$a-7;
$c8=$a-8;
$c9=$a-9;
$c10=$a-10;

echo "1. $l[$c1] <br/>";
echo "2. $l[$c2] <br/>";
echo "3. $l[$c3] <br/>";
echo "4. $l[$c4] <br/>";
echo "5. $l[$c5] <br/>";
echo "6. $l[$c6] <br/>";
echo "7. $l[$c7] <br/>";
echo "8. $l[$c8] <br/>";
echo "9. $l[$c9] <br/>";
echo "10. $l[$c10] ";
}
else
{

if($chat==boys)
{
echo "
<div class=\"a\">Chat - boys</div>
<div class=\"b\">
<form name=\"input\" method=\"post\" action=\"boys.php?ime=$ime&sifra=$sifra\">
Write:<br/>
<input type=\"text\" name=\"poruka\" maxlength=\"100\" /><br/>
<input type=\"submit\" value=\"Write\" />
</form>
<a href=\"smajli.php?ime=$ime&sifra=$sifra\">Smiles</a><br/>
<a href=\"bbkodovi.php?ime=$ime&sifra=$sifra\">BB codes</a><br/>
<hr/>
";
$fajl="boys.sejk";
$l=file($fajl);
$a=count($l);

$l=str_replace("@#@", "<a href=\"profil.php?ime=$ime&sifra=$sifra", $l);

$c1=$a-1;
$c2=$a-2;
$c3=$a-3;
$c4=$a-4;
$c5=$a-5;
$c6=$a-6;
$c7=$a-7;
$c8=$a-8;
$c9=$a-9;
$c10=$a-10;

echo "1. $l[$c1] <br/>";
echo "2. $l[$c2] <br/>";
echo "3. $l[$c3] <br/>";
echo "4. $l[$c4] <br/>";
echo "5. $l[$c5] <br/>";
echo "6. $l[$c6] <br/>";
echo "7. $l[$c7] <br/>";
echo "8. $l[$c8] <br/>";
echo "9. $l[$c9] <br/>";
echo "10. $l[$c10] ";
}
else
{
if($chat==girls){
echo "
<div class=\"a\">Chat - girls</div>
<div class=\"b\">
<form name=\"input\" method=\"post\" action=\"girls.php?ime=$ime&sifra=$sifra\">
Write:<br/>
<input type=\"text\" name=\"poruka\" maxlength=\"100\" /><br/>
<input type=\"submit\" value=\"Write\" />
</form>
<a href=\"smajli.php?ime=$ime&sifra=$sifra\">Smiles</a><br/>
<a href=\"bbkodovi.php?ime=$ime&sifra=$sifra\">BB codes</a><br/>
<hr/>
";
$fajl="girls.sejk";
$l=file($fajl);
$a=count($l);

$l=str_replace("@#@", "<a href=\"profil.php?ime=$ime&sifra=$sifra", $l);

$c1=$a-1;
$c2=$a-2;
$c3=$a-3;
$c4=$a-4;
$c5=$a-5;
$c6=$a-6;
$c7=$a-7;
$c8=$a-8;
$c9=$a-9;
$c10=$a-10;

echo "1. $l[$c1] <br/>";
echo "2. $l[$c2] <br/>";
echo "3. $l[$c3] <br/>";
echo "4. $l[$c4] <br/>";
echo "5. $l[$c5] <br/>";
echo "6. $l[$c6] <br/>";
echo "7. $l[$c7] <br/>";
echo "8. $l[$c8] <br/>";
echo "9. $l[$c9] <br/>";
echo "10. $l[$c10] ";
}
else
{
if($chat==help){
echo "
<div class=\"a\">Chat - help</div>
<div class=\"b\">
<form name=\"input\" method=\"post\" action=\"help.php?ime=$ime&sifra=$sifra\">
Write:<br/>
<input type=\"text\" name=\"poruka\" maxlength=\"100\" /><br/>
<input type=\"submit\" value=\"Write\" />
</form>
<a href=\"smajli.php?ime=$ime&sifra=$sifra\">Smiles</a><br/>
<a href=\"bbkodovi.php?ime=$ime&sifra=$sifra\">BB codes</a><br/>
<hr/>
";
$fajl="help.sejk";
$l=file($fajl);
$a=count($l);

$l=str_replace("@#@", "<a href=\"profil.php?ime=$ime&sifra=$sifra", $l);

$c1=$a-1;
$c2=$a-2;
$c3=$a-3;
$c4=$a-4;
$c5=$a-5;
$c6=$a-6;
$c7=$a-7;
$c8=$a-8;
$c9=$a-9;
$c10=$a-10;

echo "1. $l[$c1] <br/>";
echo "2. $l[$c2] <br/>";
echo "3. $l[$c3] <br/>";
echo "4. $l[$c4] <br/>";
echo "5. $l[$c5] <br/>";
echo "6. $l[$c6] <br/>";
echo "7. $l[$c7] <br/>";
echo "8. $l[$c8] <br/>";
echo "9. $l[$c9] <br/>";
echo "10. $l[$c10] ";
}
}
}
}
}
}



echo "</div>";
include("dole.php");
?>