]> git.mjollnir.org Git - moodle.git/commitdiff
direct access to script forbidden SC#58, merged from MOODLE_14_STABLE
authorskodak <skodak>
Sat, 29 Jan 2005 14:18:45 +0000 (14:18 +0000)
committerskodak <skodak>
Sat, 29 Jan 2005 14:18:45 +0000 (14:18 +0000)
mod/quiz/jsclock.php
mod/quiz/jstimer.php
mod/quiz/view_js.php

index 3929452980bc7e77ae25ea5fe674711dd51b1704..78be59d7ff6eafc9fddfdcc71c5b7f8e9bda35c9 100644 (file)
@@ -1,3 +1,7 @@
+<?php // $Id$\r
+defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');\r
+?>\r
+\r
 <script language="javascript">\r
 <!--\r
 /// This Javascript clock provides a little countdown in the title bar\r
index 473ead64640f48d82218cc8be6045229c72751b3..2dc2ffa2ea1aa13b8407adaf405a572df5982f90 100644 (file)
@@ -3,7 +3,9 @@
 // This will produce a floating timer that counts
 // how much time is left to answer the quiz.
 //
-    ?>
+defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
+?>
+
 <script language="javascript" type="text/javascript">
 <!--
 function send_data() {
index 513d773f7d1f4f67acab47fbf9c05697ba819e95..765e2baa002131eef329af7f8d5acd7525eb7503 100644 (file)
@@ -1,4 +1,4 @@
-<?php
+<?php  // $Id$
 defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
 
 $window = (!empty($quiz->popup)) ? 'quizpopup' : '_self';