index.php 635 B

12345678910111213141516171819202122
  1. <?php
  2. if (cfr('CAP')) {
  3. if (isset($_GET['username'])) {
  4. $login = $_GET['username'];
  5. $alterconfig = $ubillingConfig->getAlter();
  6. if ($alterconfig['CAP_ENABLED']) {
  7. $raskolnikov = new CrimeAndPunishment();
  8. $raskolnikov->setLogin($login);
  9. show_window(__('Crime and punishment'), $raskolnikov->renderReport());
  10. show_window('', web_UserControls($login));
  11. } else {
  12. show_error(__('This module disabled'));
  13. }
  14. } else {
  15. show_error(__('Strange exeption'));
  16. }
  17. } else {
  18. show_error(__('You cant control this module'));
  19. }
  20. ?>