SHARE
TWEET

Untitled

a guest Jun 8th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. session_start();
  3. include("config.php");
  4. include("header.php");
  5. $members = "SELECT * FROM `members` WHERE `username` = '".$_SESSION["user"]."'";
  6. $q_members = mysql_query($members) or die (mysql_error());
  7. while ($member = mysql_fetch_array($q_members)) {
  8. $nick = $member["nick"];
  9. $password = $member["password"];
  10. $email = $member["email"];
  11. $icq = $member["icq"];
  12. $tal = $member["tal"];
  13. $msn= $member["msn"];
  14. $id = $member["id"];
  15. $admin="אבישי";
  16. $ip = $_SERVER['REMOTE_ADDR'];
  17. $date = date("d/m/Y");
  18. }
  19. if (!isset($_SESSION["user"])) {
  20. $title = "דף הבית - אינך מחובר";
  21. } else {
  22. $title = "דף הבית - ברוך הבא, $nick";
  23. }
  24. ?>
  25.  
  26. <html dir="rtl">
  27. <head>
  28. <title>שליחת מאמר</title>
  29. <link href="default.css" type="text/css" rel="stylesheet">
  30. </head>
  31. <body>
  32. <?php
  33.             $q = mysql_query("SELECT * FROM members");
  34.             while($r = mysql_fetch_array($q))
  35.             {
  36. $per_page = $rs['username'];
  37. }
  38. @$page = (int) $_GET['page'];
  39. if($page == NULL) { $page = 1; }
  40. if($page>2000000000 || $page<1)
  41. $page=2;
  42.  
  43. $start = ($page-1) * $per_page;
  44. $query = mysql_query("SELECT * FROM `members`");
  45. $nump = mysql_num_rows($query);
  46. $nump = $nump / $per_page;
  47. if(intval($nump) != $nump)
  48.  
  49.     $nump = intval($nump) + 1;
  50.  
  51. for($I = 1; $I<= $nump; $I++)
  52. {
  53.     if($page != $I)
  54.         echo "<div id='page_border'><a href='art.php?page=" . $I ."'>" . $I ."</a></div>";
  55.     else
  56. echo "<div id='page_border'><a href='art.php?page=" . $I ."'><strong>" . $I ."</strong></a></div>";
  57.     if($I != $per_page)
  58.         echo " ";
  59. }
  60. echo '</div><br /><br />';
  61.             include("config.php");
  62.             $q = mysql_query("SELECT * FROM members ORDER BY `username` DESC LIMIT $start, $per_page");
  63.             while($r = mysql_fetch_array($q))
  64.             {
  65. echo <<< HTML
  66. <table border=1>
  67.   <tr>
  68.     <td><b> מספר משתמש </b></td>
  69.     <td><b> שם משתמש </b></td>
  70.     <td><b> Email </b></td>
  71.     <td><b> ICQ </b></td>
  72.     <td><b> טלפון </b></td>
  73.     <td><b> MSN </b></td>
  74.  
  75.   </tr>
  76.   <tr>
  77.     <td> {$row['id']} </td>
  78.     <td> <a href='apli.php?id=profile&user={$row['username']}'>{$row['username']}</a></td>
  79.     <td> {$row['email']} </td>
  80.     <td> {$row['icq']} </td>
  81.     <td> {$row['tal']} </td>
  82.     <td> {$row['msn']} </td>
  83.  
  84.   </tr>
  85. </table>
  86.  
  87.  
  88. HTML;
  89.             }
  90.  
  91.  
  92.  
  93. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top