Exemplo n.º 1
0
         } else {
             $studiensemester_kurzbz = $_POST['stsem'];
         }
         $variable->name = 'semester_aktuell';
         $variable->wert = $studiensemester_kurzbz;
     } elseif (isset($_POST['kontofilterstg'])) {
         $variable->name = 'kontofilterstg';
         $variable->wert = $_POST['kontofilterstg'];
     } elseif (isset($_POST['name'])) {
         $variable->name = $_POST['name'];
         $variable->wert = $_POST['wert'];
     } else {
         $error = true;
     }
     if (!$error) {
         if ($variable->save()) {
             $return = true;
             $data = $variable->wert;
         } else {
             $return = false;
             $errormsg = $variable->errormsg;
         }
     } else {
         $return = false;
         $errormsg = 'Falsche Paramenteruebergabe';
     }
 } elseif (isset($_POST['type']) && $_POST['type'] == 'imagedelete') {
     if (isset($_POST['person_id']) && is_numeric($_POST['person_id'])) {
         if ($_POST['studiengang_kz'] != '' && !$rechte->isBerechtigt('admin', $_POST['studiengang_kz'], 'suid') && !$rechte->isBerechtigt('assistenz', $_POST['studiengang_kz'], 'suid') || $_POST['studiengang_kz'] == '' && !$rechte->isBerechtigt('admin', null, 'suid') && !$rechte->isBerechtigt('mitarbeiter', null, 'suid')) {
             $return = false;
             $errormsg = 'Keine Berechtigung';