<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,10 +1,24 @@
 &lt;?php
+/**
+ * Edith configuration
+ */
 
+// root uri to your application
 define('EDITH_URI', '/edith');
+
+// path to the folder which will keep text files of all pages
+// (needs to be read and writeable by the server)
 define('EDITH_DATA_PATH', 'data');
 
-$TEMPLATES = array(
-  'html' =&gt; 'text/html',
-  'txt' =&gt; 'text/plain'
-);
+
+// to handle concurrent access, the edit box uses Google Mobwrite
+// http://code.google.com/p/google-mobwrite/
+// Uncomment the configuration lines to enable Mobwrite
+
+// choose a unique identifier for your application so that Mobwrite can
+// identify all your pages
+# define('MOBWRITE_KEY', 'edith-text');
+
+// to host your own version of Mobwrite, change the following uri
+# define('MOBWRITE_URI', 'http://edith-mobwrite.appspot.com/scripts/q.py');
 </diff>
      <filename>config.php.example</filename>
    </modified>
    <modified>
      <diff>@@ -12,6 +12,12 @@ if (!defined('EDITH_URI'))
 if (!is_dir(EDITH_DATA_PATH))
   die(EDITH_DATA_PATH . &quot; is not a directory&quot;);
 
+// mime types to send for each template
+$TEMPLATES = array(
+  'html' =&gt; 'text/html',
+  'txt' =&gt; 'text/plain'
+);
+
 // include libraries 
 require 'lib/helpers.php';
 require 'lib/page.class.php';</diff>
      <filename>index.php</filename>
    </modified>
    <modified>
      <diff>@@ -17,9 +17,14 @@
       &lt;input type=&quot;submit&quot; id=&quot;submit&quot; /&gt;
     &lt;/p&gt;
   &lt;/form&gt;
+
+&lt;?php if (defined('MOBWRITE_URI') and define('MOBWRITE_KEY')
+    and MOBWRITE_URI and MOBWRITE_KEY) : ?&gt;
   &lt;script type=&quot;text/javascript&quot;&gt;
-  mobwrite.syncGateway='http://edith-mobwrite.appspot.com/scripts/q.py';
-  mobwrite.share('edith-text-&lt;?php echo $page-&gt;name ?&gt;')
+    mobwrite.syncGateway='&lt;?php echo h(MOBWRITE_URI) ?&gt;';
+    mobwrite.share('&lt;?php echo MOBWRITE_KEY.'-'.$page-&gt;name ?&gt;')
   &lt;/script&gt;
+&lt;?php endif; ?&gt;
+
 &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>templates/default.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>366ea61686fa019a739f26e1a11684c1b7a17a15</id>
    </parent>
  </parents>
  <author>
    <name>Sunny Ripert</name>
    <email>negatif@gmail.com</email>
  </author>
  <url>http://github.com/sunny/edith/commit/b4a1f185debc19116962474938cda69cf0f613ed</url>
  <id>b4a1f185debc19116962474938cda69cf0f613ed</id>
  <committed-date>2009-03-08T00:13:18-08:00</committed-date>
  <authored-date>2009-03-08T00:13:18-08:00</authored-date>
  <message>Added comments and Mobwrite options in config.php</message>
  <tree>8d6fa48cbed4ecde79212f0a362b78e30744b792</tree>
  <committer>
    <name>Sunny Ripert</name>
    <email>negatif@gmail.com</email>
  </committer>
</commit>
