Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 20th, 2018 76 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php
  2.  
  3. function printArray($array){
  4.    
  5.     echo "<ul>";
  6.    
  7.     foreach ($array as $key => $value) {
  8.         echo "<li><a href=\"".$value."\">".$key."</a></li>";
  9.     }
  10.    
  11.     echo "</ul>";
  12. }
  13.  
  14. if($loggedIn){
  15.    
  16.     // Hvis man er logget ind skal man se flg. menu...
  17.  
  18.     $menuPrivate = array();
  19.    
  20.     $menuPrivate["Home"] = "index.php";
  21.     $menuPrivate["Friends"] = $Friends_link;
  22.    
  23.    
  24.     printArray($menuPrivate);
  25.    
  26.  
  27. } else {
  28.    
  29.     // Hvis man IKKE er logget ind, skal man se flg. menu...
  30.     $menuPublic = array();
  31.    
  32.     $menuPublic = array();
  33.    
  34.     $menuPublic["Home"] = "index.php";
  35.     $menuPublic["Register"] = $Register_link;
  36.     $menuPublic["About"] = "index.php";
  37.    
  38.    
  39.     printArray($menuPublic);
  40.    
  41. }
  42.  
  43. ?>
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