index.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. if (cfr('CONDET')) {
  3. $altCfg = $ubillingConfig->getAlter();
  4. if ($altCfg['CONDET_ENABLED']) {
  5. if (wf_CheckGet(array('username'))) {
  6. $login = ubRouting::get('username');
  7. $conDet = new ConnectionDetails();
  8. if (ubRouting::checkPost('editcondet')) {
  9. $conDet->set($login, ubRouting::post('newseal'), ubRouting::post('newlength'), ubRouting::post('newprice'), ubRouting::post('newterm'));
  10. ubRouting::nav($conDet::URL_ME . $login);
  11. }
  12. show_window(__('Edit') . ' ' . __('Connection details'), $conDet->editForm($login));
  13. //additional notes
  14. if ($altCfg['ADCOMMENTS_ENABLED']) {
  15. $adcomments = new ADcomments('CONDET');
  16. show_window(__('Additional comments'), $adcomments->renderComments($login));
  17. }
  18. //default user controls
  19. show_window('', web_UserControls($login));
  20. } else {
  21. show_error(__('Strange exeption'));
  22. }
  23. } else {
  24. show_error(__('This module is disabled'));
  25. }
  26. } else {
  27. show_error(__('Access denied'));
  28. }