Share Pastebin
Guest
Public paste!

Manuel

By: a guest | Feb 6th, 2010 | Syntax: PHP | Size: 1.17 KB | Hits: 140 | Expires: Never
Copy text to clipboard
  1. <?php
  2. function repeat($main, $posx, $parts, $part_names) {
  3.     $posy = -2;
  4.     foreach ($parts as $key => $part) {
  5.         $part_name = $part_names[$key] ? $part_names[$key] : $part;
  6.         print '<quad posn="'.$posx.' '.$posy.' 2" sizen="15 2.3" halign="center" image="./img/menue/dropdown_bg.jpg" imagefocus="./img/menue/menuehover.jpg" manialink="http://12makaronie.manialinkhost.de/Test/index.php:'.$main.':'.$part.'"/>
  7. <label posn="'.$posx.' '.($posy-0.3).' 3" halign="center" autonewline="0" text="'.$part_name.'"/>';
  8.     $posy -= 2.3;
  9.     }
  10. }
  11. switch ($_GET['dropdown']) {
  12. case "http://12makaronie.manialinkhost.de/Test/index.php":
  13. case "http://12makaronie.manialinkhost.de/Test/index.php":
  14.     repeat("http://12makaronie.manialinkhost.de/Test/index.php", 24, array("ManiaContact", "MLGB", "ManiaPoll", array(1 => "ManialinkGuestbook")));
  15.     break;
  16. case "Support":
  17.     repeat("Support", 40, array("Forum", "Contactform", "FAQ"), array($lang->forum, $lang->contactform, $lang->faq));
  18.     break;
  19. case "Extras":
  20.     repeat("Extras", 72, array("Stats", "Guestbook", "Imprint"), array('$k'.$lang->stats, $lang->guestbook, $lang->imprint));
  21.     break;
  22. }
  23. print '</frame>';
  24. ?>