<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,6 +12,11 @@
  *   http://www.appelsiini.net/projects/funky_cache
  *
  */
+ 
+/* Prevent direct access. */
+if (!defined(&quot;FRAMEWORK_STARTING_MICROTIME&quot;)) {
+    die(&quot;All your base are belong to us!&quot;);
+}
 
 $PDO = Record::getConnection();
 </diff>
      <filename>disable.php</filename>
    </modified>
    <modified>
      <diff>@@ -13,6 +13,11 @@
  *
  */
  
+/* Prevent direct access. */
+if (!defined(&quot;FRAMEWORK_STARTING_MICROTIME&quot;)) {
+    die(&quot;All your base are belong to us!&quot;);
+}
+ 
 $PDO = Record::getConnection();
 
 $table = TABLE_PREFIX . &quot;setting&quot;;</diff>
      <filename>enable.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9c2e6b404002d8019f68038238e43e2068173721</id>
    </parent>
  </parents>
  <author>
    <name>Mika Tuupola</name>
    <email>tuupola@appelsiini.net</email>
  </author>
  <url>http://github.com/tuupola/frog_funky_cache/commit/dac2939527c5cec8d45cd9f585ce6788de47fd41</url>
  <id>dac2939527c5cec8d45cd9f585ce6788de47fd41</id>
  <committed-date>2009-04-27T07:06:24-07:00</committed-date>
  <authored-date>2009-04-27T07:06:24-07:00</authored-date>
  <message>Prevent direct access to enable and disable scripts.

Although it usually fails because of missing librarires malicous user can still access enable and disable PHP script via direct URL:

http://www.example.com/frog/plugins/dashboard/enable.php
http://www.example.com/frog/plugins/dashboard/disable.php</message>
  <tree>8f7aab2e61d61a6f3dbd679661c4448d989e4997</tree>
  <committer>
    <name>Mika Tuupola</name>
    <email>tuupola@appelsiini.net</email>
  </committer>
</commit>
