Sawtaytoes
3/12/2019 - 3:45 AM

First PHP Project

<title><?
/* if (isset($_GET['info'])) {
    getTitle('i');
    echo ' - ';
  }*/
  if (notMainPage()) {
    getTitle('p');
    echo ' - ';
  }
  getTitle('h');
  if (getDomain() != 1) {
    echo ' - ';
    getTitle('m');
  }
?></title>
<?php
// QUICKLINKS
if (notMainPage()):
  if (getDomain() != 5):
    $k = 3;
    $l = 1;
    // i = department, j = image class, k = activating selection image
    for ($i = 1; $i < 6; $i++):
      if (getDomain() == 6)
        $j = $i;
      else
        $j = $i - 1;
      if ($i == 1 && getDomain() == 1)
        $k = 0;
      elseif ($k == 0)
        $k = 3;
      if ($i == 3 && getDomain() == 6):
        $k = 0;
        $j = '0';
      elseif ($i >= 4 && getDomain() == 6):
        $k = 3;
        $j = $i - 1;
      endif;
    ?><a <? isKey($j) ?> href="?<? getDept($j); getPage($l,1) ?>"><img class="<? getClass($k) ?>" src="<? sokg(); getImage('x'); getDept($j); isSelected($j) ?>.png" alt="<? getTitle($j) ?>"/></a><?
      if (!($i == 1 || $i == 5) && getDomain() == 1)
        getImage('space');
      elseif ($i == 1 && getDomain() == 1)
        echo '<br />';
      if (getDomain() == 6 && $i == 2)
        $l = 12;
      elseif (getDomain() == 6 && $i == 3)
        $l = 1;
    endfor;
  endif;