uganka.gif

Miselnice

Pravi okus vode spoznamo šele v puščavi.
(Judovski pregovor)

* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * This version may have been modified pursuant to the GNU General Public * License, and as distributed it includes or is derivative of works licensed * under the GNU General Public License or other free or open source software * licenses. See COPYRIGHT.php for copyright notices and details. */ function quizMimeTypeIsMediaFile( $mimeType ) { static $mediaMimeTypes = array( 'image/jpeg', 'image/gif', 'image/png', 'image/bmp', 'image/tiff', 'application/x-shockwave-flash', 'application/pdf', 'application/msword', 'application/ms-excel', 'application/ms-powerpoint', 'text/html', 'text/plain', 'video/mpeg', 'video/quicktime', 'video/x-ms-asf', 'video/x-ms-wmv', 'video/x-msvideo', 'audio/mpeg', 'audio/x-pn-realaudio', 'audio/x-realaudio', 'audio/x-wav', 'audio/x-ms-wma', 'audio/midi', 'application/ogg' ); if( in_array( $mimeType, $mediaMimeTypes ) ) { return true; } else { return false; } } function quizGuessMimeType( $file ) { static $fileTypesToMimeTypes = array( '.png' => 'image/png', '.gif' => 'image/gif', '.jpg' => 'image/jpeg', '.jpe' => 'image/jpeg', '.jpeg' => 'image/jpeg', '.bmp' => 'image/bmp', '.tif' => 'image/tiff', '.tiff' => 'image/tiff', '.swf' => 'application/x-shockwave-flash', '.pdf' => 'application/pdf', '.doc' => 'application/msword', '.xls' => 'application/ms-excel', '.ppt' => 'application/ms-powerpoint', '.htm' => 'text/html', '.html' => 'text/html', '.txt' => 'text/plain', '.asc' => 'text/plain', '.mpg' => 'video/mpeg', '.mpeg' => 'video/mpeg', '.mov' => 'video/quicktime', '.asf' => 'video/x-ms-asf', '.wmv' => 'video/x-ms-wmv', '.avi' => 'video/x-msvideo', '.mp2' => 'audio/mpeg', '.mp3' => 'audio/mpeg', '.ra' => 'audio/x-pn-realaudio', '.ram' => 'audio/x-realaudio', '.wav' => 'audio/x-wav', '.wma' => 'audio/x-ms-wma', '.mid' => 'audio/midi', '.ogg' => 'application/ogg' ); $mimeType = false; /* if( function_exists( 'mime_content_type' ) ) { $mimeType = mime_content_type( $file ); } */ // Function doesn't exist, or MIME type couldn't be identified by the // MIME magic system. if( $mimeType == false ) { $suffix = strtolower( substr( $file, strrpos( strtolower( $file ), '.' ) ) ); if( array_key_exists( $suffix, $fileTypesToMimeTypes ) ) { $mimeType = $fileTypesToMimeTypes[ $suffix ]; } } return $mimeType === false ? '' : $mimeType; } ?>

title; ?>

$debug

\n" ); var_dump( $debug ); } if( $page ) { ?>

numquestions; ?>

' . $question->question . ''; echo '

'; print( quiz_HTML::insertQuizMedia( $question->attachment ) ); echo '
'; } else { echo '' . $quiz->introduction . ''; echo '
'; $quizAttachment = $quiz->attachment; print( quiz_HTML::insertQuizMedia( $quiz->attachment ) ); echo '
'; } ?>

id; $text = $answer->answer; $attach = $answer->attachment; $answerList[ ] = quiz_HTML::makeOption( $value, $text, $attach ); } if( $type == 'multiple' ) { // Display as checkboxes. echo quiz_HTML::addBoxList( $answerList, "quiz_a_", "" ); } else { // Display as radio buttons. echo quiz_HTML::addRadioList( $answerList, "quiz_a_", "" ); } } ?>
minimum; $max = $question->maximum; } ?> This quiz has not been properly configured.