diff --git a/cis/testtool/admin/.htaccess b/cis/testtool/admin/.htaccess new file mode 100644 index 000000000..4b08b946e --- /dev/null +++ b/cis/testtool/admin/.htaccess @@ -0,0 +1,10 @@ +AuthName "Technikum-Wien" +AuthType Basic +AuthLDAPURL ldap://ldap.technikum-wien.at/ou=People,dc=technikum-wien,dc=at?uid?one?objectclass=posixAccount +AuthLDAPGroupAttributeIsDN Off +AuthLDAPGroupAttribute memberuid +require group cn=fhadmin,ou=Group,dc=technikum-wien,dc=at +require group cn=hadesadm,ou=Group,dc=technikum-wien,dc=at +require user tw01e061 +require user masik +require user dpt \ No newline at end of file diff --git a/cis/testtool/admin/edit_gebiet.php b/cis/testtool/admin/edit_gebiet.php index 989253fd9..8edeb0349 100644 --- a/cis/testtool/admin/edit_gebiet.php +++ b/cis/testtool/admin/edit_gebiet.php @@ -106,6 +106,7 @@ if(isset($_POST['speichern'])) $gebiet->level_sprung_ab = $_POST['level_sprung_ab']; $gebiet->updateamum = date('Y-m-d H:i:s'); $gebiet->updatevon = $user; + $gebiet->antwortenprozeile = $_POST['antwortenprozeile']; if($gebiet->save(false)) { @@ -163,6 +164,8 @@ if($gebiet_id!='') echo ''; echo 'Maximale Fragenanzahl'; echo ''; + echo 'Antworten pro Zeile'; + echo ''; echo 'Start Level'; echo ''; echo 'Richtige Fragen bis Levelaufstieg'; diff --git a/cis/testtool/frage.php b/cis/testtool/frage.php index 70f69dc92..0697d3c23 100644 --- a/cis/testtool/frage.php +++ b/cis/testtool/frage.php @@ -51,7 +51,7 @@ if(isset($_GET['frage_id'])) else $frage_id = ''; -$MAX_VORSCHLAEGE_PRO_ZEILE=4; +//$MAX_VORSCHLAEGE_PRO_ZEILE=4; ?> @@ -440,7 +440,7 @@ if($frage->frage_id!='') echo ""; $anzahl++; - if($anzahl>$MAX_VORSCHLAEGE_PRO_ZEILE) + if($anzahl>$gebiet->antwortenprozeile) { echo ''; $anzahl=1;