Example #1
0
         $curr->UpdateCurrs();
     } catch (Exception $e) {
         Page::$messages[] = array('type' => 'attention', 'message' => 'Fatal error catched during update. Error dump: ' . nl2br($e));
         Page::message();
     }
     Page::ManageCurrencies();
     break;
 case 'addnotifytemplate':
     $nt = NotifyTemplate::getInstance();
     $nt->Create($_POST);
     Page::ManageNotifyTemplates();
     break;
 case 'editnotifytemplate':
     $nt = NotifyTemplate::getInstance();
     $nt->BatchUpdate($_POST, $_REQUEST['ntid']);
     Page::EditNotifyTemplate($_REQUEST['ntid']);
     break;
 case 'delnotifytemplate':
     $nt = NotifyTemplate::getInstance();
     $nt->Delete($_REQUEST['ntid']);
     Page::ManageNotifyTemplates();
     break;
 case 'activatentmodule':
     $nm = NotificationModule::getInstance();
     $name = $_POST['modulename'] . 'notifymodule';
     if (!class_exists($name)) {
         throw new Exception("Module doesnt exists");
     }
     $module = $name::getInstance();
     $moduleinfo = $module->Info();
     $nm->Create(array('name' => $_POST['modulename'], 'shortname' => $moduleinfo['shortname']));