if ($page_sub2 == 'add') { if (!PRO_MODE) { header('Location: ?p=organizations/organization/edit'); } } /* Add */ if (isset($_POST['addOrganization'])) { $lethe = new lethe(); $lethe->addOrganization(); $errText = $lethe->errPrint; } /* Edit */ if (isset($_POST['editOrganization'])) { $lethe = new lethe(); $lethe->OID = LETHE_AUTH_MODE != 2 ? set_org_id : $ID; $lethe->editOrganization(); $errText = $lethe->errPrint; } $pg_nav_buts = '<div class="nav-buts"> <a href="?p=organizations/organization" class="btn btn-primary">' . letheglobal_list . '</a> </div> '; ?> <?php if ($page_sub2 == '') { #List /* Super Admin Check */ if (LETHE_AUTH_MODE != 2) { header('Location: ?p=organizations/organization/edit'); }