Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
  4.  
  5. echo $header;
  6.  
  7. echo '<h1>'.htmlentities($module_information->caption).'</h1>';
  8. echo 'Hier sind alle Datenbanken der Module aufgelistet.<br><br>';
  9.  
  10. wb_draw_table_begin();
  11. $res = db_query("SELECT * FROM `".$WBConfig->getMySQLPrefix()."modules` ORDER BY `id`");
  12. wb_draw_table_content('', '<b>Tabellenname</b>', '', '<b>Modul</b>', '', '<b>Datens&auml;tze</b>', '', '<b>Aktionen</b>');
  13. while ($row = db_fetch($res))
  14. {
  15.         if (isset($only) && ($row['module'] == $only))
  16.         {
  17.                 $s1 = '<span class="red">';
  18.                 $s2 = '</span>';
  19.         }
  20.         else
  21.         {
  22.                 $s1 = '';
  23.                 $s2 = '';
  24.         }
  25.         $ars = db_query("SELECT COUNT(*) AS `ct` FROM `".$WBConfig->getMySQLPrefix().$row['table']."`");
  26.         $arw = db_fetch($ars);
  27.         if (!is_dir('modules/'.$row['module']))
  28.         {
  29.                 $z = ' (Nicht mehr installiert)';
  30.                 $x = 'Tabelle entfernen';
  31.         }
  32.         else
  33.         {
  34.                 $z = '';
  35.                 $x = 'Tabelle neu anlegen';
  36.         }
  37.         wb_draw_table_content('', $s1.$WBConfig->getMySQLPrefix().$row['table'].$s2, '', $s1.$row['module'].$z.$s2, '', $s1.$arw['ct'].$s2, '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?seite=operate&amp;modul='.$modul.'&amp;aktion=delete&amp;id='.$row['id'].'\');" class="menu">'.$x.'</a>');
  38. }
  39. wb_draw_table_end();
  40.  
  41. echo '<b>Schnittstellen</b><ul>';
  42. $welchegefunden = false;
  43. foreach ($modules as $m1 => $m2)
  44. {
  45.         $module_information = WBModuleHandler::get_module_information($m2);
  46.  
  47.         // Nun die Modulcrons laden
  48.         if (file_exists('modules/'.$m2.'/crossover/'.$modul.'/main.inc.php'))
  49.         {
  50.                 include('modules/'.$m2.'/crossover/'.$modul.'/main.inc.php');
  51.                 $welchegefunden = true;
  52.         }
  53. }
  54.  
  55. unset($m1);
  56. unset($m2);
  57.  
  58. if (!$welchegefunden)
  59.         echo '<li>Keine gefunden!</li>';
  60. echo '</ul>';
  61.  
  62. if ((isset($vonmodul)) && (isset($vonseite)) && ($vonmodul != '') && ($vonseite != ''))
  63.         echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.$vonmodul.'&amp;seite='.$vonseite.'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zur&uuml;ck">';
  64.  
  65. echo '<br>';
  66.  
  67. echo $footer;
  68.  
  69. ?>