Absolut Engine PHP Cross Reference Web Portal Systems

Source: /admin/managermodule.php - 86 lines - 3499 bytes - Summary - Text - Print

   1  <?
   2  @include ("coreclass.php");
   3  $ae=new CEngine();
   4  $ae->RequestVariables();
   5  $ae->EngineInitialize();
   6  $ae->UserVerifySession();
   7  $ae->UserVerifyLevel();
   8  @include ("header.php");
   9  @include ("menu.php");
  10  ?>
  11  <div id="content">
  12  <?
  13  $ae->DBQuery("SELECT * FROM ".$ae->table[8]." ORDER BY module");
  14  if ($ae->rowsnumber)
  15     {
  16     echo '<form method="post" action="modify.php?command=53">';
  17     echo '<fieldset><legend>',$ae->textbasic[51],'</legend>';
  18     echo '<table width="98%">';
  19     echo '<thead>';
  20     echo '<tr>';
  21     echo '<td><h2>',$ae->textbasic[63],'</h2></td>';
  22     echo '<td><h2>',$ae->textbasic[90],'</h2></td>';
  23     echo '</tr>';
  24     echo '</thead>';
  25     echo '<tbody>';
  26     $i=0;
  27     while ($ae->DBGetRow())
  28           {
  29           echo '<tr>';
  30           echo '<td><input type="checkbox" name="modules[',$i,']" id="modules[',$i,']" value="',$ae->access["directory"],'" /> <label for="modules[',$i,']">',$ae->access["module"],'</label></td>';
  31           echo '<td>',$ae->access["description"],'</td>';
  32           echo '</tr>';
  33           $i++;
  34           }
  35     echo '</tbody>';
  36     echo '</table>';
  37     echo '<p class="warning"><span>!</span>',$ae->textbasic[36],'<br class="clear" /></p>';
  38     echo '<input type="checkbox" name="leavedb" id="leavedb" value="1" /><label for="leavedb" class="nofloat">',$ae->textbasic[152],'</label><br class="clear" />';
  39     echo '<input type="submit" value="',$ae->textbasic[92],'" onclick="return ConfirmAction(\'',$ae->textbasic[53],'\')" class="button" />';
  40     echo '<input type="hidden" name="username" value="',$ae->username,'" />';
  41     echo '<input type="hidden" name="session" value="',$ae->session,'" />';
  42     echo '</fieldset>';
  43     echo '</form>';
  44     }
  45  $modules=$ae->RetrieveModules();
  46  foreach ($modules as $key=>$value)
  47          {
  48          $ae->DBQuery("SELECT * FROM ".$ae->table[8]." WHERE directory='".$value["moduledir"]."'");
  49          if ($ae->rowsnumber) unset($modules[$key]);
  50          }
  51  if ($modules)
  52     {
  53     echo '<form method="post" action="modify.php?command=54">';
  54     echo '<fieldset><legend>',$ae->textbasic[35],'</legend>';
  55     echo '<table width="98%">';
  56     echo '<thead>';
  57     echo '<tr>';
  58     echo '<td><h2>',$ae->textbasic[63],'</h2></td>';
  59     echo '<td><h2>',$ae->textbasic[90],'</h2></td>';
  60     echo '</tr>';
  61     echo '</thead>';
  62     echo '<tbody>';
  63     $i=0;
  64     foreach ($modules as $value)
  65             {
  66             $ae->DBQuery("SELECT * FROM ".$ae->table[8]." WHERE directory='".$value["moduledir"]."'");
  67             if ($ae->rowsnumber) continue;
  68             echo '<tr>';
  69             echo '<td><input type="checkbox" name="modules[',$i,']" id="availmodules[',$i,']" value="',$value["moduledir"],'" /> <label for="availmodules[',$i,']">',$value["name"],'</label></td>';
  70             echo '<td>',$value["description"],'</td>';
  71             echo '</tr>';
  72             $i++;
  73             }
  74     echo '</tbody>';
  75     echo '</table>';
  76     echo '<p class="warning"><span>!</span>',$ae->textbasic[118],'<br class="clear" /></p>';
  77     echo '<input type="checkbox" name="leavedb" id="leavedb" value="1" /><label for="leavedb" class="nofloat">',$ae->textbasic[152],'</label><br class="clear" />';
  78     echo '<input type="submit" value="',$ae->textbasic[52],'" class="button" />';
  79     echo '<input type="hidden" name="username" value="',$ae->username,'" />';
  80     echo '<input type="hidden" name="session" value="',$ae->session,'" />';
  81     echo '</fieldset>';
  82     echo '</form>';
  83     }
  84  ?>
  85  </div>
  86  <? @include ("footer.php"); ?>

title

Description

title

Description

title

Description

title

title

Body