SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <?php $menu=file_get_contents("inc/main_nav.php");
  2.  
  3. $base=basename($_SERVER['PHP_SELF']); $menu=preg_replace("|<li><a href=\"".$base."\">(.*)</a></li>|U", "<li class=\"current\">$1</li>", $menu); echo $menu; ?>
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