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. $count_ds = 0;
  8. $count_o = 0;
  9.  
  10. foreach ($tables_modules as $m1 => $m2)
  11. {
  12.         if (isset($tables_database[$m1]['user_cnid']))
  13.         {
  14.                 $res = db_query("SELECT COUNT(`id`) AS `cid` FROM `$m1` WHERE `user_cnid` = '".$benutzer['id']."'");
  15.                 $row = db_fetch($res);
  16.                 if ($m2 == 'folders')
  17.                         $count_o += $row['cid'];
  18.                 else
  19.                         $count_ds += $row['cid'];
  20.         }
  21. }
  22.  
  23. unset($m1);
  24. unset($m2);
  25.  
  26.  
  27. echo '<h1>'.htmlentities($module_information->caption).'</h1>';
  28.  
  29. echo '<span style="font-size:1.2em"><b>Kundendaten</b></span><br><br>';
  30. wb_draw_table_begin();
  31. wb_draw_table_content('40%', '<b>Kontoname</b>', '60%', $wb_user_username);
  32. wb_draw_table_content('40%', '<b>Anmeldeserver</b>', '60%', $WBConfig->getMySQLServer());
  33. wb_draw_table_content('40%', '<b>Eigent&uuml;mer</b>', '60%', $benutzer['personal_name']);
  34.  
  35. if ($benutzer['email'] != '')
  36.         $mail_address = '<a href="mailto:'.$benutzer['email'].'" class="menu">'.$benutzer['email'].'</a>';
  37. else
  38.         $mail_address = 'Keine E-Mail-Adresse angegeben';
  39.  
  40. wb_draw_table_content('40%', '<b>E-Mail-Adresse</b>', '60%', $mail_address);
  41. wb_draw_table_end();
  42. echo '<span style="font-size:1.2em"><b>Datenbankereignisse</b></span><br><br>';
  43. wb_draw_table_begin();
  44.  
  45. foreach ($modules as $m1 => $m2)
  46. {
  47.         $module_information = WBModuleHandler::get_module_information($m2);
  48.  
  49.         if (file_exists('modules/'.$m2.'/crossover/'.$modul.'/main.inc.php'))
  50.                 include 'modules/'.$m2.'/crossover/'.$modul.'/main.inc.php';
  51. }
  52.  
  53. unset($m1);
  54. unset($m2);
  55.  
  56. wb_draw_table_end();
  57. echo '<span style="font-size:1.2em"><b>Datenbankstatistik</b></span><br><br>';
  58. wb_draw_table_begin();
  59. wb_draw_table_content('40%', '<b>Erstellung der Datenbank</b>', '60%', de_convertmysqldatetime($benutzer['created_database']));
  60.  
  61. wb_draw_table_content('40%', '<b>Letzter Login</b>', '60%', de_convertmysqldatetime($_SESSION['last_login']));
  62.  
  63. if ($_SESSION['last_login_ip'] == '')
  64.         $ueip = 'Unbekannt';
  65. else
  66.         $ueip = '<a href="'.ip_tracer($_SESSION['last_login_ip']).'" target="_blank" class="menu">'.$_SESSION['last_login_ip'].'</a> (DNS: '.@gethostbyaddr($_SESSION['last_login_ip']).')';
  67.  
  68. wb_draw_table_content('40%', '<b>&Uuml;ber IP</b>', '60%', $ueip);
  69. wb_draw_table_content('40%', '<b>Datens&auml;tze der Datenbank</b>', '60%', $count_ds);
  70. wb_draw_table_content('40%', '<b>Ordner der Datenbank</b>', '60%', $count_o);
  71. wb_draw_table_end();
  72.  
  73. echo '<span style="font-size:1.2em"><b>Installierte Module</b></span><br><br>';
  74.  
  75.                 $i = -1;
  76.                 foreach ($modules as $m1 => $m2)
  77.                 {
  78.                         if (file_exists('modules/'.$m2.'/page/main.inc.php'))
  79.                         {
  80.                                 $module_information = WBModuleHandler::get_module_information($m2);
  81.  
  82.                                 if (($module_information->rights == 0) && ($module_information->menu_visible) && ($modul != $m2))
  83.                                 {
  84.                                         $i++;
  85.  
  86.                                         if ($i == 0)
  87.                                         echo '<center><table cellspacing="6" cellpadding="6" border="0" width="90%"><tr>';
  88.  
  89.                                         if (($i % 7 == 0) && ($i != 0))
  90.                                         echo '</tr><tr>';
  91.  
  92.                                         echo '<td valign="middle" align="center" width="14%">';
  93.  
  94.                                         if (file_exists('modules/'.$m2.'/images/menu/32.gif'))
  95.                                                 $g = 'modules/'.$m2.'/images/menu/32.gif';
  96.                                         else if (file_exists('modules/'.$m2.'/images/menu/32.png'))
  97.                                                 $g = 'modules/'.$m2.'/images/menu/32.png';
  98.                                         else
  99.                                                 $g = 'designs/spacer.gif';
  100.  
  101.                                         echo '<a href="'.oop_link_to_modul($m2).'" class="menu">';
  102.                                         echo '<img src="'.$g.'" border="0" width="32" height="32" alt="">';
  103.                                         echo '<br>'.htmlentities($module_information->caption).'</a></td>';
  104.                                 }
  105.                         }
  106.                 }
  107.  
  108.                 unset($m1);
  109.                 unset($m2);
  110.  
  111.                 if ($i > -1)
  112.                 {
  113.                         $i++;
  114.                         for (;$i%7<>0;$i++)
  115.                         {
  116.                                 echo '<td valign="middle" align="center"><img src="designs/spacer.gif" width="32" height="32" alt=""></td>';
  117.                         }
  118.                         echo '</tr></table><br></center>';
  119.                 }
  120.                 else
  121.         echo 'Keine entsprechenden Module gefunden!<br><br>';
  122.  
  123. echo $footer;
  124.  
  125. ?>