Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("ayarlar.php");
- session_start();
- if(!isset($_SESSION["giris"]))
- {
- echo "Bu sayfayı görüntüleme yetkiniz yoktur.<br>";
- echo "<a href=index.php>Giriş sayfası</a>";
- }
- else
- {
- include("../baglan.php");
- $gosterim=6;
- $sayfa=@$_GET['sayfa'];
- if(empty($sayfa) || !is_numeric($sayfa)){$sayfa=1;}
- $k_sayisi=mysql_num_rows(mysql_query("Select id From ziyaretcidefteri"));
- $s_sayisi=ceil($k_sayisi/$gosterim);
- $ilk_kayit=($sayfa*$gosterim)-$gosterim;
- $al=mysql_query("Select id, mesaj, nick, email, onay From ziyaretcidefteri Order By id Desc Limit
- $ilk_kayit,$gosterim");
- while($yazdir=mysql_fetch_array($al)){
- extract($yazdir);
- echo "<br /><strong>Yazan:</strong> ".$nick."";
- echo "<br /><strong>E-Mail:</strong> ".$email."";
- echo "<br /><strong>Mesaj:</strong> ".$mesaj."</br></br>";
- echo "<font face='Tahoma' size='3'><p><b><font face='Tahoma'><a href='onayla.php?id=$id' style='text-decoration: none'>
- <font color='#FF0000'>Onayla</font></a></font></b></br></br>";
- }
- echo '</br><hr>';
- if($sayfa!=1){
- echo "";
- echo " ";
- }
- for($i=1;$i<=$s_sayisi;$i++){
- echo "<span style='padding:3px; font-size:19px; margin-right:5px;'><a
- href='yonetim.php?sayfa={$i}'>$i</a></span>";
- echo "";
- }
- if($sayfa!=$s_sayisi){
- echo "";
- echo " ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment