<?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>@@ -6,7 +6,7 @@ html, body {
   height:100%;
 }
 textarea {
-  font:1.1em Lucida Grande, Helvetica, Arial, sans-serif;
+  font:1.1em Inconsolata, Consolas, &quot;Deja Vu Sans Mono&quot;, &quot;Droid Sans Mono&quot;, Monaco, &quot;Andale Mono&quot;, Courier, monospace;
   position:absolute;
   display:block;
   margin:1%;
@@ -19,4 +19,4 @@ textarea {
   position:absolute;
   bottom:1ex;
   right:1ex;
-}
\ No newline at end of file
+}</diff>
      <filename>public/style.css</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>dee333bac439a4fe1fe793a8e73f6b260bc9397b</id>
    </parent>
    <parent>
      <id>538e0181740df70db870e70a8b7ba00d2eb72abc</id>
    </parent>
  </parents>
  <author>
    <name>Sunny</name>
    <email>negatif@gmail.com</email>
  </author>
  <url>http://github.com/sunny/edith/commit/aa5d18ef5b565bdfed8d489e408197d83cbd248a</url>
  <id>aa5d18ef5b565bdfed8d489e408197d83cbd248a</id>
  <committed-date>2009-06-07T06:49:17-07:00</committed-date>
  <authored-date>2009-06-07T06:49:17-07:00</authored-date>
  <message>Merge branch 'master' of git@github.com:sunny/edith</message>
  <tree>e12c53d343fde5df0b4aa4f7db7219e674bedb4d</tree>
  <committer>
    <name>Sunny</name>
    <email>negatif@gmail.com</email>
  </committer>
</commit>
