<?php require_once("config.php"); ?> <script language=javascript> function odswiezaj() { <?php } ?> setTimeout("odswiezaj()", 1); } </script> <body> <script language=javascript> odswiezaj(); </script> </body>
samo

<?php require_once("config.php"); ?> <script language=javascript> function odswiezaj() { <?php } ?> setTimeout("odswiezaj()", 1); } </script> <body> <script language=javascript> odswiezaj(); </script> </body>
<head><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script></head> <?php $getCommentsFrequency = 1000; #częstość pobierania komentarzy w ms. require_once("config.php"); ?><script> var getCommentsFrequency = <?=$getCommentsFrequency?>; jQuery(document).ready(function() { /* ŁADOWANIE KOMENTARZY */ function getAllComments(){ $.ajax({ url: "faq.php", success: function(msg){ $('#komentarze').html(msg); } }); }; //getAllComments(); setInterval(function(){ getAllComments()}, getCommentsFrequency); } </script> <body> <div id="komentarze">Ładowanie komentarzy...</div> </body>
<?php require_once("config.php"); } ?>
<center> <head><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script><?php require_once("../zapytania.php"); $getCommentsFrequency = 100; #częstość pobierania komentarzy w ms. ?><script> var getCommentsFrequency = <?=$getCommentsFrequency?>; jQuery(document).ready(function() { /* ŁADOWANIE KOMENTARZY */ function getAllComments(){ $.ajax({ url: "wyswietl.php", success: function(msg){ $('#komentarze').html(msg); } }); }; //getAllComments(); setInterval(function(){ getAllComments()}, getCommentsFrequency); }); </script> <? if($_POST['send']){ ?> <meta http-equiv="Refresh" content="0" /> <?php } ?></center> <script> var myVar = setInterval(function(){chatt()},1000); function chatt() { var d = new Date(); document.getElementById("demo").innerHTML = d.toLocaleTimeString(); } </script> <script> var refreshId = setInterval(function() { $('#responsecontainer').fadeOut("fast").load('wys.php').fadeIn("fast"); }, 500); </script> </head> <?php function emotki($string) { $emotikony = array(":D" => "http://firegifts.pl/images/emoticons/smilie5.gif",":)" => "http://firegifts.pl/images/emoticons/wink.gif", "lol2" => "http://emotikona.pl/emotikony/pic/01icon_lol2.gif", ":(" => "http://emotikona.pl/emotikony/pic/0sad.gif", ":P" => "http://emotikona.pl/emotikony/pic/0tongue.gif", "gej" => "http://firegifts.pl/images/emoticons/censored.gif", "pedał" => "http://firegifts.pl/images/emoticons/censored.gif", "spierdalaj" => "http://firegifts.pl/images/emoticons/censored.gif", "kurwa" => "http://firegifts.pl/images/emoticons/censored.gif", "huj" => "http://firegifts.pl/images/emoticons/censored.gif", "google" => "http://emotikona.pl/emotikony/pic/14icon_google.gif"); foreach($emotikony as $tekst => $grafika) $string = str_replace($tekst,'<img src="'.$grafika.'" />',$string); return $string; } { //Definicja zmiennych $ip = $_SERVER['REMOTE_ADDR']; //Wykonujemy zapytanie importujące zdefiniowane dane mysql_query ("INSERT INTO `posty` (`login`, `tresc`, `data`, `ip`) VALUES('$login', '$tresc', '$data', '$ip')"); mysql_query("UPDATE `users` SET `coins`=`coins`+'1' WHERE login = '".$login."'") or die(mysql_error()); // $db->Query("UPDATE `users` SET `coins`=`coins`+'".$coins."' WHERE `id`='".$data['id']."'"); //No i przenosimy użytkownika z powrotem do shoutboxa } else { ?><span id="licznik"><div id="responsecontainer"> </div> <body><div id="komentarze">Ładowanie komentarzy...</div></body> <? //Pobieramy dane z bazy } ?> <? //print_r($_SERVER); if($data['spamer'] == 1){ } else {?> <form action="" method="POST" id="shoutbox"> <?php require_once("../zapytania.php"); echo'<input type="hidden" name="login" value="'.$data['login'].'" />'; ?><br/> Treść: <input type="text" name="tresc" maxlength="125" /> <button type="submit" name="wyslij">Napisz</button> </form> <? } ?>
<? require_once("../zapytania.php"); function emotki($string) { $emotikony = array(":D" => "http://firegifts.pl/images/emoticons/smilie5.gif",":)" => "http://firegifts.pl/images/emoticons/wink.gif", "lol2" => "http://emotikona.pl/emotikony/pic/01icon_lol2.gif", ":(" => "http://emotikona.pl/emotikony/pic/0sad.gif", ":P" => "http://emotikona.pl/emotikony/pic/0tongue.gif", "kurwa" => "http://firegifts.pl/images/emoticons/censored.gif", "huj" => "http://firegifts.pl/images/emoticons/censored.gif", "google" => "http://emotikona.pl/emotikony/pic/14icon_google.gif"); foreach($emotikony as $tekst => $grafika) $string = str_replace($tekst,'<img src="'.$grafika.'" />',$string); return $string; } ?><table id="shoutbox"><? .'<b> '); if (($shout['login']) == "Bartek4175"){ ?> <span style="color:red;">Admin: </b></span><? } elseif(($shout['login']) == "PaulPB"){ ?> <span style="color:red;">PaulPB: </b></span><? } else { '.$shout['tresc'] //wyświetlamy treść .'<br/><span class="data">' .$shout['data'] //wyświetlamy datę .'</span> '); ?></span> <? if (($data['admin']) == 1){ { switch ($_GET['akcja']) { case 'usun': break; } } ?><a href="/chatt/index.php?akcja=usun&id=<? echo''.$shout['id'].''; ?> "> <span style="color:red;"><b>X</b></a></span><? } if (($data['admin']) == 1){ { switch ($_GET['akcja']) { case 'spamer': mysql_query("UPDATE `users` SET spamer='1' WHERE `login` = '".$_GET['login']."'") or die(mysql_error()); break; } } ?><a href="/chatt/index.php?akcja=spamer&login=<? echo''.$shout['login'].''; ?> "> <span style="color:green;"><b>S</b></a></span><? } if (($data['admin']) == 1){ { switch ($_GET['akcja']) { case 'unspamer': mysql_query("UPDATE `users` SET spamer='0' WHERE `login` = '".$_GET['login']."'") or die(mysql_error()); break; } } ?><a href="/chatt/index.php?akcja=unspamer&login=<? echo''.$shout['login'].''; ?> "> <span style="color:gold;"><b>U</b></a></span><? } } // ?> </table> <? } ?>