daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jun 29th, 2010 188 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $pages = contributors();
  2. $current_page = $pages['current_page'];
  3. $total_pages = $pages['total_pages'];
  4.  
  5. for ($i = 1; $i <= $total_pages; $i++)
  6. {
  7.     if ($i != $current_page)
  8.         echo '<span class="page">' . $i . '</span>';
  9.     else
  10.         echo '<span class="page current">' . $i . '</span>';
  11. }
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