-- MySQL dump 10.11
--
-- Host: localhost    Database: wikidb
-- ------------------------------------------------------
-- Server version	5.0.77

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `archive`
--

DROP TABLE IF EXISTS `archive`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `archive` (
  `ar_id` int(4) unsigned NOT NULL auto_increment,
  `ar_namespace` tinyint(2) unsigned NOT NULL default '0',
  `ar_title` varchar(255) NOT NULL default '',
  `ar_text` mediumtext NOT NULL,
  `ar_comment` tinyblob NOT NULL,
  `ar_user` int(5) unsigned NOT NULL default '0',
  `ar_timestamp` varchar(14) NOT NULL default '',
  `ar_minor_edit` tinyint(1) NOT NULL default '0',
  `ar_last_page_id` int(8) unsigned NOT NULL default '0',
  `ar_old_id` int(8) unsigned NOT NULL default '0',
  `ar_content_type` varchar(255) NOT NULL default 'application/x.deki-text',
  `ar_language` varchar(10) NOT NULL default '',
  `ar_display_name` varchar(255) NOT NULL,
  `ar_transaction_id` int(4) unsigned NOT NULL default '0',
  `ar_is_hidden` tinyint(3) unsigned NOT NULL default '0',
  `ar_meta` text,
  `ar_revision` int(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (`ar_id`),
  KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`),
  KEY `ar_last_page_id` (`ar_last_page_id`),
  KEY `ar_transaction_id` (`ar_transaction_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `archive`
--

LOCK TABLES `archive` WRITE;
/*!40000 ALTER TABLE `archive` DISABLE KEYS */;
/*!40000 ALTER TABLE `archive` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `banips`
--

DROP TABLE IF EXISTS `banips`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `banips` (
  `banip_id` int(10) unsigned NOT NULL auto_increment,
  `banip_ipaddress` varchar(15) default NULL,
  `banip_ban_id` int(4) unsigned NOT NULL,
  PRIMARY KEY  (`banip_id`),
  KEY `banip_ipaddress` (`banip_ipaddress`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `banips`
--

LOCK TABLES `banips` WRITE;
/*!40000 ALTER TABLE `banips` DISABLE KEYS */;
/*!40000 ALTER TABLE `banips` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bans`
--

DROP TABLE IF EXISTS `bans`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `bans` (
  `ban_id` int(4) unsigned NOT NULL auto_increment,
  `ban_by_user_id` int(4) unsigned NOT NULL,
  `ban_expires` datetime default NULL,
  `ban_reason` text,
  `ban_revokemask` bigint(8) unsigned NOT NULL,
  `ban_last_edit` datetime default NULL,
  PRIMARY KEY  (`ban_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `bans`
--

LOCK TABLES `bans` WRITE;
/*!40000 ALTER TABLE `bans` DISABLE KEYS */;
/*!40000 ALTER TABLE `bans` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `banusers`
--

DROP TABLE IF EXISTS `banusers`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `banusers` (
  `banuser_id` int(4) unsigned NOT NULL auto_increment,
  `banuser_user_id` int(4) unsigned NOT NULL,
  `banuser_ban_id` int(4) unsigned NOT NULL,
  UNIQUE KEY `banuser_id` (`banuser_id`),
  KEY `banuser_user_id` (`banuser_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `banusers`
--

LOCK TABLES `banusers` WRITE;
/*!40000 ALTER TABLE `banusers` DISABLE KEYS */;
/*!40000 ALTER TABLE `banusers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `brokenlinks`
--

DROP TABLE IF EXISTS `brokenlinks`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `brokenlinks` (
  `bl_from` int(8) unsigned NOT NULL default '0',
  `bl_to` varchar(255) NOT NULL default '',
  UNIQUE KEY `bl_from` (`bl_from`,`bl_to`),
  KEY `bl_to` (`bl_to`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `brokenlinks`
--

LOCK TABLES `brokenlinks` WRITE;
/*!40000 ALTER TABLE `brokenlinks` DISABLE KEYS */;
INSERT INTO `brokenlinks` VALUES (92,'Special:UserRegistration');
/*!40000 ALTER TABLE `brokenlinks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `comments`
--

DROP TABLE IF EXISTS `comments`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `comments` (
  `cmnt_id` int(8) unsigned NOT NULL auto_increment,
  `cmnt_page_id` int(8) unsigned NOT NULL,
  `cmnt_number` int(2) unsigned NOT NULL,
  `cmnt_poster_user_id` int(4) unsigned NOT NULL,
  `cmnt_create_date` timestamp NOT NULL default CURRENT_TIMESTAMP,
  `cmnt_last_edit` timestamp NULL default NULL,
  `cmnt_last_edit_user_id` int(4) unsigned default NULL,
  `cmnt_content` text NOT NULL,
  `cmnt_content_mimetype` varchar(25) NOT NULL,
  `cmnt_title` varchar(50) default NULL,
  `cmnt_deleter_user_id` int(8) unsigned default NULL,
  `cmnt_delete_date` timestamp NULL default NULL,
  PRIMARY KEY  (`cmnt_id`),
  UNIQUE KEY `pageid_number` (`cmnt_page_id`,`cmnt_number`),
  KEY `cmnt_poster_user_id` (`cmnt_poster_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `comments`
--

LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `config`
--

DROP TABLE IF EXISTS `config`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `config` (
  `config_id` int(10) unsigned NOT NULL auto_increment,
  `config_key` varchar(255) NOT NULL,
  `config_value` text NOT NULL,
  PRIMARY KEY  (`config_id`),
  KEY `config_key` (`config_key`)
) ENGINE=MyISAM AUTO_INCREMENT=123 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `config`
--

LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (51,'languages','en,ar,ca,cs,de,el,es,fa,fi,fr,he,hr,hu,it,ja,ka,ko,nl,pl,pt,ro,ru,th,tr,uk,vi,zh-cn,zh-tw'),(77,'@id','default'),(78,'admin',''),(79,'admin/email','lorchard@mozilla.com'),(80,'api',''),(81,'api/@href','http://developer-mdndev.mozilla.org/@api/deki'),(82,'cache',''),(83,'cache/master','request'),(84,'db-catalog','wikidb'),(85,'db-options','pooling=true; Connection Timeout=5; Connection Lifetime=30; Protocol=socket; Min Pool Size=2; Max Pool Size=50; Connection Reset=false;character set=utf8;ProcedureCacheSize=25;Use Procedure Bodies=true;'),(86,'db-port','3306'),(87,'db-server','localhost'),(88,'db-user','wikiuser'),(89,'editor',''),(90,'editor/safe-html','true'),(91,'files',''),(92,'files/blocked-extensions','html, htm, exe, vbs, scr, reg, bat, com, htm, html, xhtml'),(93,'files/force-text-extensions','htm, html, xhtml, bat, reg, sh'),(94,'files/imagemagick-extensions','bmp, jpg, jpeg, png, gif'),(95,'files/imagemagick-max-size','2000000'),(96,'files/max-file-size','268435456'),(97,'files/whitelisted-disposition-mimetypes','text/plain, text/xml, application/xml, application/pdf, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.text, application/x-shockwave-flash'),(98,'host','*'),(99,'instance',''),(100,'license',''),(101,'license/productkey','4B8285AE06F9BB86A355B4D00AB31F92'),(102,'security',''),(103,'security/admin-user-for-impersonation','Admin'),(104,'security/allow-anon-account-creation','true'),(105,'security/cookie-expire-secs','604800'),(106,'security/new-account-role','Contributor'),(107,'services',''),(108,'services/luceneindex','http://developer-mdndev.mozilla.org/@api/deki/luceneindex'),(109,'services/mailer','http://developer-mdndev.mozilla.org/@api/deki/mailer'),(110,'services/packageupdater','http://developer-mdndev.mozilla.org/@api/deki/packageupdater'),(111,'services/pagesubscription','http://developer-mdndev.mozilla.org/@api/deki/pagesubservice'),(112,'storage',''),(113,'storage/fs',''),(114,'storage/fs/path','/var/www/dekiwiki/attachments'),(115,'storage/type','fs'),(116,'ui',''),(117,'ui/analytics-key','UA-68075-16'),(118,'ui/language','en-us'),(119,'ui/sitename','MDN'),(120,'ui/skin','Transitional'),(121,'ui/template','mdn'),(122,'ui/user-dashboards','Template:MindTouch/Views/ActivityDashboard, user_page');
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `group_grants`
--

DROP TABLE IF EXISTS `group_grants`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `group_grants` (
  `group_grant_id` int(10) unsigned NOT NULL auto_increment,
  `page_id` int(10) unsigned NOT NULL,
  `group_id` int(10) unsigned NOT NULL,
  `role_id` int(4) unsigned NOT NULL,
  `creator_user_id` int(10) unsigned NOT NULL,
  `expire_date` datetime default NULL,
  `last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`group_grant_id`),
  UNIQUE KEY `page_id` (`page_id`,`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `group_grants`
--

LOCK TABLES `group_grants` WRITE;
/*!40000 ALTER TABLE `group_grants` DISABLE KEYS */;
/*!40000 ALTER TABLE `group_grants` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `groups`
--

DROP TABLE IF EXISTS `groups`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `groups` (
  `group_id` int(10) unsigned NOT NULL auto_increment,
  `group_name` varchar(255) NOT NULL,
  `group_role_id` int(4) unsigned NOT NULL,
  `group_service_id` int(4) unsigned NOT NULL,
  `group_creator_user_id` int(10) unsigned NOT NULL default '0',
  `group_last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`group_id`),
  UNIQUE KEY `group_name` (`group_name`,`group_service_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `groups`
--

LOCK TABLES `groups` WRITE;
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `links`
--

DROP TABLE IF EXISTS `links`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `links` (
  `l_from` int(8) unsigned NOT NULL default '0',
  `l_to` int(8) unsigned NOT NULL default '0',
  UNIQUE KEY `l_from` (`l_from`,`l_to`),
  KEY `l_to` (`l_to`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `links`
--

LOCK TABLES `links` WRITE;
/*!40000 ALTER TABLE `links` DISABLE KEYS */;
/*!40000 ALTER TABLE `links` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `old`
--

DROP TABLE IF EXISTS `old`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `old` (
  `old_id` int(8) unsigned NOT NULL auto_increment,
  `old_text` mediumtext NOT NULL,
  `old_comment` tinyblob NOT NULL,
  `old_user` int(5) unsigned NOT NULL default '0',
  `old_timestamp` varchar(14) NOT NULL default '',
  `old_minor_edit` tinyint(1) NOT NULL default '0',
  `old_content_type` varchar(255) NOT NULL default 'application/x.deki-text',
  `old_language` varchar(10) NOT NULL default '',
  `old_display_name` varchar(255) NOT NULL,
  `old_is_hidden` tinyint(3) unsigned NOT NULL default '0',
  `old_meta` text,
  `old_revision` int(8) unsigned NOT NULL default '0',
  `old_page_id` int(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (`old_id`),
  UNIQUE KEY `old_page` (`old_page_id`,`old_revision`),
  KEY `old_user` (`old_user`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `old`
--

LOCK TABLES `old` WRITE;
/*!40000 ALTER TABLE `old` DISABLE KEYS */;
INSERT INTO `old` VALUES (1,'<h2>Welcome to MindTouch</h2><pre class=\"script\">if (user.admin) {	mt_admin_tabs();} else {	mt_user_tabs(); } </pre>','',1,'20071103195811',0,'application/x.deki-text','','MDN',0,NULL,1,22);
/*!40000 ALTER TABLE `old` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `page_viewcount`
--

DROP TABLE IF EXISTS `page_viewcount`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `page_viewcount` (
  `page_id` int(8) unsigned NOT NULL,
  `page_counter` bigint(20) unsigned NOT NULL default '0',
  PRIMARY KEY  (`page_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `page_viewcount`
--

LOCK TABLES `page_viewcount` WRITE;
/*!40000 ALTER TABLE `page_viewcount` DISABLE KEYS */;
INSERT INTO `page_viewcount` VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,1),(11,1),(12,1),(13,1),(14,1),(15,1),(16,1),(17,1),(18,1),(19,3),(20,3),(21,3),(22,12),(23,3),(24,3),(25,3),(26,3),(27,3),(28,3),(29,3),(30,3),(31,3),(32,3),(33,3),(34,3),(35,3),(36,3),(37,3),(38,4),(39,1),(40,8),(41,8),(42,8),(43,8),(44,8),(45,9),(46,9),(47,9),(48,9),(49,9),(50,9),(51,9),(52,9),(53,9),(54,9),(55,9),(56,9),(57,9),(58,9),(59,9),(60,9),(61,9),(62,9),(63,12),(64,9),(65,9),(66,9),(67,9),(68,9),(69,9),(70,9),(71,9),(72,9),(73,9),(74,9),(75,9),(76,9),(77,9),(78,9),(79,9),(80,9),(81,9),(82,9),(83,9),(84,4),(85,9),(86,12),(87,9),(88,9),(89,9),(90,9),(91,9),(92,9),(93,9);
/*!40000 ALTER TABLE `page_viewcount` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pages`
--

DROP TABLE IF EXISTS `pages`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pages` (
  `page_id` int(8) unsigned NOT NULL auto_increment,
  `page_namespace` tinyint(2) unsigned NOT NULL default '0',
  `page_title` varchar(255) NOT NULL,
  `page_text` mediumtext NOT NULL,
  `page_comment` blob NOT NULL,
  `page_user_id` int(10) unsigned NOT NULL default '0',
  `page_timestamp` varchar(14) NOT NULL,
  `page_counter` bigint(20) unsigned NOT NULL default '0',
  `page_is_redirect` tinyint(1) unsigned NOT NULL default '0',
  `page_minor_edit` tinyint(1) unsigned NOT NULL default '0',
  `page_is_new` tinyint(1) unsigned NOT NULL default '0',
  `page_touched` varchar(14) NOT NULL,
  `page_usecache` tinyint(1) unsigned NOT NULL default '1',
  `page_toc` blob NOT NULL,
  `page_tip` text NOT NULL,
  `page_parent` int(8) NOT NULL default '0',
  `page_restriction_id` int(4) unsigned NOT NULL,
  `page_content_type` varchar(255) NOT NULL default 'application/x.deki-text',
  `page_language` varchar(10) NOT NULL default '',
  `page_display_name` varchar(255) NOT NULL,
  `page_template_id` int(8) unsigned default NULL,
  `page_is_hidden` tinyint(3) unsigned NOT NULL default '0',
  `page_meta` text,
  `page_revision` int(8) unsigned NOT NULL default '1',
  `page_etag` varchar(32) NOT NULL default '',
  PRIMARY KEY  (`page_id`),
  UNIQUE KEY `name_title` (`page_namespace`,`page_title`),
  KEY `page_title` (`page_title`(20)),
  KEY `page_timestamp` (`page_timestamp`),
  KEY `page_parent` (`page_parent`),
  KEY `namespace_redirect_timestamp` (`page_namespace`,`page_is_redirect`,`page_timestamp`),
  KEY `page_user_id` (`page_user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=94 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `pages`
--

LOCK TABLES `pages` WRITE;
/*!40000 ALTER TABLE `pages` DISABLE KEYS */;
INSERT INTO `pages` VALUES (1,101,'Userlogin','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Userlogin',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(2,101,'Userlogout','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Userlogout',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(3,101,'Preferences','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Preferences',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(4,101,'Watchedpages','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Watchedpages',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(5,101,'Recentchanges','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Recentchanges',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(6,101,'Listusers','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Listusers',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(7,101,'ListTemplates','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:ListTemplates',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(8,101,'ListRss','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:ListRss',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(9,101,'Search','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Search',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(10,101,'Sitemap','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Sitemap',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(11,101,'Contributions','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Contributions',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(12,101,'Undelete','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Undelete',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(13,101,'Popularpages','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Popularpages',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(14,101,'Watchlist','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Watchlist',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(15,101,'About','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:About',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(16,101,'Statistics','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Statistics',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(17,101,'Tags','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Tags',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(18,101,'Events','','',0,'',0,0,0,0,'',1,'','Special page',0,0,'text/plain','','Special:Events',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(19,2,'','User page','',0,'',0,0,0,0,'',1,'','Admin page',0,0,'text/plain','','User:',NULL,0,NULL,1,'019d3a9016bc113135b655858ecbbcfa'),(20,10,'','','',0,'',0,0,0,0,'',1,'','Template page',0,0,'text/plain','','Template:',NULL,0,NULL,1,'d41d8cd98f00b204e9800998ecf8427e'),(21,10,'MindTouch_UserWelcome','<pre class=\"script\">\r\n // check if user is looking at their own page\r\n if (wiki.getuser(user.id).uri == page.uri) {\r\n &lt;style type=&quot;text/css&quot;&gt;&quot;\r\n #user-welcome h2 {\r\n font-family: Arial, sans-serif;\r\n border: none;\r\n color: #454545;\r\n font-size: 25px;\r\n font-weight: normal;\r\n line-height: 30px;\r\n margin: 20px 0;\r\n }\r\n #user-welcome h4 {\r\n font-family: Verdana, Arial, Helvetica, sans-serif;\r\n font-size: 18px;\r\n line-height: 28px;\r\n margin-bottom: 10px;\r\n margin-top: 0;\r\n color: #454545;\r\n }\r\n #user-welcome .share {\r\n font-weight: bold;\r\n font-size: 14px;\r\n line-height: 20px;\r\n color: #666666;\r\n }\r\n #user-welcome-header {\r\n border: 2px solid #c4e1ed;\r\n background: #d1e8f0 url(/skins/common/images/oobe/mt-bg-user-welcome.png) repeat-x scroll center top;\r\n margin-top: 20px;\r\n padding: 25px;\r\n }\r\n #user-welcome-signup {\r\n font-family:Arial, Helvetica, sans-serif;\r\n margin: 0;\r\n pad ding: 35px 40px 20px 40px;\r\n font-size: 18px;\r\n line-height: 28px;\r\n }\r\n #user-welcome-signup a {\r\n color: #bc0d0d;\r\n }\r\n #user-welcome-signup a:hover {\r\n color: #d70808;\r\n }\r\n #user-welcome-more {\r\n padding: 25px;\r\n }\r\n #user-welcome ul li {\r\n padding: 0;\r\n margin: 0 0 14px;\r\n }\r\n &quot;&lt;/style&gt;\r\n \r\n &lt;div id=&quot;user-welcome&quot;&gt;\r\n &lt;h2&gt;\r\n wiki.localize(\'MindTouch.Templates.userwelcome\', [site.name]);\r\n &lt;/h2&gt;\r\n &lt;p class=&quot;share&quot;&gt;\r\n wiki.localize(\'System.API.new-user-page-text\');\r\n &lt;/p&gt;\r\n &lt;div id=&quot;user-welcome-header&quot;&gt;\r\n &lt;p id=&quot;user-welcome-signup&quot;&gt;\r\n &lt;a href=(&quot;http://www.mindtouch.com/MindTouchU_signup&quot; &amp; {\r\n email: user.email,\r\n lang: wiki.language(),\r\n signup: &quot;yes&quot;\r\n })\r\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.signup.link\'))&gt;\r\n wiki.localize(\'MindTouch.Templates.userwelcome.signup.link\')              &lt;/a&gt;\r\n wiki.localize(\'MindTouch.Templates.userwelcome.signup\');\r\n &lt;/p&gt;\r\n &lt;/div&gt;\r\n \r\n &lt;div id=&quot;user-welcome-more&quot;&gt;\r\n &lt;h4&gt;\r\n wiki.localize(\'MindTouch.Templates.userwelcome.more\');\r\n &lt;/h4&gt;\r\n &lt;ul&gt;\r\n &lt;li&gt;\r\n &lt;a href=(&quot;http://www.mindtouch.com/u_video&quot; &amp; {\r\n email: user.email,\r\n lang: wiki.language()\r\n })\r\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.getting-started\'))&gt;\r\n wiki.localize(\'MindTouch.Templates.UserWelcome.getting-started\');\r\n &lt;/a&gt;\r\n &lt;/li&gt;\r\n &lt;li&gt;\r\n &lt;a href=(&quot;http://www.mindtouch.com/u_webinar&quot; &amp; {                     email: user.email,\r\n lang: wiki.language()\r\n })\r\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.free-webinar\'))&gt;\r\n wiki.localize(\'MindTouch.Templates.UserWelcome.free-webinar\');\r\n &lt;/a&gt;\r\n &lt;/li&gt;\r\n &lt;/ul&gt;\r\n &lt;/div&gt;\r\n &lt;/div&gt;\r\n } else {\r\n // displayed for visitors to the user page\r\n wiki.localize(\'MindTouch.Templates.UserWelcome.visitor\');\r\n }\r\n </pre> ','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:MindTouch UserWelcome',NULL,0,NULL,1,'9912cf8608509c073aeaa577b373d21e'),(22,0,'','<pre class=\"script\">if (!wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/Admin_Tabs&quot;) || !wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/User_Tabs&quot;)) {\n&lt;div class=&quot;mt-populating&quot;&gt;\n    &lt;h2&gt;&quot;Wait a moment while we complete your installation...&quot;;&lt;/h2&gt;\n    &lt;p&gt;&quot;MindTouch is populating all the necessary templates and pages to make your site fully functional.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;While you wait, you can still use the site normally - feel free to navigate or create new pages.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;Once we finish populating your site with content, this message will disappear (be sure to refresh this page!)&quot;;&lt;/p&gt;\n&lt;/div&gt;\n} else {\n    if (user.admin) {\n        wiki.template(&quot;MindTouch/OOBE/Core/Admin_Tabs&quot;);\n    } else {\n        wiki.template(&quot;MindTouch/OOBE/Core/User_Tabs&quot;);\n    }\n}\n</pre>','page content-type changed to \'application/x.deki0805+xml\'; page display name changed to \'Home\'',1,'20111013202449',0,0,0,0,'20111013202449',1,'','<pre class=\"script\">if (!wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/Admin_Tabs&quot;) || !wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/User_Tabs&quot;)) {\n&lt;div class=&quot;mt-populating&quot;&gt;\n    &lt;h2&gt;&quot;Wait a moment while we complete your installation...&quot;;&lt;/h2&gt;\n    &lt;p&gt;&quot;MindTouch is populating all the necessary templates and pages to make your site fully functional.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;While you wait, you can still use the si...',0,1,'application/x.deki0805+xml','','Home',NULL,0,NULL,2,'9346b32275e7b51132037db27298c428'),(23,10,'mt_admin_extranet','<div class=\"mt-title-bar mt-title-bar-admin-extranet\">{{mt_license();}}&nbsp;</div> <div class=\"mt-table\"> <ul> <li> <div> <h4>Identify Your Extranet</h4> <h5>Customer extranet (public)</h5> <p>A customer extranet portal is a secure website that enables businesses to share documents, communicate and share content with customers in a central repository. The customer extranet portal provides access to collaborative tools with just an Internet connection.</p> <h5>Partner extranet (private)</h5> <p>The partner extranet portal is a private website that enables businesses to share content with partners in a secure environment. The partner extranet portal provides data connections with CRM as well as collaborative tools with just an Internet connection.</p> </div> </li> <li class=\"middle\"> <div> <h4>Sharing Official Documentation</h4> <p>Creating new content makes your documentation richer and more valuable. Use the <strong>{{wiki.create{label:\"New page\", title:\"New page created by \"..user.name, button:false}}}</strong> link to add a page or use the <strong>Edit page</strong> link to make changes to an existing page.</p> <p>File management is simple, manageable and files are versioned with each modification.</p> <p class=\"mt-btn-bar mt-btn-create-page\">{{wiki.create{label:\"create a new page\", title:\"New page created by \"..user.name, button:false}}}</p> <h4>Stay Informed</h4> <p>Monitoring your extranet with MindTouch has never been easier. With page notifications you can receive edit overview emails when any or all pages are modified. Look for the <img style=\"vertical-align:top;\" alt=\"\" src=\"/skins/common/images/oobe/mt-icon-notifications.gif\" /> icon on each page.</p> </div> </li> <li> <div> <h4>User / Role Management</h4> <p>User management with MindTouch is easy, extensive and versatile. Create new <a title=\"deki/cp/user_management.php\" class=\"mt-cp-link\" href=\"/deki/cp/user_management.php\">users</a>, <a title=\"deki/cp/role_management.php\" class=\"mt-cp-link\" href=\"/deki/cp/role_management.php\">roles</a> and <a title=\"deki/cp/group_management.php\" class=\"mt-cp-link\" href=\"/deki/cp/group_management.php\">groups</a> in the <a title=\"deki/cp/dashboard.php\" class=\"mt-cp-link\" href=\"/deki/cp/dashboard.php\">control panel</a>.</p> <p class=\"mt-btn-bar mt-btn-user-page\"><a title=\"deki/cp/user_management.php\" href=\"/deki/cp/user_management.php\">user manager</a></p> <h4>Permissions and Privacy</h4> <p>Need to keep something to yourself? Privacy with MindTouch is easy and secure.</p> <ol class=\"mt-small\"> <li>Go to the page you wish to protect</li> <li>Click <strong>More &gt; Restrict Access</strong></li> <li>Select the appropriate restriction level</li> </ol> <p style=\"text-align:center; margin:0\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-settings.gif\" /></p> </div> </li> </ul> </div> <p style=\"margin:3px 0;text-align:right;padding-right:30px;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-legend.gif\" /></p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt admin extranet',NULL,0,NULL,1,'0f2af1934edd0782273dfe015b7f90e0'),(24,10,'mt_admin_intranet','<div class=\"mt-title-bar mt-title-bar-admin-intranet\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">Did you know that MindTouch has out of the box <strong>Collaborative Intranets</strong>?</a></div> &nbsp;</div> <div class=\"mt-table\"> <ul> <li> <div> <h4>What makes a good Intranet?</h4> <p>MindTouch Intranets tightly integrate projects, content management, teams and search into a single <a href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">out of the box intranet solution</a>.</p> <h4>MindTouch Intranet</h4> <p style=\"text-align:center;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-intranet.gif\" /></p> <p>Leverage user contributions to build your intranet and establish community champions.</p> </div> </li> <li class=\"middle\"> <div> <h4>Authentication</h4> <p>Authentication with MindTouch is flexible and powerful.  MindTouch enables you to leverage your existing authentication providers such as LDAP/AD for a seamless <strong>single-sign-on</strong> experience.</p> <p></p> <p class=\"mt-btn-bar mt-btn-authentication\"><a title=\"deki/cp/authentication.php\" href=\"/deki/cp/authentication.php\">add authentication</a></p> <h4>Intranet Setup</h4> <p>Setting up your intranet is a snap. Set up team and department pages, dashboards and projects with just a few clicks.</p> <p>Use MindTouch permissions to grant users access to specific hierarchies.</p> </div> </li> <li> <div> <h4>User / Role Management</h4> <p>User management with MindTouch is easy, extensive and versatile. Create new <a class=\"mt-cp-link\" title=\"deki/cp/user_management.php\" href=\"/deki/cp/user_management.php\">users</a>, <a class=\"mt-cp-link\" title=\"deki/cp/role_management.php\" href=\"/deki/cp/role_management.php\">roles</a> and <a class=\"mt-cp-link\" title=\"deki/cp/group_management.php\" href=\"/deki/cp/group_management.php\">groups</a> in the <a class=\"mt-cp-link\" title=\"deki/cp/dashboard.php\" href=\"/deki/cp/dashboard.php\">control panel</a>.</p> <p class=\"mt-btn-bar mt-btn-user-page\"><a title=\"deki/cp/user_management.php\" href=\"/deki/cp/user_management.php\">user manager</a></p> <h4>Permissions and Privacy</h4> <p>Need to keep something to yourself? Privacy with MindTouch is easy and secure.</p> <ol class=\"mt-small\"> <li>Go to the page you wish to protect</li> <li>Click <strong>More &gt; Restrict Access</strong></li> <li>Select the appropriate restriction level</li> </ol> <p style=\"text-align:center; margin:0\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-settings.gif\" /></p> </div> </li> </ul> </div> <p style=\"margin:3px 0;text-align:right;padding-right:30px;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-legend.gif\" /></p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt admin intranet',NULL,0,NULL,1,'d8bdd7aa26cdd522bc0897e5ce7e2ae3'),(25,10,'mt_admin_kb','<div class=\"mt-title-bar mt-title-bar-admin-kb\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Knowledge_Base\">Did you know that MindTouch has an out of the box <strong>Collaborative Knowledge Base</strong> solution?</a></div> &nbsp;</div> <div class=\"mt-table\"> <ul> <li> <div> <h4>Knowledge Base Templates</h4> <p>Create your own templates or use the default templates below. You can add templates by clicking <img style=\"vertical-align:middle;\" alt=\"\" src=\"/skins/common/images/oobe/mt-icon-template.gif\" /> while editing.</p> <div class=\"mt-template-row\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-left-bar.gif\" /> <span class=\"mt-template-title\">Left Highlight</span> {{wiki.create{label:\"Create a new page with a left highlight layout\", template:\"mt_template_left_highlight\", title:\"New left highlight page created by \"..user.name, button:false}}}</div> <div class=\"mt-template-row\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-documentation-files.gif\" /> <span class=\"mt-template-title\">Documentation with files</span> {{wiki.create{label:\"Create a new page with a documentation and files layout\", template:\"mt_template_documentation_files\", title:\"New documentation and files page created by \"..user.name, button:false}}}</div> <div class=\"mt-template-row\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-faq.gif\" /> <span class=\"mt-template-title\">Frequently Asked Quesions</span> {{wiki.create{label:\"Create a new frequently asked questions layout\", template:\"mt_template_faq\", title:\"New frequently asked questions page created by \"..user.name, button:false}}}</div> <p class=\"mt-btn-bar mt-btn-create-template\">{{wiki.create{label:\"create a template\", title:\"New template created by \"..user.name, path:\"Template:\", button:false}}}</p> </div> </li> <li class=\"middle\"> <div> <h4>Document Management</h4> <p>Keep your knowledge base organized with the <a class=\"external\" href=\"http://www.mindtouch.com/Products/Desktop_Tools\">MindTouch Desktop Connector</a>. Manage, organize and modify your knowledge base from the comfort of a desktop application.</p> <h4>Properly Identifying Content</h4> <p>MindTouch provides a number of tools to make organizing and searching your content quick and effective.</p> <ol class=\"mt-small\"> <li><strong>Tags:&nbsp;</strong>Tag your MindTouch pages to show relevant keywords and related pages.</li> <li><strong>Attachments:&nbsp;</strong>Attachments are indexed and searched for contextual relevance.</li> <li><strong>Comments:&nbsp;</strong>Add community generated content to your site to increase a pages relevancy.</li> </ol> </div> </li> <li> <div> <h4>User / Role Management</h4> <p>User management with MindTouch is easy, extensive and versatile. Create new <a class=\"mt-cp-link\" title=\"deki/cp/user_management.php\" href=\"/deki/cp/user_management.php\">users</a>, <a class=\"mt-cp-link\" title=\"deki/cp/role_management.php\" href=\"/deki/cp/role_management.php\">roles</a> and <a class=\"mt-cp-link\" title=\"deki/cp/group_management.php\" href=\"/deki/cp/group_management.php\">groups</a> in the <a class=\"mt-cp-link\" title=\"deki/cp/dashboard.php\" href=\"/deki/cp/dashboard.php\">control panel</a>.</p> <p class=\"mt-btn-bar mt-btn-user-page\"><a title=\"deki/cp/user_management.php\" href=\"/deki/cp/user_management.php\">user manager</a></p> <h4>Permissions and Privacy</h4> <p>MindTouch allows you to limit content to particular users, roles and group. You can apply limitations to individual pages or entire hierarchies.</p> <ol class=\"mt-small\"> <li>Go to the page you wish to protect</li> <li>Click <strong>More &gt; Restrict Access</strong></li> <li>Select the appropriate restriction level</li> </ol> <p style=\"text-align:center; margin:0\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-settings.gif\" /></p> </div> </li> </ul> </div> <p style=\"margin:3px 0;text-align:right;padding-right:30px;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-legend.gif\" /></p> ','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt admin kb',NULL,0,NULL,1,'4a3778456d5f1db5ee3333d5822f21dc'),(26,10,'mt_template_documentation_files','<div style=\"width:250px;float:right; padding:10px;background-color:#efefef; border:1px solid #ccc; margin-left:20px; min-height:500px;\"> <h2>Attached Files</h2> <ul init=\"var files = page.files\"> <li foreach=\"var file in files\">{{web.link(file.uri,file.name)}}</li> </ul> </div> <h2>Documentation Section One</h2> <p>Documentation Section One content</p> <h2>Documentation Section Two</h2> <p>Documentation Section Two content</p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template documentation files',NULL,0,NULL,1,'cff846c609765247b5f87f916ac4c03b'),(27,10,'mt_template_faq','<div style=\"width:250px;float:right; padding:10px;background-color:#efefef; border:1px solid #ccc; margin-left:20px; min-height:500px;\"> <h2>Right Highlight</h2> <p>Right highlight content.</p> </div> {{page.Toc;}} <h2>Documentation Section One</h2> <p>Documentation Section One content</p> <h2>Documentation Section Two</h2> <p>Documentation Section Two content</p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template faq',NULL,0,NULL,1,'4f43e81ec110ba21fd6f933898148540'),(28,10,'mt_template_left_highlight','<div style=\"width:250px;float:left; padding:10px;background-color:#efefef; border:1px solid #ccc; margin-right:20px; min-height:500px;\"> <h2>Left Highlight</h2> <p>Left highlight content.</p> </div> <h2>Main Page</h2> <p>Main page content</p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template left highlight',NULL,0,NULL,1,'b20388d74b46e4e9074b6ae05e801095'),(29,10,'mt_template_right_highlight','<div style=\"width:250px;float:right; padding:10px;background-color:#efefef; border:1px solid #ccc; margin-left:20px; min-height:500px;\"> <h2>Right Highlight</h2> <p>Right highlight content.</p> </div> <h2>Main Page</h2> <p>Main page content</p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template right highlight',NULL,0,NULL,1,'4562b2a3b7f53cd8c4c81029f0ec6945'),(30,10,'mt_template_three_column','<table width=\"100%\"><tr><td style=\"width:33%;\"><h2>Column one</h2><p>Column one content.</p></td><td style=\"width:33%;\"><h2>Column two</h2><p>Column two content.</p></td><td style=\"width:33%;\"><h2>Column three</h2><p>Column three content.</p></td></tr></table>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template three column',NULL,0,NULL,1,'0dca7af321ff1af0e2032340c6136a95'),(31,10,'mt_template_two_column','<table width=\"100%\"><tr><td style=\"width:50%;\"><h2>Column one</h2><p>Column one content.</p></td><td style=\"width:50%;\"><h2>Column two</h2><p>Column two content.</p></td></tr></table>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt template two column',NULL,0,NULL,1,'f44faf543519d6be13906329a93d24b4'),(32,10,'mt_user_develop','<div class=\"mt-title-bar mt-title-bar-user-develop\">\r\n{{mt_license();}}\r\n</div>\r\n<div class=\"mt-table\">\r\n<ul>\r\n    <li>\r\n    <div>\r\n    <h4>DekiScript</h4>\r\n    <p><a class=\"external\" href=\"http://developer.mindtouch.com/DekiScript\">DekiScript</a> is the safe lightweight scripting language used for rapid application development inside MindTouch. Try this in the editor to get started:</p>\r\n    <img alt=\"\" src=\"/skins/common/images/oobe/mt-img-welcome-syntax.gif\" class=\"mt-syntax\"/>\r\n    <h4>Dynamic Templates</h4>\r\n    <p>Get started now! Use these sample to start your first DekiScript app today.</p>\r\n    <ol class=\"mt-small\">\r\n        <li><a href=\"http://developer.mindtouch.com/DekiScript/FAQ/How_do_I..._Start_writing_DekiScript%3f\" class=\"external\">Hello World</a></li>\r\n        <li><a href=\"http://developer.mindtouch.com/DekiScript/FAQ/How_do_I..._Access_user%2c_page_and_site_properties%3f\" class=\"external\">Properties: User, Page and Site</a></l i>\r\n <li><a href=\"http://developer.mindtouch.com/DekiScript/FAQ/How_do_I..._Use_the_native_DekiScript_functions%3f\" class=\"external\">Native Functions</a></li>\r\n    </ol>\r\n    <p class=\"mt-btn-bar mt-btn-create-template\" if=\"!user.anonymous\">{{wiki.create{label:\"create a template\", title:\"New template created by \"..user.name, path:\"Template:\", button:false}}}</p>\r\n    </div>\r\n    </li>\r\n    <li class=\"middle\">\r\n    <div>\r\n    <h4>API</h4>\r\n    <p>The <a class=\"external\" href=\"http://developer.mindtouch.com/Deki/API_Reference\">MindTouch API</a>&nbsp;exposes all the functionality of MindTouch through a REST-based API. Here are some sample endpoints:&nbsp;</p>\r\n    <ol class=\"mt-small\">\r\n        <li>{{web.link(site.api..\"/pages/\"..page.id,\"This page\'s XML\")}}</li>\r\n        <li>{{web.link(site.api..\"/users/\"..user.id,\"Your user\'s XML\")}}</li>\r\n        <li>{{web.link(site.api..\"/pages/popular\",\"Popular Pages XML\")}}</li>\r\n    </ol>\r\n    <p>Learn more with our&nbsp;<a class=\"external\" h ref=\"http://developer.mindtouch.com/Deki/API_Reference\">API documentation</a></p>\r\n    <h4>MindTouch Extensions</h4>\r\n    <p>Here\'s a preview of the extensions on your MindTouch:</p>\r\n    <ol class=\"mt-small\">\r\n        <li><a href=\"http://developer.mindtouch.com/Deki/Extensions/Google\" class=\"external\">Google</a></li>\r\n        <li><a href=\"http://developer.mindtouch.com/Deki/Extensions/Feed\" class=\"external\">RSS Feeds</a></li>\r\n        <li><a href=\"http://developer.mindtouch.com/Deki/Extensions/Flickr\" class=\"external\">Flickr</a></li>\r\n    </ol>\r\n    <p>You can <a class=\" external\" href=\"http://developer.mindtouch.com/Deki/Extensions\" class=\"external\">write your own extensions</a> in any language, including PHP and C#.</p>\r\n    </div>\r\n    </li>\r\n    <li>\r\n    <div>\r\n    <h4>Technical Documentation</h4>\r\n    <img alt=\"\" src=\"/skins/common/images/oobe/mt-img-syntax_highlighter.gif\" class=\"mt-syntax\"/>\r\n    <p>Using MindTouch to power your developer community? Try the <strong>Syn tax Highlighter</strong> for code samples, tutorials and more.</p>\r\n    <ol class=\"mt-small\">\r\n        <li>Paste your code into a page</li>\r\n        <li>User your mouse to select your code</li>\r\n        <li>In the toolbar, select <strong>Format &gt; Formatted</strong></li>\r\n        <li>In the toolbar, click <strong>Transformations</strong> and select your programming language</li>\r\n    </ol>\r\n    <p class=\"mt-btn-bar mt-btn-create-page\" if=\"!user.anonymous\">{{wiki.create{label:\"create a new page\", title:\"New page created by \"..user.name, button:false}}}</p>\r\n    </div>\r\n    </li>\r\n</ul>\r\n</div>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt user develop',NULL,0,NULL,1,'d5e238f2ea163aaa1459a2e9c70eac8d'),(33,10,'mt_user_document','<div class=\"mt-title-bar mt-title-bar-user-document\">\r\n{{mt_license();}}\r\n</div>\r\n<div class=\"mt-table\">\r\n<ul>\r\n    <li>\r\n    <div>\r\n    <h4>Templates</h4>\r\n    <p if=\"!user.anonymous\">Create your own templates or use the default templates below. You can add templates by clicking <img style=\"vertical-align:middle;\" alt=\"\" src=\"/skins/common/images/oobe/mt-icon-template.gif\" /> while editing.</p>\r\n    <p if=\"user.anonymous\">As a registered user you can create custom layout templates to standardize the way you and other users create documentation.  For instance, you can create templates for:</p>\r\n    <ol class=\"mt-small\" if=\"user.anonymous\">\r\n    	<li>Project status reports</li>\r\n    	<li>New user instructions</li>\r\n    	<li>Development specifications</li>\r\n    	<li>Knowledge base resources</li>\r\n    	<li>Social media newsrooms</li>\r\n    </ol>\r\n    <p if=\"user.anonymous\"><a title=\"Register\" href=\"/Special:UserRegistration\">Register now</a> to start creating your own templates.</p>\r\n <p class=\"mt-btn-bar mt-btn-user-page\" if=\"user.anonymous\"><a title=\"Register\" href=\"/Special:UserRegistration\">register now</a></p>\r\n    <div class=\"mt-template-row\" if=\"!user.anonymous\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-two-column.gif\" /> <span class=\"mt-template-title\">Two Column</span> {{wiki.create{label:\"Create a new page with a two column layout\", template:\"mt_template_two_column\", title:\"New two column page created by \"..user.name, button:false}}}</div>\r\n    <div class=\"mt-template-row\" if=\"!user.anonymous\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-three-column.gif\" /> <span class=\"mt-template-title\">Three Column</span> {{wiki.create{label:\"Create a new page with a three column layout\", template:\"mt_template_three_column\", title:\"New three column page created by \"..user.name, button:false}}}</div>\r\n    <div class=\"mt-template-row\" if=\"!user.anonymous\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-right-bar.gif\" /> <span class=\" mt-template-title\">Right Highlight</span> {{wiki.create{label:\"Create a new page with a vertical right highlight bar\", template:\"mt_template_right_highlight\", title:\"New right highlight page created by \"..user.name, button:false}}}</div>\r\n    <p class=\"mt-btn-bar mt-btn-create-template\" if=\"!user.anonymous\">{{wiki.create{label:\"create a template\", title:\"New template created by \"..user.name, path:\"Template:\", button:false}}}</p>\r\n    </div>\r\n    </li>\r\n    <li class=\"middle\">\r\n    <div>\r\n    <h4>Creating Pages</h4>\r\n    <p>Creating new content makes your documentation richer and more valuable. Use the New Page link to add a page or use the Edit Page link to make changes to an existing page.</p>\r\n    <p class=\"mt-btn-bar mt-btn-create-page\" if=\"!user.anonymous\">{{wiki.create{label:\"create a new page\", title:\"New page created by \"..user.name, button:false}}}</p>\r\n    <h4>Moving Pages</h4>\r\n    <p>Keeping your documentation in order has never been easier with MindTouch. Restructure your cont ent hiearchy to achieve optimal organization.</p>\r\n    <ol class=\"mt-small\">\r\n        <li>Go to the page you wish to move</li>\r\n        <li>Click <strong>Tools &gt; Move Page</strong></li>\r\n        <li>Use the <strong>Navigate</strong> box to find a new location</li>\r\n    </ol>\r\n    </div>\r\n    </li>\r\n    <li>\r\n    <div>\r\n    <h4>My User Space</h4>\r\n    <span if=\"!user.anonymous\">\r\n    <p>As a new user feel free to develop your user space which is located at:</p>\r\n    <p>{{web.link(user.uri,user.uri)}}</p>\r\n    <p class=\"mt-btn-bar mt-btn-user-page\"><a href=\"{{user.uri}}\">my user space</a></p>\r\n    </span> <span if=\"user.anonymous\">\r\n    <p>As a MindTouch user you will be able to develop your own user space which can be public or private.</p>\r\n    <p class=\"mt-btn-bar mt-btn-user-page\"><a title=\"Register\" href=\"/Special:UserRegistration\">register now</a></p>\r\n    </span>\r\n    <h4>Privacy and Permissions</h4>\r\n    <p>Need to keep something to yourself? Privacy with Mind Touch is easy and secure.</p>\r\n    <ol class=\"mt-small\">\r\n        <li>Go to the page you wish to protect</li>\r\n        <li>Click <strong>Tools &gt; Restrict Access</strong></li>\r\n        <li>Select the appropriate restriction level</li>\r\n    </ol>\r\n    <p style=\"text-align:center; margin:0\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-settings.gif\" /></p>\r\n    </div>\r\n    </li>\r\n</ul>\r\n</div>\r\n<p style=\"margin:3px 0;text-align:right;padding-right:30px;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-legend.gif\" /></p>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt user document',NULL,0,NULL,1,'2641801eda463ca4994751362be434d4'),(34,10,'mt_user_tabs','<link rel=\"stylesheet\" type=\"text/css\" href=\"/skins/common/oobe.css\" />\r\n<div class=\"mt-tabs\">\r\n	<ul>\r\n		<li><a href=\"http://campaign.mindtouch.com/OOBE/Learn_More\">learn more</a></li>\r\n		<li><a href=\"#\" title=\"mt-document\">document</a></li>\r\n		<li><a href=\"#\" title=\"mt-develop\">develop</a></li>\r\n		<li class=\"title\">I WANT TO:</li>\r\n	</ul>\r\n</div>\r\n\r\n<div class=\"mt-content\">\r\n	<div class=\"mt-document hide\" >\r\n		{{mt_user_document()}}\r\n	</div>\r\n	\r\n	<div class=\"mt-develop\">\r\n		{{mt_user_develop()}}\r\n	</div>\r\n</div>\r\n\r\n<div>\r\n <script type=\"text/javascript\">\r\n	$(\"body\").ready( function() {\r\n		$(\".mt-tabs li:not(.selected) a\").click( function() {\r\nvar contenthref = $(this).attr(\"href\");\r\nif (contenthref==\'#\') {\r\nvar contentid = $(this).attr(\"title\");\r\n$(\".mt-tabs li a\").removeClass(\"selected\");\r\n$(this).addClass(\"selected\");\r\n\r\n$(\".mt-content > div:not(.hide)\").fadeOut( function() {\r\n	$(\".mt-content > div.\" + contentid).show();\r\n	\r\n	$(\".mt-content > div\").addClass(\"hide\");\r\n	$(\".mt-content > div.\" + contentid).removeClass(\"hide\");\r\n});\r\nreturn false;\r\n}\r\n\r\n		});\r\n		\r\n		$(\".mt-tabs li:not(.title):last a\").addClass(\"selected\");\r\n		\r\n		$(\".mt-tips\").each( function() {\r\n$(this).find(\"span:first\").addClass(\"selected\");	\r\n$(this).find(\"span:last\").attr(\"pos\",\"last\");	\r\n$(this).find(\"span.selected\").show();	\r\n		});\r\n		\r\n		setInterval ( \"nextTip()\", 6000 );\r\n	});\r\n	\r\n	function nextTip() {\r\n	\r\n	\r\n		$(\".mt-tips span.selected\").each( function() {\r\n$(this).hide();\r\n$ (this).removeClass(\"selected\");\r\n var pos = $(this).attr(\"pos\");\r\n\r\nif (pos==\"last\") {\r\n	$(this).parent().find(\"span:first\").addClass(\"selected\");\r\n	$(this).parent().find(\"span:first\").show();\r\n} else {\r\n	$(this).find(\"+ span\").addClass(\"selected\");\r\n	$(this).find(\"+ span\").show();\r\n}\r\n		});\r\n		\r\n	}\r\n</script>\r\n</div>','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt user tabs',NULL,0,NULL,1,'38c72c47e48a317b7f2cfb66a98132f2'),(35,10,'mt_admin_tabs','<link rel=\"stylesheet\" type=\"text/css\" href=\"/skins/common/oobe.css\" />\r\n<div class=\"mt-tabs\">\r\n	<ul>\r\n		<li><a href=\"http://campaign.mindtouch.com/OOBE/Learn_More\">learn more</a></li>\r\n		<li><a href=\"#\" title=\"mt-kb\">a knowledge base</a></li>\r\n		<li><a href=\"#\" title=\"mt-extranet\">an extranet</a></li>\r\n		<li><a href=\"#\" title=\"mt-intranet\">an intranet</a></li>\r\n		<li class=\"title\">MY SITE WILL BE:</li>\r\n	</ul>\r\n</div>\r\n\r\n<div class=\"mt-content\">\r\n	<div class=\"mt-kb hide\" >\r\n		{{mt_admin_kb()}}\r\n	</div>\r\n	\r\n	<div class=\"mt-extranet hide\">\r\n		{{mt_admin_extranet();}}\r\n	</div>\r\n	\r\n	<div class=\"mt-intranet\">\r\n {{mt_admin_intranet();}}\r\n	</div>\r\n	\r\n	<div class=\"mt-enterprise-wiki hide\">\r\n		enterprise wiki\r\n	</div>\r\n</div>\r\n\r\n<div>\r\n<script type=\"text/javascript\">\r\n	$(\"body\").ready( function() {\r\n		$(\".mt-tabs li:not(.selected) a\").click( function() {\r\nvar contenthref = $(this).attr(\"href\");\r\nif (contenthref==\'#\') {\r\nvar contentid = $(this).attr(\"title\");\r\n$(\".mt-tabs li a\").removeClass(\"selected\");\r\n$(this).addClass(\"selected\");\r\n\r\n$(\".mt-content > div:not(.hide)\").fadeOut( function() {\r\n	$(\".mt-content > div.\" + contentid).fadeIn();\r\n	\r\n	$(\".mt-content > div\").addClass(\"hide\");\r\n	$(\".mt-content > div.\" + contentid).removeClass(\"hide\");\r\n});\r\nreturn false;\r\n}\r\n\r\n		});\r\n		\r\n		$(\".mt-tabs li:not(.title):last a\").addClass(\"selected\");\r\n		\r\n		$(\".mt-tips span:first\").addClass(\"selected\");	\r\n		$(\".mt-tips span:last\").attr(\"pos\",\"last\");	\r\n		\r\n		$(\".mt-tips span.selected\").fadeIn();	\r\n		\r\n		setInterval ( \"nextTip()\", 6000 );\r\n	});\r\n	\r\n function nextTip() {\r\n	\r\n	\r\n		$(\".mt-tips span.selected\").each( function() {\r\n$(this).hide();\r\n$(this).removeClass(\"selected\");\r\nvar pos = $(this).attr(\"pos\");\r\n\r\nif (pos==\"last\") {\r\n	$(this).parent().find(\"span:first\").addClass(\"selected\");\r\n	$(this).parent().find(\"span:first\").show();\r\n} else {\r\n	$(this).find(\"+ span\").addClass(\"selected\");\r\n	$(this).find(\"+ span\").show();\r\n}\r\n		});\r\n		\r\n	}\r\n</script>\r\n</div>\r\n','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt admin tabs',NULL,0,NULL,1,'86218d3b2f6caa92512885883a480c50'),(36,10,'mt_license','<a class=\"mt-tips\" href=\"http://campaign.mindtouch.com/OOBE/Contact\"> <span>Did you know MindTouch 2009 has database connectors?</span> <span>Did you know MindTouch 2009 has desktop tools?</span> <span>Did you know MindTouch 2009 has powerful mashup capabilities?</span> <span>Did you know MindTouch 2009 has premium  support and training?</span> <span>Did you know MindTouch 2009 has multi-tenant capabilities?</span> <span>Did you know MindTouch 2009 has rich dashboards?</span> </a> ','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt license',NULL,0,NULL,1,'4d7363e65e1a3cb689362eb64f95b27e'),(37,10,'mt_license_2009','<a class=\"mt-tips\" href=\"http://campaign.mindtouch.com/OOBE/Contact\"> <span>Did you know MindTouch 2009 has database connectors?</span> <span>Did you know MindTouch 2009 has desktop tools?</span> <span>Did you know MindTouch 2009 has powerful mashup capabilities?</span> <span>Did you know MindTouch 2009 has premium  support and training?</span> <span>Did you know MindTouch 2009 has multi-tenant capabilities?</span> <span>Did you know MindTouch 2009 has rich dashboards?</span> </a> ','',1,'20071103195811',0,0,0,0,'0',1,'','',0,0,'application/x.deki-text','','Template:mt license 2009',NULL,0,NULL,1,'4d7363e65e1a3cb689362eb64f95b27e'),(38,2,'Admin','<p class=\"comment\">Welcome to your user page! You can customize your page by removing the content below.</p><p><span class=\"script\"> MindTouch_UserWelcome() </span></p>','page created, 16 words added',1,'20110711201618',1,0,0,1,'20110711201618',1,'','<p class=\"comment\">Welcome to your user page! You can customize your page by removing the content below.</p><p><span class=\"script\"> MindTouch_UserWelcome() </span></p>',0,0,'application/x.deki0805+xml','','User:Admin',NULL,0,NULL,1,'29eec80c2a36133bc03db39b041ff3eb'),(39,101,'','{{ wiki.tree(\"Special:\") }}','',0,'',0,0,0,0,'',1,'','Special page',0,2,'application/x.deki-text','','Special:',NULL,0,NULL,1,'6a7f6a442ae0891984599bdd464393f6'),(40,101,'Reports','<pre class=\"script\">Template(\'MindTouch/Controls/PageTabs\', {\n    pages: [\n        {\n            name: &quot;quality&quot;,\n            title: wiki.localize(&quot;MindTouch.Reports.rating&quot;),\n            path: page.path .. \'/Quality\'\n        },\n        {\n            name: &quot;aging&quot;,\n            title: wiki.localize(&quot;MindTouch.Reports.aging&quot;),\n            path: page.path .. \'/Aging\'\n        },\n        {\n            name: &quot;search&quot;,\n            title: wiki.localize(&quot;MindTouch.Reports.search&quot;),\n            path: page.path .. \'/Search\'\n        }\n    ]\n});</pre>','page created, 41 words added',1,'20111013202337',0,0,0,1,'20111013202338',1,'','<pre class=\"script\">Template(\'MindTouch/Controls/PageTabs\', {\n    pages: [\n        {\n            name: &quot;quality&quot;,\n            title: wiki.localize(&quot;MindTouch.Reports.rating&quot;),\n            path: page.path .. \'/Quality\'\n        },\n        {\n            name: &quot;aging&quot;,\n            title: wiki.localize(&quot;MindTouch.Reports.aging&quot;),\n            path: page.path .. \'/Aging\'\n        },\n        {\n            name: &quot;search&quot;,\n            title: wiki.localiz...',0,3,'application/x.deki0805+xml','','Special:Reports',NULL,0,NULL,1,'a7e2c01b1ead5063e29afce7795c45f8'),(41,101,'Reports/Activity','<pre class=\"script\">/*\n * Site Activity Report\n */\nvar days = num.min(num.abs(num.cast(__request.args.days) ?? 14), 90);\nvar since = date.format(date.adddays(date.today, -days), &quot;yyyyMMddHHmmss&quot;);\n\n// request activity data from api and parse into data strucuture\nvar activities = [\n    {\n        date: xml.text(entry, &quot;@date&quot;),\n        pages_edited: xml.num(entry, &quot;pages.edited&quot;),\n        pages_deleted: xml.num(entry, &quot;pages.deleted&quot;),\n        pages_created: xml.num(entry, &quot;pages.created&quot;),\n        users_total: xml.num(entry, &quot;users.total&quot;),\n        users_created: xml.num(entry, &quot;users.created&quot;)\n    }\n    foreach \n        var entry in wiki.api(site.api &amp; &quot;site&quot; &amp; &quot;activity&quot; &amp; { since: since })[&quot;entry&quot;] \n];\n\n// add missing days\nif(#activities &lt; days) {\n    var missing = [\n        {\n            date: date.format(date.adddays(date.today, -offset), &quot;xml&quot;),\n            pages_edited: 0,\n            pages_deleted: 0,\n            pages_created: 0,\n            users_total: activities[-1].users_total,\n            users_created: 0\n        }\n        foreach\n            var offset in num.series(#activities, days)\n    ];\n    let activities = activities .. missing;\n}\nlet activities = list.reverse(activities);\nvar total_pages_edited = list.sum(activities, &quot;$pages_edited&quot;);\nvar total_pages_created = list.sum(activities, &quot;$pages_created&quot;);\nvar total_users_added = list.sum(activities, &quot;$users_created&quot;) - (activities[0].users_created ?? 0);\n\n// prepare chart\nvar chart = &lt;anychart&gt;\n    &lt;settings&gt;\n        &lt;locale&gt;\n            &lt;date_time_format&gt;\n                &lt;format&gt; &quot;%yyyy-%MM-%ddT%HH:%mm:%ssz&quot; &lt;/format&gt;\n            &lt;/date_time_format&gt;\n        &lt;/locale&gt;\n    &lt;/settings&gt;\n    &lt;charts&gt;\n        &lt;chart&gt;\n            &lt;chart_settings&gt;\n                &lt;title&gt;\n                    &lt;text&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.title&quot;) &lt;/text&gt;\n                &lt;/title&gt;\n                &lt;legend enabled=&quot;false&quot; position=&quot;bottom&quot;&gt;\n                    &lt;title enabled=&quot;false&quot; /&gt;\n                &lt;/legend&gt;\n                &lt;axes&gt;\n                    &lt;x_axis&gt;\n                        &lt;title enabled=&quot;false&quot; /&gt;\n                        &lt;labels&gt;\n                            &lt;format&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.dateformat&quot;) &lt;/format&gt;\n                        &lt;/labels&gt;\n                        &lt;scale type=&quot;DateTime&quot; /&gt;\n                    &lt;/x_axis&gt;\n                    &lt;y_axis&gt;\n                        &lt;title&gt;\n                            &lt;text&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.axis.pages&quot;) &lt;/text&gt;\n                        &lt;/title&gt;\n                        &lt;labels&gt;\n                            &lt;format&gt; &quot;{%Value}{numDecimals:0}&quot; &lt;/format&gt;\n                        &lt;/labels&gt;\n                        &lt;scale mode=&quot;stacked&quot; major_interval=&quot;1&quot; minor_interval=&quot;1&quot; /&gt;\n                        &lt;major_grid enabled=&quot;true&quot; /&gt;\n                        &lt;minor_grid enabled=&quot;false&quot; /&gt;\n                    &lt;/y_axis&gt;\n                    &lt;extra&gt;\n                        &lt;y_axis name=&quot;users&quot; enabled=&quot;true&quot;&gt;\n                            &lt;title&gt;\n                                &lt;text&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.axis.users&quot;) &lt;/text&gt;\n                            &lt;/title&gt;\n                            &lt;labels&gt;\n                                &lt;format&gt; &quot;{%Value}{numDecimals:0}&quot; &lt;/format&gt;\n                            &lt;/labels&gt;\n                            &lt;scale major_interval=&quot;1&quot; minor_interval=&quot;1&quot; /&gt;\n                            &lt;major_grid enabled=&quot;false&quot; /&gt;\n                            &lt;minor_grid enabled=&quot;false&quot; /&gt;\n                        &lt;/y_axis&gt;\n                    &lt;/extra&gt;\n                &lt;/axes&gt;\n            &lt;/chart_settings&gt;\n            \n            &lt;data&gt;\n\n                //--- Pages Activity ---\n                &lt;series name=(wiki.localize(&quot;MindTouch.SiteAnalytics.chart.series.pages.edited&quot;)) type=&quot;Bar&quot; color=&quot;#ff9900&quot;&gt;\n                    &lt;tooltip enabled=&quot;true&quot;&gt;\n                        &lt;format&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.tooltip.pages.edited&quot;) &lt;/format&gt;\n                    &lt;/tooltip&gt;\n                    foreach(var activity in activities) {\n                        &lt;point name=(activity.date) y=(activity.pages_edited) /&gt;\n                    }\n                &lt;/series&gt;\n                &lt;series name=(wiki.localize(&quot;MindTouch.SiteAnalytics.chart.series.pages.created&quot;)) type=&quot;Bar&quot; color=&quot;#009900&quot;&gt;\n                    &lt;tooltip enabled=&quot;true&quot;&gt;\n                        &lt;format&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.tooltip.pages.created&quot;) &lt;/format&gt;\n                    &lt;/tooltip&gt;\n                    foreach(var activity in activities) {\n                        &lt;point name=(activity.date) y=(activity.pages_created) /&gt;\n                    }\n                &lt;/series&gt;\n                &lt;series name=(wiki.localize(&quot;MindTouch.SiteAnalytics.chart.series.pages.deleted&quot;)) type=&quot;Bar&quot; color=&quot;#ff0000&quot;&gt;\n                    &lt;tooltip enabled=&quot;true&quot;&gt;\n                        &lt;format&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.tooltip.pages.deleted&quot;) &lt;/format&gt;\n                    &lt;/tooltip&gt;\n                    foreach(var activity in activities) {\n                        &lt;point name=(activity.date) y=(activity.pages_deleted) /&gt;\n                    }\n                &lt;/series&gt;\n\n                //--- User Population ---\n                &lt;series name=(wiki.localize(&quot;MindTouch.SiteAnalytics.chart.series.users&quot;)) type=&quot;Line&quot; y_axis=&quot;users&quot; color=&quot;#000055&quot;&gt;\n                    &lt;tooltip enabled=&quot;true&quot;&gt;\n                        &lt;format&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.chart.tooltip.users&quot;) &lt;/format&gt;\n                    &lt;/tooltip&gt;\n                    foreach(var activity in activities) {\n                        &lt;point name=(activity.date) y=(activity.users_total) /&gt;\n                    }\n                &lt;/series&gt;\n            &lt;/data&gt;\n        &lt;/chart&gt;\n    &lt;/charts&gt;\n&lt;/anychart&gt;;\n\n// render page contents\n&lt;div class=(&quot;mt-report mt-report-activity&quot;)&gt;\n\n    // dependencies check\n    var dependencies = Template(&quot;MindTouch/Controls/DependencyErrors&quot;, {\n        components:[\n            { name: &quot;contentanalytics&quot;, sid: &quot;sid://mindtouch.com/ext/2010/06/analytics.content&quot; }\n        ],\n        license: &quot;commercial&quot;,\n        permission: &quot;admin&quot;\n    });\n    if(#dependencies[&quot;//div&quot;]) {\n        if(#dependencies[&quot;//div[contains(@class, \'error-permission\')]&quot;]) {\n            dependencies;\n        } else {\n            &lt;div class=&quot;deki-commercial-text&quot;&gt;\n                &lt;div class=&quot;deki-commercial-message&quot;&gt;\n                    wiki.localize(&quot;MindTouch.SiteAnalytics.commercial&quot;)\n                &lt;/div&gt;\n            &lt;/div&gt;\n        }\n    }\n\n    &lt;h3 class=&quot;reports&quot;&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.title&quot;) &lt;/h3&gt;\n    &lt;div class=&quot;mt-report-overview&quot;&gt;\n        &lt;dl class=&quot;stats&quot;&gt;\n            &lt;dt class=&quot;first&quot;&gt;&lt;span class=&quot;title&quot;&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.first.title&quot;) &lt;/span&gt;&lt;/dt&gt;\n            &lt;dd class=&quot;first&quot;&gt;&lt;span&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.first.message&quot;, [ total_pages_created ]) &lt;/span&gt;&lt;/dd&gt;\n            &lt;dt class=&quot;second&quot;&gt;&lt;span class=&quot;title&quot;&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.second.title&quot;) &lt;/span&gt;&lt;/dt&gt;\n            &lt;dd class=&quot;second&quot;&gt;&lt;span&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.second.message&quot;, [ total_pages_edited ]) &lt;/span&gt;&lt;/dd&gt;\n            &lt;dt class=&quot;third&quot;&gt;&lt;span class=&quot;title&quot;&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.third.title&quot;) &lt;/span&gt;&lt;/dt&gt;\n            &lt;dd class=&quot;third&quot;&gt;&lt;span&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.third.message&quot;, [ total_users_added ]) &lt;/span&gt;&lt;/dd&gt;\n            &lt;dt class=&quot;information&quot;&gt;&lt;div&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.info.footer&quot;) &lt;/div&gt;&lt;/dt&gt;\n        &lt;/dl&gt;\n        \n        if (__env[&quot;anychart&quot;]) {\n            &lt;div class=&quot;chart&quot;&gt;\n                anychart(chart, 500, 325);\n            &lt;/div&gt;\n        } else {\n            &lt;div class=&quot;chart ui-state-disabled&quot;&gt;\n                &lt;div&gt; wiki.localize(&quot;MindTouch.SiteAnalytics.char.disabled&quot;) &lt;/div&gt;\n            &lt;/div&gt;\n        }\n    &lt;/div&gt;\n&lt;/div&gt;</pre>\n','page created, 668 words added',1,'20111013202338',0,0,0,1,'20111013202338',1,'','<pre class=\"script\">/*\n * Site Activity Report\n */\nvar days = num.min(num.abs(num.cast(__request.args.days) ?? 14), 90);\nvar since = date.format(date.adddays(date.today, -days), &quot;yyyyMMddHHmmss&quot;);\n\n// request activity data from api and parse into data strucuture\nvar activities = [\n    {\n        date: xml.text(entry, &quot;@date&quot;),\n        pages_edited: xml.num(entry, &quot;pages.edited&quot;),\n        pages_deleted: xml.num(entry, &quot;pages.deleted&quot;),\n        pages_creat...',40,3,'application/x.deki0805+xml','','Activity',NULL,0,NULL,1,'2d2081fa16ae24d599b906f4924c6899'),(42,101,'Reports/Aging','<pre class=\"script\">/**\n * Page Aging Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;aging&quot;,\n    &quot;DefaultSort&quot;: &quot;date&quot;,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;ResultsPerPage&quot;: 30\n};\n\n// these should be preserved when updating the page\nvar preserve = {\n    tab: __request.args.tab,\n    query: __request.args.query,\n    page: __request.args.page\n};\n\n// set the default query here so it doesn\'t propagate via query params\nvar searchQuery = __request.args.query;\n\n// Begin output: reports container\n&lt;div class=(&quot;mt-report mt-report-&quot; .. ScriptConfig[&quot;Report&quot;])&gt;\n\n// dependencies check\nvar dependencies = Template(&quot;MindTouch/Controls/DependencyErrors&quot;, {\n    components:[\n        {name: &quot;contentanalytics&quot;, sid: &quot;sid://mindtouch.com/ext/2010/06/analytics.content&quot;}\n    ],\n    license: &quot;commercial&quot;,\n    permission: &quot;admin&quot;\n});\n\nif (#dependencies[&quot;//div&quot;]) {\n    if (#dependencies[&quot;//div[contains(@class, \'error-permission\')]&quot;]) {\n        dependencies;\n    } else {\n    &lt;div class=&quot;deki-commercial-text&quot;&gt;\n        &lt;div class=&quot;deki-commercial-message&quot;&gt;\n            wiki.localize(&quot;MindTouch.ContentAnalytics.&quot; .. ScriptConfig[&quot;Report&quot;] .. &quot;.commercial&quot;)\n        &lt;/div&gt;\n    &lt;/div&gt;\n    }\n} else {\n\n// fetch the report data\nvar reportData = contentanalytics.report{\n    type: ScriptConfig[&quot;Report&quot;],\n    query: searchQuery\n};\n\n// debugging\n//web.pre(json.format(reportData));\n\n// invalid query check\nif (reportData.error) {\n    // @TODO guerrics: handle the invalid query\n    web.pre(json.format(reportData));\n} else {\n\nvar siteData;\nif (#searchQuery &gt; 0) {\n    let siteData = contentanalytics.report{\n        type: ScriptConfig[&quot;Report&quot;]\n    };\n}\nvar totalPages = siteData ? siteData.meta[&quot;aging&quot;].count : reportData.meta[&quot;aging&quot;].count;\n\n// capture the query &amp; constraints from the report\nlet searchQuery = reportData.meta[ScriptConfig[&quot;Report&quot;]].query;\nlet searchConstraint = reportData.meta[ScriptConfig[&quot;Report&quot;]].constraint;\n\n// Begin output\nTemplate(\'MindTouch/Reports/Controls/SearchInput\', {\n    uri: ScriptConfig[&quot;Uri&quot;],\n    params: preserve\n});\n\n// Chart\nTemplate(\'MindTouch/Reports/Controls/RatingChart\', {\n    type: ScriptConfig[&quot;Report&quot;],\n    data: reportData,\n    resetUri: ScriptConfig[&quot;Uri&quot;] &amp; {tab: __request.args.tab},\n    site: siteData,\n    total: totalPages\n});\n\n// Table results\nTemplate(\'MindTouch/Reports/Controls/RatingResultsTable\', {\n    type: ScriptConfig[&quot;Report&quot;],\n    uri: ScriptConfig[&quot;Uri&quot;],\n    params: preserve,\n    query: searchQuery,\n    constraint: searchConstraint,\n    total: reportData.meta[ScriptConfig[&quot;Report&quot;]].count,\n    default: ScriptConfig[&quot;DefaultSort&quot;],\n    perPage: ScriptConfig[&quot;ResultsPerPage&quot;]\n});\n\n} // end invalid query check\n} // end requirements check\n\n&lt;/div&gt; // end reports container</pre>','page created, 281 words added',1,'20111013202338',0,0,0,1,'20111013202338',1,'','<pre class=\"script\">/**\n * Page Aging Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;aging&quot;,\n    &quot;DefaultSort&quot;: &quot;date&quot;,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;ResultsPerPage&quot;: 30\n};\n\n// these should be preserved when updating the page\nvar preserve = {\n    tab: __request.args.tab,\n    query: __request.args.query,\n    page: __request.args.page\n};\n\n// set the default query here so it doesn\'t propagate via query params\nvar sea...',40,3,'application/x.deki0805+xml','','Aging',NULL,0,NULL,1,'2a0ef600b3a223ee8339d0a03cfbe0dc'),(43,101,'Reports/Quality','<pre class=\"script\">/**\n * Page Quality Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;rating&quot;,\n    &quot;DefaultSort&quot;: &quot;rating.score&quot;,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;ResultsPerPage&quot;: 30\n};\n\n// these should be preserved when updating the page\nvar preserve = {\n    tab: __request.args.tab,\n    query: __request.args.query,\n    page: __request.args.page\n};\n\n// set the default query here so it doesn\'t propigate via query params\nvar searchQuery = __request.args.query;\n\n// Begin output: reports container\n&lt;div class=(&quot;mt-report mt-report-&quot; .. ScriptConfig[&quot;Report&quot;])&gt;\n\n// dependencies check\nvar dependencies = Template(&quot;MindTouch/Controls/DependencyErrors&quot;, {\n    components:[\n        {name: &quot;contentanalytics&quot;, sid: &quot;sid://mindtouch.com/ext/2010/06/analytics.content&quot;}\n    ],\n    license: &quot;commercial&quot;,\n    permission: &quot;admin&quot;\n});\n\nif (#dependencies[&quot;//div&quot;]) {\n    if (#dependencies[&quot;//div[contains(@class, \'error-permission\')]&quot;]) {\n        dependencies;\n    } else {\n    &lt;div class=&quot;deki-commercial-text&quot;&gt;\n        &lt;div class=&quot;deki-commercial-message&quot;&gt;\n            wiki.localize(&quot;MindTouch.ContentAnalytics.&quot; .. ScriptConfig[&quot;Report&quot;] .. &quot;.commercial&quot;)\n        &lt;/div&gt;\n    &lt;/div&gt;\n    }\n} else {\n\n// fetch the report data\nvar reportData = contentanalytics.report{\n    type: ScriptConfig[&quot;Report&quot;],\n    query: searchQuery\n};\n\n// debugging\n//web.pre(json.format(reportData));\n\n// invalid query check\nif (reportData.error) {\n    // @TODO guerrics: handle the invalid query\n    web.pre(json.format(reportData));\n} else {\n\nvar siteData;\nif (#searchQuery &gt; 0) {\n    let siteData = contentanalytics.report{\n        type: ScriptConfig[&quot;Report&quot;]\n    };\n}\n// needed to determine total pages\nlet agingSiteData = contentanalytics.report{\n    type: &quot;aging&quot;\n};\nvar totalPages = agingSiteData.meta[&quot;aging&quot;].count;\n\n// capture the query &amp; constraints from the report\nlet searchQuery = reportData.meta[ScriptConfig[&quot;Report&quot;]].query;\nlet searchConstraint = reportData.meta[ScriptConfig[&quot;Report&quot;]].constraint;\n\n// Search input\nTemplate(\'MindTouch/Reports/Controls/SearchInput\', {\n    uri: ScriptConfig[&quot;Uri&quot;],\n    params: preserve\n});\n\n// Chart\nTemplate(\'MindTouch/Reports/Controls/RatingChart\', {\n    type: ScriptConfig[&quot;Report&quot;],\n    data: reportData,\n    total: totalPages,\n    resetUri: ScriptConfig[&quot;Uri&quot;] &amp; {tab: __request.args.tab},\n    site: siteData\n});\n\n// Table results\nTemplate(\'MindTouch/Reports/Controls/RatingResultsTable\', {\n    type: ScriptConfig[&quot;Report&quot;],\n    uri: ScriptConfig[&quot;Uri&quot;],\n    params: preserve,\n    query: searchQuery,\n    constraint: searchConstraint,\n    total: reportData.meta[ScriptConfig[&quot;Report&quot;]].count,\n    default: ScriptConfig[&quot;DefaultSort&quot;],\n    perPage: ScriptConfig[&quot;ResultsPerPage&quot;]\n});\n\n} // end invalid query check\n} // end requirements check\n&lt;/div&gt; // end reports container</pre>','page created, 288 words added',1,'20111013202338',0,0,0,1,'20111013202338',1,'','<pre class=\"script\">/**\n * Page Quality Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;rating&quot;,\n    &quot;DefaultSort&quot;: &quot;rating.score&quot;,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;ResultsPerPage&quot;: 30\n};\n\n// these should be preserved when updating the page\nvar preserve = {\n    tab: __request.args.tab,\n    query: __request.args.query,\n    page: __request.args.page\n};\n\n// set the default query here so it doesn\'t propigate via query par...',40,3,'application/x.deki0805+xml','','Quality',NULL,0,NULL,1,'4fa447263f4da834e3160aa6cb1b3d82'),(44,101,'Reports/Search','<pre class=\"script\">/**\n * Search Analytics Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;search&quot;,\n    &quot;ResultsPerPage&quot;: 30,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;TermLimit&quot;: 30,\n    &quot;MaxDaysAgo&quot;: 365\n};\n\n// set day defaults\nvar sinceDays = __request.args.since_days ?? 30;\nvar beforeDays = __request.args.before_days ?? 0;\n\n// sanitize user input\nlet sinceDays = num.min(sinceDays, ScriptConfig[&quot;MaxDaysAgo&quot;]);\nlet beforeDays = num.min(beforeDays, ScriptConfig[&quot;MaxDaysAgo&quot;]);\nif (sinceDays &lt; beforeDays) {\n    let sinceDays = beforeDays;\n}\n\n// these should be preserved when updating the page\nvar preserve = {\n    tab: __request.args.tab,\n    before_days: beforeDays,\n    since_days: sinceDays\n};\n\nvar searchQuery = __request.args.query;\nvar searchTerm = __request.args.term;\n\nif (#searchQuery &lt; 1) {\n    let searchQuery = nil;\n}\nif (#searchTerm &lt; 1) {\n    let searchTerm = nil;\n}\n\nvar dateSince = date.addDays(date.now, sinceDays * -1);\nvar dateBefore = date.addDays(date.now, beforeDays * -1);\n\n// Begin output: reports container\n&lt;div class=(&quot;mt-report mt-report-&quot; .. ScriptConfig[&quot;Report&quot;])&gt;\n\n// dependencies check\nvar dependencies = Template(&quot;MindTouch/Controls/DependencyErrors&quot;, {\n    components:[\n        {name: &quot;searchanalytics&quot;, sid: &quot;sid://mindtouch.com/ext/2010/06/analytics.search&quot;}\n    ],\n    license: &quot;commercial&quot;,\n    permission: &quot;admin&quot;\n});\n\nif (#dependencies[&quot;//div&quot;]) {\n    if (#dependencies[&quot;//div[contains(@class, \'error-permission\')]&quot;]) {\n        dependencies;\n    } else {\n    &lt;div class=&quot;deki-commercial-text&quot;&gt;\n        &lt;div class=&quot;deki-commercial-message&quot;&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.commercial&quot;)\n        &lt;/div&gt;\n    &lt;/div&gt;\n    }\n} else {\n\n&lt;div class=&quot;mt-report-search-date-filter&quot;&gt;\n// Report is accessible by the user\nTemplate(&quot;MindTouch/Reports/Controls/SearchAnalyticsFilter&quot;, {\n    uri: ScriptConfig[&quot;Uri&quot;],\n    params: preserve,\n    term: searchTerm,\n    query: searchQuery,\n    since: sinceDays,\n    before: beforeDays\n});\n&lt;/div&gt;\n\n// View conditional, overview v. detail\nif (searchQuery is nil) {\n\n    // query &amp; term overview\n    &lt;div class=&quot;mt-report-search-terms&quot;&gt;\n        &lt;h3 class=&quot;reports&quot;&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.terms&quot;);&lt;/h3&gt;\n        &lt;div class=&quot;mt-terms-description&quot;&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.terms.description&quot;);\n        &lt;/div&gt;\n\n            Template(\'MindTouch/Reports/Controls/SearchTermsCloud\', {\n                uri: ScriptConfig[&quot;Uri&quot;] &amp; preserve,\n                limit: ScriptConfig[&quot;TermLimit&quot;],\n                dateSince: dateSince,\n                dateBefore: dateBefore, \n                term: searchTerm\n            });\n\n        &lt;div class=&quot;mt-report-search-custom&quot;&gt;\n            // Report is accessible by the user\n            Template(&quot;MindTouch/Reports/Controls/SearchAnalyticsTermSearch&quot;, {\n                uri: ScriptConfig[&quot;Uri&quot;],\n                params: preserve,\n                term: searchTerm,\n                query: searchQuery\n            });\n         &lt;/div&gt;\n    &lt;/div&gt;\n\n    &lt;div class=&quot;mt-report-search-queries&quot;&gt;\n        &lt;h3 class=&quot;reports&quot;&gt;\n            if (searchTerm is nil) {\n                wiki.localize(&quot;MindTouch.SearchAnalytics.queries.popular&quot;);\n            } else {\n                wiki.localize(&quot;MindTouch.SearchAnalytics.queries.search&quot;, [searchTerm]);\n            }\n            if (searchTerm || searchQuery) {\n                &lt;div class=&quot;reset-search&quot;&gt;\n                    &lt;a href=(ScriptConfig[&quot;Uri&quot;] &amp; preserve &amp; {since_weeks: nil, before_weeks: nil})&gt;\n                        wiki.localize(&quot;MindTouch.SearchAnalytics.search.reset&quot;);\n                    &lt;/a&gt;\n                &lt;/div&gt;\n            }\n        &lt;/h3&gt;\n\n        // Table results\n        Template(&quot;MindTouch/Reports/Controls/SearchQueriesTable&quot;, {\n            uri: ScriptConfig[&quot;Uri&quot;],\n            //groupby: searchQuery is nil ? \'query\' : _,\n            params: preserve,\n            term: searchTerm,\n            perPage: ScriptConfig[&quot;ResultsPerPage&quot;],\n            dateSince: dateSince,\n            dateBefore: dateBefore\n        });\n    &lt;/div&gt;\n} else {\n    \n    // query detail view\n    Template(&quot;MindTouch/Reports/Controls/SearchQueryDetails&quot;, {\n        uri: ScriptConfig[&quot;Uri&quot;],\n        params: preserve,\n        query: searchQuery,\n        dateSince: dateSince,\n        dateBefore: dateBefore\n    });\n\n} // end view conditional\n} // end requirements check\n&lt;/div&gt; // end reports container</pre>','page created, 404 words added',1,'20111013202338',0,0,0,1,'20111013202338',1,'','<pre class=\"script\">/**\n * Search Analytics Report\n */\n// Configuration\nvar ScriptConfig = {\n    &quot;Report&quot;: &quot;search&quot;,\n    &quot;ResultsPerPage&quot;: 30,\n    &quot;Uri&quot;: page.parent.uri,\n    &quot;TermLimit&quot;: 30,\n    &quot;MaxDaysAgo&quot;: 365\n};\n\n// set day defaults\nvar sinceDays = __request.args.since_days ?? 30;\nvar beforeDays = __request.args.before_days ?? 0;\n\n// sanitize user input\nlet sinceDays = num.min(sinceDays, ScriptConfig[&quot;MaxDaysAgo&quot;]);\nle...',40,3,'application/x.deki0805+xml','','Search',NULL,0,NULL,1,'a60f818e4f31257a7bbb537aa04171ef'),(45,10,'MindTouch','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202340',0,0,0,1,'20111013202340',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',0,1,'application/x.deki0805+xml','','Template:MindTouch',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(46,10,'MindTouch/Controls','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202340',0,0,0,1,'20111013202340',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',45,1,'application/x.deki0805+xml','','Controls',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(47,10,'MindTouch/Controls/Chart','<pre class=\"script\">/***\n    USAGE:\n    \n    Chart(type, data, height, width, xaxis, yaxis, title, min, max, interval, id)\n\n    PARAMETERS:\n    \n    type : str (one of \'circulargauge\', \'column\', \'multiseriescolumn\', \'lineargauge\', \'line\', \'bar\', \'multiseriesbar\', \'pie\', \'pyramid\', or \'funnel\')\n    \n    data : list\n    \n    (optional) height : num (default: 450)\n        Height of chart in pixel or percent.\n        If value is greater or equal to 1, then value represents pixel, otherwise the value is a relative perecentage.\n    \n    (optional) width : num (default: 450)\n        Width of chart in pixel or percent.\n        If value is greater or equal to 1, then value represents pixel, otherwise the value is a relative perecentage.\n    \n    (optional) xaxis : str (default: \'Y-Axis\')\n        Label for X-Axis.\n    \n    (optional) yaxis : str (default: \'X-Axis\')\n        Label for Y-Axis.\n    \n    (optional) title : str (default: \'Title\')\n        Label for chart.\n    \n    (optional) min : num (default: 0)\n        Lower bound for Linear Gauge chart type.\n    \n    (optional) max : num (default: 100)\n        Upper bound for Linear Gauge chart type.\n    \n    (optional) interval : num (default: 10)\n        Major interval for axis markers.\n    \n    (optional) id : str (default: nil)\n        ID for chart component.  Used for listening for events and interacting with chart through JavaScript.\n\n    VERSIONS:\n    \n    1.0     2-Feb-10    robertm     initial version\n    1.1     4-Mar-10    steveb      code clean-up\n    1.2     29-Mar-10   steveb      better handling of error conditions; new default look for progress gauge\n    1.3     16-Jul-10   steveb      fixed inproper data handling for \'pie\' type. support for min,max\n\n***/\n\n// GET VARIABLES FROM TEMPLATE CALL\nvar type = string.tolower($type ?? $0 ?? \'circulargauge\');\nvar data = $data ?? $1 ?? 67;\nvar height = $height ?? $2 ?? 450;\nvar width = $width ?? $3 ?? 450;\nvar xaxis = $xaxis ?? $4;\nvar yaxis = $yaxis ?? $5;\nvar title = $title ?? $6;\nvar min = $min ?? $7;\nvar max = $max ?? $8;\nvar interval = $interval ?? $9 ?? 10;\nvar id = $id ?? $10;\nvar error;\n\n// TODO (steveb): validate the \'data\' field\n// TODO (steveb): enable/disable animation\n\n// format settings\nlet settings_xml = &lt;settings&gt;\n        &lt;animation enabled=&quot;True&quot;/&gt;\n    &lt;/settings&gt;;\n\n// format axis\nvar axes_xml = &lt;axes&gt;\n    &lt;x_axis&gt;\n        &lt;title enabled=(xaxis is not nil)&gt;\n            &lt;text&gt; xaxis &lt;/text&gt;\n        &lt;/title&gt;\n        &lt;labels&gt;\n            &lt;format&gt; &quot;{%Value}{numDecimals:0}&quot; &lt;/format&gt;\n        &lt;/labels&gt;\n    &lt;/x_axis&gt;\n    &lt;y_axis position=((type == \'bar\' || type == \'multiseriesbar\') ? &quot;opposite&quot; : nil)&gt;\n        &lt;title enabled=(yaxis is not nil)&gt;\n            &lt;text&gt; yaxis &lt;/text&gt;\n        &lt;/title&gt;\n        &lt;labels&gt;\n            &lt;format&gt; &quot;{%Value}{numDecimals:0}&quot; &lt;/format&gt;\n        &lt;/labels&gt;\n        &lt;scale major_interval=(interval) minor_interval=(interval / 4) minimum=(min) maximum=(max) /&gt;\n    &lt;/y_axis&gt;\n&lt;/axes&gt;;\n\n// set defaults for min-max\nlet min = min ?? 0;\nlet max = max ?? 100;\n\n// format data\nvar data_xml;\nif((type != \'pie\') &amp;&amp; data is map) {\n    let data_xml = &lt;data&gt;\n        foreach (var series:points in data) {\n            &lt;series name=(series)&gt;\n                foreach (var p in points) {\n                    foreach(var label:value in p) {\n                        &lt;point y=(value) name=(label)&gt;\n                            &lt;tooltip enabled=&quot;true&quot;&gt;\n                                &lt;format&gt; &quot;{%SeriesName} ({%Name}) - {%Value}&quot; &lt;/format&gt;\n                            &lt;/tooltip&gt;\n                        &lt;/point&gt;\n                    }\n                }\n            &lt;/series&gt;\n        }\n    &lt;/data&gt;;\n} else if(data is list) {\n    let data_xml = &lt;data&gt;\n        &lt;series name=&quot;Series 1&quot;&gt;\n            foreach(var d in data) {\n                foreach(var label:value in d) {\n                    &lt;point y=(value) name=(label) /&gt;\n                }\n            }\n        &lt;/series&gt;\n    &lt;/data&gt;;\n}\n\n\n// CHART BUILDS\nvar chart;\nswitch (type) {\n\n// SINGLE-SERIES COLUMN CHART, INCOMING DATA MUST BE FORMATTED AS [{label1:value1}, {label2:value2}, {label3:value3}]\n// MULTI-SERIES COLUMN CHART, INCOMING DATA MUST BE FORMATTED AS {series1:[{label1:value1}, {label2:value2}, {label3:value3}], series2:[{label1:value1}, {label2:value2}, {label3:value3}], series3:[{label1:value1}, {label2:value2}, {label3:value3}]}\ncase \'column\':\ncase \'multiseriescolumn\':\ncase \'bar\':\ncase \'multiseriesbar\':\n\n    // determine layout value\n    var layout;\n    switch(type) {\n    case \'column\':\n    case \'multiseriescolumn\':\n        let layout = &quot;CategorizedVertical&quot;;\n    case \'bar\':\n    case \'multiseriesbar\':\n        let layout = &quot;CategorizedHorizontal&quot;;\n    }\n\n    // generate chart xml\n    let chart = &lt;anychart&gt;\n        settings_xml;\n        &lt;charts&gt;\n            &lt;chart plot_type=(layout)&gt;\n                &lt;data_plot_settings default_series_type=&quot;Bar&quot; enable_3d_mode=&quot;true&quot; z_aspect=&quot;0.25&quot;&gt;\n                    &lt;bar_series group_padding=&quot;0.2&quot; &gt;\n                        &lt;tooltip_settings enabled=&quot;true&quot;/&gt;\n                    &lt;/bar_series&gt;\n                &lt;/data_plot_settings&gt;\n                &lt;chart_settings&gt;\n                    &lt;title enabled=(title is not nil)&gt;\n                        &lt;text&gt; title &lt;/text&gt;\n                    &lt;/title&gt;\n                    \n                    // check if we plotting a series of data points\n                    if(data is map) {\n                        &lt;legend enabled=&quot;true&quot; position=&quot;Bottom&quot; align=&quot;Spread&quot; ignore_auto_item=&quot;true&quot; padding=&quot;15&quot;&gt;\n                            &lt;format&gt; &quot;{%Icon} {%Name}&quot; &lt;/format&gt;\n                            &lt;title enabled=&quot;false&quot;/&gt;\n                            &lt;columns_separator enabled=&quot;true&quot;/&gt;\n                            &lt;background&gt;\n                                &lt;inside_margin left=&quot;10&quot; right=&quot;10&quot;/&gt;\n                            &lt;/background&gt;\n                            &lt;items&gt;\n                                &lt;item source=&quot;Series&quot;/&gt;\n                            &lt;/items&gt;\n                        &lt;/legend&gt;\n                    }\n                    axes_xml;\n                &lt;/chart_settings&gt;\n                data_xml;\n            &lt;/chart&gt;\n        &lt;/charts&gt;\n    &lt;/anychart&gt;;\n\n// MULTI-SERIES LINE CHART, INCOMING DATA MUST BE FORMATTED AS {series1:[{label1:value1}, {label2:value2}, {label3:value3}, {label4:value4}], series2:[{label1:value1}, {label2:value2}, {label3:value3}, {label4:value4}], series3:[{label1:value1}, {label2:value2}, {label3:value3}, {label4:value4}]}\ncase &quot;line&quot;:\n    let chart = &lt;anychart&gt;\n        settings_xml;\n        &lt;charts&gt;\n            &lt;chart plot_type=&quot;CategorizedVertical&quot;&gt;\n                &lt;chart_settings&gt;\n                    &lt;title enabled=(title is not nil)&gt;\n                        &lt;text&gt; title &lt;/text&gt;\n                    &lt;/title&gt;\n                    &lt;legend enabled=&quot;true&quot;&gt;\n                        &lt;title enabled=&quot;false&quot;/&gt;\n                    &lt;/legend&gt;\n                    axes_xml;\n                &lt;/chart_settings&gt;\n                &lt;data_plot_settings default_series_type=&quot;Spline&quot;&gt;\n                    &lt;line_series&gt;\n                        &lt;marker_settings&gt;\n                            &lt;marker size=&quot;8&quot;/&gt;\n                            &lt;states&gt;\n                                &lt;hover&gt;\n                                    &lt;marker size=&quot;12&quot;/&gt;\n                                &lt;/hover&gt;\n                            &lt;/states&gt;\n                        &lt;/marker_settings&gt;\n                        &lt;tooltip_settings enabled=&quot;True&quot;/&gt;\n                    &lt;/line_series&gt;\n                &lt;/data_plot_settings&gt;\n                data_xml;\n            &lt;/chart&gt;\n        &lt;/charts&gt;\n    &lt;/anychart&gt;;\n    \n//3D PIE CHART, DATA VARIABLE MUST BE FORMATTED AS {name1:value1, name2:value2, name3:value3}\ncase \'pie\':\n    let chart = \'&lt;anychart&gt;\n        settings_xml;\n        &lt;charts&gt;\n            &lt;chart plot_type=&quot;Pie&quot;&gt;\n                &lt;data_plot_settings enable_3d_mode=&quot;true&quot;&gt;\n                    &lt;pie_series&gt;\n                        &lt;tooltip_settings enabled=&quot;true&quot;&gt;\n                            &lt;format&gt;\n                                {%Name} : {%Value}{numDecimals:0} ({%YPercentOfSeries}{numDecimals: 0}%)\n                            &lt;/format&gt;\n                        &lt;/tooltip_settings&gt;\n                        &lt;label_settings enabled=&quot;true&quot;&gt;\n                            &lt;background enabled=&quot;false&quot;/&gt;\n                            &lt;position anchor=&quot;Center&quot; valign=&quot;Center&quot; halign=&quot;Center&quot; padding=&quot;20&quot;/&gt;\n                            &lt;font color=&quot;White&quot;&gt;\n                                &lt;effects&gt;\n                                    &lt;drop_shadow enabled=&quot;true&quot; distance=&quot;2&quot; opacity=&quot;0.5&quot; blur_x=&quot;2&quot; blur_y=&quot;2&quot;/&gt;\n                                &lt;/effects&gt;\n                            &lt;/font&gt;\n                            &lt;format&gt;{%YPercentOfSeries}{numDecimals:0}%&lt;/format&gt;\n                        &lt;/label_settings&gt;\n                    &lt;/pie_series&gt;\n                &lt;/data_plot_settings&gt;\n                &lt;data&gt;\n                    &lt;series name=&quot;Series 1&quot; type=&quot;Pie&quot;&gt;\'\n                    .. (\n                        foreach (var name:y in data) {\n                            \'&lt;point name=&quot;\' .. name .. \'&quot; y=&quot;\' .. y .. \'&quot;/&gt;\'\n                        }\n                    ) ..\n                    \'&lt;/series&gt;\n                &lt;/data&gt;\n                &lt;chart_settings&gt;\n                    &lt;title enabled=&quot;true&quot; padding=&quot;15&quot;&gt;\n                        &lt;text&gt;\' .. title .. \'&lt;/text&gt;\n                    &lt;/title&gt;\n                    &lt;legend enabled=&quot;true&quot; position=&quot;Bottom&quot; align=&quot;Spread&quot; ignore_auto_item=&quot;true&quot; padding=&quot;15&quot;&gt;\n                        &lt;format&gt;{%Icon} {%Name} - {%YValue}{numDecimals:0}&lt;/format&gt;\n                        &lt;title enabled=&quot;false&quot;/&gt;\n                        &lt;columns_separator enabled=&quot;false&quot;/&gt;\n                        &lt;background&gt;\n                            &lt;inside_margin left=&quot;10&quot; right=&quot;10&quot;/&gt;\n                        &lt;/background&gt;\n                        &lt;items&gt;\n                            &lt;item source=&quot;Points&quot;/&gt;\n                        &lt;/items&gt;\n                    &lt;/legend&gt;\n                &lt;/chart_settings&gt;\n            &lt;/chart&gt;\n        &lt;/charts&gt;\n    &lt;/anychart&gt;\';\n\n// PYRAMID/FUNNEL CHART, DATA VARIABLE MUST BE FORMATTED AS {label1:value1, label2:value2, label3:value3}\ncase \'pyramid\':\ncase \'funnel\':\n    var ispyramid = (type == \'pyramid\');\n    let chart = &lt;anychart&gt;\n        settings_xml;\n        &lt;charts&gt;\n            &lt;chart plot_type=&quot;Funnel&quot;&gt;\n                &lt;chart_settings&gt;\n                    &lt;title enabled=(title is not nil)&gt;\n                        &lt;text&gt; title &lt;/text&gt;\n                    &lt;/title&gt;\n                    &lt;data_plot_background enabled=&quot;false&quot; /&gt;\n                    &lt;legend enabled=&quot;false&quot; /&gt;\n                &lt;/chart_settings&gt;\n                &lt;data_plot_settings enable_3d_mode=&quot;true&quot;&gt;\n                    &lt;funnel_series inverted=(ispyramid) neck_height=(ispyramid ? 0 : nil) fit_aspect=&quot;1&quot; min_width=(ispyramid ? 0 : nil) padding=(ispyramid ? 0 : nil) mode=&quot;Square&quot;&gt;\n                        &lt;animation enabled=&quot;true&quot; type=&quot;Appear&quot; show_mode=&quot;Smoothed&quot; start_time=&quot;0.3&quot; duration=&quot;1.3&quot; interpolation_type=&quot;Cubic&quot;/&gt;\n                        &lt;connector enabled=&quot;true&quot; color=&quot;Black&quot; opacity=&quot;0.4&quot;/&gt;\n                        &lt;tooltip_settings enabled=&quot;true&quot;&gt;\n                            if(ispyramid) {\n                                &lt;position anchor=&quot;CenterRight&quot; padding=&quot;10&quot; valign=&quot;Center&quot; halign=&quot;right&quot;/&gt;\n                            }\n                            &lt;format&gt; &quot;{%Name} - {%YValue}{numDecimals:0}&quot; &lt;/format&gt;\n                        &lt;/tooltip_settings&gt;\n                        &lt;label_settings enabled=&quot;true&quot;&gt;\n                            &lt;animation enabled=&quot;true&quot; type=&quot;Appear&quot; show_mode=&quot;Smoothed&quot; start_time=&quot;0.3&quot; duration=&quot;1.3&quot; interpolation_type=&quot;Cubic&quot;/&gt;\n                            if(ispyramid) {\n                                &lt;position anchor=&quot;Center&quot; valign=&quot;Center&quot; halign=&quot;Center&quot; padding=&quot;10&quot;/&gt;\n                            } else {\n                                &lt;position anchor=&quot;center&quot; padding=&quot;50&quot;/&gt;\n                            }\n                            &lt;format&gt; &quot;{%Name} - {%YValue}{numDecimals:0}&quot; &lt;/format&gt;\n                            &lt;background enabled=&quot;true&quot;&gt;\n                                &lt;corners type=&quot;Rounded&quot; all=&quot;3&quot;/&gt;\n                            &lt;/background&gt;\n                            &lt;states&gt;\n                                &lt;hover&gt;\n                                    &lt;background&gt;\n                                        &lt;border type=&quot;Solid&quot; color=&quot;DarkColor(%Color)&quot; thickness=&quot;2&quot;/&gt;\n                                    &lt;/background&gt;\n                                &lt;/hover&gt;\n                                &lt;pushed&gt;\n                                    &lt;background&gt;\n                                        &lt;border type=&quot;Solid&quot; color=&quot;#494949&quot; thickness=&quot;2&quot; opacity=&quot;0.7&quot;/&gt;\n                                    &lt;/background&gt;\n                                &lt;/pushed&gt;\n                                &lt;selected_hover&gt;\n                                    &lt;background&gt;\n                                        &lt;border type=&quot;Solid&quot; color=&quot;DarkColor(%Color)&quot; thickness=&quot;2&quot; opacity=&quot;0.7&quot;/&gt;\n                                    &lt;/background&gt;\n                                &lt;/selected_hover&gt;\n                                &lt;selected_normal&gt;\n                                    &lt;background&gt;\n                                        &lt;border type=&quot;Solid&quot; color=&quot;DarkColor(%Color)&quot; thickness=&quot;2&quot;/&gt;\n                                    &lt;/background&gt;\n                                &lt;/selected_normal&gt;\n                            &lt;/states&gt;\n                        &lt;/label_settings&gt;\n                        &lt;funnel_style&gt;\n                            &lt;border color=&quot;Black&quot; opacity=&quot;0.05&quot;/&gt;\n                            &lt;states&gt;\n                                &lt;hover&gt;\n                                    &lt;fill color=&quot;%Color&quot;/&gt;\n                                    &lt;hatch_fill enabled=&quot;true&quot; type=&quot;Percent50&quot; color=&quot;White&quot; opacity=&quot;0.3&quot;/&gt;\n                                &lt;/hover&gt;\n                                &lt;selected_hover&gt;\n                                    &lt;fill color=&quot;%Color&quot;/&gt;\n                                    &lt;hatch_fill type=&quot;Checkerboard&quot; color=&quot;#404040&quot; opacity=&quot;0.1&quot;/&gt;\n                                &lt;/selected_hover&gt;\n                                &lt;selected_normal&gt;\n                                    &lt;fill color=&quot;%Color&quot;/&gt;\n                                    &lt;hatch_fill type=&quot;Checkerboard&quot; color=&quot;Black&quot; opacity=&quot;0.1&quot;/&gt;\n                                &lt;/selected_normal&gt;\n                            &lt;/states&gt;\n                        &lt;/funnel_style&gt;\n                        &lt;marker_settings enabled=&quot;true&quot;&gt;\n                            &lt;marker type=&quot;None&quot; anchor=&quot;Center&quot; v_align=&quot;Center&quot; h_align=&quot;Center&quot; size=&quot;12&quot;/&gt;\n                            &lt;fill color=&quot;Yellow&quot;/&gt;\n                            &lt;border color=&quot;DarkColor(Yellow)&quot;/&gt;\n                            &lt;states&gt;\n                                &lt;hover&gt;\n                                    &lt;marker type=&quot;Star5&quot;/&gt;\n                                &lt;/hover&gt;\n                                &lt;pushed&gt;\n                                    &lt;marker type=&quot;Star5&quot; size=&quot;8&quot;/&gt;\n                                &lt;/pushed&gt;\n                                &lt;selected_hover&gt;\n                                    &lt;marker type=&quot;Star5&quot; size=&quot;14&quot;/&gt;\n                                &lt;/selected_hover&gt;\n                                &lt;selected_normal&gt;\n                                    &lt;marker type=&quot;Star5&quot;/&gt;\n                                &lt;/selected_normal&gt;\n                            &lt;/states&gt;\n                        &lt;/marker_settings&gt;\n                    &lt;/funnel_series&gt;\n                &lt;/data_plot_settings&gt;\n                data_xml;\n            &lt;/chart&gt;\n        &lt;/charts&gt;\n    &lt;/anychart&gt;;\n    \n// CIRCULAR GAUGE CHART, DATA VARIABLE MUST BE A NUMBER\ncase \'circulargauge\':\n    let chart = &lt;anychart&gt;\n        settings_xml;\n        &lt;margin all=&quot;0&quot;/&gt;\n        &lt;gauges&gt;\n            &lt;gauge&gt;\n                &lt;chart_settings&gt;\n                    &lt;title enabled=(title is not nil)&gt;\n                        &lt;text&gt; title &lt;/text&gt;\n                    &lt;/title&gt;\n                    &lt;chart_background&gt;\n                        &lt;border enabled=&quot;false&quot;/&gt;\n                    &lt;/chart_background&gt;\n                &lt;/chart_settings&gt;\n                &lt;circular name=&quot;data&quot;&gt;\n                    &lt;axis radius=&quot;37&quot; start_angle=&quot;85&quot; sweep_angle=&quot;190&quot; size=&quot;3&quot;&gt;\n                        &lt;labels align=&quot;Outside&quot; padding=&quot;6&quot;&gt;\n                            &lt;format&gt; &quot;{%Value}{numDecimals:0}&quot; &lt;/format&gt;\n                        &lt;/labels&gt;\n                        &lt;scale_bar&gt;\n                            &lt;fill color=&quot;#292929&quot;/&gt;\n                        &lt;/scale_bar&gt;\n                        &lt;major_tickmark align=&quot;Center&quot; length=&quot;10&quot; padding=&quot;0&quot;/&gt;\n                        &lt;minor_tickmark enabled=&quot;false&quot;/&gt;\n                        &lt;color_ranges&gt;\n                            &lt;color_range start=(min) end=(max) align=&quot;Inside&quot; start_size=&quot;15&quot; end_size=&quot;15&quot; padding=&quot;6&quot;&gt;\n                                &lt;fill type=&quot;Gradient&quot;&gt;\n                                    &lt;gradient&gt;\n                                        &lt;key color=&quot;Red&quot;/&gt;\n                                        &lt;key color=&quot;Yellow&quot;/&gt;\n                                        &lt;key color=&quot;Green&quot;/&gt;\n                                    &lt;/gradient&gt;\n                                &lt;/fill&gt;\n                                &lt;border enabled=&quot;true&quot; color=&quot;Black&quot; opacity=&quot;0.4&quot;/&gt;\n                            &lt;/color_range&gt;\n                        &lt;/color_ranges&gt;\n                    &lt;/axis&gt;\n                    &lt;frame&gt;\n                        &lt;inner_stroke enabled=&quot;false&quot;/&gt;\n                        &lt;outer_stroke enabled=&quot;false&quot;/&gt;\n                        &lt;background&gt;\n                            &lt;fill type=&quot;Gradient&quot;&gt;\n                                &lt;gradient angle=&quot;45&quot;&gt;\n                                    &lt;key color=&quot;#FDFDFD&quot;/&gt;\n                                    &lt;key color=&quot;#F7F3F4&quot;/&gt;\n                                &lt;/gradient&gt;\n                            &lt;/fill&gt;\n                            &lt;border enabled=&quot;true&quot; color=&quot;#A9A9A9&quot;/&gt;\n                        &lt;/background&gt;\n                        &lt;effects enabled=&quot;false&quot;/&gt;\n                    &lt;/frame&gt;\n                    &lt;pointers&gt;\n                        &lt;pointer value=(data) name=&quot;value&quot;&gt;\n                            &lt;label enabled=&quot;true&quot; under_pointers=&quot;true&quot;&gt;\n                                &lt;position placement_mode=&quot;ByPoint&quot; x=&quot;50&quot; y=&quot;60&quot;/&gt;\n                                &lt;format&gt; &quot;{%Value}{numDecimals:0}%&quot; &lt;/format&gt;\n                                &lt;background enabled=&quot;false&quot;/&gt;\n                            &lt;/label&gt;\n                            &lt;needle_pointer_style thickness=&quot;7&quot; point_thickness=&quot;5&quot; point_radius=&quot;3&quot;&gt;\n                                &lt;fill color=&quot;Rgb(230,230,230)&quot;/&gt;\n                                &lt;border color=&quot;Black&quot; opacity=&quot;0.7&quot;/&gt;\n                                &lt;effects enabled=&quot;true&quot;&gt;\n                                    &lt;bevel enabled=&quot;true&quot; distance=&quot;2&quot; shadow_opacity=&quot;0.6&quot; highlight_opacity=&quot;0.6&quot;/&gt;\n                                    &lt;drop_shadow enabled=&quot;true&quot; distance=&quot;1&quot; blur_x=&quot;1&quot; blur_y=&quot;1&quot; opacity=&quot;0.4&quot;/&gt;\n                                &lt;/effects&gt;\n                                &lt;cap&gt;\n                                    &lt;background&gt;\n                                        &lt;fill type=&quot;Gradient&quot;&gt;\n                                            &lt;gradient type=&quot;Linear&quot; angle=&quot;45&quot;&gt;\n                                                &lt;key color=&quot;#D3D3D3&quot;/&gt;\n                                                &lt;key color=&quot;#6F6F6F&quot;/&gt;\n                                            &lt;/gradient&gt;\n                                        &lt;/fill&gt;\n                                        &lt;border color=&quot;Black&quot; opacity=&quot;0.9&quot;/&gt;\n                                    &lt;/background&gt;\n                                    &lt;effects enabled=&quot;true&quot;&gt;\n                                        &lt;bevel enabled=&quot;true&quot; distance=&quot;2&quot; shadow_opacity=&quot;0.6&quot; highlight_opacity=&quot;0.6&quot;/&gt;\n                                        &lt;drop_shadow enabled=&quot;true&quot; distance=&quot;1.5&quot; blur_x=&quot;2&quot; blur_y=&quot;2&quot; opacity=&quot;0.4&quot;/&gt;\n                                    &lt;/effects&gt;\n                                &lt;/cap&gt;\n                            &lt;/needle_pointer_style&gt;\n                            &lt;animation enabled=&quot;true&quot; start_time=&quot;0&quot; duration=&quot;0.7&quot; interpolation_type=&quot;Sine&quot;/&gt;\n                        &lt;/pointer&gt;\n                    &lt;/pointers&gt;\n                &lt;/circular&gt;\n            &lt;/gauge&gt;\n        &lt;/gauges&gt;\n    &lt;/anychart&gt;;\n\n// LINEAR GAUGE, DATA VARIABLE MUST BE A NUMBER\ncase \'lineargauge\':\n    let chart = &lt;anychart&gt;\n        settings_xml;\n        &lt;margin all=&quot;0&quot;/&gt;\n        &lt;gauges&gt;\n            &lt;gauge&gt;\n                &lt;chart_settings&gt;\n                    &lt;title&gt;\n                        &lt;text&gt; title &lt;/text&gt;\n                    &lt;/title&gt;\n                    &lt;chart_background&gt;\n                        &lt;border enabled=&quot;false&quot;/&gt;\n                    &lt;/chart_background&gt;\n                &lt;/chart_settings&gt;\n                &lt;linear name=&quot;data&quot;&gt;\n                    &lt;axis size=&quot;0&quot; position=&quot;50&quot;&gt;\n                        &lt;scale minimum=(min) maximum=(max) major_interval=(interval) minor_interval=(interval / 4) /&gt;\n                        &lt;scale_bar enabled=&quot;false&quot;/&gt;\n                        &lt;labels padding=&quot;5&quot;/&gt;\n                        &lt;color_ranges&gt;\n                            &lt;color_range start=(min) end=(max) align=&quot;Outside&quot; padding=&quot;0&quot; start_size=&quot;8&quot; end_size=&quot;8&quot;&gt;\n                                &lt;fill type=&quot;Gradient&quot;&gt;\n                                    &lt;gradient angle=&quot;90&quot;&gt;\n                                        &lt;key color=&quot;Red&quot;/&gt;\n                                        &lt;key color=&quot;Yellow&quot;/&gt;\n                                        &lt;key color=&quot;Green&quot;/&gt;\n                                    &lt;/gradient&gt;\n                                &lt;/fill&gt;\n                                &lt;border enabled=&quot;true&quot; type=&quot;Solid&quot; color=&quot;Black&quot; opacity=&quot;0.4&quot;/&gt;\n                            &lt;/color_range&gt;\n\n                        &lt;/color_ranges&gt;\n                    &lt;/axis&gt;\n                    &lt;pointers&gt;\n                        &lt;pointer type=&quot;Marker&quot; value=(data) name=&quot;value&quot; color=&quot;#4662B0&quot;&gt;\n                            &lt;tooltip enabled=&quot;true&quot;/&gt;\n                            &lt;marker_pointer_style align=&quot;Outside&quot; padding=&quot;5&quot; width=&quot;10&quot; height=&quot;10&quot;/&gt;\n                            &lt;animation enabled=&quot;true&quot; start_time=&quot;0&quot; duration=&quot;1&quot; interpolation_type=&quot;Elastic&quot;/&gt;\n                            &lt;label enabled=&quot;true&quot;&gt;\n                                &lt;position placement_mode=&quot;ByAnchor&quot; valign=&quot;Center&quot; halign=&quot;Right&quot; padding=&quot;45&quot;/&gt;\n                                &lt;format&gt; &quot;{%Value}{numDecimals:0}%&quot; &lt;/format&gt;\n                                &lt;background enabled=&quot;false&quot;/&gt;\n                            &lt;/label&gt;\n                        &lt;/pointer&gt;\n                    &lt;/pointers&gt;\n                &lt;/linear&gt;\n            &lt;/gauge&gt;\n        &lt;/gauges&gt;\n    &lt;/anychart&gt;;\n    \ndefault:\n    if(!error) {\n        let error = &quot;Invalid chart type selected (did not recognize \'&quot; .. type .. &quot;\')&quot;;\n    }\n}\n\n// check if there was an error\nif(error) {\n    &lt;p style=&quot;color: red&quot;&gt; error &lt;/p&gt;\n} else {\n    anychart(chart, width, height, id);\n}\n</pre>','page created, 1654 words added',1,'20111013202340',0,0,0,1,'20111013202340',1,'','<pre class=\"script\">/***\n    USAGE:\n    \n    Chart(type, data, height, width, xaxis, yaxis, title, min, max, interval, id)\n\n    PARAMETERS:\n    \n    type : str (one of \'circulargauge\', \'column\', \'multiseriescolumn\', \'lineargauge\', \'line\', \'bar\', \'multiseriesbar\', \'pie\', \'pyramid\', or \'funnel\')\n    \n    data : list\n    \n    (optional) height : num (default: 450)\n        Height of chart in pixel or percent.\n        If value is greater or equal to 1, then value represents pixel, otherwise the va...',46,1,'application/x.deki0805+xml','','Chart',NULL,0,NULL,1,'f1eb6ae54c37cd18d6284b4dfa51a328'),(48,10,'MindTouch/Controls/CreatePageFromTemplate','\n<pre class=\"script\">\n/***\n\n    CreatePageFromTemplate(templateName, buttonName)\n\n***/\n\ndekiapi();\njquery.ui(\'smoothness\');\n\nvar templatename = ($templatename ?? $0);\nvar buttonname = ($buttonname ?? $1);\nvar buttontext = &quot;Enter &quot; .. string.tolower(buttonname) .. &quot; name&quot;;\n\n&lt;div id=&quot;newpagediv&quot;&gt;\n    &lt;table id=&quot;newpagetable&quot; style=&quot;width:100%;&quot; class=&quot;table&quot;&gt;\n        &lt;tr&gt;\n            &lt;th id=&quot;nptth&quot;&gt;\n                &quot;Create &quot; .. buttonname;\n            &lt;/th&gt;\n        &lt;/tr&gt;\n        &lt;tr&gt;\n            &lt;td&gt;\n                &lt;div id=&quot;waitdiv&quot;&gt;\n                    template(&quot;MindTouch/Controls/WaitingIcon32x32&quot;);\n                    &lt;br /&gt;\n                    &quot;Please wait...&quot;;\n                &lt;/div&gt;\n                &lt;div id=&quot;creatediv&quot;&gt;\n                    template(&quot;MindTouch/Controls/TextBox&quot;, { \n                        id: &quot;pname&quot;, \n                        text: buttontext, \n                        class: &quot;&quot;\n                    });\n                    &lt;input type=&quot;hidden&quot; value=(page.path) id=&quot;ppath&quot;/&gt;\n                    &lt;input type=&quot;hidden&quot; value=(\'Template:\' .. templatename) id=&quot;tp&quot;/&gt;\n                    &lt;input type=&quot;hidden&quot; value=(site.uri) id=&quot;siteuri&quot;/&gt;\n                    &lt;br /&gt;\n                    &lt;br /&gt;\n                    &lt;input type=&quot;button&quot; value=(buttonname) ctor=&quot;\n                        var working = false;\n                        when($this.click) {\n                            if (working == false) {\n                                working = true;\n                                #creatediv.hide();\n                                #waitdiv.show();\n                                @newpage({\n                                    siteuri: #siteuri.val(), \n                                    pname: #pname.val(), \n                                    ppath: #ppath.val(), \n                                    tpath: #tp.val() \n                                });\n                            };\n                        }\n                        \n                        when(@newpage) {\n                            var page_path = @newpage.ppath + \'/\' + @newpage.pname;\n                            var page_api = MindTouch.Deki.GetPageApi(Deki.Env.SiteApi, page_path);\n                            MindTouch.Web.Get(page_api, null, function(xhr) {\n                                if(xhr.status == \'200\') {\n                                    alert(\'That page already exists. Please choose a different name.\');\n                                    #creatediv.show();\n                                    #waitdiv.hide();\n                                    #pname.val(\'Enter \' + {{ string.tolower(buttonname) }} + \' name\');\n                                    working = false;\n                                } else if(xhr.status == \'404\') { \n                                    var template_api = MindTouch.Deki.GetPageApi(Deki.Env.SiteApi, @newpage.tpath);\n                                    MindTouch.Deki.CreatePageFromTemplate(page_api, template_api, function() {\n                                        @loadnewpage({ \n                                            siteuri: @newpage.siteuri, \n                                            ppath: @newpage.ppath, \n                                            pname: @newpage.pname\n                                        }); \n                                    }, function() {\n                                        alert(\'Page create failed. Please try again.\');\n                                        working = false;\n                                    });\n                                }\n                            });\n                        };\n            \n                        when(@loadnewpage) {\n                            var newpath = (@loadnewpage.siteuri + @loadnewpage.ppath + \'/\' + @loadnewpage.pname);\n                            window.location = newpath;\n                        };\n                    &quot; /&gt; \n                &lt;/div&gt;\n            &lt;/td&gt;\n        &lt;/tr&gt;\n    &lt;/table&gt;\n&lt;/div&gt;\n\n\n&lt;div&gt;&lt;style type=&quot;text/css&quot;&gt;&quot;\n#pname {\nfont-style: italic; \ncolor: #778899;\n}\n\n#newpagetable {\n    width: 100% !important;\n}\n\n#newpagetable #nptth {\n    text-align: center !important;\n}\n\n#waitdiv {\n    display: none;\n    text-align: center;\n}\n\n#creatediv {\n    text-align: center;\n}\n\n&quot;&lt;/style&gt;&lt;/div&gt;</pre>\n','page created, 269 words added',1,'20111013202340',0,0,0,1,'20111013202340',1,'','\n<pre class=\"script\">\n/***\n\n    CreatePageFromTemplate(templateName, buttonName)\n\n***/\n\ndekiapi();\njquery.ui(\'smoothness\');\n\nvar templatename = ($templatename ?? $0);\nvar buttonname = ($buttonname ?? $1);\nvar buttontext = &quot;Enter &quot; .. string.tolower(buttonname) .. &quot; name&quot;;\n\n&lt;div id=&quot;newpagediv&quot;&gt;\n    &lt;table id=&quot;newpagetable&quot; style=&quot;width:100%;&quot; class=&quot;table&quot;&gt;\n        &lt;tr&gt;\n            &lt;th id=&quot;nptth&quot;&gt;\n  ...',46,1,'application/x.deki0805+xml','','CreatePageFromTemplate',NULL,0,NULL,1,'73dd3d5fc35fb1b7e7d21f6ed177b6c6'),(49,10,'MindTouch/Controls/DatePicker','\n<pre class=\"script\">\n/***\n\n    DatePicker(id, class, date)\n\n    (optional) id : str\n\n    (optional) class : str\n\n    (optional) date : str\n\n***/\n\nvar id = $id;\nvar class = $class;\nvar startdate = $date ?? date.format(date.now, \'MM/dd/yyyy\');\n\njquery.ui(\'smoothness\');\n\n&lt;input id=(id) class=(class) type=&quot;text&quot; value=(startdate) ctor=&quot;$this.datepicker();&quot; /&gt;\n</pre>','page created, 44 words added',1,'20111013202340',0,0,0,1,'20111013202340',1,'','\n<pre class=\"script\">\n/***\n\n    DatePicker(id, class, date)\n\n    (optional) id : str\n\n    (optional) class : str\n\n    (optional) date : str\n\n***/\n\nvar id = $id;\nvar class = $class;\nvar startdate = $date ?? date.format(date.now, \'MM/dd/yyyy\');\n\njquery.ui(\'smoothness\');\n\n&lt;input id=(id) class=(class) type=&quot;text&quot; value=(startdate) ctor=&quot;$this.datepicker();&quot; /&gt;\n</pre>',46,1,'application/x.deki0805+xml','','DatePicker',NULL,0,NULL,1,'ba5a1c436fc755ee0c909ce6c9e3130a'),(50,10,'MindTouch/Controls/DateTime','<pre class=\"script\">/***\n    USAGE:\n    \n    DateTime(date, format, timezone)\n\n    PARAMETERS:\n    \n    date : str\n        Date string to parse, in standard GMT format, i.e. &quot;Thu, 03 Feb 2000 04:15:00 GMT&quot;\n    \n    (optional) format : str (default: \'date\')\n        Format string to use, one of \'date\', \'datetime\' or \'time\'\n        date     =&gt; Jun 1, 2010\n        datetime =&gt; Jun 1, 2010 7:35 PM\n        time     =&gt; 7:35 PM\n\n    (optional) timezone : str (default: user.timezone)\n        Timezone to use to render time\n    \n    VERSIONS:\n    \n    1.0     2-Jun-10    kalida     initial version\n\n***/\n\nvar dateStr = $0 ?? $date;\nvar format = string.tolower($1 ?? $format ?? \'date\');\nvar timezone = $2 ?? $timezone ?? user.timezone;\n\nif (#dateStr &gt; 0) {\n    let dateStr = date.changetimezone(dateStr, timezone);\n\n    switch (format) {\n        case \'date\':\n            date.format(dateStr, \'MMM d, yyyy\');\n            break;\n\n        case \'datetime\':\n            date.format(dateStr, \'MMM d, yyyy h:mm tt\');\n            break;\n\n        case \'time\':\n            date.format(dateStr, \'h:mm tt\');\n            break;\n    }\n} else {\n    &lt;span class=&quot;error-dekiscript&quot;&gt;\'Error: empty date provided\'&lt;/span&gt;;\n}\n</pre>','page created, 144 words added',1,'20111013202340',0,0,0,1,'20111013202341',1,'','<pre class=\"script\">/***\n    USAGE:\n    \n    DateTime(date, format, timezone)\n\n    PARAMETERS:\n    \n    date : str\n        Date string to parse, in standard GMT format, i.e. &quot;Thu, 03 Feb 2000 04:15:00 GMT&quot;\n    \n    (optional) format : str (default: \'date\')\n        Format string to use, one of \'date\', \'datetime\' or \'time\'\n        date     =&gt; Jun 1, 2010\n        datetime =&gt; Jun 1, 2010 7:35 PM\n        time     =&gt; 7:35 PM\n\n    (optional) timezone : str (default: user.timezone)...',46,1,'application/x.deki0805+xml','','DateTime',NULL,0,NULL,1,'149c3a63559654d019b1869ff95a5d87'),(51,10,'MindTouch/Controls/DependencyErrors','<pre class=\"script\">/***\n    USAGE:\n    \n    DependencyErrors(components, license, permissions)\n\n    PARAMETERS:\n    \n    components : list of maps, [{}, {}, {}, ...]\n        Components to test. Each component defines\n            name =&gt; component name or capability to test for\n            sid =&gt; Service ID (sid) to check for in license. If present, does a service check.\n            requires =&gt; Capability to check in the license. If present, does a capability check. \n            (optional) title =&gt; User-friendly component name\n            (optional) link =&gt; Link for more information in case of error\n    \n    (optional) license : str (default: nil)\n        Site license type to check for; one of \'commercial\' or nil\n\n    (optional) permission : str (default: nil)\n        Permissions required for current user; one of \'admin\' or nil\n    \n    VERSIONS:\n    \n    1.0     15-Jun-10    kalida     initial version\n    1.1     15-Jul-10    kalida     added capability checks\n    1.2     03-Mar-11    kalida     updated regex for bug MT-9851\n\n***/\n\nvar components = $0 ?? $components ?? [];\nvar license = $1 ?? $license ?? nil;\nvar permission = $2 ?? $permission ?? nil;\n\nvar licenseError = nil;\nvar permissionError = nil;\nvar componentErrors = nil;\n\n// general data lookups\nvar licenseXML = wiki.api(site.api &amp; \'license\');\n\n// if no explicit expiration, use a far-future date\nvar licenseExpires = xml.date(licenseXML, \'date.expiration\') ?? date.addyears(date.now, 100);\nvar prefix = \'mindtouch.templates.dependencyerrors.\';\nvar sidList = [];\n\n// gather existing licensed services\nforeach (var serviceLicense in licenseXML[\'grants/service-license\']) {\n    var sid = string.Match(xml.text(serviceLicense), \'(?&lt;=sid=&quot;)(.*?)(?=&quot;)\');\n\n    // if valid sid, add with expiration date \n    if (#sid &gt; 0) {\n        var sidExpires = licenseExpires;\n\n        // attempt to find expiration date in text or as attribute\n        var expires = string.Match(xml.text(serviceLicense), \'(?&lt;=expire=&quot;)(.*?)(?=&quot;)\');\n\n        if (#expires &gt; 0) {\n            let sidExpires = date.parse(expires);\n        } else if (#xml.text(serviceLicense, \'@date.expire\') &gt; 0) {\n            let sidExpires = xml.date(serviceLicense, \'@date.expire\');\n        }\n\n        let sidList = sidList .. [{sid: sid, expires: sidExpires}];\n    }\n}\n\n// gather licensed capabilities\nvar capabilityGrants = {};\nforeach (var grant in licenseXML[\'grants/*[not(name()=&quot;service-license&quot;)]\']) {\n    var grantName = xml.name(grant);\n    var grantValue = xml.text(grant);\n    let capabilityGrants = capabilityGrants .. { (grantName): grantValue};\n}\n\n// check license\nif (license == \'commercial\') {\n    var currentLicense = xml.text(licenseXML, \'@type\');\n\n    if (license != currentLicense &amp;&amp; currentLicense != \'trial\') {\n        let licenseError = wiki.localize(prefix .. \'error.license\');\n    }\n    else if (date.Compare(date.now, licenseExpires) &gt; 0 ) {\n        let licenseError = wiki.localize(prefix .. \'error.license.expired\');\n    }\n}\n\n// check user permissions\nif (permission == \'admin\') {\n    if (!user.admin) {\n        let permissionError = wiki.localize(prefix .. \'error.permission\');\n    }\n}\n\n// check components\nforeach (var component in components) {\n    var errorMessage = nil;\n    var title = component.title ?? component.name;\n    var link = component.link ?? \'http://www.mindtouch.com/redir/dependency/\';\n\n    // if component.requires available is a cabality check\n    var serviceCheck = component.requires is nil;\n\n    // admins are able to check if service licensed\n    if (user.admin &amp;&amp; component.sid &amp;&amp; serviceCheck) {\n\n        // component is valid if any licensed sid is a prefix match\n        var foundLicense = false;\n        var expiredLicense = false;\n        foreach (var sidItem in sidList) {\n            if (string.StartsWith(component.sid, sidItem.sid)) {\n                let foundLicense = true;\n            \n                if (date.Compare(date.now, sidItem.expires) &gt; 0 ) {\n                    let expiredLicense = true;\n                }\n\n                // found component, avoid searching others\n                break;\n            }\n        }\n\n        if (!foundLicense) {\n            let errorMessage = &lt;a href=(link) rel=&quot;component-unlicensed&quot;&gt;wiki.localize(prefix .. \'error.component.unlicensed\', [title])&lt;/a&gt;\n        } else if (expiredLicense) {\n            let errorMessage = &lt;a href=(link) rel=&quot;component-expired&quot;&gt;wiki.localize(prefix .. \'error.component.expired\', [title])&lt;/a&gt;\n        }\n    }\n\n    // name is required\n    if (!component.name) {\n        let errorMessage = wiki.localize(prefix .. \'error.component.unnamed\');\n    }\n    else if (!errorMessage &amp;&amp; !__env[component.name] &amp;&amp; serviceCheck) {\n\n        // @TODO kalida: in future, have separate checks for not installed vs. not running\n        let errorMessage = &lt;a href=(link) rel=&quot;component-missing&quot;&gt;wiki.localize(prefix .. \'error.component.missing\', [title])&lt;/a&gt;\n    }\n\n    // if capability check, ensure it is granted \n    if (!serviceCheck &amp;&amp; capabilityGrants[component.name] != component.requires) {\n        var currentValue = capabilityGrants[component.name] ?? wiki.localize(prefix .. \'error.capability.missing.default\');\n        let errorMessage = &lt;a href=(link) rel=&quot;capability-missing&quot;&gt;\n            wiki.localize(prefix .. \'error.capability.missing\', [title, component.requires, currentValue])\n            &lt;/a&gt;;\n    }\n\n    // add this error to the list\n    if (errorMessage) {\n        let componentErrors = componentErrors .. [{component: component, message: errorMessage}];\n    }\n}\n\n// list missing dependencies\nif (licenseError) {\n    &lt;div class=&quot;error-dependency error-license&quot;&gt;\n        licenseError;\n    &lt;/div&gt;\n} else if (permissionError) {\n    &lt;div class=&quot;error-dependency error-permission&quot;&gt;\n        permissionError;\n    &lt;/div&gt;\n} else if (componentErrors) {\n    &lt;div class=&quot;error-dependency error-component&quot;&gt;\n        wiki.localize(prefix .. \'label.components.error\');\n        &lt;ul&gt;\n            foreach (var error in componentErrors) {\n                &lt;li class=(error.component.name)&gt;\n                    error.message;\n                &lt;/li&gt;\n            }\n        &lt;/ul&gt;\n    &lt;/div&gt;\n}</pre>\n','page created, 658 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','<pre class=\"script\">/***\n    USAGE:\n    \n    DependencyErrors(components, license, permissions)\n\n    PARAMETERS:\n    \n    components : list of maps, [{}, {}, {}, ...]\n        Components to test. Each component defines\n            name =&gt; component name or capability to test for\n            sid =&gt; Service ID (sid) to check for in license. If present, does a service check.\n            requires =&gt; Capability to check in the license. If present, does a capability check. \n            (opt...',46,1,'application/x.deki0805+xml','','DependencyErrors',NULL,0,NULL,1,'d9c55700ebc05d64a403f3d9f1939c09'),(52,10,'MindTouch/Controls/DisablePageControls','\n<pre class=\"script\">\n/***\n\n    DisablePageControls()\n\n***/\n\n&lt;html&gt;&lt;tail&gt;\n&lt;script type=&quot;text/jem&quot;&gt;&quot;\n    $(\'.pageedit\').css(\'display\', \'none\');\n    $(\'.pagecreate\').css(\'display\', \'none\');\n    $(\'.pageProperties\').css(\'display\', \'none\');\n    $(\'.pageMove\').css(\'display\', \'none\');\n    $(\'.pageDelete\').css(\'display\', \'none\');\n    $(\'.pageRestrict\').css(\'display\', \'none\');\n&quot;&lt;/script&gt;\n&lt;/tail&gt;&lt;/html&gt;\n</pre>\n','page created, 34 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','\n<pre class=\"script\">\n/***\n\n    DisablePageControls()\n\n***/\n\n&lt;html&gt;&lt;tail&gt;\n&lt;script type=&quot;text/jem&quot;&gt;&quot;\n    $(\'.pageedit\').css(\'display\', \'none\');\n    $(\'.pagecreate\').css(\'display\', \'none\');\n    $(\'.pageProperties\').css(\'display\', \'none\');\n    $(\'.pageMove\').css(\'display\', \'none\');\n    $(\'.pageDelete\').css(\'display\', \'none\');\n    $(\'.pageRestrict\').css(\'display\', \'none\');\n&quot;&lt;/script&gt;\n&lt;/tail&gt;&lt;/html&gt;\n</pre>\n',46,1,'application/x.deki0805+xml','','DisablePageControls',NULL,0,NULL,1,'90707ae70636ca818f0bc8b2c3fed2bd'),(53,10,'MindTouch/Controls/EditableBulletList','\n<pre class=\"script\">\n/***\n\n    EditableBulletList\n\n    (optional) values : list\n\n    (optional) noValuesLabel : str\n\n    (optional) editLabel : str\n\n    (optional) addLabel : str\n\n    (optional) saveLabel : str\n\n    (optional) cancelLabel : str\n\n    (optional) publish : str\n\n    (optional) class : str\n\n    (optional) readOnly : bool\n\n    (optional) readOnlyAlert : str\n\n    (optional) message : map\n\n***/\n\n// TODO (steveb):\n// 1) reset the contents of the textboxes when the edit operation is canceled\n// 2) update the bullet list after save is confirmed\n\n\n// read parameters\nvar values = $values ?? [ ];\nvar novalueslabel = $novalueslabel ?? \'There are no values.\';\nvar editlabel = $editlabel ?? \'edit\';\nvar addlabel = $addlabel ?? \'add\';\nvar savelabel = $savelabel ?? \'save\';\nvar cancellabel = $cancellabel ?? \'cancel\';\nvar channel = $publish ?? \'default\';\nvar class = $class;\nvar readonly = $readonly ?? user.anonymous;\nvar readonlyalert = $readonlyalert ?? \'You must login to edit these values.\';\nvar message = $message ?? { };\n\n// render controls\n&lt;div id=(@div) class=(class)&gt;\n\n    // check if the edit button should be enabled\n    if(readonly) {\n        &lt;input type=&quot;button&quot; value=(editlabel) id=(@edit) ctor=&quot;\n            when($this.click) alert({{ readonlyalert }});\n        &quot;/&gt;\n    } else {\n        &lt;input type=&quot;button&quot; value=(editlabel) id=(@edit) ctor=&quot;\n            when($this.click) @toggle();\n        &quot;/&gt;\n    }\n    \n    // render current values as a bulleted list\n    &lt;div id=(@displayspan)&gt;\n        if(#values == 0) {\n            &lt;div id=(@resizeonedit)&gt;\n                novalueslabel\n            &lt;/div&gt;\n        } else {\n            &lt;ul&gt;\n                foreach(var value in values) {\n                    &lt;li&gt; value &lt;/li&gt;\n                }\n            &lt;/ul&gt;\n        }\n    &lt;/div&gt;\n    \n    // render the edit form\n    &lt;form id=(@changeform)&gt;\n        if(#values != 0) {\n            foreach(var value in values) {\n                &lt;textarea&gt;\n                    value\n                &lt;/textarea&gt;\n            }\n        } else {\n            &lt;textarea /&gt;\n        }\n\n        // separate the input boxes from the controls\n        &lt;div class=&quot;cleardiv&quot;&gt; &amp;nbsp; &lt;/div&gt;\n\n        // render the add button\n        &lt;input type=&quot;button&quot; id=(@add) value=(addlabel) ctor=&quot;\n            when($this.click) $(\'#\' + {{ @changeform }} + \' textarea:last\').after(\'&lt;textarea&gt;&lt;/textarea&gt;\');\n        &quot;/&gt;\n        \n        // render the save button\n        &amp;nbsp;;\n        &lt;input type=&quot;button&quot; id=(@save) value=(savelabel) ctor=&quot;\n            when($this.click) {\n                var newvalues = [ ];\n                $(\'#\' + {{ @changeform }} + \' textarea\').each(function() {\n                    var val = $(this).val();\n                    if(val != \'\') newvalues.push(val);\n                });\n                var msg = {{ message }};\n                msg.values = newvalues;\n                msg.completed = function() { @toggle(); };\n                Deki.publish({{ channel }}, msg);\n            }\n        &quot;/&gt;\n\n        // render the cancel button\n        &amp;nbsp;;\n        &lt;input type=&quot;button&quot; id=(@cancel) value=(cancellabel) ctor=&quot;\n            when($this.click) @toggle();\n        &quot;/&gt;\n    &lt;/form&gt;\n&lt;/div&gt;\n\n// script\n&lt;script type=&quot;text/jem&quot;&gt;&quot;\nwhen(@toggle) {\n    $(\'#\' + {{ @changeform }} + \',#\' + {{ @displayspan }} + \',#\' + {{ @edit }}).slideToggle();\n    var resizeonedit = $(\'#\' + {{ @resizeonedit }});\n    if(resizeonedit.css(\'padding-top\') == \'0px\') {\n        resizeonedit.css(\'padding-top\', \'1.6em\');\n    } else {\n        resizeonedit.css(\'padding-top\', \'0px\');\n    }\n}\n&quot;&lt;/script&gt;\n\n// styles\n&lt;style type=&quot;text/css&quot;&gt;&quot;\n#&quot; .. @resizeonedit .. &quot; {\n    padding-top: 1.6em;\n}\n#&quot; .. @changeform .. &quot; {\n    display: none;\n}\n#&quot; .. @changeform .. &quot; textarea {\n    width: 50%;\n    float: left;\n    margin-bottom: 5px;\n}\n#&quot; .. @div .. &quot; .cleardiv {\n    height:1px;\n    clear:both;\n}\n&quot;&lt;/style&gt;\n</pre>','page created, 361 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','\n<pre class=\"script\">\n/***\n\n    EditableBulletList\n\n    (optional) values : list\n\n    (optional) noValuesLabel : str\n\n    (optional) editLabel : str\n\n    (optional) addLabel : str\n\n    (optional) saveLabel : str\n\n    (optional) cancelLabel : str\n\n    (optional) publish : str\n\n    (optional) class : str\n\n    (optional) readOnly : bool\n\n    (optional) readOnlyAlert : str\n\n    (optional) message : map\n\n***/\n\n// TODO (steveb):\n// 1) reset the contents of the textboxes when the edit operation is c...',46,1,'application/x.deki0805+xml','','EditableBulletList',NULL,0,NULL,1,'5657996d5c3d1bce1e294c7ddf1461c5'),(54,10,'MindTouch/Controls/ListPages','<pre class=\"script\">/***\n    USAGE:\n\n    ListPages(pages, sort, reverse, limit, style, stripTitlePrefix)\n        create a bulleted list of sorted pages with an optional limit\n\n    PARAMETERS:\n\n    (optional) pages : list/map/str\n        list/map of pages to list; if pages is a str, then it is used as a path to a parent page to list all subpages; \n        defaults to list of subpages of current page\n\n    (optional) sort : str\n        sort order for pages; one of \'custom\', \'updated\', \'created\', \'viewed\', \'rated\', or \'title\'; defaults to \'title\'\n\n    (optional) reverse : bool\n        reverse sort order; defaults to false\n\n    (optional) limit : num\n        maximum number of pages to show; defaults to no limit\n\n    (optional) style : str\n        list style to use; one of \'numbers\' or \'bullets\'; defaults to \'numbers\'\n        \n    (optional) stripTitlePrefix : str\n        strip title prefix when present; defaults to none\n\n***/\n\nvar pages = $0 ?? $pages ?? page.subpages;\nif(pages is str) let pages = wiki.getpage(pages).subpages;\nif(pages is map) let pages = map.values(pages);\nvar sort = $1 ?? $sort ?? \'title\';\nvar reverse = $2 ?? $reverse ?? false;\nvar limit = $3 ?? $limit;\nvar liststyle = $4 ?? $style ?? \'numbers\';\nvar striptitleprefix = $5 ?? $striptitleprefix;\nvar dateformat = $dateformat ?? xml.text(wiki.localize(\'MindTouch.Templates.Controls.ListPages.dateformat\'));\nvar numformat = $numformat ?? xml.text(wiki.localize(\'MindTouch.Templates.Controls.ListPages.numformat\'));\n\n// sort pages list depending on sort order\nswitch(sort) {\ncase \'updated\':\n    let pages = [ p .. { sortkey: date.format(d, \'yyyyMMddHHmmss\'), sortlabel: date.format(d, dateformat) } foreach var p in pages, var d = p.date ];\ncase \'created\':\n    let pages = [ p .. { sortkey: date.format(d, \'yyyyMMddHHmmss\'), sortlabel: date.format(d, dateformat) } foreach var p in pages, var d = p.revisions[0].date ];\ncase \'viewed\':\ncase \'viewcount\':\n    let pages = [ p .. { sortkey: num.format(p.viewcount, \'0000000000\'), sortlabel: num.format(p.viewcount, numformat) } foreach var p in pages ];\ncase \'rated\':\n    let pages = [ p .. { sortkey: num.format(r.score ?? 0, \'0.000000000\'), sortlabel: r.score ? num.format(r.score, \'###%\') : nil } foreach var p in pages, var r = p.rating ];\n    break;\ncase \'custom\':\n    break;\ncase \'title\':\ndefault:\n    let pages = [ p .. { sortkey: p.title, sortlabel: nil } foreach var p in pages ];\n}\n\n// determine list style\nvar listelem;\nswitch(string.tolower(liststyle)) {\ncase \'bullets\':\n    let listelem = \'ul\';\ncase \'numbers\':\ndefault:\n    let listelem = \'ol\';\n}\n\n// check if there is at least one page to show\nif(#pages) {\n    let pages = list.sort(pages, \'sortkey\', reverse);\n    &lt;font size=&quot;-1&quot;&gt;\n        &lt;(listelem)&gt;\n            foreach(var p in pages where limit ? (__count &lt; limit) : true) {\n                &lt;li&gt; \n                    var title = p.title;\n                    if(striptitleprefix &amp;&amp; string.startswith(p.title, striptitleprefix, true)) {\n                        let title = string.trim(string.substr(p.title, #striptitleprefix));\n                    }\n                    web.link(p.uri, title);\n\n                    // check if there is a label to show\n                    if(p.sortlabel) {\n                        &lt;span style=&quot;color: rgb(128, 128, 128); font-size: smaller;&quot;&gt;\n                            \' (\'; p.sortlabel; \')\';\n                        &lt;/span&gt;\n                    }\n                &lt;/li&gt;\n            }\n        &lt;/&gt;\n    &lt;/font&gt;\n}</pre>\n','page created, 436 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','<pre class=\"script\">/***\n    USAGE:\n\n    ListPages(pages, sort, reverse, limit, style, stripTitlePrefix)\n        create a bulleted list of sorted pages with an optional limit\n\n    PARAMETERS:\n\n    (optional) pages : list/map/str\n        list/map of pages to list; if pages is a str, then it is used as a path to a parent page to list all subpages; \n        defaults to list of subpages of current page\n\n    (optional) sort : str\n        sort order for pages; one of \'custom\', \'updated\', \'created\',...',46,1,'application/x.deki0805+xml','','ListPages',NULL,0,NULL,1,'c4211f873b752f5cdb6f992403161620'),(55,10,'MindTouch/Controls/MissingDependencies','<pre class=\"script\">/***\n\n    !!! DEPRECATED !!! use DependencyErrors template instead\n\n    MissingDependencies(title, link, check) \n***/\n\n// show warning message\n&lt;p&gt;\n    &lt;strong&gt;\n        &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; &quot;Warning: &quot;&lt;/span&gt;\n        if($link) {\n            web.link($link, $title);\n        } else {\n            $title;\n        }\n        &quot; is missing one or more dependencies.&quot;\n    &lt;/strong&gt;\n&lt;/p&gt;\n\n&lt;p&gt;\n    &quot;Please ensure that the following extensions are installed:&quot;\n&lt;/p&gt;\n\n// list missing dependencies\nif($check) {\n    &lt;ul&gt;\n        foreach(var check in $check) {\n            if(!check.test || !__env[check.test]) {\n                &lt;li&gt;\n                    if(check.link) {\n                        web.link(check.link, check.title);\n                    } else {\n                        check.title;\n                    }\n                &lt;/li&gt;\n            }\n        }\n    &lt;/ul&gt;\n}\n</pre>\n','page created, 81 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','<pre class=\"script\">/***\n\n    !!! DEPRECATED !!! use DependencyErrors template instead\n\n    MissingDependencies(title, link, check) \n***/\n\n// show warning message\n&lt;p&gt;\n    &lt;strong&gt;\n        &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; &quot;Warning: &quot;&lt;/span&gt;\n        if($link) {\n            web.link($link, $title);\n        } else {\n            $title;\n        }\n        &quot; is missing one or more dependencies.&quot;\n    &lt;/strong&gt;\n&lt;/p&gt;\n\n&lt;p&gt;\n    ...',46,1,'application/x.deki0805+xml','','MissingDependencies',NULL,0,NULL,1,'cd7464f91fe38e00ae647029d191bdc0'),(56,10,'MindTouch/Controls/PageDirectory','<pre class=\"script\">/***\n\n    PageDirectory\n        creates a searchable directory of pages organized by tabs and filtered by tags\n\n    Arguments:\n\n    path : str (optional, default: current page path)\n        page path the the parent page where the subpages to be organized are located\n\n    most_popular : map (optional, default: none)\n        show section for most popular pages that have a given tag\n\n        tag : str\n            tag to used for the split between left and right columns for most popular;\n            left pages have the tag, right pages do not\n\n        title : str\n            title shown for left column\n\n    tabs : list (optional, default: empty list)\n        list of maps describing each tab to show; map entries may contain the following fields\n\n        label : str\n            label for the tab\n\n        key : str\n            key used to identify the selected tab\n\n    featured_limit : num (optional, default: 15)\n        number of pages to show in the &quot;Featured&quot; category\n\n    cache_prefix : str (optional, default: none)\n        when set, caches the page directory for a given view using this key\n\n    tag_constraint : str -or- list (optional, default: none)\n        only list pages that have all of the specified tags\n\n***/\n\n// read parameters\nvar path = $path ?? page.path;\nvar most_popular = $most_popular;\nvar tabs = $tabs ?? [ ];\nvar featured_limit = $featured_limit ?? 15;\nvar cache_prefix = $cache_prefix;\nvar tag_constraint = $tag_constraint;\n\n// check how the current page is being invoked\nvar query = __request.args.q;\nvar view = __request.args.v ?? (query ? \'search\' : \'featured\');\n\n// define variables\nvar render;\nvar cache_id;\nvar pages;\nvar constraint = \'type:wiki AND path:\' .. string.searchescape(path) .. \'*\';\nif(tag_constraint is str) {\n    let constraint ..= \' AND tag:&quot;\' .. string.escape(tag_constraint) .. \'&quot;\';\n} else if(tag_constraint is list) {\n    let constraint ..= \' AND \' .. string.join([ \' AND tag:&quot;\' .. string.escape(tag) .. \'&quot;\' foreach var tag in tag_constraint where tag is str ], \' AND \');\n}\n\n// check if a search was requested\nif(query) {\n    if(path[-1] != \'/\') {\n        let path = path .. \'/\';\n    }\n    let pages = wiki.getsearch(query, 1000, _, constraint);\n} else {\n    let pages = wiki.getsearch(constraint, 1000);\n    if(cache_prefix) {\n        let cache_id = cache_prefix .. \'-cache-\' .. view;\n        let render = __env.webcache &amp;&amp; webcache.fetch(cache_id);\n    }\n}\n\nif(!render) {\n    let render = (\n\n        // remove pages starting with \'*\'\n        let parent_page = wiki.getpage(path);\n        let pages = [ p foreach var p in pages where !string.startswith(p.name, \'*\') &amp;&amp; p.parent.id == parent_page.id ];\n\n        // show page count\n        &lt;p&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.entrycount&quot;, [ num.format(#pages, &quot;#,##0&quot;) ]) &lt;/p&gt;;\n        &lt;p&gt; string.nbsp &lt;/p&gt;\n\n        // show directory based on current views\n        &lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot;&gt;\n            &lt;tr&gt;\n                &lt;td&gt;\n                    if(view == \'featured\') {\n                        &lt;strong&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewfeatured&quot;) &lt;/strong&gt;;\n                    } else {\n                        web.link(page.uri, wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewfeatured&quot;));\n                    }\n                &lt;/td&gt;\n                if(#tabs) {\n                    foreach(var tab in tabs) {\n                        &lt;td&gt;\n                            if(view == tab.key) {\n                                &lt;strong&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewby&quot;, [ tab.label ]) &lt;/strong&gt;;\n                            } else {\n                                web.link(page.uri &amp; { v: tab.key }, wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewby&quot;, [ tab.label ]));\n                            }\n                        &lt;/td&gt;\n                    }\n                } else {\n                    &lt;td&gt;\n                        if(view == \'all\') {\n                            &lt;strong&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewall&quot;) &lt;/strong&gt;;\n                        } else {\n                            web.link(page.uri &amp; { v: \'all\' }, wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.viewall&quot;));\n                        }\n                    &lt;/td&gt;\n                }\n                &lt;td&gt;\n                    &lt;form method=&quot;get&quot; action=(page.uri)&gt;\n                        if(view == \'search\') {\n                            &lt;strong&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.search&quot;); &lt;/strong&gt;; \n                        } else {\n                            wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.search&quot;);\n                        }\n                        &amp;nbsp;;\n                        &lt;input name=&quot;q&quot; type=&quot;text&quot; value=(query ?? \'\') /&gt;\n                        &lt;input type=&quot;submit&quot; value=&quot;Go&quot; /&gt;\n                    &lt;/form&gt;\n                &lt;/td&gt;\n            &lt;/tr&gt;\n        &lt;/table&gt;\n\n        switch(view) {\n        case \'featured\':\n\n            // show \'Most Popular\' and \'Recently Added\' entries\n            &lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; border=&quot;0&quot; style=&quot;table-layout: fixed;&quot;&gt;\n                if(most_popular &amp;&amp; most_popular.tag &amp;&amp; most_popular.title) {\n                    &lt;tr valign=&quot;top&quot;&gt;\n                        &lt;td&gt;\n                            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.mostpopularfor&quot;, [ most_popular.title ]); &lt;/h3&gt;\n                            template(&quot;MindTouch/Controls/ListPages&quot;, { pages: [ p foreach var p in pages where p.tags[most_popular.tag] is not nil ], sort: \'viewcount\', reverse: true, limit: featured_limit, style: \'bullets\' })\n                        &lt;/td&gt;\n                        &lt;td&gt;\n                            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.mostpopularfor&quot;, [ xml.text(wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.other&quot;)) ]); &lt;/h3&gt;\n                            template(&quot;MindTouch/Controls/ListPages&quot;, { pages: [ p foreach var p in pages where p.tags[most_popular.tag] is nil ], sort: \'viewcount\', reverse: true, limit: featured_limit, style: \'bullets\' })\n                        &lt;/td&gt;\n                    &lt;/tr&gt;\n                } else {\n                    &lt;tr valign=&quot;top&quot;&gt;\n                        &lt;td colspan=&quot;2&quot;&gt;\n                            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.mostpopular&quot; ); &lt;/h3&gt;\n                            template(&quot;MindTouch/Controls/ListPages&quot;, { pages: pages, sort: \'viewcount\', reverse: true, limit: featured_limit, style: \'bullets\' })\n                        &lt;/td&gt;\n                    &lt;/tr&gt;\n                }\n                &lt;tr valign=&quot;top&quot;&gt;\n                    &lt;td&gt;\n                        &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.recentlyadded&quot;) &lt;/h3&gt;\n                        template(&quot;MindTouch/Controls/ListPages&quot;, { pages: pages, sort: \'created\', reverse: true, limit: featured_limit, style: \'bullets\' })\n                    &lt;/td&gt;\n                    &lt;td&gt;\n                        &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.recentlyupdated&quot;) &lt;/h3&gt;\n                        template(&quot;MindTouch/Controls/ListPages&quot;, { pages: pages, sort: \'updated\', reverse: true, limit: featured_limit, style: \'bullets\' })\n                    &lt;/td&gt;\n                &lt;/tr&gt;\n            &lt;/table&gt;\n\n        case \'all\':\n\n            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.directoryfor&quot;, [ string.tocamelcase(view) ]) &lt;/h3&gt;\n            template(&quot;MindTouch/Controls/ListPages&quot;, { pages: pages, sort: \'title\' });\n\n        case \'search\':\n    \n            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.searchresults&quot;) &lt;/h3&gt;\n            template(&quot;MindTouch/Controls/ListPages&quot;, { pages: pages, sort: \'viewcount\', reverse: true });\n        default:\n    \n            &lt;h3&gt; wiki.localize(&quot;MindTouch.Templates.Controls.PageDirectory.directoryfor&quot;, [ string.tocamelcase(view) ]) &lt;/h3&gt;\n            template(&quot;MindTouch/Controls/TagDirectory&quot;, { pages: pages, tagprefix: view, columns: 3, listpagesoptions: { sort: \'title\', reverse: false } })\n        }\n\n        &lt;br/&gt;&lt;hr/&gt;&lt;br/&gt;\n    );\n    if(cache_id &amp;&amp; __env.webcache) {\n        webcache.store(cache_id, render);\n    } else {\n        render;\n    }\n} else {\n    render;\n} \n\n</pre>\n','page created, 808 words added',1,'20111013202341',0,0,0,1,'20111013202341',1,'','<pre class=\"script\">/***\n\n    PageDirectory\n        creates a searchable directory of pages organized by tabs and filtered by tags\n\n    Arguments:\n\n    path : str (optional, default: current page path)\n        page path the the parent page where the subpages to be organized are located\n\n    most_popular : map (optional, default: none)\n        show section for most popular pages that have a given tag\n\n        tag : str\n            tag to used for the split between left and right columns for mo...',46,1,'application/x.deki0805+xml','','PageDirectory',NULL,0,NULL,1,'8ec7f734d74970e07318472ea3da35ae'),(57,10,'MindTouch/Controls/PageTabs','<pre class=\"script\">/**\n * Page Tabs Control\n * @TODO guerrics: overflowing tabs\n *\n * @param array pages - array of pages (default: map.values(page.subpages))\n * @param str tab - name of the selected tab (default: __request.args.tab)\n */\nvar pages = $pages ?? map.values(page.subpages);\nlet pages = [ (p is str) ? wiki.getpage(p) : p foreach var p in pages];\nvar selectedTab = $tab ?? __request.args.tab;\n\n// find the active tab page\nvar activeTab = [ tabpage foreach var tabpage in pages where tabpage.name == selectedTab ][0];\n\n// no selected tab found, use first tab\nif (!activeTab) {\n    let activeTab = pages[0];\n}\n\n&lt;html&gt;\n&lt;head&gt;\n&lt;style type=&quot;text/css&quot;&gt;&quot;\n.mt-page-tabs ul.mt-tabs {\n    margin: 0;\n    padding: 0 0 0 10px;\n\n    border-bottom: 1px solid #777;\n    line-height: normal;\n}\n.mt-page-tabs li.mt-tab {\n    display: inline;\n    margin: 0 4px;\n\n    list-style: none;\n}\n\n.mt-page-tabs li.mt-tab a,\n.mt-page-tabs li.mt-tab a:visited {\n    display: inline-block;\n    /* set tab dimensions */\n    padding: 4px 14px;\n\n    text-decoration: none;\n    color: #000;\n    border: solid 1px #777;\n    border-bottom: none;\n    background-color: #fff;\n}\n\n.mt-page-tabs li.mt-tab.ui-state-active a {\n    position: relative;\n    top: 1px;\n    background-color: #dfdfdf;\n    background: -moz-linear-gradient(center top , #ddd, #fff) repeat scroll 0 0 transparent;\n    background: -webkit-gradient(\n        linear, left top, left bottom, color-stop(0.00, #ddd), color-stop(1.00, #fff)\n    );\n    filter: progid:DXImageTransform.Microsoft.gradient(\n        enabled=\'true\',startColorstr=#ffdddddd,endColorstr=#ffffffff\n    );\n}\n\n.mt-page-tabs .mt-page-tabs-content {\n    margin-top: 10px;\n}\n&quot;&lt;/style&gt;\n&lt;/head&gt;\n\n&lt;body&gt;\n    &lt;div class=&quot;mt-page-tabs&quot;&gt;\n        &lt;ul class=&quot;mt-tabs&quot;&gt;\n            foreach(var tabpage in pages) {\n                &lt;li class=(&quot;mt-tab&quot; .. (tabpage.name == activeTab.name ? &quot; ui-state-active&quot; : &quot;&quot;))&gt;\n                    &lt;a href=(page.uri &amp; {tab: tabpage.name})&gt;\n                        tabpage.title ?? &quot;#&quot; .. (__count + 1)\n                    &lt;/a&gt;\n                &lt;/li&gt;\n            }\n        &lt;/ul&gt;\n        &lt;div class=(&quot;mt-page-tabs-content&quot; .. (#pages &gt; 0 ? &quot;&quot; : &quot; ui-state-empty&quot;))&gt;\n            if (activeTab) {\n                var contents = activeTab.contents;\n                if (contents) {\n                    contents;\n                } else {\n                    wiki.page(activeTab.path);\n                }\n            }\n        &lt;/div&gt;\n    &lt;/div&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n\n</pre>\n','page created, 306 words added',1,'20111013202341',0,0,0,1,'20111013202342',1,'','<pre class=\"script\">/**\n * Page Tabs Control\n * @TODO guerrics: overflowing tabs\n *\n * @param array pages - array of pages (default: map.values(page.subpages))\n * @param str tab - name of the selected tab (default: __request.args.tab)\n */\nvar pages = $pages ?? map.values(page.subpages);\nlet pages = [ (p is str) ? wiki.getpage(p) : p foreach var p in pages];\nvar selectedTab = $tab ?? __request.args.tab;\n\n// find the active tab page\nvar activeTab = [ tabpage foreach var tabpage in pages where t...',46,1,'application/x.deki0805+xml','','PageTabs',NULL,0,NULL,1,'1802fb8001032c0da711cf1cff0cc9e1'),(58,10,'MindTouch/Controls/TableSortHeading','<pre class=\"script\">/**\n * Table Sort Heading\n * \n * @param list $columns - list of maps/str to generate headings\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $default - default field to sort by\n * @param bool $enabled - allow sorting (default: true)\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar columns = $columns ?? [];\nvar sortEnabled = $enabled ?? true;\nvar sortKey = $key ?? &quot;sortby&quot;;\nvar sortField = $current ?? __request.args[sortKey] ?? $default ?? &quot;&quot;;\n\n// determine the current sorting information\nvar sortDesc = string.startswith(sortField, &quot;-&quot;);\nif (sortDesc) {\n    let sortField = string.substr(sortField, 1);\n}\n\n// generate column widths\n&lt;colgroup&gt;\nforeach (var column in columns) {\n    &lt;col class=(&quot;col-&quot; .. __count .. &quot; &quot; .. column.class) width=(column.width ?? &quot;&quot;) /&gt;\n}\n&lt;/colgroup&gt;\n\n&lt;thead&gt;\n    &lt;tr&gt;\n        foreach (var column in columns) {\n            var headingClass = column.class;\n            // auto-classing\n            let headingClass ..= &quot; sortable col-&quot; .. __count;\n            let headingClass ..= (sortEnabled ? &quot;&quot; : &quot; ui-state-disabled&quot;);\n            &lt;th class=(headingClass) title=(column.label)&gt;\n                var sortClass = column.sortclass;\n                if (sortEnabled &amp;&amp; column.field) {\n\n                    // sortable column\n                    var text = column.label;\n                    var columnSortField = column.field;\n                    var columnSortType = string.startswith(columnSortField, &quot;-&quot;) ? &quot;-&quot; : &quot;&quot;;\n                    if (columnSortType == &quot;-&quot;) {\n                        let columnSortField = substr(columnSortField, 1);\n                    }\n\n                    // check if we are sorting by this column\n                    if (columnSortField == sortField) {\n                        let columnSortType = sortDesc ? &quot;&quot; : &quot;-&quot;;\n                        let sortClass ..= sortDesc ? &quot; sort-desc&quot; : &quot; sort-asc&quot;;\n                    }\n\n                    // generate the sort heading\n                    var columnParams = params .. {(sortKey): (columnSortType .. columnSortField)};\n                    &lt;a class=(sortClass) href=(uri &amp; columnParams)&gt;text;&lt;/a&gt;\n                } else {\n                    if (!column.field) {\n                        let sortClass ..= &quot; nosort&quot;; \n                    }\n                    &lt;span class=(sortClass)&gt;&lt;span&gt;column.label&lt;/span&gt;&lt;/span&gt;;\n                }\n            &lt;/th&gt;\n        }\n    &lt;/tr&gt;\n&lt;/thead&gt;\n\n</pre>','page created, 223 words added',1,'20111013202342',0,0,0,1,'20111013202342',1,'','<pre class=\"script\">/**\n * Table Sort Heading\n * \n * @param list $columns - list of maps/str to generate headings\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $default - default field to sort by\n * @param bool $enabled - allow sorting (default: true)\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar columns = $columns ?? [];\nvar sortEnabled = $enabled ?? true;\nvar sortKey = $key ?? &quot;sortby&quot;;\nvar sortFi...',46,1,'application/x.deki0805+xml','','TableSortHeading',NULL,0,NULL,1,'5cdaf9f50e9a68a31f6457d6bd029646'),(59,10,'MindTouch/Controls/TagDirectory','<pre class=\"script\">/***\n    USAGE:\n\n    TagDirectory(pages, tagPrefix, columnCount, listPagesOptions) \n        build a multi-column tag directory for a list of pages\n\n    PARAMETERS:\n\n    (optional) pages : list/map/str\n        list/map of pages to list; if pages is a str, then it is used as a path to a parent page to list all subpages; \n        defaults to list of subpages of current page\n\n    (optional) tagPrefix : str\n        only use tags with given prefix (e.g. \'category:dog\'); defaults to using only unprefixed tags\n\n    (optional) columnCount : num\n        number of columns to display; defaults to 2\n\n    (optional) listPagesOptions : map\n        options passed into the ListPages template for listing each column entry; \n        defaults to { sort: \'viewcount\', reverse: true, style: \'bullets\' }\n\n***/\n\nvar pages = $0 ?? $pages ?? page.subpages;\nif(pages is str) let pages = wiki.getpage(pages).subpages;\nif(pages is map) let pages = map.values(pages);\nvar tagprefix = $1 ?? $tagprefix;\nvar columns = num.max($2 ?? $columnCount ?? 2, 1);\nvar listPagesOptions = { sort: \'viewcount\', reverse: true, style: \'bullets\' } .. ($4 ?? $listPagesOptions ?? { });\n\n// build map of all tags in pages\nvar tagmap = { }; \nforeach(var p in pages) { \n    var tags = p.tags; \n\n    // check if page has no tags; if so make up a default list\n    if(!#tags) {\n        let tags = [ { name: (tagprefix ? tagprefix .. \':\' : \'\') .. \'(unclassified)\', type: \'text\' } ];\n    }\n\n    // for each tag on the page, append the page to that tag\'s list\n    foreach(var t in tags where t.type == \'text\') {\n\n        // check if either the tag prefix matches or there is no tag prefix\n        var parts = string.split(t.name, \':\', 2);\n        if(tagprefix &amp;&amp; (#parts == 2) &amp;&amp; (string.compare(parts[0], tagprefix, true) == 0)) {\n            let tagmap ..= { (parts[1]) : tagmap[parts[1]] .. [ p ] };\n        } else if(!tagprefix &amp;&amp; (#parts == 1)) {\n            let tagmap ..= { (parts[0]) : tagmap[parts[0]] .. [ p ] };\n        }\n    } \n}\n\nif(#tagmap) {\n\n    // count how many pages each tag has\n    var tag_count = [ { tag: tag, count: #tagmap[tag] } foreach var tag in map.keys(tagmap) ]; \n\n    // balance columns so that their heights are as equal as possible\n    var column_tags = list.new(columns, [ ]);\n    var column_sums = list.new(columns, 0);\n\n    foreach(var t in list.sort(tag_count, \'count\', true)) { \n\n        // find shortest column\n        var column = list.indexof(column_sums, list.min(column_sums));\n\n        // update column\n        let column_tags = list.splice(column_tags, column) .. [ column_tags[column] .. [ t.tag ] ] .. list.splice(column_tags, 0, column + 1);\n        let column_sums = list.splice(column_sums, column) .. [ column_sums[column] + (listPagesOptions.limit ?? t.count) + 2 ] .. list.splice(column_sums, 0, column + 1);\n    }\n\n    // emit the table with N columns\n    &lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;5&quot; border=&quot;0&quot; style=&quot;table-layout: fixed;&quot;&gt;\n        &lt;tr valign=&quot;top&quot;&gt;\n\n            // loop over each column\n            foreach(var column in column_tags) {\n                &lt;td style=&quot;padding-right: 20px;&quot;&gt;\n\n                    // loop over all tags in column, sorted alphabetically\n                    foreach(var tag in list.sort(column)) {\n                        &lt;h5&gt; string.tocamelcase(tag) &lt;/h5&gt;\n                        template(&quot;MindTouch/Controls/ListPages&quot;, listPagesOptions .. { pages: tagmap[tag] });\n                    }\n                &lt;/td&gt;\n            }\n        &lt;/tr&gt;\n    &lt;/table&gt;\n}\n\n</pre>\n','page created, 441 words added',1,'20111013202342',0,0,0,1,'20111013202342',1,'','<pre class=\"script\">/***\n    USAGE:\n\n    TagDirectory(pages, tagPrefix, columnCount, listPagesOptions) \n        build a multi-column tag directory for a list of pages\n\n    PARAMETERS:\n\n    (optional) pages : list/map/str\n        list/map of pages to list; if pages is a str, then it is used as a path to a parent page to list all subpages; \n        defaults to list of subpages of current page\n\n    (optional) tagPrefix : str\n        only use tags with given prefix (e.g. \'category:dog\'); defaults...',46,1,'application/x.deki0805+xml','','TagDirectory',NULL,0,NULL,1,'37cb59a0a8a2fcd78482f3ce6d0249eb'),(60,10,'MindTouch/Controls/TextArea','\n<pre class=\"script\">\n/***\n\n    TextArea(id, class, text)\n\n    (optional) id: str\n\n    (optional) class : str\n\n    (optional) text : str\n\n***/\n\nvar id = $id ?? @id;\nvar class = $class;\nvar text = $text ?? \'\';\n\nif(text != \'\') {\n    &lt;textarea id=(id) class=(class) ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) {\n            if($this.val() == val) {\n                $this.css({ \'color\': \'#000000\', \'font-style\': \'normal\' });\n                $this.val(\'\');\n            }\n            $this.css({ \'background-color\': \'#EEF1F8\' });\n        }\n        when($this.blur) {\n            if($this.val() == \'\') {\n                $this.css({ \'color\': \'#778899\', \'font-style\': \'italic\' });\n                $this.val(val);\n            }\n            $this.css({ \'background-color\': \'#FFFFFF\' });\n        }\n    &quot;&gt;\n        text\n    &lt;/textarea&gt;\n} else {\n    &lt;textarea id=(id) class=(class) ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) $this.css({ \'background-color\': \'#EEF1F8\' });\n        when($this.blur) $this.css({ \'background-color\': \'#FFFFFF\' });\n    &quot;/&gt;\n}\n</pre>\n','page created, 104 words added',1,'20111013202342',0,0,0,1,'20111013202342',1,'','\n<pre class=\"script\">\n/***\n\n    TextArea(id, class, text)\n\n    (optional) id: str\n\n    (optional) class : str\n\n    (optional) text : str\n\n***/\n\nvar id = $id ?? @id;\nvar class = $class;\nvar text = $text ?? \'\';\n\nif(text != \'\') {\n    &lt;textarea id=(id) class=(class) ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) {\n            if($this.val() == val) {\n                $this.css({ \'color\': \'#000000\', \'font-style\': \'normal\' });\n                $this.val(\'\');\n            }\n    ...',46,1,'application/x.deki0805+xml','','TextArea',NULL,0,NULL,1,'a51e2299e66954bf68b0da412258891a'),(61,10,'MindTouch/Controls/TextBox','\n<pre class=\"script\">\n/***\n\n    TextBox(id, class, text)\n\n    (optional) id: str\n\n    (optional) class : str\n\n    (optional) text : str\n\n***/\n\nvar id = $id ?? @id;\nvar class = $class;\nvar text = $text ?? \'\';\nvar width = $width;\nvar height = $height;\n\nif(text != \'\') {\n    &lt;input id=(id) width=(web.size(width)) height=(web.size(height)) class=(class) value=(text) type=&quot;text&quot; ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) {\n            if($this.val() == val) {\n                $this.css({ \'color\': \'#000000\', \'font-style\': \'normal\' });\n                $this.val(\'\');\n            }\n            $this.css({ \'background-color\': \'#EEF1F8\' })\n        }\n        when($this.blur) {\n            if($this.val() == \'\') {\n                $this.css({ \'color\': \'#778899\', \'font-style\': \'italic\' });\n                $this.val(val);\n            }\n            $this.css({ \'background-color\': \'#FFFFFF\' });\n        }\n    &quot;/&gt;\n} else {\n    &lt;input id=(id) width=(width) height=(height) class=(class) type=&quot;text&quot; ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) $this.css({ \'background-color\': \'#EEF1F8\' })\n        when($this.blur) $this.css({ \'background-color\': \'#FFFFFF\' });\n    &quot;/&gt;\n}\n</pre>','page created, 126 words added',1,'20111013202342',0,0,0,1,'20111013202342',1,'','\n<pre class=\"script\">\n/***\n\n    TextBox(id, class, text)\n\n    (optional) id: str\n\n    (optional) class : str\n\n    (optional) text : str\n\n***/\n\nvar id = $id ?? @id;\nvar class = $class;\nvar text = $text ?? \'\';\nvar width = $width;\nvar height = $height;\n\nif(text != \'\') {\n    &lt;input id=(id) width=(web.size(width)) height=(web.size(height)) class=(class) value=(text) type=&quot;text&quot; ctor=&quot;\n        var val = {{ text }};\n        when($this.focus) {\n            if($this.val() == val) {\n ...',46,1,'application/x.deki0805+xml','','TextBox',NULL,0,NULL,1,'ccbe3b8bf69c757d7698b4443de36904'),(62,10,'MindTouch/Controls/ToDoList','\n<pre class=\"script\">\n/***\n    USAGE: ToDoList()\n        Embed a TODO-list into a page.  The TODO list allows users to create new items, assign them to other users, and set deadlines.\n        Items that are due are highlighted in yellow, items passed due are shown in red, and completed items are struck out.  The TODO-\n        list can be added to any page.  The information of the TODO-list is stored as a page property.\n\n    NOTES:\n        * only 1 TODO-list can be embedded per page\n        * this template requires the DekiAPI script extension\n        * this template requires the jQuery script extension\n\n    CHANGE HISTORY:\n        1.0\n            * initial version\n        1.1\n            * show error message if dekiapi or jquery extensions are missing\n            * verify if user is logged in or not; if not, disable add &amp; update controls\n        \n        1.2\n            * allow custom user list to be passed in\n            * publish changes to a channel\n***/\n\nvar userlist = $userlist;\nvar publish = $publish ?? \'default\';\nvar message = $message ?? { };\nvar allowed;\n\nif(userlist) {\n\n    // convert list of names to list of user objects\n    let userlist = [\n        (u is map) ? u : wiki.getuser(u)\n        foreach var u in userlist\n    ];\n    let allowed = [ string.tolower(u.name) foreach var u in userlist ];\n} else if(site.usercount &lt;= 500) {\n\n    // get list of users from site\n    let userlist = site.users;\n}\n\n\n// check if required extensions are installed\nif(__env.dekiapi is nil) {\n    &lt;span style=&quot;color: red; font-weight: bold&quot;&gt;&quot;ERROR: Template:TODO requires DekiApi extension to be installed.&quot;&lt;/span&gt;\n} else if(__env.jquery is nil) {\n    &lt;span style=&quot;color: red; font-weight: bold&quot;&gt;&quot;ERROR: Template:TODO requires jQuery extension to be installed.&quot;&lt;/span&gt;\n} else {\n    \n    // includes\n    dekiapi();\n    jquery.ui(\'smoothness\');\n    \n    // input form\n    var disabled = (\n    \n        // anonymous users can\'t edit\n        user.anonymous || \n        \n        // user cannot update page\n        (wiki.pagepermissions().update is nil) ||\n        \n        // user is not listed in custom user list\n        (allowed &amp;&amp; !list.contains(allowed, string.tolower(user.name))\n    ) ? &quot;disabled&quot; : nil);\n    &lt;div id=&quot;deki-todo&quot;&gt;\n        &lt;form&gt;\n            &lt;input id=&quot;todoid&quot; type=&quot;hidden&quot; value=&quot;&quot; /&gt;\n            &lt;div class=&quot;todo-assign&quot;&gt;&quot; Task: &quot;;&lt;/div&gt;\n            &lt;div class=&quot;todo-who&quot;&gt;&quot; Who: &quot;;\n    \n                // check if the userlist is provided, otherwise use a simple textbox instead of a pre-filled listbox\n                if(userlist) {\n                    &lt;select id=&quot;todowho&quot;disabled=(disabled) &gt;\n                        foreach(var u in userlist where !u.anonymous) {\n                            &lt;option value=(u.name) selected=((u.id == user.id) ? \'selected\' : nil)&gt;\n                                u.name\n                            &lt;/option&gt;\n                        }\n                    &lt;/select&gt;\n                } else {\n                    &lt;input id=&quot;todowho&quot; type=&quot;text&quot; value=(userlist) disabled=(disabled) /&gt;\n                }\n            &lt;/div&gt;\n            &lt;div class=&quot;todo-what&quot;&gt;&quot;What: &quot;; &lt;input id=&quot;todowhat&quot; type=&quot;text&quot; disabled=(disabled) /&gt;&lt;/div&gt;\n            &lt;div class=&quot;todo-when&quot;&gt;&quot; When: &quot;; &lt;input id=&quot;todowhen&quot; type=&quot;text&quot; value=(date.format(date.now, \'MM/dd/yyyy\')) disabled=(disabled) ctor=&quot;$this.datepicker();&quot; /&gt;&lt;/div&gt;\n            &lt;div class=&quot;todo-submit&quot;&gt;\n            &lt;input id=&quot;todoadd&quot; type=&quot;submit&quot; value=&quot;Add&quot; disabled=(disabled) ctor=&quot;\n                when($this.click) {\n                    @todoupdate({ \n                        index: #todoid.val(), \n                        entry: { \n                            what: #todowhat.val(), \n                            who: #todowho.val(), \n                            when: #todowhen.val(), \n                            author: {{user.name}}, \n                            done: false \n                        }\n                    });\n                    @todoreset();\n                    return false;\n                }\n                when(#tododelete.click) {\n                    @todoupdate({ index: #todoid.val(), entry: null });\n                    @todoreset();\n                }\n                when(@todoreset) {\n                    #todoid.val(\'\');\n                    #todowhat.val(\'\');\n                    #todoadd.val(\'Add\');\n                    #tododelete.hide().removeAttr(\'disabled\');\n                    #todoadd.blur();\n                }\n                when(@todoedit) {\n                    MindTouch.Deki.ReadPageProperty(null, \'urn:custom.mindtouch.com#todo\', function(result) {\n                        var data = YAHOO.lang.JSON.parse(result.value || \'[]\');\n                        #todoid.val(@todoedit.index);\n                        #todowhat.val(data[@todoedit.index].what);\n                        #todowhen.val(data[@todoedit.index].when);\n                        #todowho.val(data[@todoedit.index].who);\n                        #todoadd.val(\'Update\');\n                        #tododelete.show();\n                    }, function(result) {\n                        alert(\'An error occurred trying to read the TODO list (status: \' + result.status + \' - \' + result.text + \')\');\n                    });\n                }\n                when(@todoupdate) {\n                    MindTouch.Deki.ReadPageProperty(null, \'urn:custom.mindtouch.com#todo\', function(result) {\n                        var op;\n                        var data = eval(\'(\' + (result.value || \'[]\') + \')\');\n                        if(@todoupdate.index !== \'\') {\n                            if(@todoupdate.entry === null) {\n                                op = \'remove\';\n                                data.splice(@todoupdate.index, 1);\n                            } else {\n                                op = \'update\';\n                                $.extend(data[@todoupdate.index], @todoupdate.entry);\n                            }\n                        } else {\n                            op = \'add\';\n                            @todoupdate.index = data.length;\n                            data.push(@todoupdate.entry);\n                        }\n                        var completed = function() {\n                            var msg = {{ message }};\n                            msg.op = op;\n                            msg.index = @todoupdate.index;\n                            msg.entry = @todoupdate.entry;\n                            msg.list = data;\n                            Deki.publish({{ publish }}, msg);\n                            MindTouch.Deki.Reload(#todolist, null, function() { ToDoWireControls(); });\n                        };\n                        if(result.etag) {\n                            MindTouch.Deki.UpdatePageProperty(result.href, YAHOO.lang.JSON.stringify(data), result.etag, completed, function(result) {\n                                alert(\'An error occurred trying to update the TODO list (status: \' + result.status + \' - \' + result.text + \')\');\n                            });\n                        } else {\n                            MindTouch.Deki.CreatePageProperty(null, \'urn:custom.mindtouch.com#todo\', YAHOO.lang.JSON.stringify(data), completed, function(result) {\n                                alert(\'An error occurred trying to create the TODO list (status: \' + result.status + \' - \' + result.text + \')\');\n                            });\n                        }\n                    }, function(result) {\n                        alert(\'An error occurred trying to read the TODO list (status: \' + result.status + \' - \' + result.text + \')\');\n                    });\n                }\n            &quot; /&gt;\n            &lt;input id=&quot;tododelete&quot; type=&quot;button&quot; style=&quot;display: none;&quot; value=&quot;Delete&quot; /&gt;\n            &lt;/div&gt;\n        &lt;/form&gt;\n        \n        // add index to each todo item\n        var todo = json.parse(page.properties[&quot;todo&quot;].text ?? &quot;&quot;) ?? [ ];\n        let todo = [ item .. { index: __index } foreach var item in todo ];\n        let invaliddates = [ item foreach var item in todo where !date.isvalid(item.when) ];\n        let todo = [ item foreach var item in todo where date.isvalid(item.when) ];\n        let todo = list.sort(todo, _, _, &quot;date.compare($left.when, $right.when)&quot;) .. invaliddates;\n        &lt;table id=&quot;todolist&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;\n            &lt;colgroup&gt;\n                &lt;col width=&quot;20&quot; /&gt;\n                &lt;col width=&quot;20%&quot; /&gt;\n                &lt;col /&gt;\n                &lt;col width=&quot;15%&quot; /&gt;\n                &lt;col width=&quot;75&quot; /&gt;\n            &lt;/colgroup&gt;\n            &lt;tr&gt;\n                &lt;th&gt;string.nbsp&lt;/th&gt;\n                &lt;th&gt;&quot;When&quot;&lt;/th&gt;\n                &lt;th&gt;&quot;What&quot;&lt;/th&gt;\n                &lt;th&gt;&quot;Who&quot;&lt;/th&gt;\n                &lt;th&gt;string.nbsp&lt;/th&gt;\n            &lt;/tr&gt;\n            foreach(var entry in todo) {\n                var class = &quot;&quot;;\n                var now = date.now;\n                if(entry.done) let class..= &quot;completed &quot;;\n                else if(date.isvalid(entry.when)) {\n                    if(date.issameday(now, entry.when)) let class ..= &quot;due-today &quot;;\n                    else if(date.isafter(now, entry.when)) let class ..= &quot;due-past &quot;;\n                }\n                var title = &quot;Created by &quot; .. entry.author;\n                &lt;tr class=(class)&gt;\n                    &lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;done&quot; id=(entry.index) class=&quot;todochange&quot; value=(entry.index) checked=(entry.done ? \'checked\' : nil) disabled=(disabled) /&gt;&lt;/td&gt;\n                    &lt;td title=(title)&gt;&lt;span&gt;entry.when&lt;/span&gt;&lt;/td&gt;\n                    &lt;td title=(title)&gt;&lt;span&gt;entry.what&lt;/span&gt;&lt;/td&gt;\n                    &lt;td title=(title)&gt;&lt;span&gt;entry.who&lt;/span&gt;&lt;/td&gt;\n                    &lt;td class=&quot;todo-edit&quot;&gt;\n                        if(disabled) {\n                            string.nbps;\n                        } else {\n                            &lt;a href=&quot;#&quot; rel=(entry.index)&gt;&quot;edit&quot;&lt;/a&gt;\n                        }\n                    &lt;/td&gt;\n                &lt;/tr&gt;\n            }\n        &lt;/table&gt;\n    &lt;/div&gt;\n    \n    // global script code\n    &lt;script type=&quot;text/jem&quot;&gt;&quot;\n    function ToDoWireControls() {\n        $(\'#todolist a\').bind(\'click\', function() {\n            @todoedit({ index: $(this).attr(\'rel\') }); \n            #todowhat.select();\n            return false;\n        });\n        $(\'.todochange\').bind(\'click\', function() {\n            var $this = $(this);\n            @todoupdate({ index: $this.val(), entry: { done: this.checked } });\n        });\n    }\n    ToDoWireControls();\n    &quot;&lt;/script&gt;\n    \n    // styles\n    &lt;html&gt;\n        &lt;head&gt;\n            &lt;style type=&quot;text/css&quot;&gt;&quot;\n    //--- Start TODO styles ---\n    #deki-todo {\n        margin: 0;\n        padding: 4px; \n        width: 98%;\n    }\n    #deki-todo table {\n        width: 100%; \n        margin: 0;\n    }\n    #deki-todo table td {\n        border-bottom: 1px solid #000;\n        padding: 4px 2px;\n    }\n    #deki-todo tr td.todo-edit {\n        text-align: right;\n        padding-right: 8px;\n    }\n    #deki-todo tr.due-today td {\n        background-color: #ff0;     \n    }\n    #deki-todo tr.completed td {\n        background-color: #fff;\n    }\n    #deki-todo tr.completed td span {\n        text-decoration: line-through;\n    }\n    #deki-todo tr.due-past td, \n    #deki-todo tr.due-past td.todo-edit a {\n        color: #f00;    \n    }\n    #deki-todo table th {\n        font-size: 14px;\n        font-weight: bold;\n        text-align: left;\n        border-bottom: 2px solid #000;\n    }\n    #deki-todo form {\n        padding: 4px; \n        background-color: #000;\n        color: #fff; \n        overflow: hidden;\n        margin-bottom: 8px;\n    }\n    #deki-todo div.todo-assign {\n        font-weight: bold;\n    }\n    #deki-todo form, \n    #deki-todo form input, \n    #deki-todo form select {\n        font-size: 11px;\n    }\n    #deki-todo form div {\n        padding-right: 8px;    \n        float: left;\n    }\n    #deki-todo div.todo-submit {\n        float: right; \n        padding-right: 0px;\n    }\n    #deki-todo div.todo-submit input {\n        margin-right: 4px;\n    }\n    #deki-todo table tr td.todo-edit a {\n        background: url(/skins/common/icons/silk/page_white_edit.png) no-repeat center left;\n        color: #000;\n        text-decoration: none;\n        padding: 3px 3px 3px 21px;\n        font-size: 11px;\n    }\n    #deki-todo table tr td.todo-edit a:hover {\n        text-decoration: underline;\n    }\n    //--- End TODO styles ---\n    &quot;\n            &lt;/style&gt;\n        &lt;/head&gt;\n    &lt;/html&gt;\n}</pre>','page created, 1209 words added',1,'20111013202342',0,0,0,1,'20111013202342',1,'','\n<pre class=\"script\">\n/***\n    USAGE: ToDoList()\n        Embed a TODO-list into a page.  The TODO list allows users to create new items, assign them to other users, and set deadlines.\n        Items that are due are highlighted in yellow, items passed due are shown in red, and completed items are struck out.  The TODO-\n        list can be added to any page.  The information of the TODO-list is stored as a page property.\n\n    NOTES:\n        * only 1 TODO-list can be embedded per page\n        * ...',46,1,'application/x.deki0805+xml','','ToDoList',NULL,0,NULL,1,'928564fe214d609d6a747f7556808ea4'),(63,10,'MindTouch/Controls/WaitingIcon32x32','\n<img alt=\"ajax-loader.gif\" class=\"internal default internal internal\" src=\"File:Template:MindTouch/Controls/WaitingIcon32x32/ajax-loader.gif\" fileid=\"0\" />','page created, 0 words added',1,'20111013202342',0,0,0,1,'20111013202346',1,'','\n<img alt=\"ajax-loader.gif\" class=\"internal default internal internal\" src=\"File:Template:MindTouch/Controls/WaitingIcon32x32/ajax-loader.gif\" fileid=\"0\" />',46,1,'application/x.deki0805+xml','','WaitingIcon32x32',NULL,0,NULL,1,'94aa61cfbeb8a4523c09a3733907fc70'),(64,10,'MindTouch/Pages','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',45,1,'application/x.deki0805+xml','','Pages',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(65,10,'MindTouch/Pages/KB_Article','<h3>Sample KB Article Template</h3>','page created, 4 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<h3>Sample KB Article Template</h3>',64,1,'application/x.deki0805+xml','','KB Article',NULL,0,NULL,1,'451d47d0b1eae38024ff324bee63b549'),(66,10,'MindTouch/Reports','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',45,1,'application/x.deki0805+xml','','Reports',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(67,10,'MindTouch/Reports/Controls','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',66,1,'application/x.deki0805+xml','','Controls',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(68,10,'MindTouch/Reports/Controls/RatingChart','<pre class=\"script\">/**\n * Rating Reports Chart Control\n *\n * @param str $name - name of the report\n * @param map $data - report data from reporting service\n * @param num $total - total number of pages\n * @param uri $resetUri - uri to main site report\n * @param map $site - site level report data (optional)\n */\nvar reportType = $type;\nvar reportData = $data;\nvar totalPages = $total;\nvar siteData = $site;\nvar resetUri = $resetUri;\n\n// shorthand for localization keys\nvar localizePrefix = &quot;MindTouch.ContentAnalytics.&quot;.. reportType;\n\nif (reportData.meta[reportType].count == 0) {\n    &lt;div class=&quot;no-results&quot;&gt;\n        &lt;div class=&quot;no-results-text&quot;&gt;\n            wiki.localize( localizePrefix .. &quot;.data.empty&quot;);\n        &lt;/div&gt;\n    &lt;/div&gt;\n} \n\n// results output\nif (!siteData) {\n    &lt;h3 class=&quot;reports&quot;&gt;wiki.localize(localizePrefix ..&quot;.title&quot;)&lt;/h3&gt;\n} else {  \n    &lt;h3 class=&quot;reports&quot;&gt;\n        wiki.localize(localizePrefix ..&quot;.title.search&quot;);\n        if (reportData.meta[reportType].query) {\n             &lt;div class=&quot;reset-search&quot;&gt;\n                &lt;a href=(resetUri)&gt;wiki.localize(&quot;MindTouch.Reports.search.reset&quot;)&lt;/a&gt;\n            &lt;/div&gt;\n        }            \n    &lt;/h3&gt;\n}\n&lt;div class=&quot;mt-report-overview&quot;&gt;\n    &lt;dl class=&quot;stats&quot;&gt;\n        &lt;dt class=&quot;first&quot;&gt;\n            &lt;span class=&quot;title&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.pagecount&quot;)&lt;/span&gt;\n            if (siteData) {\n                &lt;span class=&quot;site&quot;&gt;\n                    wiki.localize(&quot;MindTouch.ContentAnalytics.stat.site&quot;);\n                    &quot; &quot;;\n                    siteData.meta[reportType].count;\n                &lt;/span&gt;\n            }\n        &lt;/dt&gt;\n        &lt;dd class=&quot;first&quot;&gt;\n            &lt;span&gt;\n            wiki.localize(localizePrefix .. &quot;.stat.pagecount.value&quot;, [reportData.meta[reportType].count]);\n            &lt;/span&gt;\n            &lt;span class=&quot;help&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.pagecount.tip&quot;)&lt;/span&gt;    \n        &lt;/dd&gt;\n        &lt;dt class=&quot;second&quot;&gt;\n            &lt;span class=&quot;title&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.average&quot;)&lt;/span&gt;\n            if (siteData) {\n                &lt;span class=&quot;site&quot;&gt;\n                    wiki.localize(&quot;MindTouch.ContentAnalytics.stat.site&quot;);\n                    &quot; &quot;;\n                    wiki.localize(\n                        localizePrefix .. &quot;.stat.average.value&quot;,\n                        [siteData.meta[reportType].average]\n                    );\n                &lt;/span&gt;\n            }\n        &lt;/dt&gt;\n        &lt;dd class=&quot;second&quot;&gt;\n            &lt;span&gt;\n            wiki.localize(\n                localizePrefix .. &quot;.stat.average.value&quot;,\n                [reportData.meta[reportType].average]\n            );\n            &lt;/span&gt;\n            &lt;span class=&quot;help&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.average.tip&quot;)&lt;/span&gt;\n         &lt;/dd&gt;\n        switch (reportType) {\n        case &quot;rating&quot;:\n            &lt;dt class=&quot;third&quot;&gt;\n                &lt;span class=&quot;title&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.unrated&quot;);&lt;/span&gt;\n                if (siteData) {\n                &lt;span class=&quot;site&quot;&gt;\n                    wiki.localize(&quot;MindTouch.ContentAnalytics.stat.site&quot;);\n                    &quot; &quot;;\n                    let percent =  num.round(\n                        (1 - (siteData.meta[reportType].count / totalPages)) * 100, 2\n                    );\n                    wiki.localize(\n                        localizePrefix .. &quot;.stat.unrated.value&quot;,\n                        [percent]\n                    );\n                &lt;/span&gt;\n                }\n            &lt;/dt&gt;\n            &lt;dd class=&quot;third&quot;&gt;\n                &lt;span&gt;\n                    let percent =  num.round(\n                        (1 - (reportData.meta[reportType].count / totalPages)) * 100, 2\n                    );\n                    wiki.localize(\n                        localizePrefix .. &quot;.stat.unrated.value&quot;,\n                        [percent]\n                    );\n                &lt;/span&gt;\n                &lt;span class=&quot;help&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.unrated.tip&quot;)&lt;/span&gt; \n            &lt;/dd&gt;\n\n        case &quot;aging&quot;:\n            &lt;dt class=&quot;third&quot;&gt;\n                &lt;span class=&quot;title&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.archaic&quot;);&lt;/span&gt;\n                    if (siteData) {\n                    &lt;span class=&quot;site&quot;&gt;\n                        wiki.localize(&quot;MindTouch.ContentAnalytics.stat.site&quot;);\n                        &quot; &quot;;\n                        siteData.meta[reportType].countAboveTwoYears;\n                    &lt;/span&gt;\n                }\n            &lt;/dt&gt;\n            &lt;dd class=&quot;third&quot;&gt;\n                &lt;span&gt;\n                    reportData.meta[reportType].countAboveTwoYears;\n                &lt;/span&gt;\n                &lt;span class=&quot;help&quot;&gt;wiki.localize(localizePrefix .. &quot;.stat.archaic.tip&quot;)&lt;/span&gt; \n            &lt;/dd&gt;\n        }\n        &lt;dt class=&quot;information&quot;&gt;\n            &lt;div&gt;\n            wiki.localize(\n                localizePrefix .. &quot;.information&quot;,\n                [reportData.meta[reportType][&quot;csv.uri&quot;]]\n            )\n            &lt;/div&gt;\n        &lt;/dt&gt;\n    &lt;/dl&gt;\n\n    // determine if the charting component is available\n    if (__env[&quot;anychart&quot;]) {\n    &lt;div class=&quot;chart&quot;&gt;\n        var seriesLabel = wiki.localize(localizePrefix ..&quot;.chart.series&quot;);\n        template(&quot;MindTouch/Controls/Chart&quot;, {\n            width: &quot;500&quot;,\n            height: &quot;325&quot;,\n            min: 0,\n            type: &quot;line&quot;, \n            data:  {\n                (seriesLabel): reportData.series[reportType]\n            },\n            xaxis: wiki.localize(localizePrefix ..&quot;.chart.xaxis&quot;), \n            yaxis: wiki.localize(localizePrefix ..&quot;.chart.yaxis&quot;),\n            title: wiki.localize(localizePrefix ..&quot;.chart.title&quot;)\n        });\n    &lt;/div&gt;\n    } else {\n    &lt;div class=&quot;chart ui-state-disabled&quot;&gt;&lt;div&gt;wiki.localize(&quot;MindTouch.ContentAnalytics.charting.disabled&quot;);&lt;/div&gt;&lt;/div&gt;\n    } \n&lt;/div&gt;\n// end no-results\n</pre>','page created, 480 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<pre class=\"script\">/**\n * Rating Reports Chart Control\n *\n * @param str $name - name of the report\n * @param map $data - report data from reporting service\n * @param num $total - total number of pages\n * @param uri $resetUri - uri to main site report\n * @param map $site - site level report data (optional)\n */\nvar reportType = $type;\nvar reportData = $data;\nvar totalPages = $total;\nvar siteData = $site;\nvar resetUri = $resetUri;\n\n// shorthand for localization keys\nvar localizePrefix = &quot;M...',67,1,'application/x.deki0805+xml','','RatingChart',NULL,0,NULL,1,'df0ea098cddc83e45f9b5f4226dd7ae1'),(69,10,'MindTouch/Reports/Controls/RatingResultsTable','<pre class=\"script\">/**\n * Rating Results Table\n *\n * @param str $type - report type being run\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $query - query to execute\n * @param str $constraint - query constraints (default: nil)\n * @param num $total - total report size\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar reportType = $type;\nvar uri = $uri ?? page.uri;\nvar params = $params;\nvar searchQuery = $query;\nvar searchConstraint = $constraint;\nvar queryTotal = $total;\nvar defaultSort = $default;\nvar resultsPerPage = $perPage ?? 30;\n\n// compute the page\nvar currentPage = __request.args.page ?? 1;\nif (currentPage &lt; 1) {\n    let currentPage = 1;\n}\nvar currentSort =  __request.args.sortBy ?? defaultSort;\n\n// fetch the results\nvar queryResults = wiki.getsearch{\n    query: searchQuery,\n    offset: (currentPage - 1) * resultsPerPage,\n    max: resultsPerPage,\n    sortBy: currentSort,\n    constraint: searchConstraint\n};\n\nvar queryCount = #queryResults;\n\n// Paging\nTemplate(&quot;MindTouch/Reports/Controls/SearchPaging&quot;, {\n    uri: uri,\n    params: params,\n    total: queryTotal,\n    perPage: resultsPerPage,\n    showingKey: &quot;MindTouch.ContentAnalytics.&quot; .. reportType .. &quot;.results&quot;\n});\n\n\n// computed page statistics\nvar aggregateScore = 0;\nvar aggregateTrendscore = 0;\n\n&lt;table class=(&quot;table mt-report-results&quot; .. (queryTotal == 0 ? &quot; ui-no-results&quot;: &quot;&quot;))&gt;\n    Template(\'MindTouch/Controls/TableSortHeading\', {\n        uri: uri,\n        params: params,\n        columns: [\n            {width: &quot;&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.title&quot;), field: &quot;title&quot;},\n            {width: &quot;10&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.rating&quot;), field: &quot;rating.score&quot;},\n            {width: &quot;10&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.votes&quot;), field: &quot;rating.count&quot;},\n            {width: &quot;50&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.date&quot;), field: &quot;date&quot;},\n            {\n                width: &quot;30&quot;,\n                sortclass: &quot;views&quot;,\n                label: wiki.localize(&quot;MindTouch.Reports.data.views&quot;)\n            },\n            {\n                width: &quot;30&quot;,\n                sortclass: &quot;edits&quot;,\n                label: wiki.localize(&quot;MindTouch.Reports.data.edits&quot;)\n            },\n            {\n                width: &quot;30&quot;,\n                sortclass: &quot;comments&quot;,\n                label: wiki.localize(&quot;MindTouch.Reports.data.comments&quot;)\n            }\n        ],\n        default: defaultSort,\n        enabled: (queryCount &gt; 0)\n    });\n\n    if (queryCount &lt; 1) {\n        &lt;tr&gt;\n            &lt;td colspan=&quot;7&quot;&gt;\n                wiki.localize(&quot;MindTouch.Reports.data.empty&quot;)\n            &lt;/td&gt;\n        &lt;/tr&gt;\n    }\n\n    foreach (var queryResult in queryResults) {\n\n        // skip empty results\n        if (!#queryResult) {\n            continue;\n        }\n\n        // compute page statistics\n        let aggregateScore += num.cast(queryResult.rating.score ?? 0);\n        let aggregateTrendscore += num.cast(queryResult.rating.trendscore ?? 0);\n\n        &lt;tr class=(&quot;row-&quot; .. (__count % 2))&gt;\n            Template(&quot;MindTouch/Reports/Controls/TableCellPage&quot;, {\n                page: queryResult,\n                class: &quot;col-0&quot;\n            });\n            &lt;td class=&quot;col-1 data-type-numeric&quot;&gt;\n                if ((queryResult.rating.count &gt; 0) &amp;&amp; (queryResult.rating.score is not nil)) {\n                    &lt;span class=(&quot;trending trending-&quot; .. (queryResult.rating.trendscore &lt; .5 ? &quot;down&quot; : &quot;up&quot;))&gt;\n                        num.round(queryResult.rating.score * 100) .. &quot;%&quot;;\n                    &lt;/span&gt;\n                } else {\n                    &quot;--&quot;;\n                }\n            &lt;/td&gt;\n            &lt;td class=&quot;col-2 data-type-numeric&quot;&gt;\n                queryResult.rating.count;\n            &lt;/td&gt;\n            &lt;td class=&quot;col-3 data-type-numeric&quot;&gt;\n                Template(&quot;MindTouch/Controls/DateTime&quot;, [queryResult.date]);\n            &lt;/td&gt;\n            &lt;td class=&quot;col-4 data-type-numeric&quot;&gt;queryResult.viewcount&lt;/td&gt;\n            &lt;td class=&quot;col-5 data-type-numeric&quot;&gt;queryResult.revision&lt;/td&gt;\n            &lt;td class=&quot;col-6 data-type-numeric&quot;&gt;\n                &lt;a href=(queryResult.uri .. &quot;#comments&quot;)&gt;#queryResult.comments&lt;/a&gt;\n            &lt;/td&gt;\n        &lt;/tr&gt;\n    }\n\n    // computed information if results are found\n    if (queryCount &gt; 0) {\n        &lt;tr class=&quot;summary&quot;&gt;\n            &lt;td class=&quot;col-0&quot;&gt;&amp;nbsp;&lt;/td&gt;\n            &lt;td class=&quot;col-1&quot;&gt;\n                &lt;dl&gt;\n                    &lt;dt&gt;&quot;Score:&quot;&lt;/dt&gt;\n                    &lt;dd&gt;num.round(aggregateScore / queryCount * 100); &quot;%&quot;;&lt;/dd&gt;\n                    &lt;dt&gt;&quot;Trend:&quot;&lt;/dt&gt;\n                    &lt;dd&gt;num.round(aggregateTrendscore / queryCount * 100); &quot;%&quot;&lt;/dd&gt;\n                &lt;/dl&gt;\n            &lt;/td&gt;\n            &lt;td class=&quot;col-2&quot;&gt;&amp;nbsp;&lt;/td&gt;\n            &lt;td class=&quot;col-3&quot;&gt;&amp;nbsp;&lt;/td&gt;\n            &lt;td class=&quot;col-4&quot;&gt;&amp;nbsp;&lt;/td&gt;\n            &lt;td class=&quot;col-5&quot;&gt;&amp;nbsp;&lt;/td&gt;\n            &lt;td class=&quot;col-6&quot;&gt;&amp;nbsp;&lt;/td&gt;\n        &lt;/tr&gt;\n    }\n&lt;/table&gt;\n\n// Paging\nTemplate(&quot;MindTouch/Reports/Controls/SearchPaging&quot;, {\n    uri: uri,\n    params: params,\n    total: queryTotal,\n    perPage: resultsPerPage,\n    showingKey: &quot;MindTouch.ContentAnalytics.&quot; .. reportType .. &quot;.results&quot;\n});</pre>','page created, 515 words added',1,'20111013202346',0,0,0,1,'20111013202346',1,'','<pre class=\"script\">/**\n * Rating Results Table\n *\n * @param str $type - report type being run\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $query - query to execute\n * @param str $constraint - query constraints (default: nil)\n * @param num $total - total report size\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar reportType = $type;\nvar uri = $uri ?? page.u...',67,1,'application/x.deki0805+xml','','RatingResultsTable',NULL,0,NULL,1,'02a7d393036d73a2db27fb0d0e89087f'),(70,10,'MindTouch/Reports/Controls/SearchAnalyticsFilter','<pre class=\"script\">/**\n * Search Analytics Filter\n */\nvar uri = $uri;\nvar preserve = $params;\nvar searchQuery = $query;\nvar searchTerm = $term;\nvar sinceDays = $since;\nvar beforeDays = $before;\n\n// 1 week ago, 30 days ago, 90 days ago, 1 year ago\nvar dateOptions = [\n    {value: 7, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.weekago&quot;)},\n    {value: 30, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.daysago-30&quot;)},\n    {value: 90, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.daysago-90&quot;)},\n    {value: 365, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.yearago&quot;)}\n];\n\n&lt;form class=&quot;mt-search-input&quot; method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in preserve where paramName != &quot;term&quot;) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n    if (searchQuery) {\n        &lt;input type=&quot;hidden&quot; name=&quot;query&quot; value=(searchQuery) /&gt;\n\n        // user is on the detailed view, provide a back link\n        &lt;span class=&quot;back&quot;&gt;\n            &lt;a href=(uri &amp; preserve &amp; {term: searchTerm})&gt;\n                wiki.localize(&quot;MindTouch.SearchAnalytics.detail.back&quot;);\n            &lt;/a&gt;\n        &lt;/span&gt;\n    } else {\n        &lt;input class=&quot;term&quot; type=&quot;hidden&quot; name=&quot;term&quot; value=(searchTerm) /&gt;    \n    }\n    &lt;label&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.search.filter-queries&quot;)&lt;/label&gt;\n    &lt;select name=&quot;since_days&quot;&gt;\n        foreach (var option in dateOptions) {\n            &lt;option value=(option.value) selected=(sinceDays == option.value ? &quot;selected&quot; : _)&gt;\n               option.label;\n            &lt;/option&gt;\n        }\n    &lt;/select&gt;\n    &lt;span class=&quot;mt-report-search-to&quot;&gt;\n        wiki.localize(&quot;MindTouch.SearchAnalytics.search.to&quot;);\n    &lt;/span&gt;\n    &lt;select name=&quot;before_days&quot;&gt;\n        &lt;option value=&quot;0&quot; selected=(beforeDays == 0 ? &quot;selected&quot; : _)&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.option.today&quot;);\n        &lt;/option&gt;\n        foreach (var option in dateOptions) {\n            &lt;option value=(option.value) selected=(beforeDays == option.value ? &quot;selected&quot; : _)&gt;\n               option.label;\n            &lt;/option&gt;\n        }\n    &lt;/select&gt;\n    &lt;input class=&quot;search&quot; type=&quot;submit&quot; value=(wiki.localize(&quot;MindTouch.SearchAnalytics.search.button&quot;)) /&gt;\n&lt;/form&gt;\n\n// clear current search\nif (searchTerm || searchQuery) {\n    &lt;div class=&quot;reset-search&quot;&gt;\n        &lt;a href=(uri &amp; preserve &amp; {since_weeks: nil, before_weeks: nil})&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.search.reset&quot;);\n        &lt;/a&gt;\n    &lt;/div&gt;\n}</pre>','page created, 261 words added',1,'20111013202347',0,0,0,1,'20111013202347',1,'','<pre class=\"script\">/**\n * Search Analytics Filter\n */\nvar uri = $uri;\nvar preserve = $params;\nvar searchQuery = $query;\nvar searchTerm = $term;\nvar sinceDays = $since;\nvar beforeDays = $before;\n\n// 1 week ago, 30 days ago, 90 days ago, 1 year ago\nvar dateOptions = [\n    {value: 7, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.weekago&quot;)},\n    {value: 30, label: wiki.localize(&quot;MindTouch.SearchAnalytics.option.daysago-30&quot;)},\n    {value: 90, label: wiki.localize(&quo...',67,1,'application/x.deki0805+xml','','SearchAnalyticsFilter',NULL,0,NULL,1,'985ce9e6331f6f3f608aa2a29e736f96'),(71,10,'MindTouch/Reports/Controls/SearchAnalyticsTermSearch','<pre class=\"script\">/**\n * Search Analytics Term Search Box\n */\nvar uri = $uri;\nvar preserve = $params;\nvar searchQuery = $query;\nvar searchTerm = $term;\n\n&lt;form class=&quot;mt-search-input&quot; method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in preserve where paramName != &quot;term&quot;) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n\n    // we\'re in search query view mode\n    if (searchQuery) {\n        &lt;input type=&quot;hidden&quot; name=&quot;query&quot; value=(searchQuery) /&gt;\n\n        // user is on the detailed view, provide a back link\n        &lt;span class=&quot;back&quot;&gt;\n            &lt;a href=(uri &amp; preserve &amp; {term: searchTerm})&gt;\n                wiki.localize(&quot;MindTouch.SearchAnalytics.detail.back&quot;);\n            &lt;/a&gt;\n        &lt;/span&gt;\n    } else {\n        &lt;label for=(@query)&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.search.filter-term&quot;)&lt;/label&gt;\n        &lt;input id=(@query) class=&quot;term&quot; type=&quot;text&quot; name=&quot;term&quot; value=(searchTerm) /&gt;    \n    }\n\n    &lt;input class=&quot;search&quot; type=&quot;submit&quot; value=(wiki.localize(&quot;MindTouch.SearchAnalytics.search.term.button&quot;)) /&gt;\n&lt;/form&gt;\n</pre>\n','page created, 122 words added',1,'20111013202347',0,0,0,1,'20111013202347',1,'','<pre class=\"script\">/**\n * Search Analytics Term Search Box\n */\nvar uri = $uri;\nvar preserve = $params;\nvar searchQuery = $query;\nvar searchTerm = $term;\n\n&lt;form class=&quot;mt-search-input&quot; method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in preserve where paramName != &quot;term&quot;) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n\n    // we\'re in search query view mode\n    if (searchQuery) {\n        &lt;input...',67,1,'application/x.deki0805+xml','','SearchAnalyticsTermSearch',NULL,0,NULL,1,'fb6324b343e7a721f5dd2dd081c7c6e6'),(72,10,'MindTouch/Reports/Controls/SearchInput','<pre class=\"script\">/**\n * Search Input Control\n *\n * @param uri $uri - base uri for submitting queries (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $key - query param for the query (default: &quot;query&quot;)\n * @param $default - default search query\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar queryKey = $key ?? &quot;query&quot;;\nvar query = __request.args[queryKey] ?? $default;\n   \n&lt;form class=&quot;mt-search-input&quot; method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in params where paramName != queryKey) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n    &lt;label for=(@query)&gt;wiki.localize(&quot;MindTouch.Reports.search.label&quot;)&lt;/label&gt;\n    &lt;input class=&quot;query&quot; id=(@query) type=&quot;text&quot; name=(queryKey) value=(query) /&gt;\n    &lt;input class=&quot;search&quot; type=&quot;submit&quot; value=(wiki.localize(&quot;MindTouch.Reports.search.button&quot;)) /&gt;\n    wiki.localize(&quot;MindTouch.Reports.search.learn&quot;);\n&lt;/form&gt;\n\n</pre>','page created, 119 words added',1,'20111013202347',0,0,0,1,'20111013202347',1,'','<pre class=\"script\">/**\n * Search Input Control\n *\n * @param uri $uri - base uri for submitting queries (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $key - query param for the query (default: &quot;query&quot;)\n * @param $default - default search query\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar queryKey = $key ?? &quot;query&quot;;\nvar query = __request.args[queryKey] ?? $default;\n   \n&lt;form class=&quot;mt-search-input&quot; method=...',67,1,'application/x.deki0805+xml','','SearchInput',NULL,0,NULL,1,'69fbff28756ebe096cc2189c7ac153c9'),(73,10,'MindTouch/Reports/Controls/SearchPaging','<pre class=\"script\">/**\n * Search Paging Control\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param num $total - total number of results queried\n * @param num $perPage - number of results shown per page (default: 10)\n * @param str $key - query param to use for paging (default: &quot;page&quot;)\n * @param num $page - current page being viewed (default: __request.args[$key])\n * @param str $showingKey - custom resource key to use for &quot;showing results&quot;\n */\nvar uri = $uri ?? page.uri;\nvar params = $params; // required!\nvar total = $total; // required!\nvar perPage = $perPage ?? 10;\nvar pageKey = $key ?? &quot;page&quot;;\nvar currentPage = $page ?? __request.args[pageKey];\nvar localizeShowing = $showingKey ?? &quot;MindTouch.Reports.paging.results&quot;;\n\n// compute paging\nif (!currentPage || currentPage &lt; 1) {\n    let currentPage = 1;\n}\nvar totalPages = num.ceiling(total / perPage);\nif (totalPages &lt; 1) {\n    let totalPages = 1;\n}\nvar setStart = (currentPage - 1) * perPage;\nvar setEnd = num.min(setStart + perPage, total);\n\n&lt;form class=(&quot;mt-search-paging&quot; .. (total &lt; 1 ? &quot; ui-no-results&quot;: &quot;&quot;)) method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in params) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n    &lt;div class=&quot;summary&quot;&gt;\n        if (total &lt; 1) {\n            wiki.localize(&quot;MindTouch.Reports.paging.noresults&quot;);\n        } else {\n            wiki.localize(localizeShowing, [\n                (setStart+1),\n                setEnd\n            ]);\n        }\n    &lt;/div&gt;\n    &lt;div class=&quot;paging&quot;&gt;\n        if (currentPage &gt; 1) {\n            &lt;span class=&quot;prev&quot;&gt;\n                &lt;a href=(uri &amp; params &amp; {(pageKey): (currentPage-1)})&gt;\n                    wiki.localize(&quot;MindTouch.Reports.paging.prev&quot;);\n                &lt;/a&gt;\n            &lt;/span&gt;\n        } else {\n            &lt;span class=&quot;prev ui-state-disabled&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.prev&quot;)&lt;/span&gt;\n        }\n\n        &lt;span class=&quot;jump&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.jump&quot;)&lt;/span&gt;\n        &lt;input class=&quot;jump&quot; type=&quot;text&quot; name=(pageKey) value=(currentPage) size=&quot;2&quot; /&gt;\n\n        if (currentPage &lt; totalPages) {\n            &lt;span class=&quot;next&quot;&gt;\n                &lt;a href=(uri &amp; params &amp; {(pageKey): (currentPage+1)})&gt;\n                    wiki.localize(&quot;MindTouch.Reports.paging.next&quot;);\n                &lt;/a&gt;\n            &lt;/span&gt;\n        } else {\n            &lt;span class=&quot;next ui-state-disabled&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.next&quot;)&lt;/span&gt;\n        }\n    &lt;/div&gt;\n&lt;/form&gt;\n\n</pre>\n','page created, 280 words added',1,'20111013202347',0,0,0,1,'20111013202348',1,'','<pre class=\"script\">/**\n * Search Paging Control\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param num $total - total number of results queried\n * @param num $perPage - number of results shown per page (default: 10)\n * @param str $key - query param to use for paging (default: &quot;page&quot;)\n * @param num $page - current page being viewed (default: __request.args[$key])\n * @param str $showingKey - custom resource key to use for &...',67,1,'application/x.deki0805+xml','','SearchPaging',NULL,0,NULL,1,'e0b24cb28eea4f0b524b6481db3333dc'),(74,10,'MindTouch/Reports/Controls/SearchPagingNext','<pre class=\"script\">/**\n * Search Paging Control\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param num $showing - number of visible results\n * @param bool $next - are there more results?\n * @param num $perPage - number of results shown per page (default: 10)\n * @param str $key - query param to use for paging (default: &quot;page&quot;)\n * @param num $page - current page being viewed (default: __request.args[$key])\n * @param str $showingKey - custom resource key to use for &quot;showing results&quot;\n */\nvar uri = $uri ?? page.uri;\nvar params = $params; // required!\nvar showing = $showing; // required!\nvar nextPage = $next ?? false;\nvar perPage = $perPage ?? 10;\nvar pageKey = $key ?? &quot;page&quot;;\nvar currentPage = $page ?? __request.args[pageKey];\nvar localizeShowing = $showingKey ?? &quot;MindTouch.Reports.paging.results&quot;;\n\n// compute paging\nif (!currentPage || currentPage &lt; 1) {\n    let currentPage = 1;\n}\n\nvar setStart = (currentPage - 1) * perPage;\nvar setEnd = setStart + showing;\n\n&lt;form class=&quot;mt-search-paging&quot; method=&quot;get&quot; action=(uri)&gt;\n    foreach (var paramName:paramValue in params where paramName != pageKey) {\n        &lt;input type=&quot;hidden&quot; name=(paramName) value=(paramValue) /&gt;\n    }\n    &lt;div class=&quot;summary&quot;&gt;\n        if (showing &lt; 1) {\n            wiki.localize(&quot;MindTouch.Reports.paging.noresults&quot;);\n        } else {\n            wiki.localize(localizeShowing, [\n                (setStart+1),\n                setEnd\n            ]);\n        }\n    &lt;/div&gt;\n    &lt;div class=&quot;paging&quot;&gt;\n        if (currentPage &gt; 1) {\n            &lt;span class=&quot;prev&quot;&gt;\n                &lt;a href=( uri &amp; (params .. {(pageKey): (currentPage - 1)}) )&gt;\n                    wiki.localize(&quot;MindTouch.Reports.paging.prev&quot;);\n                &lt;/a&gt;\n            &lt;/span&gt;\n        } else {\n            &lt;span class=&quot;prev ui-state-disabled&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.prev&quot;)&lt;/span&gt;\n        }\n\n        &lt;span class=&quot;jump&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.jump&quot;)&lt;/span&gt;\n        &lt;input class=&quot;jump&quot; type=&quot;text&quot; name=(pageKey) value=(currentPage) size=&quot;2&quot; /&gt;\n\n        if (nextPage) {\n            &lt;span class=&quot;next&quot;&gt;\n                &lt;a href=( uri &amp; (params .. {(pageKey): (currentPage + 1)}) )&gt;\n                    wiki.localize(&quot;MindTouch.Reports.paging.next&quot;);\n                &lt;/a&gt;\n            &lt;/span&gt;\n        } else {\n            &lt;span class=&quot;next ui-state-disabled&quot;&gt;wiki.localize(&quot;MindTouch.Reports.paging.next&quot;)&lt;/span&gt;\n        }\n    &lt;/div&gt;\n&lt;/form&gt;\n\n\n\n</pre>\n','page created, 272 words added',1,'20111013202348',0,0,0,1,'20111013202348',1,'','<pre class=\"script\">/**\n * Search Paging Control\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param num $showing - number of visible results\n * @param bool $next - are there more results?\n * @param num $perPage - number of results shown per page (default: 10)\n * @param str $key - query param to use for paging (default: &quot;page&quot;)\n * @param num $page - current page being viewed (default: __request.args[$key])\n * @param str $sh...',67,1,'application/x.deki0805+xml','','SearchPagingNext',NULL,0,NULL,1,'43e335bbf4f4c6cb9dd25f04397ac01c'),(75,10,'MindTouch/Reports/Controls/SearchQueriesTable','<pre class=\"script\">/**\n * Search Results Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $term - term to search for\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar uri = $uri ?? page.uri;\nvar preserve = $params ?? {};\nvar searchTerm = $term ?? &quot;&quot;;\nvar defaultSort = $default;\nvar resultsPerPage = $perPage ?? 30;\n\nvar dateSince = $dateSince; // nullable\nvar dateBefore = $dateBefore ?? date.now;\n\n// compute the page\nvar currentPage = __request.args.page ?? 1;\nif (currentPage &lt; 1) {\n    let currentPage = 1;\n}\nvar currentSort =  __request.args.sortBy ?? defaultSort;\n\n// fetch the results\nvar queryResults = searchanalytics.queries{\n    groupby: &quot;query&quot;,\n    term: searchTerm,\n    offset: (currentPage - 1) * resultsPerPage,\n    limit: (resultsPerPage + 1),\n    since: dateSince,\n    before: dateBefore\n};\n\nvar queryCount = #queryResults.queries;\nvar moreResults = (queryCount &gt; resultsPerPage);\nif (moreResults) {\n    let queryCount -= 1;\n}\n\n// Paging\nTemplate(\'MindTouch/Reports/Controls/SearchPagingNext\', {\n    uri: uri,\n    params: preserve,\n    next: moreResults,\n    showing: queryCount,\n    perPage: resultsPerPage,\n    showingKey: &quot;MindTouch.SearchAnalytics.paging.results&quot;\n});\n\n&lt;table class=&quot;table mt-report-results&quot;&gt;\n    Template(\'MindTouch/Controls/TableSortHeading\', {\n        uri: uri,\n        params: preserve,\n        columns: [\n            {\n                width: &quot;300&quot;,\n                label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.query&quot;)\n            },\n            {\n                width: &quot;25&quot;,\n                label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.hits&quot;),\n                class: &quot;data-type-numeric&quot;\n            },\n            {\n                width: &quot;&quot;,\n                label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.date.search&quot;),\n                class: &quot;data-type-datetime&quot;\n            },\n            {\n                width: &quot;&quot;,\n                label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.clicked&quot;)\n            }\n        ],\n        enabled: (queryCount &gt; 0)\n    });\n\n    if (queryCount &lt; 1) {\n        &lt;tr&gt;\n            &lt;td colspan=&quot;4&quot;&gt;\n                wiki.localize(&quot;MindTouch.Reports.data.empty&quot;)\n            &lt;/td&gt;\n        &lt;/tr&gt;\n    }\n\n    foreach (var queryResult in queryResults.queries where __index &lt; queryCount) {\n        &lt;tr class=(&quot;row-&quot; .. (__count % 2))&gt;\n            &lt;td&gt;\n            if (#queryResult.sortedterms) {\n                &lt;a href=(uri &amp; preserve &amp; {term: searchTerm, query: queryResult.sortedterms})&gt;\n                    queryResult.sortedterms;\n                &lt;/a&gt;\n            } else {\n                &lt;em&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.terms.none&quot;)&lt;/em&gt;\n            }\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                queryResult.count\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-datetime&quot;&gt;\n                Template(&quot;MindTouch/Controls/DateTime&quot;, [queryResult.datesearched, &quot;datetime&quot;]);\n            &lt;/td&gt;\n            if (#queryResult.selectedresults == 0) {\n                &lt;td&gt;&quot;--&quot;&lt;/td&gt;\n            } else {\n                Template(\n                    &quot;MindTouch/Reports/Controls/TableCellResult&quot;,\n                    queryResult.selectedresults[0]\n                );\n            }\n        &lt;/tr&gt;\n    }\n&lt;/table&gt;\n\n// Paging\nTemplate(\'MindTouch/Reports/Controls/SearchPagingNext\', {\n    uri: uri,\n    params: preserve,\n    more: moreResults,\n    showing: queryCount,\n    perPage: resultsPerPage,\n    showingKey: &quot;MindTouch.SearchAnalytics.paging.results&quot;\n});\n\n// debugging\n//web.pre(json.format(queryResults));</pre>','page created, 325 words added',1,'20111013202348',0,0,0,1,'20111013202348',1,'','<pre class=\"script\">/**\n * Search Results Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $term - term to search for\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar uri = $uri ?? page.uri;\nvar preserve = $params ?? {};\nvar searchTerm = $term ?? &quot;&quot;;\nvar defaultSort = $default;\nvar resultsPerPage = $perPage ?? 30;\n\nvar dateSince = $dateSince; /...',67,1,'application/x.deki0805+xml','','SearchQueriesTable',NULL,0,NULL,1,'29e44387c4c477388fc453a3142cca54'),(76,10,'MindTouch/Reports/Controls/SearchQueryDetails','<pre class=\"script\">/**\n * Search Query Details Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $query - query to query for information\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar searchQuery = $query ?? &quot;&quot;;\n\nvar dateSince = $dateSince; // nullable\nvar dateBefore = $dateBefore ?? date.now;\n\n// fetch the results\nvar queryDetails = searchanalytics.query{\n    querystring: searchQuery,\n    since: dateSince,\n    before: dateBefore\n};\n\n// Begin output\n\n&lt;h3 class=&quot;reports&quot;&gt;\n    wiki.localize(&quot;MindTouch.SearchAnalytics.detail.selected&quot;);\n    &amp;nbsp;;\n    &lt;span class=&quot;terms&quot;&gt;queryDetails.sortedterms&lt;/span&gt;\n&lt;/h3&gt;\n\n&lt;table class=&quot;table mt-report-results&quot;&gt;\n    Template(\'MindTouch/Controls/TableSortHeading\', {\n        uri: uri,\n        params: params,\n        columns: [\n            {width: &quot;&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.result&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.hits&quot;)},\n            {width: &quot;165&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.date.search&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.position.avg&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.position.min&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.SearchAnalytics.data.position.max&quot;)}\n        ]\n        //enabled: (#queryDetails.selectedresults &gt; 0)\n    });\n    if (#queryDetails.selectedresults &lt; 1) {\n    &lt;tr&gt;\n        &lt;td colspan=&quot;6&quot; class=&quot;ui-state-empty&quot;&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.detail.selected.empty&quot;);\n        &lt;/td&gt;\n    &lt;/tr&gt;\n    } else {\n        foreach (var result in queryDetails.selectedresults) {\n        &lt;tr&gt;\n            Template(\'MindTouch/Reports/Controls/TableCellResult\', result);\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                result.count;\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                Template(&quot;MindTouch/Controls/DateTime&quot;, [result.dateselected, &quot;datetime&quot;]);\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                result.position.min;\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                result.position.max;\n            &lt;/td&gt;\n            &lt;td class=&quot;data-type-numeric&quot;&gt;\n                result.position.avg;\n            &lt;/td&gt;\n        &lt;/tr&gt;\n        }\n    }\n&lt;/table&gt;\n\n&lt;h3 class=&quot;reports&quot;&gt;\n    wiki.localize(&quot;MindTouch.SearchAnalytics.detail.title&quot;);\n    &amp;nbsp;;\n    &lt;span class=&quot;terms&quot;&gt;queryDetails.sortedterms&lt;/span&gt;\n&lt;/h3&gt;\n\n&lt;dl class=&quot;mt-query&quot;&gt;\n    &lt;dt&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.detail.searched&quot;);&lt;/dt&gt;\n    &lt;dd&gt;Template(&quot;MindTouch/Controls/DateTime&quot;, [queryDetails.datesearched, &quot;datetime&quot;]);&lt;/dd&gt;\n\n    if (#queryDetails.queries &gt; 1) {\n        &lt;dt&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.detail.related&quot;);&lt;/dt&gt;\n        &lt;dd class=&quot;description&quot;&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.detail.related.description&quot;);\n        &lt;/dd&gt;\n        &lt;dd&gt;\n            &lt;ul&gt;\n                var tip = wiki.localize(&quot;MindTouch.SearchAnalytics.detail.related.tip&quot;);\n                foreach (var rawQuery in queryDetails.queries) {\n                    &lt;li&gt;\n                        &lt;a href=(site.homepage.uri &amp; {search: rawQuery.raw}) target=&quot;_blank&quot; title=(tip)&gt;\n                        rawQuery.raw;\n                        &amp;nbsp;;\n                        &lt;span class=&quot;count&quot;&gt;&quot;(&quot; .. rawQuery.count .. &quot;)&quot;&lt;/span&gt;\n                        &lt;/a&gt;\n                   &lt;/li&gt;\n                }\n            &lt;/ul&gt;\n        &lt;/dd&gt;\n    }\n    &lt;dt&gt;wiki.localize(&quot;MindTouch.SearchAnalytics.detail.previous&quot;);&lt;/dt&gt;\n    &lt;dd class=&quot;description&quot;&gt;\n        wiki.localize(&quot;MindTouch.SearchAnalytics.detail.previous.description&quot;);\n    &lt;/dd&gt;\n    &lt;dd&gt;\n    if (#queryDetails.previous &lt; 1) {\n            wiki.localize(&quot;MindTouch.SearchAnalytics.detail.previous.empty&quot;);\n        } else {\n        &lt;ul&gt;\n            foreach (var query in queryDetails.previous) {\n                &lt;li&gt;\n                    &lt;a href=(uri &amp; params &amp; {query: query.sortedterms})&gt;\n                        query.sortedterms;\n                        &amp;nbsp;;\n                        &lt;span class=&quot;count&quot;&gt;&quot;(&quot; .. query.count .. &quot;)&quot;&lt;/span&gt;\n                    &lt;/a&gt;\n                &lt;/li&gt;\n            }\n        &lt;/ul&gt;\n    }\n    &lt;/dd&gt;\n&lt;/dl&gt;\n\n// debugging\n//web.pre(json.format(queryDetails));</pre>\n','page created, 411 words added',1,'20111013202348',0,0,0,1,'20111013202348',1,'','<pre class=\"script\">/**\n * Search Query Details Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $query - query to query for information\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar searchQuery = $query ?? &quot;&quot;;\n\nvar dateSince = $dateSince; // nullable\nvar dateBefore = $dateBefore ?? date.now;\n\n// fetch the results\nvar queryDetails = searchanalytics.query{\n    querystring: searchQuery,\n    sinc...',67,1,'application/x.deki0805+xml','','SearchQueryDetails',NULL,0,NULL,1,'20eb78aae8889dde6efd4d51a5decb46'),(77,10,'MindTouch/Reports/Controls/SearchResultsTable','<pre class=\"script\">/**\n * Search Results Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $term - term to search for\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar searchTerm = $term ?? &quot;&quot;;\nvar defaultSort = $default;\nvar resultsPerPage = $perPage ?? 30;\n\nvar dateSince = $dateSince; // nullable\nvar dateBefore = $dateBefore ?? date.now;\n\nvar since = date.Format(dateSince, &quot;yyyyMMddHHmmss&quot;);\nvar before = date.Format(dateBefore, &quot;yyyyMMddHHmmss&quot;);\n\n// compute the page\nvar currentPage = __request.args.page ?? 1;\nif (currentPage &lt; 1) {\n    let currentPage = 1;\n}\nvar currentSort =  __request.args.sortBy ?? defaultSort;\n\n// fetch the results\nvar queryResults = searchanalytics.queries{\n    groupby: &quot;query&quot;,\n    term: searchTerm,\n    offset: (currentPage - 1) * resultsPerPage,\n    limit: (resultsPerPage + 1),\n    since: since,\n    before: before\n};\n\nvar queryCount = #queryResults.queries;\nvar moreResults = (queryCount &gt; resultsPerPage);\nif (moreResults) {\n    let queryCount -= 1;\n}\n\n// Paging\nTemplate(\'MindTouch/Reports/Controls/SearchPagingNext\', {\n    uri: uri,\n    params: params,\n    next: moreResults,\n    showing: queryCount,\n    perPage: resultsPerPage\n});\n\n&lt;table class=&quot;table mt-report-results&quot;&gt;\n    Template(\'MindTouch/Controls/TableSortHeading\', {\n        uri: uri,\n        params: params,\n        columns: [\n            {width: &quot;&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.query&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.searched&quot;)},\n            {width: &quot;125&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.clicked&quot;)},\n            {width: &quot;25&quot;, label: wiki.localize(&quot;MindTouch.Reports.data.date.search&quot;)}\n        ],\n        //default: defaultSort,\n        enabled: (queryCount &gt; 0)\n    });\n\n    if (queryCount &lt; 1) {\n        &lt;tr&gt;\n            &lt;td colspan=&quot;4&quot;&gt;\n                wiki.localize(&quot;MindTouch.Reports.data.empty&quot;)\n            &lt;/td&gt;\n        &lt;/tr&gt;\n    }\n\n    foreach (var queryResult in queryResults.queries where __index &lt; queryCount) {\n        &lt;tr class=(&quot;row-&quot; .. (__count % 2))&gt;\n            &lt;td&gt;\n                // @TODO guerrics: replace terms with real query id\n                &lt;a href=(uri &amp; params &amp; {query: queryResult[\'sorted-terms\']})&gt;\n                    queryResult[\'sorted-terms\'];\n                &lt;/a&gt;\n            &lt;/td&gt;\n            &lt;td&gt;queryResult.count&lt;/td&gt;\n            if (#queryResult[\'selected-results\'] == 0) {\n                &lt;td class=&quot;col-3&quot;&gt;&quot;--&quot;&lt;/td&gt;\n            } else {\n                Template(\'MindTouch/Reports/Controls/TableCellPage\', {\n                    id: queryResult[\'selected-results\'][0].pageid,\n                    class: &quot;col-3&quot;\n                });\n            }\n            &lt;td&gt;&quot;--&quot;&lt;/td&gt;\n        &lt;/tr&gt;\n    }\n&lt;/table&gt;\n\n// Paging\nTemplate(\'MindTouch/Reports/Controls/SearchPagingNext\', {\n    uri: uri,\n    params: params,\n    more: moreResults,\n    showing: queryCount,\n    perPage: resultsPerPage\n});\n\n/*&lt;h4&gt;&quot;Raw output&quot;&lt;/h4&gt;\nweb.pre(json.format(queryResults));\n*/\n</pre>','page created, 316 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<pre class=\"script\">/**\n * Search Results Table\n *\n * @param uri $uri - base uri (default: page.uri)\n * @param map $params - query params to preserve\n * @param str $term - term to search for\n * @param str $default - default sort (default: nil)\n * @param num $perPage - results per page (default: 30)\n */\nvar uri = $uri ?? page.uri;\nvar params = $params ?? {};\nvar searchTerm = $term ?? &quot;&quot;;\nvar defaultSort = $default;\nvar resultsPerPage = $perPage ?? 30;\n\nvar dateSince = $dateSince; // ...',67,1,'application/x.deki0805+xml','','SearchResultsTable',NULL,0,NULL,1,'68ae026864d7c475cab5e00cd579d022'),(78,10,'MindTouch/Reports/Controls/SearchTermsCloud','<pre class=\"script\">/**\n * Terms Cloud\n * Provides a visual cloud of commonly searched terms\n */\n\nvar uri = $uri ?? page.uri;\nvar limit = $limit ?? 20;\n\nvar dateSince = $dateSince;\nvar dateBefore = $dateBefore ?? date.now;\nvar term = $term; \n\n// fetch the terms\nvar queryTerms = searchanalytics.Terms{\n    limit: limit,\n    since: dateSince,\n    before: dateBefore\n};\n\nif (#queryTerms.terms &lt; 1) {\n    &lt;div class=&quot;no-results&quot;&gt;\n        &lt;div class=&quot;no-results-text&quot;&gt;\n            wiki.localize(&quot;MindTouch.SearchAnalytics.data.empty&quot;)\n        &lt;/div&gt;\n    &lt;/div&gt;\n} else {\n\n// Begin output\n&lt;div class=&quot;mt-search-terms-cloud&quot;&gt;\n\n// results output\nvar max = list.reduce(queryTerms.terms, &quot;(($item.count &gt;= $value) ? $item.count : $value)&quot;, 0);\n\n// sort terms alphabetically\nvar alphaTerms = list.sort(queryTerms.terms, &quot;term&quot;);\n\n&lt;ul class=&quot;terms&quot;&gt;\nforeach (var queryTerm in alphaTerms)\n{\n    var average = queryTerm.count / max;\n    var class = &quot;term rate-&quot;;\n    if (average &gt; .75) {\n        let class ..= &quot;fire&quot;;\n    } else if (average &gt; .5) {\n        let class ..= &quot;high&quot;;\n    } else if (average &gt; .25) {\n        let class ..= &quot;med&quot;;\n    } else {\n        let class ..= &quot;low&quot;;\n    }\n\n    if (term == queryTerm.term) {\n        let class ..= &quot; active&quot;;\n    }\n\n    &lt;li class=(class)&gt;\n        &lt;a href=(uri &amp; {term: queryTerm.term})&gt;queryTerm.term&lt;/a&gt;\n    &lt;/li&gt;\n}\n&lt;/ul&gt;\n&lt;/div&gt;\n} // end no-results</pre>\n','page created, 164 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<pre class=\"script\">/**\n * Terms Cloud\n * Provides a visual cloud of commonly searched terms\n */\n\nvar uri = $uri ?? page.uri;\nvar limit = $limit ?? 20;\n\nvar dateSince = $dateSince;\nvar dateBefore = $dateBefore ?? date.now;\nvar term = $term; \n\n// fetch the terms\nvar queryTerms = searchanalytics.Terms{\n    limit: limit,\n    since: dateSince,\n    before: dateBefore\n};\n\nif (#queryTerms.terms &lt; 1) {\n    &lt;div class=&quot;no-results&quot;&gt;\n        &lt;div class=&quot;no-results-text&quot;&g...',67,1,'application/x.deki0805+xml','','SearchTermsCloud',NULL,0,NULL,1,'945612b64f6703c68cf136e1d8964e1b'),(79,10,'MindTouch/Reports/Controls/TableCellPage','<pre class=\"script\">/**\n * Table Cell: Page detail\n * Outputs page related information\n */\nvar pageId = $id;\nvar class = $class;\nvar cellPage = $page ?? wiki.getpage(num.cast(pageId));\n\n&lt;td class=(&quot;page-detail &quot; .. class)&gt;\n    &lt;div class=&quot;details&quot;&gt;\n    &lt;a href=(cellPage.uri)&gt;cellPage.title&lt;/a&gt;;\n    var parentPath = cellPage.parent.path;\n    if (parentPath) {\n        &lt;span class=&quot;in&quot;&gt;\n            &quot; &quot; .. wiki.localize(&quot;MindTouch.Reports.data.title.in&quot;) .. &quot; &quot;;\n            &lt;a href=(cellPage.parent.uri)&gt;parentPath&lt;/a&gt;;\n        &lt;/span&gt;\n    }\n    &lt;/div&gt;\n\n    var tags = cellPage.tags;\n    if (#tags &gt; 0) {\n    &lt;div class=&quot;tags&quot;&gt;\n        &lt;span&gt;wiki.localize(&quot;MindTouch.Reports.data.title.tags&quot;)&lt;/span&gt;\n        &lt;ul&gt;\n            foreach (var tag in tags) {\n                if (__count &gt; 2) {\n                    break;\n                }\n                &lt;li&gt;&lt;a href=(&quot;Special:Tags?tag=&quot; .. tag.name)&gt;tag.name&lt;/a&gt;&lt;/li&gt;\n            }\n        &lt;/ul&gt;\n    &lt;/div&gt;\n    }\n&lt;/td&gt;\n</pre>','page created, 107 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<pre class=\"script\">/**\n * Table Cell: Page detail\n * Outputs page related information\n */\nvar pageId = $id;\nvar class = $class;\nvar cellPage = $page ?? wiki.getpage(num.cast(pageId));\n\n&lt;td class=(&quot;page-detail &quot; .. class)&gt;\n    &lt;div class=&quot;details&quot;&gt;\n    &lt;a href=(cellPage.uri)&gt;cellPage.title&lt;/a&gt;;\n    var parentPath = cellPage.parent.path;\n    if (parentPath) {\n        &lt;span class=&quot;in&quot;&gt;\n            &quot; &quot; .. wiki.localize(&quot;M...',67,1,'application/x.deki0805+xml','','TableCellPage',NULL,0,NULL,1,'9fbfffc4d178385178cad198baaf7e5a'),(80,10,'MindTouch/Reports/Controls/TableCellResult','<pre class=\"script\">/**\n * Table Cell: Search result detail\n * Outputs search result related information\n */\n// page, file, comment\nvar resultType = $type;\nvar class = $class;\nvar pageId = $pageId;\nvar fileId = $fileId; // optional\nvar commentId = $commentId;\nvar cellPage = $page ?? wiki.getpage(num.cast(pageId));\nvar cellFile = $file;\nvar cellComment = $comment;\n\n// support loading files by id\nif (resultType == &quot;file&quot; &amp;&amp; cellFile is nil)\n    let cellFile = wiki.getfile(num.cast(fileId));\n\nlet class ..= &quot;result-detail result-type-&quot; .. resultType;\n\nswitch (resultType) {\ndefault:\ncase &quot;page&quot;:\n    Template(&quot;MindTouch/Reports/Controls/TableCellPage&quot;, {\n        page: cellPage,\n        class: class\n    });\n\ncase &quot;file&quot;:\n    &lt;td class=(class)&gt;\n        &lt;div class=&quot;details&quot;&gt;\n        &lt;a href=(cellFile.uri)&gt;cellFile.name&lt;/a&gt;;\n        &lt;span class=&quot;in&quot;&gt;\n            &quot; &quot; .. wiki.localize(&quot;MindTouch.Reports.data.title.in&quot;) .. &quot; &quot;;\n            &lt;a href=(cellPage.uri)&gt;cellPage.path&lt;/a&gt;;\n        &lt;/span&gt;\n    &lt;/div&gt;\n    &lt;/td&gt;\n\ncase &quot;comment&quot;:\n    &lt;td class=(class)&gt;\n        &lt;div class=&quot;details&quot;&gt;\n        &lt;a href=(cellComment.uri) title=(cellComment.text)&gt;&quot;Comment #&quot;..cellComment.number&lt;/a&gt;;\n        &lt;span class=&quot;in&quot;&gt;\n            &quot; &quot; .. wiki.localize(&quot;MindTouch.Reports.data.title.in&quot;) .. &quot; &quot;;\n            &lt;a href=(cellPage.uri)&gt;cellPage.path&lt;/a&gt;;\n        &lt;/span&gt;\n        &lt;/div&gt;\n    &lt;/td&gt;\n}\n\n</pre>\n','page created, 156 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<pre class=\"script\">/**\n * Table Cell: Search result detail\n * Outputs search result related information\n */\n// page, file, comment\nvar resultType = $type;\nvar class = $class;\nvar pageId = $pageId;\nvar fileId = $fileId; // optional\nvar commentId = $commentId;\nvar cellPage = $page ?? wiki.getpage(num.cast(pageId));\nvar cellFile = $file;\nvar cellComment = $comment;\n\n// support loading files by id\nif (resultType == &quot;file&quot; &amp;&amp; cellFile is nil)\n    let cellFile = wiki.getfile(num....',67,1,'application/x.deki0805+xml','','TableCellResult',NULL,0,NULL,1,'d2dd35faf4c9e5d0fdd9d2a6cb4543bb'),(81,10,'MindTouch/Views','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',45,1,'application/x.deki0805+xml','','Views',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(82,10,'MindTouch/Views/ActivityDashboard','<pre class=\"script\">&lt;link href=&quot;/skins/common/templates/activitydashboard.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;\n\ntry {\n    // set page-level user details\n    var ActivityUser = page.namespaceuser;\n    var userDetails = wiki.api(ActivityUser.api);\n} catch {\n    &lt;span class=&quot;error-dekiscript&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.error.initialization\');&lt;/span&gt;\n    web.showerror(__error);\n    return;\n};\n\n&lt;div id=&quot;deki-activity-dashboard&quot;&gt;\n&lt;div id=&quot;col-left&quot;&gt;\n\n/*\n * User Profile Information Box \n */\n&lt;div id=&quot;deki-profile&quot; class=&quot;deki-dashboard-group&quot;&gt;\ntry {\n    &lt;div class=&quot;dashboard-title&quot;&gt;\n        &lt;div class=&quot;profile-name&quot;&gt;\n            #ActivityUser.fullname &gt; 0 ? ActivityUser.fullname : ActivityUser.name;\n\n            var status = xml.text(userDetails, \'status\');\n            status == \'active\' ? \'\' : \' (\' .. wiki.localize(\'MindTouch.Templates.UserProfile.status.disabled\') .. \')\';\n        &lt;/div&gt;\n    &lt;/div&gt;\n\n    &lt;div class=&quot;profile-image&quot;&gt;\n        ActivityUser.Gravatar\n    &lt;/div&gt;\n    &lt;dl class=&quot;profile-details&quot;&gt;\n        var loginDate = date.parse(xml.text(userDetails, \'date.lastlogin\'));\n        &lt;dt&gt;wiki.localize(\'MindTouch.Templates.UserProfile.label.lastlogin\') .. \': \';&lt;/dt&gt;\n        &lt;dd class=&quot;dashboard-lastlogin&quot;&gt;Template(\'MindTouch/Controls/DateTime\', {date:loginDate, format:\'datetime\'});&lt;/dd&gt;\n        &lt;dt&gt;\n            wiki.localize(\'MindTouch.Templates.UserProfile.label.joined\') .. \': \'\n        &lt;/dt&gt;\n        &lt;dd class=&quot;profile-joined&quot;&gt;\n            var joinDate = date.parse(xml.text(userDetails, \'date.created\'));\n            Template(\'MindTouch/Controls/DateTime\', {date:joinDate, format:\'date\'})\n        &lt;/dd&gt;\n        &lt;dt&gt;\n            wiki.localize(\'MindTouch.Templates.UserProfile.label.timezone\') .. \': \';\n        &lt;/dt&gt;\n        &lt;dd class=&quot;profile-timezone&quot;&gt;\n            ActivityUser.timezone;\n        &lt;/dd&gt;\n        if (#ActivityUser.language &gt; 0 &amp;&amp; ActivityUser.language != site.language) {\n        &lt;dt&gt;\n            wiki.localize(\'MindTouch.Templates.UserProfile.label.language\') .. \': \'\n        &lt;/dt&gt;\n        &lt;dd class=&quot;profile-language&quot;&gt;\n            ActivityUser.language;\n        &lt;/dd&gt;\n        }\n        var groups = userDetails[\'groups/group\'];\n        if (#groups &gt; 0) {\n        &lt;dt&gt;\n            wiki.localize(\'MindTouch.Templates.UserProfile.label.groups\') .. \': \'\n        &lt;/dt&gt;\n        &lt;dd class=&quot;profile-groups&quot;&gt;\n            string.join(list.sort([ xml.text(g[&quot;groupname&quot;]) foreach var g in groups ]), &quot;, &quot;);\n        &lt;/dd&gt;\n        }\n    &lt;/dl&gt;\n    &lt;div class=&quot;clear&quot; /&gt;\n} catch {    \n    &lt;span class=&quot;error-dekiscript&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.error.profile\');&lt;/span&gt;\n    web.showerror(__error);\n};\n&lt;/div&gt; // end deki-profile\n\n/*\n * Recent Comments Dashboard Box\n */\n&lt;div id=&quot;deki-recent-comments&quot; class=&quot;deki-dashboard-group&quot;&gt;\ntry {\n	&lt;div class=&quot;dashboard-title&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.label.comments\', [\'@\' .. ActivityUser.name]);&lt;/div&gt;\n\n	var dependencies = Template(&quot;MindTouch/Controls/DependencyErrors&quot;, {\n	    components:[\n	        {name: &quot;activitystream&quot;, sid: &quot;sid://mindtouch.com/std/2009/04/activitystream&quot;}\n	    ]\n	});\n\n	if (!#dependencies[&quot;//div&quot;]) {\n	\n	    var activities = activitystream.timeline(ActivityUser.name, 10);\n	\n	    if (#activities &gt; 0) {\n	        foreach (var a in activities) {\n	        &lt;div class=&quot;activity-comment&quot;&gt;\n	            &lt;div class=&quot;activity-avatar&quot;&gt;\n	                &lt;img src=(a.user.gravatar) height=&quot;30px&quot; /&gt;\n	            &lt;/div&gt;\n	            \n	            &lt;div class=&quot;activity-meta&quot;&gt;\n	            &lt;div class=&quot;activity-from&quot;&gt;\n	                &lt;span class=&quot;activity-name&quot;&gt;a.user.name&lt;/span&gt;\n	                &lt;span class=&quot;activity-page&quot;&gt;\n	                    \' \' .. wiki.localize(\'MindTouch.Templates.UserProfile.comment.on\') .. \' \';\n	                    a.page.uri ? web.link(a.page.uri, a.page.title) : wiki.localize(\'MindTouch.Templates.UserProfile.empty.page\');\n	                &lt;/span&gt;\n	\n	                &lt;div class=&quot;activity-date&quot;&gt;Template(\'MindTouch/Controls/DateTime\', {date:a.time, format:\'datetime\'})&lt;/div&gt;\n	            &lt;/div&gt;\n	            &lt;div class=&quot;activity-text&quot;&gt; a.content &lt;/div&gt;\n	            &lt;/div&gt; // end meta\n	        &lt;/div&gt; // end comment\n	       } // end foreach\n	    } // end if\n	    else {\n	        &lt;div class=&quot;dashboard-message&quot;&gt;\n	            wiki.localize(\'MindTouch.Templates.UserProfile.empty.comments\');\n	        &lt;/div&gt;\n	    }\n	}\n	else {\n	    if (#dependencies[&quot;//a[contains(@rel, \'component-missing\')]&quot;]) {\n	        dependencies;\n	    } else {\n	        &lt;div class=&quot;dashboard-commercial-text&quot;&gt;\n	            &lt;div class=&quot;dashboard-commercial-message&quot;&gt;\n	                var link = web.link(\'http://mindtouch.com/redir/activity-stream/\', wiki.localize(\'MindTouch.Templates.UserProfile.error.commercial.link\'));\n	                wiki.localize(\'MindTouch.Templates.UserProfile.error.commercial\', [link]);\n	            &lt;/div&gt;\n	        &lt;/div&gt;\n	    }\n	}\n} catch {\n    &lt;span class=&quot;error-dekiscript&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.error.comments\');&lt;/span&gt;\n    web.showerror(__error);\n};\n\n&lt;/div&gt; // end recent-comments\n&lt;/div&gt; // end col-left\n\n&lt;div id=&quot;col-right&quot;&gt;\n\n/*\n * Recent User Activities\n */\n&lt;div id=&quot;deki-recent-changes&quot; class=&quot;deki-dashboard-group&quot;&gt;\ntry {\n    &lt;div class=&quot;dashboard-title&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.label.changes\')&lt;/div&gt;\n   \n    var feedUri = ActivityUser.api &amp; \'feed\' &amp; {limit: 10, format: \'raw\'};\n    var changes = wiki.api(feedUri)[\'change\'];\n\n    if (#changes &gt; 0) {\n        &lt;ul&gt;\n        foreach (var c in changes) {\n\n            var pageId =  xml.num(c, \'rc_cur_id\');\n            var page = wiki.getPage(pageId);\n            var changeDate = date.parse(xml.text(c, \'rc_timestamp\'), \'yyyyMMddHHmmss\');\n            var pageExists = xml.num(c, \'rc_page_exists\');\n            var pageTitle = xml.text(c, \'rc_title\');\n\n             &lt;li&gt;\n                pageExists ? web.link(page.uri, page.title) : pageTitle;\n                &lt;div class=&quot;recentchanges-date&quot;&gt;Template(\'MindTouch/Controls/DateTime\', {date:changeDate, format:\'date\'})&lt;/div&gt; \n                &lt;div class=&quot;recentchanges-details&quot;&gt;\n                    &lt;span class=&quot;dashboard-change&quot;&gt;xml.text(c, \'rc_comment\');&lt;/span&gt;\n                &lt;/div&gt;\n            &lt;/li&gt;\n        }\n        &lt;/ul&gt;\n\n        &lt;div class=&quot;deki-dashboard-group-footer&quot;&gt;\n            web.link(\'/Special:Contributions?target=\' .. ActivityUser.name,\n               wiki.localize(\'MindTouch.Templates.UserProfile.label.allchanges\', [ActivityUser.name]));\n        &lt;/div&gt;\n    }\n    else {\n        &lt;div class=&quot;dashboard-message&quot;&gt;\n            wiki.localize(\'MindTouch.Templates.UserProfile.empty.changes\');\n        &lt;/div&gt;\n    }\n} catch {\n    &lt;span class=&quot;error-dekiscript&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.error.changes\');&lt;/span&gt;\n    web.showerror(__error);\n};\n\n&lt;/div&gt; // end deki-recent-changes\n&lt;/div&gt; // end col-right\n&lt;/div&gt; // end deki-activity-dashboard\n</pre>','page created, 702 words added',1,'20111013202349',0,0,0,1,'20111013202349',1,'','<pre class=\"script\">&lt;link href=&quot;/skins/common/templates/activitydashboard.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;\n\ntry {\n    // set page-level user details\n    var ActivityUser = page.namespaceuser;\n    var userDetails = wiki.api(ActivityUser.api);\n} catch {\n    &lt;span class=&quot;error-dekiscript&quot;&gt;wiki.localize(\'MindTouch.Templates.UserProfile.error.initialization\');&lt;/span&gt;\n    web.showerror(__error);\n    return;\n};\n\n&lt;div id=&quot;deki-...',81,1,'application/x.deki0805+xml','','Activity Dashboard',NULL,0,NULL,1,'860139a3868702ecf73b0084181c1a8f'),(83,10,'MindTouch/Views/User_Welcome','<pre class=\"script\"> // check if user is looking at their own page\n if (wiki.getuser(user.id).uri == page.uri) {\n &lt;style type=&quot;text/css&quot;&gt;&quot;\n #user-welcome h2 {\n font-family: Arial, sans-serif;\n border: none;\n color: #454545;\n font-size: 25px;\n font-weight: normal;\n line-height: 30px;\n margin: 20px 0;\n }\n #user-welcome h4 {\n font-family: Verdana, Arial, Helvetica, sans-serif;\n font-size: 18px;\n line-height: 28px;\n margin-bottom: 10px;\n margin-top: 0;\n color: #454545;\n }\n #user-welcome .share {\n font-weight: bold;\n font-size: 14px;\n line-height: 20px;\n color: #666666;\n }\n #user-welcome-header {\n border: 2px solid #c4e1ed;\n background: #d1e8f0 url(/skins/common/images/oobe/mt-bg-user-welcome.png) repeat-x scroll center top;\n margin-top: 20px;\n padding: 25px;\n }\n #user-welcome-signup {\n font-family:Arial, Helvetica, sans-serif;\n margin: 0;\n padding: 35px 40px 20px 40px;\n font-size: 18px;\n line-height: 28px;\n }\n #user-welcome-signup a {\n color: #bc0d0d;\n }\n #user-welcome-signup a:hover {\n color: #d70808;\n }\n #user-welcome-more {\n padding: 25px;\n }\n #user-welcome ul li {\n padding: 0;\n margin: 0 0 14px;\n }\n &quot;&lt;/style&gt;\n \n &lt;div id=&quot;user-welcome&quot;&gt;\n &lt;h2&gt;\n wiki.localize(\'MindTouch.Templates.userwelcome\', [site.name]);\n &lt;/h2&gt;\n &lt;p class=&quot;share&quot;&gt;\n wiki.localize(\'System.API.new-user-page-text\');\n &lt;/p&gt;\n &lt;div id=&quot;user-welcome-header&quot;&gt;\n &lt;p id=&quot;user-welcome-signup&quot;&gt;\n &lt;a href=(&quot;http://www.mindtouch.com/MindTouchU_signup&quot; &amp; {\n email: user.email,\n lang: wiki.language(),\n signup: &quot;yes&quot;\n })\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.signup.link\'))&gt;\n wiki.localize(\'MindTouch.Templates.userwelcome.signup.link\')              &lt;/a&gt;\n wiki.localize(\'MindTouch.Templates.userwelcome.signup\');\n &lt;/p&gt;\n &lt;/div&gt;\n \n &lt;div id=&quot;user-welcome-more&quot;&gt;\n &lt;h4&gt;\n wiki.localize(\'MindTouch.Templates.userwelcome.more\');\n &lt;/h4&gt;\n &lt;ul&gt;\n &lt;li&gt;\n &lt;a href=(&quot;http://www.mindtouch.com/u_video&quot; &amp; {\n email: user.email,\n lang: wiki.language()\n })\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.getting-started\'))&gt;\n wiki.localize(\'MindTouch.Templates.UserWelcome.getting-started\');\n &lt;/a&gt;\n &lt;/li&gt;\n &lt;li&gt;\n &lt;a href=(&quot;http://www.mindtouch.com/u_webinar&quot; &amp; {                     email: user.email,\n lang: wiki.language()\n })\n title=(wiki.localize(\'MindTouch.Templates.UserWelcome.free-webinar\'))&gt;\n wiki.localize(\'MindTouch.Templates.UserWelcome.free-webinar\');\n &lt;/a&gt;\n &lt;/li&gt;\n &lt;/ul&gt;\n &lt;/div&gt;\n &lt;/div&gt;\n } else {\n // displayed for visitors to the user page\n wiki.localize(\'MindTouch.Templates.UserWelcome.visitor\');\n }\n </pre>','page created, 330 words added',1,'20111013202349',0,0,0,1,'20111013202350',1,'','<pre class=\"script\"> // check if user is looking at their own page\n if (wiki.getuser(user.id).uri == page.uri) {\n &lt;style type=&quot;text/css&quot;&gt;&quot;\n #user-welcome h2 {\n font-family: Arial, sans-serif;\n border: none;\n color: #454545;\n font-size: 25px;\n font-weight: normal;\n line-height: 30px;\n margin: 20px 0;\n }\n #user-welcome h4 {\n font-family: Verdana, Arial, Helvetica, sans-serif;\n font-size: 18px;\n line-height: 28px;\n margin-bottom: 10px;\n margin-top: 0;\n color: #454545;\n }\n #u...',81,1,'application/x.deki0805+xml','','User Welcome',NULL,0,NULL,1,'af99c453811a11fa5107f77cebc1098d'),(84,10,'MindTouch/OOBE','This page was auto-generated because a user created a sub-page to this page.','page created, 15 words added',1,'20111013202447',0,0,0,1,'20111013202447',1,'','This page was auto-generated because a user created a sub-page to this page.',45,1,'application/x.deki0805+xml','','OOBE',NULL,0,NULL,1,'4bd580ee8c0b2ba77db11bd9110d9e7f'),(85,10,'MindTouch/OOBE/Core','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>','page created, 13 words added',1,'20111013202447',0,0,0,1,'20111013202447',1,'','<div style=\"padding: 25px; background-color: #dfdfdf;\"> <div style=\"background-color: #fff; padding: 35px;\"><img alt=\"MindTouch, Inc\" src=\"/skins/common/images/mindtouch-logo.png\" style=\"margin-bottom: 15px\" /><br /> <h2 style=\"line-height: 30pt;\">See our <a class=\"external\" href=\"http://mndt.ch/iLxrfX\" target=\"_blank\" title=\"MindTouch User Guide\">user guide</a> to learn more about creating, managing and using templates.</h2> </div>\n</div>',84,1,'application/x.deki0805+xml','','Core',NULL,0,NULL,1,'95deb6521ec28ebaa57b53724b46f2e3'),(86,10,'MindTouch/OOBE/Core/Admin_Enterprise','<div class=\"mt-title-bar mt-title-bar-admin-kb\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">An enterprise wiki is only the beginning - learn more about the <strong>MindTouch Social Intranet</strong>.</a></div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img class=\"mt-oobe-logo\" src=\"/skins/common/images/oobe/mindtouch-logo.gif\" /></div> <div class=\"mt-oobe-content\"> <h4>Thanks for installing MindTouch</h4> <p>We hope you get a lot of value out of our software. MindTouch is an award winning enterprise wiki and a powerful rapid application development platform. Be sure to contact us about prebuilt <span class=\"external\">solutions</span>, which include a lot of capabilities not found in our downloads.</p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img src=\"/skins/common/images/oobe/wysiwyg.png\" /></div> <div class=\"mt-oobe-content\"> <h4>Enterprise Wiki</h4> <p>Initially, MindTouch is often adopted as an enterprise wiki. It\'s remarkably easy to use for basic file and information sharing, with versioning already enabled. Some quick attributes of our enterprise wiki are: </p> <ul> <li>Rich text WYSIWYG editing</li> <li>Complete multimedia support</li> <li>Page and file indexing</li> <li>Multi-level page permissions</li> <li>Desktop and Microsoft Office integration</li> <li>100% standards compliance (XHTML) takes cumbersome wikitext out of the picture</li> </ul> <p>MindTouch delivers the ease of use required by business users, while meeting and exceeding the requirements of your IT department.</p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img src=\"/skins/common/images/oobe/Salesforce-Dashboard.png\" /></div> <div class=\"mt-oobe-content\"> <h4>Enterprise Collaboration Platform</h4> <p>While many users start using MindTouch as an enterprise wiki, these deployments quickly mature into something much more valuable to their organization.  Users of all skill levels begin to build applications, dashboards and workflows. MindTouch is a rapid application development environment that novice programmers and IT persons can use to build rich internet applications to solve common business problems - most often accomplished by getting the right information to the right users - collaboration in its most basic sense.    </p> <p>In addition to the add-ons you can download from <span class=\"external\">MindTouch.com</span>, MindTouch also offers pre-packaged solutions with additional capabilities, including <a class=\"external\" href=\"http://www.mindtouch.com/solutions/collaborative_intranet\" title=\"http://www.mindtouch.com/solutions/collaborative_intranet\">MindTouch Social Intranet</a>, and the <a class=\"external\" href=\"http://www.mindtouch.com/solutions/technical_communications_suite\" title=\"http://www.mindtouch.com/solutions/technical_communications_suite\">MindTouch Social Documentation</a>.</p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><object data=\"http://www.kaltura.com/index.php/kwidget/cache_st/1259951001/wid/_54512/uiconf_id/48410/entry_id/v986r3164c\" height=\"247\" id=\"kaltura_player\" name=\"kaltura_player\" type=\"application/x-shockwave-flash\" width=\"300\"><param name=\"allowScriptAccess\" value=\"always\" /><param name=\"allowNetworking\" value=\"all\" /><param name=\"allowFullScreen\" value=\"true\" /><param name=\"bgcolor\" value=\"#000000\" /><param name=\"movie\" value=\"http://www.kaltura.com/index.php/kwidget/cache_st/1259951001/wid/_54512/uiconf_id/48410/entry_id/v986r3164c\" /><param name=\"flashVars\" value=\"\" /><a class=\"external\" href=\"http://corp.kaltura.com\">video platform</a><a class=\"external\" href=\"http://corp.kaltura.com/technology/video_management\">video management</a><a class=\"external\" href=\"http://corp.kaltura.com/solutions/overview\">video solutions</a><a class=\"external\" href=\"http://corp.kaltura.com/technology/video_player\">free video player</a></object></div> <div class=\"mt-oobe-content\"> <h4>Revolutionize Your Collaboration Experience</h4> <p>At this point, it should be clear that:</p> <p style=\"text-align: center; \">&quot;<em>MindTouch is as much a wiki, as a spreadsheet application is a table you can put numbers in.</em>&quot; </p> <p>Meaning, you are about to start working with an enterprise wiki that also includes: </p> <ul> <li>A social layer capable of federating enterprise systems, applications, and APIs</li> <li>An integrated development environment</li> <li>Light weight business intelligence tools</li> <li>Web-services orchestration engine </li> </ul> <p>It\'s such a robust product that Forrester Research cites MindTouch <a class=\"external\" href=\"http://www.mindtouch.com/redir/forrester-wave\" title=\"http://www.mindtouch.com/redir/forrester-wave\">the best enterprise collaboration platform</a> alternative to Microsoft SharePoint and IBM. You\'ll soon see why.</p> </div>\n</div>\n<div class=\"mt-oobe-webinar\"> <h3>Your Next Step</h3> <p>We hope this short walkthrough gave you insight into why MindTouch revolutionizes collaboration. Sign-up for <a class=\"external\" href=\"http://www.mindtouch.com/showme\" target=\"_blank\" title=\"http://www.mindtouch.com/showme\">our weekly webinars</a> to learn more, or <a class=\"link-mailto\" href=\"mailto:info@mindtouch.com\" title=\"mailto:info@mindtouch.com\">contact MindTouch Customer Service</a> for more information, demo, and URLs to live sites at 619.795.8459.</p> <p class=\"mt-oobe-webinar\"><a class=\"external\" href=\"http://www.mindtouch.com/showme\" target=\"_blank\" title=\"http://www.mindtouch.com/showme\"><img alt=\"webinar-signup-button.png\" class=\"internal default\" src=\"/skins/common/2010/webinar-signup-button.png\" style=\"\" /></a></p>\n</div>','page created, 404 words added',1,'20111013202447',0,0,0,1,'20111013202447',1,'','<div class=\"mt-title-bar mt-title-bar-admin-kb\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">An enterprise wiki is only the beginning - learn more about the <strong>MindTouch Social Intranet</strong>.</a></div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img class=\"mt-oobe-logo\" src=\"/skins/common/images/oobe/mindtouch-logo.gif\" /></div> <div class=\"mt-oobe-content\"> <h4>Thanks for installing MindTouch</h4> <p>We hope you get...',85,1,'application/x.deki0805+xml','','Admin Enterprise',NULL,0,NULL,1,'1826a392435e9bcd05583b9eec22da7c'),(87,10,'MindTouch/OOBE/Core/Admin_Intranet','<div class=\"mt-title-bar mt-title-bar-admin-intranet\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">Achieve ROI in weeks and not months with the <strong>MindTouch Social Intranet</strong>.</a></div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img class=\"mt-oobe-logo\" src=\"/skins/common/images/oobe/mindtouch-logo.gif\" /></div> <div class=\"mt-oobe-content\"> <h4>MindTouch as an Intranet</h4> <p>MindTouch is often used to build powerful intranets by creating new applications and adding a social layer to existing systems and applications. With this platform you have the tools necessary to build your own intranet or you can contact us about prebuilt <a class=\"external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\" title=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">Social Intranet Solution</a> , which includes capabilites not included in our downloads. </p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img src=\"/skins/common/images/oobe/mt-img-intranet.png\" style=\"\" /></div> <div class=\"mt-oobe-content\"> <h4>What makes a great intranet?</h4> <p>A great intranet is scalable, extensible, and easy to use. It connects projects, dashboards, content, and teams into a vibrant, real-time information fabric. Common tools found in intranets are project management tools, corporate initiatives management tools, and dashboarding capabilities to connect your data silos. </p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img src=\"/skins/common/images/oobe/project-tracking.png\" /></div> <div class=\"mt-oobe-content\"> <h4>Project Management</h4> <p>Take control of your project management by creating meeting notes and requirement documents. Attach deliverables to project pages, and stop digging through emails for your project information. Use permissioning to make sure the right people have access to the right projects.</p> <p>From our <a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog\" title=\"http://developer.mindtouch.com/App_Catalog\">app catalog</a>, you can download lightweight todo list applications for installation in MindTouch.</p> <p>For advanced intiatives management, <a class=\"external\" href=\"http://www.mindtouch.com/mindtouch_add-ons/initiative_management\" title=\"http://www.mindtouch.com/mindtouch_add-ons/initiative_management\">MindTouch offers an add-on</a> which will let you take control of unruly corporate initiatives.</p> </div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img src=\"/skins/common/images/oobe/Salesforce-Lead-Detail.png\" /></div> <div class=\"mt-oobe-content\"> <h4>Executive Dashboards</h4> <p>MindTouch is ideal for creating mashups of information into dashboards. Built on top of <a class=\"external\" href=\"http://www.mindtouch.com/products/dream\" title=\"http://www.mindtouch.com/products/dream\">DReAM</a>, an open, technology-agnostic platform, you can integrate any system with MindTouch. This helps your team visualize and collaborate around data.</p> <p>Once you have a data source, use <a class=\"external\" href=\"http://developer.mindtouch.com/en/docs/DekiScript\" title=\"http://developer.mindtouch.com/en/docs/DekiScript\">DekiScript</a> to retrieve and mashup that data. You can mashup a wide array of data sources like <a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Mantis\" title=\"http://developer.mindtouch.com/App_Catalog/Mantis\">bug reports</a>, <a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Feed\" title=\"http://developer.mindtouch.com/App_Catalog/Feed\">RSS feeds</a>, or even <a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Flickr\" title=\"http://developer.mindtouch.com/App_Catalog/Flickr\">image feeds</a>.</p> <p>If you\'d like something out of the box, MindTouch <a class=\"external\" href=\"http://www.mindtouch.com/solutions/dashboards_and_mashups\" title=\"http://www.mindtouch.com/solutions/dashboards_and_mashups\">offers a prepackaged solution</a> for executive dashboards of CRM data to create dynamic customer engagements. </p> </div>\n</div>','page created, 291 words added',1,'20111013202448',0,0,0,1,'20111013202448',1,'','<div class=\"mt-title-bar mt-title-bar-admin-intranet\"> <div><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/Solutions/Intranet_Solution\">Achieve ROI in weeks and not months with the <strong>MindTouch Social Intranet</strong>.</a></div>\n</div>\n<div class=\"mt-oobe-block\"> <div class=\"mt-oobe-image\"><img class=\"mt-oobe-logo\" src=\"/skins/common/images/oobe/mindtouch-logo.gif\" /></div> <div class=\"mt-oobe-content\"> <h4>MindTouch as an Intranet</h4> <p>MindTouch is often used to build po...',85,1,'application/x.deki0805+xml','','Admin Intranet',NULL,0,NULL,1,'56f01938e939aadb9a3c2987f86418a0'),(88,10,'MindTouch/OOBE/Core/Admin_Tabs','<link href=\"/skins/common/oobe.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"mt-tabs\"> <ul> <li><a class=\"external\" href=\"http://www.mindtouch.com/redir/oobe-learn-more/\">learn more</a></li> <li><a href=\"#\" title=\"mt-intranet\">an intranet</a></li> <li><a href=\"#\" title=\"mt-kb\">an enterprise wiki</a></li> <li class=\"title\">MY SITE WILL BE:</li> </ul>\n</div>\n<div class=\"mt-content\"> <div class=\"mt-kb\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/Admin_Enterprise\');</span></div> <div class=\"mt-intranet hide\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/Admin_Intranet\');</span></div> <div class=\"mt-intranet\"> </div> <div class=\"mt-enterprise-wiki hide\">enterprise wiki</div>\n</div>\n<div><script type=\"text/javascript\"><![CDATA[/**/\n	$(\"body\").ready( function() {\n		$(\".mt-tabs li:not(.selected) a\").click( function() {\nvar contenthref = $(this).attr(\"href\");\nif (contenthref==\'#\') {\nvar contentid = $(this).attr(\"title\");\n$(\".mt-tabs li a\").removeClass(\"selected\");\n$(this).addClass(\"selected\");\n\n$(\".mt-content > div:not(.hide)\").fadeOut( function() {\n	$(\".mt-content > div.\" + contentid).fadeIn();\n	\n	$(\".mt-content > div\").addClass(\"hide\");\n	$(\".mt-content > div.\" + contentid).removeClass(\"hide\");\n});\nreturn false;\n}\n\n		});\n		\n		$(\".mt-tabs li:not(.title):last a\").addClass(\"selected\");\n		\n		$(\".mt-tips span:first\").addClass(\"selected\");	\n		$(\".mt-tips span:last\").attr(\"pos\",\"last\");	\n		\n		$(\".mt-tips span.selected\").fadeIn();	\n		\n		setInterval ( \"nextTip()\", 6000 );\n	});\n	\n function nextTip() {\n	\n	\n		$(\".mt-tips span.selected\").each( function() {\n$(this).hide();\n$(this).removeClass(\"selected\");\nvar pos = $(this).attr(\"pos\");\n\nif (pos==\"last\") {\n	$(this).parent().find(\"span:first\").addClass(\"selected\");\n	$(this).parent().find(\"span:first\").show();\n} else {\n	$(this).find(\"+ span\").addClass(\"selected\");\n	$(this).find(\"+ span\").show();\n}\n		});\n		\n	}\n/**/]]></script></div>','page created, 23 words added',1,'20111013202448',0,0,0,1,'20111013202448',1,'','<link href=\"/skins/common/oobe.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"mt-tabs\"> <ul> <li><a class=\"external\" href=\"http://www.mindtouch.com/redir/oobe-learn-more/\">learn more</a></li> <li><a href=\"#\" title=\"mt-intranet\">an intranet</a></li> <li><a href=\"#\" title=\"mt-kb\">an enterprise wiki</a></li> <li class=\"title\">MY SITE WILL BE:</li> </ul>\n</div>\n<div class=\"mt-content\"> <div class=\"mt-kb\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/Admin_Enterprise\');</span></div> <di...',85,1,'application/x.deki0805+xml','','Admin Tabs',NULL,0,NULL,1,'4e57bdb3a278df32d3a49474d7b9bc28'),(89,10,'MindTouch/OOBE/Core/Home','<pre class=\"script\">if (!wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/Admin_Tabs&quot;) || !wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/User_Tabs&quot;)) {\n&lt;div class=&quot;mt-populating&quot;&gt;\n    &lt;h2&gt;&quot;Wait a moment while we complete your installation...&quot;;&lt;/h2&gt;\n    &lt;p&gt;&quot;MindTouch is populating all the necessary templates and pages to make your site fully functional.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;While you wait, you can still use the site normally - feel free to navigate or create new pages.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;Once we finish populating your site with content, this message will disappear (be sure to refresh this page!)&quot;;&lt;/p&gt;\n&lt;/div&gt;\n} else {\n    if (user.admin) {\n        wiki.template(&quot;MindTouch/OOBE/Core/Admin_Tabs&quot;);\n    } else {\n        wiki.template(&quot;MindTouch/OOBE/Core/User_Tabs&quot;);\n    }\n}\n</pre>','page created, 104 words added',1,'20111013202448',0,0,0,1,'20111013202448',1,'','<pre class=\"script\">if (!wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/Admin_Tabs&quot;) || !wiki.pageexists(&quot;Template:MindTouch/OOBE/Core/User_Tabs&quot;)) {\n&lt;div class=&quot;mt-populating&quot;&gt;\n    &lt;h2&gt;&quot;Wait a moment while we complete your installation...&quot;;&lt;/h2&gt;\n    &lt;p&gt;&quot;MindTouch is populating all the necessary templates and pages to make your site fully functional.&quot;;&lt;/p&gt;\n    &lt;p&gt;&quot;While you wait, you can still use the si...',85,1,'application/x.deki0805+xml','','Home',NULL,0,NULL,1,'9346b32275e7b51132037db27298c428'),(90,10,'MindTouch/OOBE/Core/License','<p><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/webinar\"> <span>Make the most of your MindTouch with our free webinars.</span> </a></p>','page created, 10 words added',1,'20111013202448',0,0,0,1,'20111013202448',1,'','<p><a class=\"mt-tips external\" href=\"http://www.mindtouch.com/webinar\"> <span>Make the most of your MindTouch with our free webinars.</span> </a></p>',85,1,'application/x.deki0805+xml','','License',NULL,0,NULL,1,'9e17e8c564bbda06f585837ce63b51d6'),(91,10,'MindTouch/OOBE/Core/User_Development','<div class=\"mt-title-bar mt-title-bar-user-develop\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/License\');</span></div>\n<div class=\"mt-table\"> <ul> <li> <div> <h4>DekiScript</h4> <p><a class=\"external\" href=\"http://developer.mindtouch.com/en/docs/DekiScript\" title=\"http://developer.mindtouch.com/en/docs/DekiScript\">DekiScript</a> is the safe lightweight scripting language used for rapid application development inside MindTouch. Try this in the editor to get started:</p> <p><img alt=\"\" class=\"mt-syntax\" src=\"/skins/common/images/oobe/mt-img-welcome-syntax.gif\" style=\"\" /></p> <h4>Dynamic Templates</h4> <p>Get started now! Use these sample to start your first DekiScript app today.</p> <ol class=\"mt-small\"> <li><a class=\"external\" href=\"http://developer.mindtouch.com/en/docs/DekiScript\" title=\"http://developer.mindtouch.com/en/docs/DekiScript\">Hello World</a></li> <li><a class=\"external\" href=\"http://developer.mindtouch.com/en/kb/Introduction_to_user,_page_and_site_variables\" title=\"http://developer.mindtouch.com/en/kb/Introduction_to_user,_page_and_site_variables\">Properties: User, Page and Site</a></li> <li><a class=\"external\" href=\"http://developer.mindtouch.com/en/kb/Using_built-in_functions\" title=\"http://developer.mindtouch.com/en/kb/Using_built-in_functions\">Native Functions</a></li> </ol> <p class=\"mt-btn-bar mt-btn-create-template\" if=\"!user.anonymous\"><span class=\"script\">wiki.create{label:&quot;create a template&quot;, title:&quot;New template created by &quot;..user.name, path:&quot;Template:&quot;, button:false}</span></p> </div> </li> <li class=\"middle\"> <div> <h4>API</h4> <p>The <a class=\"external\" href=\"http://developer.mindtouch.com/en/ref/MindTouch_API\" title=\"http://developer.mindtouch.com/en/ref/MindTouch_API\">MindTouch API</a> exposes all the functionality of MindTouch through a REST-based API. Here are some sample endpoints: </p> <ol class=\"mt-small\"> <li><span class=\"script\">web.link(site.api..&quot;/pages/&quot;..page.id,&quot;This page\'s XML&quot;)</span></li> <li><span class=\"script\">web.link(site.api..&quot;/users/&quot;..user.id,&quot;Your user\'s XML&quot;)</span></li> <li><span class=\"script\">web.link(site.api..&quot;/pages/popular&quot;,&quot;Popular Pages XML&quot;)</span></li> </ol> <p>Learn more with our <a class=\"external\" href=\"http://developer.mindtouch.com/en/ref/MindTouch_API\" title=\"http://developer.mindtouch.com/en/ref/MindTouch_API\">API documentation</a>.</p> <h4>MindTouch Extensions</h4> <p>Here\'s a preview of the extensions on your MindTouch:</p> <ol class=\"mt-small\"> <li><a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Google\" title=\"http://developer.mindtouch.com/App_Catalog/Google\">Google</a></li> <li><a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Feed\" title=\"http://developer.mindtouch.com/App_Catalog/Feed\">RSS Feeds</a></li> <li><a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog/Flickr\" title=\"http://developer.mindtouch.com/App_Catalog/Flickr\">Flickr</a></li> </ol> <p>You can <a class=\"external\" href=\"http://developer.mindtouch.com/App_Catalog\" title=\"http://developer.mindtouch.com/App_Catalog\">write your own extensions</a> in any language, including PHP and C#.</p> </div> </li> <li> <div> <h4>Technical Documentation</h4> <p><img alt=\"\" class=\"mt-syntax\" src=\"/skins/common/images/oobe/mt-img-syntax_highlighter.gif\" /></p> <p>Using MindTouch to power your developer community? MindTouch has a <a href=\"http://www.mindtouch.com/solutions/technical_communications_suite\" title=\"http://www.mindtouch.com/solutions/technical_communications_suite\" class=\" external\">solution for that</a>.</p> <p class=\"mt-btn-bar mt-btn-create-page\" if=\"!user.anonymous\"><span class=\"script\">wiki.create{label:&quot;create a new page&quot;, title:&quot;New page created by &quot;..user.name, button:false}</span></p> </div> </li> </ul>\n</div>','page created, 186 words added',1,'20111013202448',0,0,0,1,'20111013202448',1,'','<div class=\"mt-title-bar mt-title-bar-user-develop\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/License\');</span></div>\n<div class=\"mt-table\"> <ul> <li> <div> <h4>DekiScript</h4> <p><a class=\"external\" href=\"http://developer.mindtouch.com/en/docs/DekiScript\" title=\"http://developer.mindtouch.com/en/docs/DekiScript\">DekiScript</a> is the safe lightweight scripting language used for rapid application development inside MindTouch. Try this in the editor to get started:</p> <p><img alt=\"\" ...',85,1,'application/x.deki0805+xml','','User Development',NULL,0,NULL,1,'511747fdecac69f6d2fdacbbc6e4fa88'),(92,10,'MindTouch/OOBE/Core/User_Documentation','<div class=\"mt-title-bar mt-title-bar-user-document\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/License\');</span></div>\n<div class=\"mt-table\"> <ul> <li> <div> <h4>Templates</h4> <p if=\"!user.anonymous\">Create your own templates or use the default templates below. You can add templates by clicking <img alt=\"\" src=\"/skins/common/images/oobe/mt-icon-template.gif\" style=\"vertical-align:middle;\" /> while editing.</p> <p if=\"user.anonymous\">As a registered user you can create custom layout templates to standardize the way you and other users create documentation. For instance, you can create templates for:</p> <ol class=\"mt-small\" if=\"user.anonymous\"> <li>Project status reports</li> <li>New user instructions</li> <li>Development specifications</li> <li>Knowledge base resources</li> <li>Social media newsrooms</li> </ol> <p if=\"user.anonymous\"><a title=\"Register\" href=\"Special:UserRegistration\">Register now</a> to start creating your own templates.</p> <p class=\"mt-btn-bar mt-btn-user-page\" if=\"user.anonymous\"><a title=\"Register\" href=\"Special:UserRegistration\">register now</a></p> <div class=\"mt-template-row\" if=\"!user.anonymous\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-two-column.gif\" style=\"\" /> <span class=\"mt-template-title\">Two Column</span> <span class=\"script\">wiki.create{label:&quot;Create a new page with a two column layout&quot;, template:&quot;MindTouch/Pages/2-Column_Layout&quot;, title:&quot;New two column page created by &quot;..user.name, button:false}</span></div> <div class=\"mt-template-row\" if=\"!user.anonymous\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-button-template-three-column.gif\" style=\"\" /> <span class=\"mt-template-title\">Three Column</span> <span class=\"script\">wiki.create{label:&quot;Create a new page with a three column layout&quot;, template:&quot;MindTouch/Pages/3-Column_Layout&quot;, title:&quot;New three column page created by &quot;..user.name, button:false}</span></div> <p class=\"mt-btn-bar mt-btn-create-template\" if=\"!user.anonymous\"><span class=\"script\">wiki.create{label:&quot;create a template&quot;, title:&quot;New template created by &quot;..user.name, path:&quot;Template:&quot;, button:false}</span></p> </div> </li> <li class=\"middle\"> <div> <h4>Creating Pages</h4> <p>Creating new content makes your documentation richer and more valuable. Use the New Page link to add a page or use the Edit Page link to make changes to an existing page.</p> <p class=\"mt-btn-bar mt-btn-create-page\" if=\"!user.anonymous\"><span class=\"script\">wiki.create{label:&quot;create a new page&quot;, title:&quot;New page created by &quot;..user.name, button:false}</span></p> <h4>Moving Pages</h4> <p>Keeping your documentation in order has never been easier with MindTouch. Restructure your cont ent hiearchy to achieve optimal organization.</p> <ol class=\"mt-small\"> <li>Go to the page you wish to move</li> <li>Click <strong>Tools &gt; Move Page</strong></li> <li>Use the <strong>Navigate</strong> box to find a new location</li> </ol> </div> </li> <li> <div> <h4>My User Space</h4> <p><span if=\"!user.anonymous\">As a new user feel free to develop your user space which is located at:</span></p> <p><span if=\"!user.anonymous\"><span class=\"script\">web.link(user.uri,user.uri)</span></span></p> <p class=\"mt-btn-bar mt-btn-user-page\"><span if=\"!user.anonymous\"><a href=\"{{user.uri}}\">my user space</a></span></p> <p><span if=\"user.anonymous\">As a MindTouch user you will be able to develop your own user space which can be public or private.</span></p> <p class=\"mt-btn-bar mt-btn-user-page\"><span if=\"user.anonymous\"><a title=\"Register\" href=\"Special:UserRegistration\">register now</a></span></p> <h4>Privacy and Permissions</h4> <p>Need to keep something to yourself? Privacy with Mind Touch is easy and secure.</p> <ol class=\"mt-small\"> <li>Go to the page you wish to protect</li> <li>Click <strong>Tools &gt; Restrict Access</strong></li> <li>Select the appropriate restriction level</li> </ol> <p style=\"text-align:center; margin:0\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-settings.gif\" /></p> </div> </li> </ul>\n</div>\n<p style=\"margin:3px 0;text-align:right;padding-right:30px;\"><img alt=\"\" src=\"/skins/common/images/oobe/mt-img-privacy-legend.gif\" /></p>','page created, 328 words added',1,'20111013202448',0,0,0,1,'20111013202449',1,'','<div class=\"mt-title-bar mt-title-bar-user-document\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/License\');</span></div>\n<div class=\"mt-table\"> <ul> <li> <div> <h4>Templates</h4> <p if=\"!user.anonymous\">Create your own templates or use the default templates below. You can add templates by clicking <img alt=\"\" src=\"/skins/common/images/oobe/mt-icon-template.gif\" style=\"vertical-align:middle;\" /> while editing.</p> <p if=\"user.anonymous\">As a registered user you can create custom layout ...',85,1,'application/x.deki0805+xml','','User Documentation',NULL,0,NULL,1,'0d3074a70faf3ccc05b25b98c397b58b'),(93,10,'MindTouch/OOBE/Core/User_Tabs','<link href=\"/skins/common/oobe.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"mt-tabs\"> <ul> <li><a class=\"external\" href=\"http://www.mindtouch.com/redir/oobe-learn-more/\">learn more</a></li> <li><a href=\"#\" title=\"mt-document\">contribute</a></li> <li><a href=\"#\" title=\"mt-develop\">develop</a></li> <li class=\"title\">I WANT TO:</li> </ul>\n</div>\n<div class=\"mt-content\"> <div class=\"mt-document hide\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/User_Documentation\');</span></div> <div class=\"mt-develop\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/User_Development\');</span></div>\n</div>\n<div><script type=\"text/javascript\"><![CDATA[/**/\n	$(\"body\").ready( function() {\n		$(\".mt-tabs li:not(.selected) a\").click( function() {\nvar contenthref = $(this).attr(\"href\");\nif (contenthref==\'#\') {\nvar contentid = $(this).attr(\"title\");\n$(\".mt-tabs li a\").removeClass(\"selected\");\n$(this).addClass(\"selected\");\n\n$(\".mt-content > div:not(.hide)\").fadeOut( function() {\n	$(\".mt-content > div.\" + contentid).show();\n	\n	$(\".mt-content > div\").addClass(\"hide\");\n	$(\".mt-content > div.\" + contentid).removeClass(\"hide\");\n});\nreturn false;\n}\n\n		});\n		\n		$(\".mt-tabs li:not(.title):last a\").addClass(\"selected\");\n		\n		$(\".mt-tips\").each( function() {\n$(this).find(\"span:first\").addClass(\"selected\");	\n$(this).find(\"span:last\").attr(\"pos\",\"last\");	\n$(this).find(\"span.selected\").show();	\n		});\n		\n		setInterval ( \"nextTip()\", 6000 );\n	});\n	\n	function nextTip() {\n	\n	\n		$(\".mt-tips span.selected\").each( function() {\n$(this).hide();\n$ (this).removeClass(\"selected\");\n var pos = $(this).attr(\"pos\");\n\nif (pos==\"last\") {\n	$(this).parent().find(\"span:first\").addClass(\"selected\");\n	$(this).parent().find(\"span:first\").show();\n} else {\n	$(this).find(\"+ span\").addClass(\"selected\");\n	$(this).find(\"+ span\").show();\n}\n		});\n		\n	}\n/**/]]></script></div>','page created, 17 words added',1,'20111013202449',0,0,0,1,'20111013202449',1,'','<link href=\"/skins/common/oobe.css\" rel=\"stylesheet\" type=\"text/css\" />\n<div class=\"mt-tabs\"> <ul> <li><a class=\"external\" href=\"http://www.mindtouch.com/redir/oobe-learn-more/\">learn more</a></li> <li><a href=\"#\" title=\"mt-document\">contribute</a></li> <li><a href=\"#\" title=\"mt-develop\">develop</a></li> <li class=\"title\">I WANT TO:</li> </ul>\n</div>\n<div class=\"mt-content\"> <div class=\"mt-document hide\"><span class=\"script\">Template(\'MindTouch/OOBE/Core/User_Documentation\');</span></div> <di...',85,1,'application/x.deki0805+xml','','User Tabs',NULL,0,NULL,1,'a7c325e0cd00ccdc446dc76c3ac4e897');
/*!40000 ALTER TABLE `pages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pagesub`
--

DROP TABLE IF EXISTS `pagesub`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `pagesub` (
  `pagesub_page_id` int(8) unsigned NOT NULL,
  `pagesub_user_id` int(10) unsigned NOT NULL,
  `pagesub_child_pages` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`pagesub_page_id`,`pagesub_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `pagesub`
--

LOCK TABLES `pagesub` WRITE;
/*!40000 ALTER TABLE `pagesub` DISABLE KEYS */;
/*!40000 ALTER TABLE `pagesub` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `query_log`
--

DROP TABLE IF EXISTS `query_log`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `query_log` (
  `query_id` int(10) unsigned NOT NULL auto_increment,
  `ref_query_id` int(10) unsigned default NULL,
  `last_result_id` int(10) unsigned default NULL,
  `created` datetime NOT NULL,
  `raw` varchar(1000) NOT NULL,
  `sorted_terms` varchar(1000) NOT NULL,
  `sorted_terms_hash` char(32) NOT NULL,
  `parsed` varchar(2000) default NULL,
  `user_id` int(10) unsigned NOT NULL,
  `result_count` int(8) unsigned NOT NULL,
  PRIMARY KEY  (`query_id`),
  KEY `created` (`created`),
  KEY `sorted_terms` (`sorted_terms`(100)),
  KEY `last_result` (`last_result_id`),
  KEY `sorted_terms_hash` (`sorted_terms_hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `query_log`
--

LOCK TABLES `query_log` WRITE;
/*!40000 ALTER TABLE `query_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `query_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `query_result_log`
--

DROP TABLE IF EXISTS `query_result_log`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `query_result_log` (
  `query_result_id` int(10) unsigned NOT NULL auto_increment,
  `query_id` int(10) unsigned NOT NULL,
  `created` datetime NOT NULL,
  `result_position` int(2) unsigned NOT NULL,
  `result_rank` double unsigned NOT NULL,
  `page_id` int(8) unsigned NOT NULL,
  `type` tinyint(3) unsigned NOT NULL,
  `type_id` int(8) unsigned NOT NULL,
  PRIMARY KEY  (`query_result_id`),
  KEY `query_id` (`query_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `query_result_log`
--

LOCK TABLES `query_result_log` WRITE;
/*!40000 ALTER TABLE `query_result_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `query_result_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `query_result_popularity`
--

DROP TABLE IF EXISTS `query_result_popularity`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `query_result_popularity` (
  `sorted_terms_hash` char(32) NOT NULL,
  `type` tinyint(3) unsigned NOT NULL,
  `type_id` int(8) unsigned NOT NULL,
  `selection_count` int(8) unsigned default NULL,
  PRIMARY KEY  (`sorted_terms_hash`,`type`,`type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `query_result_popularity`
--

LOCK TABLES `query_result_popularity` WRITE;
/*!40000 ALTER TABLE `query_result_popularity` DISABLE KEYS */;
/*!40000 ALTER TABLE `query_result_popularity` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `query_term_map`
--

DROP TABLE IF EXISTS `query_term_map`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `query_term_map` (
  `query_term_id` int(10) unsigned NOT NULL,
  `query_id` int(10) unsigned NOT NULL,
  UNIQUE KEY `term_query` (`query_term_id`,`query_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `query_term_map`
--

LOCK TABLES `query_term_map` WRITE;
/*!40000 ALTER TABLE `query_term_map` DISABLE KEYS */;
/*!40000 ALTER TABLE `query_term_map` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `query_terms`
--

DROP TABLE IF EXISTS `query_terms`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `query_terms` (
  `query_term_id` int(10) unsigned NOT NULL auto_increment,
  `query_term` varchar(100) NOT NULL,
  PRIMARY KEY  (`query_term_id`),
  UNIQUE KEY `query_term` (`query_term`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `query_terms`
--

LOCK TABLES `query_terms` WRITE;
/*!40000 ALTER TABLE `query_terms` DISABLE KEYS */;
/*!40000 ALTER TABLE `query_terms` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ratings`
--

DROP TABLE IF EXISTS `ratings`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ratings` (
  `rating_id` int(10) unsigned NOT NULL auto_increment,
  `rating_user_id` int(10) unsigned NOT NULL,
  `rating_resource_id` int(10) unsigned NOT NULL,
  `rating_resource_type` tinyint(3) unsigned NOT NULL,
  `rating_resource_revision` int(10) unsigned default NULL,
  `rating_score` float unsigned NOT NULL,
  `rating_timestamp` timestamp NOT NULL default '0000-00-00 00:00:00',
  `rating_reset_timestamp` timestamp NULL default NULL,
  PRIMARY KEY  (`rating_id`),
  KEY `resource_id_type_resetts_user` (`rating_resource_id`,`rating_resource_type`,`rating_reset_timestamp`,`rating_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `ratings`
--

LOCK TABLES `ratings` WRITE;
/*!40000 ALTER TABLE `ratings` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `ratingscomputed`
--

DROP TABLE IF EXISTS `ratingscomputed`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `ratingscomputed` (
  `ratingscomputed_id` int(10) unsigned NOT NULL auto_increment,
  `ratingscomputed_resource_id` int(10) unsigned NOT NULL,
  `ratingscomputed_resource_type` tinyint(3) unsigned NOT NULL,
  `ratingscomputed_score` float unsigned NOT NULL,
  `ratingscomputed_score_trend` float unsigned NOT NULL,
  `ratingscomputed_count` int(10) unsigned NOT NULL,
  `ratingscomputed_timestamp` timestamp NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`ratingscomputed_id`),
  UNIQUE KEY `resource_id_type` (`ratingscomputed_resource_id`,`ratingscomputed_resource_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `ratingscomputed`
--

LOCK TABLES `ratingscomputed` WRITE;
/*!40000 ALTER TABLE `ratingscomputed` DISABLE KEYS */;
/*!40000 ALTER TABLE `ratingscomputed` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `recentchanges`
--

DROP TABLE IF EXISTS `recentchanges`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `recentchanges` (
  `rc_id` int(8) NOT NULL auto_increment,
  `rc_timestamp` varchar(14) NOT NULL default '',
  `rc_cur_time` varchar(14) NOT NULL default '',
  `rc_user` int(10) unsigned NOT NULL default '0',
  `rc_namespace` tinyint(3) unsigned NOT NULL default '0',
  `rc_title` varchar(255) NOT NULL default '',
  `rc_comment` varchar(255) NOT NULL default '',
  `rc_minor` tinyint(3) unsigned NOT NULL default '0',
  `rc_bot` tinyint(3) unsigned NOT NULL default '0',
  `rc_new` tinyint(3) unsigned NOT NULL default '0',
  `rc_cur_id` int(10) unsigned NOT NULL default '0',
  `rc_this_oldid` int(10) unsigned NOT NULL default '0',
  `rc_last_oldid` int(10) unsigned NOT NULL default '0',
  `rc_type` tinyint(3) unsigned NOT NULL default '0',
  `rc_moved_to_ns` tinyint(3) unsigned NOT NULL default '0',
  `rc_moved_to_title` varchar(255) NOT NULL default '',
  `rc_patrolled` tinyint(3) unsigned NOT NULL default '0',
  `rc_ip` varchar(15) NOT NULL default '',
  `rc_transaction_id` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`rc_id`),
  KEY `rc_timestamp` (`rc_timestamp`),
  KEY `rc_namespace_title` (`rc_namespace`,`rc_title`),
  KEY `rc_cur_id` (`rc_cur_id`),
  KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`),
  KEY `rc_ip` (`rc_ip`),
  KEY `rc_transaction_id` (`rc_transaction_id`),
  KEY `rc_user` (`rc_user`)
) ENGINE=MyISAM AUTO_INCREMENT=66 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `recentchanges`
--

LOCK TABLES `recentchanges` WRITE;
/*!40000 ALTER TABLE `recentchanges` DISABLE KEYS */;
INSERT INTO `recentchanges` VALUES (1,'20110711195559','',1,0,'','page created',0,0,0,22,1,0,0,0,'',0,'',0),(2,'20110711201618','20110711201618',1,2,'Admin','page created, 16 words added',0,0,0,38,0,0,1,0,'',0,'',0),(3,'20111013202337','20111013202337',1,101,'Reports','page created, 41 words added',0,0,0,40,0,0,1,0,'',0,'',0),(4,'20111013202338','20111013202338',1,101,'Reports','Admin has been added as contributor',0,0,0,40,0,0,54,0,'',0,'',0),(5,'20111013202338','20111013202338',1,101,'Reports','page restriction set to Private',0,0,0,40,0,0,56,0,'',0,'',0),(6,'20111013202338','20111013202338',1,101,'Reports/Activity','page created, 668 words added',0,0,0,41,0,0,1,0,'',0,'',0),(7,'20111013202338','20111013202338',1,101,'Reports/Aging','page created, 281 words added',0,0,0,42,0,0,1,0,'',0,'',0),(8,'20111013202338','20111013202338',1,101,'Reports/Quality','page created, 288 words added',0,0,0,43,0,0,1,0,'',0,'',0),(9,'20111013202338','20111013202338',1,101,'Reports/Search','page created, 404 words added',0,0,0,44,0,0,1,0,'',0,'',0),(10,'20111013202340','20111013202340',1,10,'MindTouch','page created, 13 words added',0,0,0,45,0,0,1,0,'',0,'',0),(11,'20111013202340','20111013202340',1,10,'MindTouch','Admin has been added as contributor',0,0,0,45,0,0,54,0,'',0,'',0),(12,'20111013202340','20111013202340',1,10,'MindTouch','page restriction set to Public',0,0,0,45,0,0,56,0,'',0,'',0),(13,'20111013202340','20111013202340',1,10,'MindTouch/Controls','page created, 13 words added',0,0,0,46,0,0,1,0,'',0,'',0),(14,'20111013202340','20111013202340',1,10,'MindTouch/Controls/Chart','page created, 1654 words added',0,0,0,47,0,0,1,0,'',0,'',0),(15,'20111013202340','20111013202340',1,10,'MindTouch/Controls/CreatePageFromTemplate','page created, 269 words added',0,0,0,48,0,0,1,0,'',0,'',0),(16,'20111013202340','20111013202340',1,10,'MindTouch/Controls/DatePicker','page created, 44 words added',0,0,0,49,0,0,1,0,'',0,'',0),(17,'20111013202340','20111013202340',1,10,'MindTouch/Controls/DateTime','page created, 144 words added',0,0,0,50,0,0,1,0,'',0,'',0),(18,'20111013202341','20111013202341',1,10,'MindTouch/Controls/DependencyErrors','page created, 658 words added',0,0,0,51,0,0,1,0,'',0,'',0),(19,'20111013202341','20111013202341',1,10,'MindTouch/Controls/DisablePageControls','page created, 34 words added',0,0,0,52,0,0,1,0,'',0,'',0),(20,'20111013202341','20111013202341',1,10,'MindTouch/Controls/EditableBulletList','page created, 361 words added',0,0,0,53,0,0,1,0,'',0,'',0),(21,'20111013202341','20111013202341',1,10,'MindTouch/Controls/ListPages','page created, 436 words added',0,0,0,54,0,0,1,0,'',0,'',0),(22,'20111013202341','20111013202341',1,10,'MindTouch/Controls/MissingDependencies','page created, 81 words added',0,0,0,55,0,0,1,0,'',0,'',0),(23,'20111013202341','20111013202341',1,10,'MindTouch/Controls/PageDirectory','page created, 808 words added',0,0,0,56,0,0,1,0,'',0,'',0),(24,'20111013202341','20111013202341',1,10,'MindTouch/Controls/PageTabs','page created, 306 words added',0,0,0,57,0,0,1,0,'',0,'',0),(25,'20111013202342','20111013202342',1,10,'MindTouch/Controls/TableSortHeading','page created, 223 words added',0,0,0,58,0,0,1,0,'',0,'',0),(26,'20111013202342','20111013202342',1,10,'MindTouch/Controls/TagDirectory','page created, 441 words added',0,0,0,59,0,0,1,0,'',0,'',0),(27,'20111013202342','20111013202342',1,10,'MindTouch/Controls/TextArea','page created, 104 words added',0,0,0,60,0,0,1,0,'',0,'',0),(28,'20111013202342','20111013202342',1,10,'MindTouch/Controls/TextBox','page created, 126 words added',0,0,0,61,0,0,1,0,'',0,'',0),(29,'20111013202342','20111013202342',1,10,'MindTouch/Controls/ToDoList','page created, 1209 words added',0,0,0,62,0,0,1,0,'',0,'',0),(30,'20111013202342','20111013202342',1,10,'MindTouch/Controls/WaitingIcon32x32','page created, 0 words added',0,0,0,63,0,0,1,0,'',0,'',0),(31,'20111013202346','20111013202346',1,10,'MindTouch/Controls/WaitingIcon32x32','added \'ajax-loader.gif\'',0,0,0,63,0,0,50,0,'',0,'',0),(32,'20111013202346','20111013202346',1,10,'MindTouch/Pages','page created, 13 words added',0,0,0,64,0,0,1,0,'',0,'',0),(33,'20111013202346','20111013202346',1,10,'MindTouch/Pages/KB_Article','page created, 4 words added',0,0,0,65,0,0,1,0,'',0,'',0),(34,'20111013202346','20111013202346',1,10,'MindTouch/Reports','page created, 13 words added',0,0,0,66,0,0,1,0,'',0,'',0),(35,'20111013202346','20111013202346',1,10,'MindTouch/Reports/Controls','page created, 13 words added',0,0,0,67,0,0,1,0,'',0,'',0),(36,'20111013202346','20111013202346',1,10,'MindTouch/Reports/Controls/RatingChart','page created, 480 words added',0,0,0,68,0,0,1,0,'',0,'',0),(37,'20111013202346','20111013202346',1,10,'MindTouch/Reports/Controls/RatingResultsTable','page created, 515 words added',0,0,0,69,0,0,1,0,'',0,'',0),(38,'20111013202347','20111013202347',1,10,'MindTouch/Reports/Controls/SearchAnalyticsFilter','page created, 261 words added',0,0,0,70,0,0,1,0,'',0,'',0),(39,'20111013202347','20111013202347',1,10,'MindTouch/Reports/Controls/SearchAnalyticsTermSearch','page created, 122 words added',0,0,0,71,0,0,1,0,'',0,'',0),(40,'20111013202347','20111013202347',1,10,'MindTouch/Reports/Controls/SearchInput','page created, 119 words added',0,0,0,72,0,0,1,0,'',0,'',0),(41,'20111013202347','20111013202347',1,10,'MindTouch/Reports/Controls/SearchPaging','page created, 280 words added',0,0,0,73,0,0,1,0,'',0,'',0),(42,'20111013202348','20111013202348',1,10,'MindTouch/Reports/Controls/SearchPagingNext','page created, 272 words added',0,0,0,74,0,0,1,0,'',0,'',0),(43,'20111013202348','20111013202348',1,10,'MindTouch/Reports/Controls/SearchQueriesTable','page created, 325 words added',0,0,0,75,0,0,1,0,'',0,'',0),(44,'20111013202348','20111013202348',1,10,'MindTouch/Reports/Controls/SearchQueryDetails','page created, 411 words added',0,0,0,76,0,0,1,0,'',0,'',0),(45,'20111013202349','20111013202349',1,10,'MindTouch/Reports/Controls/SearchResultsTable','page created, 316 words added',0,0,0,77,0,0,1,0,'',0,'',0),(46,'20111013202349','20111013202349',1,10,'MindTouch/Reports/Controls/SearchTermsCloud','page created, 164 words added',0,0,0,78,0,0,1,0,'',0,'',0),(47,'20111013202349','20111013202349',1,10,'MindTouch/Reports/Controls/TableCellPage','page created, 107 words added',0,0,0,79,0,0,1,0,'',0,'',0),(48,'20111013202349','20111013202349',1,10,'MindTouch/Reports/Controls/TableCellResult','page created, 156 words added',0,0,0,80,0,0,1,0,'',0,'',0),(49,'20111013202349','20111013202349',1,10,'MindTouch/Views','page created, 13 words added',0,0,0,81,0,0,1,0,'',0,'',0),(50,'20111013202349','20111013202349',1,10,'MindTouch/Views/ActivityDashboard','page created, 702 words added',0,0,0,82,0,0,1,0,'',0,'',0),(51,'20111013202349','20111013202349',1,10,'MindTouch/Views/User_Welcome','page created, 330 words added',0,0,0,83,0,0,1,0,'',0,'',0),(52,'20111013202447','20111013202447',1,10,'MindTouch/OOBE','page created, 15 words added',0,0,0,84,0,0,1,0,'',0,'',0),(53,'20111013202447','20111013202447',1,10,'MindTouch/OOBE/Core','page created, 13 words added',0,0,0,85,0,0,1,0,'',0,'',0),(54,'20111013202447','20111013202447',1,10,'MindTouch/OOBE/Core/Admin_Enterprise','page created, 404 words added',0,0,0,86,0,0,1,0,'',0,'',0),(55,'20111013202447','20111013202447',1,10,'MindTouch/OOBE/Core/Admin_Enterprise','added \'oobe.css\'',0,0,0,86,0,0,50,0,'',0,'',0),(56,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/Admin_Intranet','page created, 291 words added',0,0,0,87,0,0,1,0,'',0,'',0),(57,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/Admin_Tabs','page created, 23 words added',0,0,0,88,0,0,1,0,'',0,'',0),(58,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/Home','page created, 104 words added',0,0,0,89,0,0,1,0,'',0,'',0),(59,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/License','page created, 10 words added',0,0,0,90,0,0,1,0,'',0,'',0),(60,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/User_Development','page created, 186 words added',0,0,0,91,0,0,1,0,'',0,'',0),(61,'20111013202448','20111013202448',1,10,'MindTouch/OOBE/Core/User_Documentation','page created, 328 words added',0,0,0,92,0,0,1,0,'',0,'',0),(62,'20111013202449','20111013202449',1,10,'MindTouch/OOBE/Core/User_Tabs','page created, 17 words added',0,0,0,93,0,0,1,0,'',0,'',0),(63,'20111013202449','20111013202449',1,0,'','page content-type changed to \'application/x.deki0805+xml\'; page display name changed to \'Home\'',0,0,0,22,0,1,0,0,'',0,'',0),(64,'20111013202449','20111013202449',1,0,'','Admin has been added as contributor',0,0,0,22,0,0,54,0,'',0,'',0),(65,'20111013202449','20111013202449',1,0,'','page restriction set to Public',0,0,0,22,0,0,56,0,'',0,'',0);
/*!40000 ALTER TABLE `recentchanges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `requestlog`
--

DROP TABLE IF EXISTS `requestlog`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `requestlog` (
  `rl_id` int(4) unsigned NOT NULL auto_increment,
  `rl_servicehost` varchar(64) NOT NULL,
  `rl_requesthost` varchar(64) NOT NULL,
  `rl_requesthostheader` varchar(64) NOT NULL,
  `rl_requestpath` varchar(512) NOT NULL,
  `rl_requestparams` varchar(512) default NULL,
  `rl_requestverb` varchar(8) NOT NULL,
  `rl_dekiuser` varchar(32) default NULL,
  `rl_origin` varchar(64) NOT NULL,
  `rl_servicefeature` varchar(128) NOT NULL,
  `rl_responsestatus` varchar(8) NOT NULL,
  `rl_executiontime` int(4) unsigned default NULL,
  `rl_response` varchar(2048) default NULL,
  `rl_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rl_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `requestlog`
--

LOCK TABLES `requestlog` WRITE;
/*!40000 ALTER TABLE `requestlog` DISABLE KEYS */;
/*!40000 ALTER TABLE `requestlog` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `requeststats`
--

DROP TABLE IF EXISTS `requeststats`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `requeststats` (
  `rs_id` int(4) unsigned NOT NULL auto_increment,
  `rs_numrequests` int(4) unsigned NOT NULL,
  `rs_servicehost` varchar(64) NOT NULL,
  `rs_requestverb` varchar(8) NOT NULL,
  `rs_servicefeature` varchar(128) NOT NULL,
  `rs_responsestatus` varchar(8) NOT NULL,
  `rs_exec_avg` int(4) unsigned NOT NULL,
  `rs_exec_std` int(4) unsigned NOT NULL,
  `rs_ts_start` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `rs_ts_length` int(4) unsigned NOT NULL,
  PRIMARY KEY  (`rs_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `requeststats`
--

LOCK TABLES `requeststats` WRITE;
/*!40000 ALTER TABLE `requeststats` DISABLE KEYS */;
/*!40000 ALTER TABLE `requeststats` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `resourcecontents`
--

DROP TABLE IF EXISTS `resourcecontents`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resourcecontents` (
  `rescontent_id` int(4) unsigned NOT NULL auto_increment,
  `rescontent_res_id` int(4) unsigned default NULL,
  `rescontent_res_rev` int(4) unsigned default NULL,
  `rescontent_value` mediumblob,
  `rescontent_mimetype` varchar(255) NOT NULL default '',
  `rescontent_size` int(4) unsigned NOT NULL default '0',
  `rescontent_location` varchar(255) default NULL,
  PRIMARY KEY  (`rescontent_id`),
  UNIQUE KEY `rescontent_res_id` (`rescontent_res_id`,`rescontent_res_rev`)
) ENGINE=MyISAM AUTO_INCREMENT=61 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `resourcecontents`
--

LOCK TABLES `resourcecontents` WRITE;
/*!40000 ALTER TABLE `resourcecontents` DISABLE KEYS */;
INSERT INTO `resourcecontents` VALUES (1,1,1,'<last-import><etag>a7e2c01b1ead5063e29afce7795c45f8</etag><date.modified>2010-07-02T02:36:21Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(2,2,1,'<last-import><etag>2d2081fa16ae24d599b906f4924c6899</etag><date.modified>2011-05-24T21:54:49Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(3,3,1,'<last-import><etag>2a0ef600b3a223ee8339d0a03cfbe0dc</etag><date.modified>2010-07-07T23:53:40Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(4,4,1,'<last-import><etag>4fa447263f4da834e3160aa6cb1b3d82</etag><date.modified>2010-07-07T23:53:57Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(5,5,1,'<last-import><etag>a60f818e4f31257a7bbb537aa04171ef</etag><date.modified>2010-07-14T01:29:48Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(6,6,1,'<package><date.created>2011-05-24T21:55:55Z</date.created></package>','application/xml; charset=utf-8',68,NULL),(7,7,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:00:05Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(8,8,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:00:20Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(9,9,1,'<last-import><etag>f1eb6ae54c37cd18d6284b4dfa51a328</etag><date.modified>2010-07-16T21:53:03Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(10,10,1,'<last-import><etag>73dd3d5fc35fb1b7e7d21f6ed177b6c6</etag><date.modified>2010-04-15T20:28:41Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(11,11,1,'<last-import><etag>ba5a1c436fc755ee0c909ce6c9e3130a</etag><date.modified>2010-03-24T23:08:03Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(12,12,1,'<last-import><etag>149c3a63559654d019b1869ff95a5d87</etag><date.modified>2010-06-03T23:54:48Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(13,13,1,'<last-import><etag>d9c55700ebc05d64a403f3d9f1939c09</etag><date.modified>2011-03-04T21:18:32Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(14,14,1,'<last-import><etag>90707ae70636ca818f0bc8b2c3fed2bd</etag><date.modified>2010-03-25T05:55:35Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(15,15,1,'<last-import><etag>5657996d5c3d1bce1e294c7ddf1461c5</etag><date.modified>2010-04-19T23:26:27Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(16,16,1,'<last-import><etag>c4211f873b752f5cdb6f992403161620</etag><date.modified>2011-05-17T20:08:08Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(17,17,1,'<last-import><etag>cd7464f91fe38e00ae647029d191bdc0</etag><date.modified>2010-07-09T23:24:34Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(18,18,1,'<last-import><etag>8ec7f734d74970e07318472ea3da35ae</etag><date.modified>2011-05-04T19:37:13Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(19,19,1,'<last-import><etag>1802fb8001032c0da711cf1cff0cc9e1</etag><date.modified>2010-07-02T17:57:42Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(20,20,1,'<last-import><etag>5cdaf9f50e9a68a31f6457d6bd029646</etag><date.modified>2010-06-24T08:28:51Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(21,21,1,'<last-import><etag>37cb59a0a8a2fcd78482f3ce6d0249eb</etag><date.modified>2010-07-09T22:42:47Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(22,22,1,'<last-import><etag>a51e2299e66954bf68b0da412258891a</etag><date.modified>2010-03-30T01:38:29Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(23,23,1,'<last-import><etag>ccbe3b8bf69c757d7698b4443de36904</etag><date.modified>2010-03-30T01:40:35Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(24,24,1,'<last-import><etag>928564fe214d609d6a747f7556808ea4</etag><date.modified>2010-03-27T02:26:05Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(25,25,1,'<last-import><etag>94aa61cfbeb8a4523c09a3733907fc70</etag><date.modified>2010-03-23T04:26:57Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(26,26,1,NULL,'image/gif',3208,NULL),(27,27,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:01:04Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(28,28,1,'<last-import><etag>451d47d0b1eae38024ff324bee63b549</etag><date.modified>2011-05-03T21:26:45Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(29,29,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:00:41Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(30,30,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:00:52Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(31,31,1,'<last-import><etag>df0ea098cddc83e45f9b5f4226dd7ae1</etag><date.modified>2010-07-30T20:28:30Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(32,32,1,'<last-import><etag>02a7d393036d73a2db27fb0d0e89087f</etag><date.modified>2010-07-17T03:54:14Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(33,33,1,'<last-import><etag>985ce9e6331f6f3f608aa2a29e736f96</etag><date.modified>2010-07-02T01:46:08Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(34,34,1,'<last-import><etag>fb6324b343e7a721f5dd2dd081c7c6e6</etag><date.modified>2010-06-27T00:17:07Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(35,35,1,'<last-import><etag>69fbff28756ebe096cc2189c7ac153c9</etag><date.modified>2010-06-07T07:45:57Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(36,36,1,'<last-import><etag>e0b24cb28eea4f0b524b6481db3333dc</etag><date.modified>2010-07-02T17:24:04Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(37,37,1,'<last-import><etag>43e335bbf4f4c6cb9dd25f04397ac01c</etag><date.modified>2010-07-02T17:31:00Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(38,38,1,'<last-import><etag>29e44387c4c477388fc453a3142cca54</etag><date.modified>2010-07-13T03:32:54Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(39,39,1,'<last-import><etag>20eb78aae8889dde6efd4d51a5decb46</etag><date.modified>2010-06-26T21:51:35Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(40,40,1,'<last-import><etag>68ae026864d7c475cab5e00cd579d022</etag><date.modified>2010-06-05T17:47:57Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(41,41,1,'<last-import><etag>945612b64f6703c68cf136e1d8964e1b</etag><date.modified>2010-07-02T02:00:00Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(42,42,1,'<last-import><etag>9fbfffc4d178385178cad198baaf7e5a</etag><date.modified>2010-06-12T07:31:13Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(43,43,1,'<last-import><etag>d2dd35faf4c9e5d0fdd9d2a6cb4543bb</etag><date.modified>2010-06-24T07:45:52Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(44,44,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:00:31Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(45,45,1,'<last-import><etag>860139a3868702ecf73b0084181c1a8f</etag><date.modified>2010-08-01T00:36:32Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(46,46,1,'<last-import><etag>af99c453811a11fa5107f77cebc1098d</etag><date.modified>2010-06-15T05:19:14Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(47,47,1,'<package><date.created>2011-05-24T21:55:15Z</date.created></package>','application/xml; charset=utf-8',68,NULL),(48,48,1,'<last-import><etag>95deb6521ec28ebaa57b53724b46f2e3</etag><date.modified>2011-05-10T01:01:36Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(49,49,1,'<last-import><etag>1826a392435e9bcd05583b9eec22da7c</etag><date.modified>2010-11-04T07:14:46Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(50,50,1,NULL,'text/css',4830,NULL),(51,51,1,'<last-import><etag>56f01938e939aadb9a3c2987f86418a0</etag><date.modified>2010-11-04T07:15:37Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(52,52,1,'<last-import><etag>4e57bdb3a278df32d3a49474d7b9bc28</etag><date.modified>2010-11-04T10:48:50Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(53,53,1,'<last-import><etag>9346b32275e7b51132037db27298c428</etag><date.modified>2010-11-05T00:08:36Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(54,54,1,'<last-import><etag>9e17e8c564bbda06f585837ce63b51d6</etag><date.modified>2010-10-28T19:11:25Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(55,55,1,'<last-import><etag>511747fdecac69f6d2fdacbbc6e4fa88</etag><date.modified>2010-10-28T19:36:26Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(56,56,1,'<last-import><etag>0d3074a70faf3ccc05b25b98c397b58b</etag><date.modified>2010-08-25T12:14:43Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(57,57,1,'<last-import><etag>a7c325e0cd00ccdc446dc76c3ac4e897</etag><date.modified>2010-11-04T10:49:25Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(58,58,1,'<package><date.created>2011-05-24T21:57:04Z</date.created></package>','application/xml; charset=utf-8',68,NULL),(59,59,1,'<last-import><etag>9346b32275e7b51132037db27298c428</etag><date.modified>2010-11-05T00:08:36Z</date.modified></last-import>','text/xml; charset=us-ascii',123,NULL),(60,60,1,'<package><date.created>2011-05-24T21:57:17Z</date.created></package>','application/xml; charset=utf-8',68,NULL);
/*!40000 ALTER TABLE `resourcecontents` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `resourcefilemap`
--

DROP TABLE IF EXISTS `resourcefilemap`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resourcefilemap` (
  `file_id` int(10) unsigned NOT NULL auto_increment,
  `resource_id` int(10) unsigned default NULL,
  PRIMARY KEY  (`file_id`),
  UNIQUE KEY `entity_id` (`resource_id`,`file_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `resourcefilemap`
--

LOCK TABLES `resourcefilemap` WRITE;
/*!40000 ALTER TABLE `resourcefilemap` DISABLE KEYS */;
INSERT INTO `resourcefilemap` VALUES (1,26),(2,50);
/*!40000 ALTER TABLE `resourcefilemap` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `resourcerevs`
--

DROP TABLE IF EXISTS `resourcerevs`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resourcerevs` (
  `resrev_id` int(4) unsigned NOT NULL auto_increment,
  `resrev_res_id` int(4) unsigned NOT NULL default '0',
  `resrev_rev` smallint(2) NOT NULL default '0',
  `resrev_user_id` int(4) unsigned NOT NULL default '0',
  `resrev_parent_id` int(4) unsigned default NULL,
  `resrev_parent_page_id` int(4) unsigned default NULL,
  `resrev_parent_user_id` int(4) unsigned default NULL,
  `resrev_change_mask` smallint(2) unsigned NOT NULL default '0',
  `resrev_name` varchar(255) NOT NULL default '',
  `resrev_change_description` varchar(255) default NULL,
  `resrev_timestamp` datetime NOT NULL default '0001-01-01 00:00:00',
  `resrev_content_id` int(4) unsigned default NULL,
  `resrev_deleted` tinyint(1) unsigned NOT NULL default '0',
  `resrev_changeset_id` int(4) unsigned NOT NULL default '0',
  `resrev_size` int(4) unsigned NOT NULL default '0',
  `resrev_mimetype` varchar(255) NOT NULL default '',
  `resrev_language` varchar(255) default NULL,
  `resrev_is_hidden` tinyint(3) unsigned NOT NULL default '0',
  `resrev_meta` text,
  PRIMARY KEY  (`resrev_id`),
  UNIQUE KEY `resid_rev` (`resrev_res_id`,`resrev_rev`)
) ENGINE=MyISAM AUTO_INCREMENT=61 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `resourcerevs`
--

LOCK TABLES `resourcerevs` WRITE;
/*!40000 ALTER TABLE `resourcerevs` DISABLE KEYS */;
INSERT INTO `resourcerevs` VALUES (1,1,1,1,NULL,40,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:37',1,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(2,2,1,1,NULL,41,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',2,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(3,3,1,1,NULL,42,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',3,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(4,4,1,1,NULL,43,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',4,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(5,5,1,1,NULL,44,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',5,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(6,6,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0010-mindtouch-special-reports.mtapp','Import of package \'0010-mindtouch-special-reports.mtapp\'','2011-10-13 20:23:38',6,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(7,7,1,1,NULL,45,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',7,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(8,8,1,1,NULL,46,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',8,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(9,9,1,1,NULL,47,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',9,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(10,10,1,1,NULL,48,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',10,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(11,11,1,1,NULL,49,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',11,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(12,12,1,1,NULL,50,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',12,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(13,13,1,1,NULL,51,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',13,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(14,14,1,1,NULL,52,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',14,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(15,15,1,1,NULL,53,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',15,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(16,16,1,1,NULL,54,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',16,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(17,17,1,1,NULL,55,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',17,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(18,18,1,1,NULL,56,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',18,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(19,19,1,1,NULL,57,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',19,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(20,20,1,1,NULL,58,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',20,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(21,21,1,1,NULL,59,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',21,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(22,22,1,1,NULL,60,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',22,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(23,23,1,1,NULL,61,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',23,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(24,24,1,1,NULL,62,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',24,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(25,25,1,1,NULL,63,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',25,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(26,26,1,1,NULL,63,NULL,35,'ajax-loader.gif',NULL,'2011-10-13 20:23:42',26,0,0,3208,'image/gif',NULL,0,'<attr><fileid>1</fileid><width>32</width><height>32</height><frames>12</frames></attr>'),(27,27,1,1,NULL,64,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',27,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(28,28,1,1,NULL,65,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',28,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(29,29,1,1,NULL,66,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',29,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(30,30,1,1,NULL,67,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',30,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(31,31,1,1,NULL,68,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',31,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(32,32,1,1,NULL,69,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',32,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(33,33,1,1,NULL,70,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',33,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(34,34,1,1,NULL,71,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',34,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(35,35,1,1,NULL,72,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',35,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(36,36,1,1,NULL,73,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',36,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(37,37,1,1,NULL,74,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',37,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(38,38,1,1,NULL,75,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',38,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(39,39,1,1,NULL,76,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',39,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(40,40,1,1,NULL,77,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',40,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(41,41,1,1,NULL,78,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',41,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(42,42,1,1,NULL,79,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',42,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(43,43,1,1,NULL,80,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',43,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(44,44,1,1,NULL,81,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',44,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(45,45,1,1,NULL,82,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',45,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(46,46,1,1,NULL,83,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',46,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(47,47,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0010-mindtouch-templates.mtapp','Import of package \'0010-mindtouch-templates.mtapp\'','2011-10-13 20:23:50',47,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(48,48,1,1,NULL,85,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:47',48,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(49,49,1,1,NULL,86,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:47',49,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(50,50,1,1,NULL,86,NULL,35,'oobe.css',NULL,'2011-10-13 20:24:47',50,0,0,4830,'text/css',NULL,0,'<attr><fileid>2</fileid></attr>'),(51,51,1,1,NULL,87,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',51,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(52,52,1,1,NULL,88,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',52,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(53,53,1,1,NULL,89,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',53,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(54,54,1,1,NULL,90,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',54,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(55,55,1,1,NULL,91,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',55,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(56,56,1,1,NULL,92,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',56,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(57,57,1,1,NULL,93,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:49',57,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(58,58,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0050-mindtouch-oobe-none.mtapp','Import of package \'0050-mindtouch-oobe-none.mtapp\'','2011-10-13 20:24:49',58,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(59,59,1,1,NULL,22,NULL,35,'mindtouch.import#info','import at revision 2','2011-10-13 20:24:49',59,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(60,60,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0060-mindtouch-oobe-none-homepage.mtapp','Import of package \'0060-mindtouch-oobe-none-homepage.mtapp\'','2011-10-13 20:24:49',60,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL);
/*!40000 ALTER TABLE `resourcerevs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `resources`
--

DROP TABLE IF EXISTS `resources`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `resources` (
  `res_id` int(4) unsigned NOT NULL auto_increment,
  `res_headrev` int(4) unsigned NOT NULL default '0',
  `res_type` tinyint(1) unsigned NOT NULL default '0',
  `res_deleted` tinyint(1) unsigned NOT NULL default '0',
  `res_create_timestamp` datetime NOT NULL default '0001-01-01 00:00:00',
  `res_update_timestamp` datetime NOT NULL default '0001-01-01 00:00:00',
  `res_create_user_id` int(4) unsigned NOT NULL default '0',
  `res_update_user_id` int(4) unsigned NOT NULL default '0',
  `resrev_rev` smallint(2) NOT NULL default '0',
  `resrev_user_id` int(4) unsigned NOT NULL default '0',
  `resrev_parent_id` int(4) unsigned default NULL,
  `resrev_parent_page_id` int(4) unsigned default NULL,
  `resrev_parent_user_id` int(4) unsigned default NULL,
  `resrev_change_mask` smallint(2) unsigned NOT NULL default '0',
  `resrev_name` varchar(255) NOT NULL default '',
  `resrev_change_description` varchar(255) default NULL,
  `resrev_timestamp` datetime NOT NULL default '0001-01-01 00:00:00',
  `resrev_content_id` int(4) unsigned default NULL,
  `resrev_deleted` tinyint(1) unsigned NOT NULL default '0',
  `resrev_changeset_id` int(4) unsigned NOT NULL default '0',
  `resrev_size` int(4) unsigned NOT NULL default '0',
  `resrev_mimetype` varchar(255) NOT NULL default '',
  `resrev_language` varchar(255) default NULL,
  `resrev_is_hidden` tinyint(3) unsigned NOT NULL default '0',
  `resrev_meta` text,
  PRIMARY KEY  (`res_id`),
  KEY `changeset` (`resrev_changeset_id`),
  KEY `parent_resource` (`resrev_parent_id`),
  KEY `parent_page` (`resrev_parent_page_id`),
  KEY `parent_user` (`resrev_parent_user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=61 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `resources`
--

LOCK TABLES `resources` WRITE;
/*!40000 ALTER TABLE `resources` DISABLE KEYS */;
INSERT INTO `resources` VALUES (1,1,4,0,'2011-10-13 20:23:37','2011-10-13 20:23:37',1,1,1,1,NULL,40,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:37',1,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(2,1,4,0,'2011-10-13 20:23:38','2011-10-13 20:23:38',1,1,1,1,NULL,41,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',2,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(3,1,4,0,'2011-10-13 20:23:38','2011-10-13 20:23:38',1,1,1,1,NULL,42,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',3,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(4,1,4,0,'2011-10-13 20:23:38','2011-10-13 20:23:38',1,1,1,1,NULL,43,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',4,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(5,1,4,0,'2011-10-13 20:23:38','2011-10-13 20:23:38',1,1,1,1,NULL,44,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:38',5,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(6,1,4,0,'2011-10-13 20:23:38','2011-10-13 20:23:38',1,1,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0010-mindtouch-special-reports.mtapp','Import of package \'0010-mindtouch-special-reports.mtapp\'','2011-10-13 20:23:38',6,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(7,1,4,0,'2011-10-13 20:23:40','2011-10-13 20:23:40',1,1,1,1,NULL,45,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',7,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(8,1,4,0,'2011-10-13 20:23:40','2011-10-13 20:23:40',1,1,1,1,NULL,46,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',8,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(9,1,4,0,'2011-10-13 20:23:40','2011-10-13 20:23:40',1,1,1,1,NULL,47,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',9,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(10,1,4,0,'2011-10-13 20:23:40','2011-10-13 20:23:40',1,1,1,1,NULL,48,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',10,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(11,1,4,0,'2011-10-13 20:23:40','2011-10-13 20:23:40',1,1,1,1,NULL,49,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:40',11,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(12,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,50,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',12,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(13,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,51,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',13,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(14,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,52,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',14,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(15,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,53,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',15,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(16,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,54,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',16,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(17,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,55,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',17,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(18,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,56,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',18,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(19,1,4,0,'2011-10-13 20:23:41','2011-10-13 20:23:41',1,1,1,1,NULL,57,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:41',19,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(20,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,58,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',20,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(21,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,59,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',21,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(22,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,60,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',22,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(23,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,61,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',23,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(24,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,62,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',24,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(25,1,4,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,63,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:42',25,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(26,1,2,0,'2011-10-13 20:23:42','2011-10-13 20:23:42',1,1,1,1,NULL,63,NULL,35,'ajax-loader.gif',NULL,'2011-10-13 20:23:42',26,0,0,3208,'image/gif',NULL,0,'<attr><fileid>1</fileid><width>32</width><height>32</height><frames>12</frames></attr>'),(27,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,64,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',27,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(28,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,65,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',28,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(29,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,66,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',29,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(30,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,67,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',30,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(31,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,68,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',31,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(32,1,4,0,'2011-10-13 20:23:46','2011-10-13 20:23:46',1,1,1,1,NULL,69,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:46',32,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(33,1,4,0,'2011-10-13 20:23:47','2011-10-13 20:23:47',1,1,1,1,NULL,70,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',33,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(34,1,4,0,'2011-10-13 20:23:47','2011-10-13 20:23:47',1,1,1,1,NULL,71,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',34,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(35,1,4,0,'2011-10-13 20:23:47','2011-10-13 20:23:47',1,1,1,1,NULL,72,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',35,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(36,1,4,0,'2011-10-13 20:23:47','2011-10-13 20:23:47',1,1,1,1,NULL,73,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:47',36,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(37,1,4,0,'2011-10-13 20:23:48','2011-10-13 20:23:48',1,1,1,1,NULL,74,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',37,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(38,1,4,0,'2011-10-13 20:23:48','2011-10-13 20:23:48',1,1,1,1,NULL,75,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',38,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(39,1,4,0,'2011-10-13 20:23:48','2011-10-13 20:23:48',1,1,1,1,NULL,76,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:48',39,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(40,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,77,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',40,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(41,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,78,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',41,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(42,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,79,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',42,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(43,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,80,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',43,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(44,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,81,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',44,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(45,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,82,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',45,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(46,1,4,0,'2011-10-13 20:23:49','2011-10-13 20:23:49',1,1,1,1,NULL,83,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:23:49',46,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(47,1,4,0,'2011-10-13 20:23:50','2011-10-13 20:23:50',1,1,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0010-mindtouch-templates.mtapp','Import of package \'0010-mindtouch-templates.mtapp\'','2011-10-13 20:23:50',47,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(48,1,4,0,'2011-10-13 20:24:47','2011-10-13 20:24:47',1,1,1,1,NULL,85,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:47',48,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(49,1,4,0,'2011-10-13 20:24:47','2011-10-13 20:24:47',1,1,1,1,NULL,86,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:47',49,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(50,1,2,0,'2011-10-13 20:24:47','2011-10-13 20:24:47',1,1,1,1,NULL,86,NULL,35,'oobe.css',NULL,'2011-10-13 20:24:47',50,0,0,4830,'text/css',NULL,0,'<attr><fileid>2</fileid></attr>'),(51,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,87,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',51,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(52,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,88,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',52,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(53,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,89,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',53,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(54,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,90,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',54,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(55,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,91,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',55,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(56,1,4,0,'2011-10-13 20:24:48','2011-10-13 20:24:48',1,1,1,1,NULL,92,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:48',56,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(57,1,4,0,'2011-10-13 20:24:49','2011-10-13 20:24:49',1,1,1,1,NULL,93,NULL,35,'mindtouch.import#info','import at revision 1','2011-10-13 20:24:49',57,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(58,1,4,0,'2011-10-13 20:24:49','2011-10-13 20:24:49',1,1,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0050-mindtouch-oobe-none.mtapp','Import of package \'0050-mindtouch-oobe-none.mtapp\'','2011-10-13 20:24:49',58,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL),(59,1,4,0,'2011-10-13 20:24:49','2011-10-13 20:24:49',1,1,1,1,NULL,22,NULL,35,'mindtouch.import#info','import at revision 2','2011-10-13 20:24:49',59,0,0,123,'text/xml; charset=us-ascii',NULL,0,NULL),(60,1,4,0,'2011-10-13 20:24:49','2011-10-13 20:24:49',1,1,1,1,NULL,NULL,NULL,35,'mindtouch.packageupdater.imported#0060-mindtouch-oobe-none-homepage.mtapp','Import of package \'0060-mindtouch-oobe-none-homepage.mtapp\'','2011-10-13 20:24:49',60,0,0,68,'application/xml; charset=utf-8',NULL,0,NULL);
/*!40000 ALTER TABLE `resources` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `restrictions`
--

DROP TABLE IF EXISTS `restrictions`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `restrictions` (
  `restriction_id` int(4) unsigned NOT NULL auto_increment,
  `restriction_name` varchar(255) NOT NULL,
  `restriction_perm_flags` bigint(20) unsigned NOT NULL,
  `restriction_creator_user_id` int(10) unsigned NOT NULL,
  `restriction_last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`restriction_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `restrictions`
--

LOCK TABLES `restrictions` WRITE;
/*!40000 ALTER TABLE `restrictions` DISABLE KEYS */;
INSERT INTO `restrictions` VALUES (1,'Public',18446744073709551615,1,'2011-10-13 20:21:52'),(2,'Semi-Public',15,1,'2011-07-11 19:55:59'),(3,'Private',1,1,'2011-07-11 19:55:59');
/*!40000 ALTER TABLE `restrictions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `roles`
--

DROP TABLE IF EXISTS `roles`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `roles` (
  `role_id` int(4) unsigned NOT NULL auto_increment,
  `role_name` varchar(255) NOT NULL,
  `role_perm_flags` bigint(8) unsigned NOT NULL,
  `role_creator_user_id` int(10) unsigned NOT NULL,
  `role_last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`role_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `roles`
--

LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES (1,'None',0,1,'2011-07-11 19:55:59'),(2,'Guest',1,1,'2011-07-11 19:55:59'),(3,'Viewer',15,1,'2011-07-11 19:55:59'),(4,'Contributor',1343,1,'2011-07-11 19:55:59'),(5,'Admin',9223372036854779903,1,'2011-07-11 19:55:59');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `service_config`
--

DROP TABLE IF EXISTS `service_config`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service_config` (
  `config_id` int(10) unsigned NOT NULL auto_increment,
  `service_id` int(4) unsigned NOT NULL,
  `config_name` char(255) NOT NULL,
  `config_value` text,
  PRIMARY KEY  (`config_id`)
) ENGINE=MyISAM AUTO_INCREMENT=184 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `service_config`
--

LOCK TABLES `service_config` WRITE;
/*!40000 ALTER TABLE `service_config` DISABLE KEYS */;
INSERT INTO `service_config` VALUES (167,9,'manifest','http://scripts.mindtouch.com/flowplayer.xml'),(2,3,'manifest','http://scripts.mindtouch.com/addthis.xml'),(151,20,'manifest','http://scripts.mindtouch.com/pagebus.xml'),(157,2,'manifest','http://scripts.mindtouch.com/accuweather.xml'),(147,32,'manifest','http://scripts.mindtouch.com/widgetbox.xml'),(169,12,'manifest','http://scripts.mindtouch.com/gravatar.xml'),(153,15,'manifest','http://scripts.mindtouch.com/linkedin.xml'),(149,40,'manifest','http://scripts.mindtouch.com/zoho.xml'),(10,21,'manifest','http://scripts.mindtouch.com/paypal.xml'),(12,23,'manifest','http://scripts.mindtouch.com/scribd.xml'),(171,29,'manifest','http://scripts.mindtouch.com/syntax.xml'),(155,37,'manifest','http://scripts.mindtouch.com/lightbox.xml'),(159,39,'manifest','http://scripts.mindtouch.com/rtm.xml'),(163,25,'manifest','http://scripts.mindtouch.com/skype.xml'),(165,6,'manifest','http://scripts.mindtouch.com/digg.xml'),(183,36,'manifest','http://scripts.mindtouch.com/editgrid.xml'),(181,22,'manifest','http://scripts.mindtouch.com/scratch.xml'),(175,26,'manifest','http://scripts.mindtouch.com/spoiler.xml'),(161,31,'manifest','http://scripts.mindtouch.com/twitter.xml'),(173,5,'manifest','http://scripts.mindtouch.com/dhtml.xml'),(179,35,'manifest','http://scripts.mindtouch.com/yuimediaplayer.xml'),(145,8,'manifest','http://scripts.mindtouch.com/flickr.xml'),(177,38,'manifest','http://scripts.mindtouch.com/quicktime.xml');
/*!40000 ALTER TABLE `service_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `service_prefs`
--

DROP TABLE IF EXISTS `service_prefs`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `service_prefs` (
  `pref_id` int(10) unsigned NOT NULL auto_increment,
  `service_id` int(4) unsigned NOT NULL,
  `pref_name` char(255) NOT NULL,
  `pref_value` text,
  PRIMARY KEY  (`pref_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `service_prefs`
--

LOCK TABLES `service_prefs` WRITE;
/*!40000 ALTER TABLE `service_prefs` DISABLE KEYS */;
/*!40000 ALTER TABLE `service_prefs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `services`
--

DROP TABLE IF EXISTS `services`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `services` (
  `service_id` int(4) unsigned NOT NULL auto_increment,
  `service_type` varchar(255) NOT NULL,
  `service_sid` varchar(255) default NULL,
  `service_uri` varchar(255) default NULL,
  `service_description` mediumtext,
  `service_local` tinyint(1) unsigned NOT NULL default '1',
  `service_enabled` tinyint(1) unsigned NOT NULL default '1',
  `service_last_status` text,
  `service_last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`service_id`)
) ENGINE=MyISAM AUTO_INCREMENT=48 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `services`
--

LOCK TABLES `services` WRITE;
/*!40000 ALTER TABLE `services` DISABLE KEYS */;
INSERT INTO `services` VALUES (1,'AUTH','http://services.mindtouch.com/deki/draft/2006/11/dekiwiki','local://4b8285ae06f9bb86a355b4d00ab31f92/deki','Local',1,1,'','2011-07-11 19:55:59'),(3,'ext','sid://mindtouch.com/2007/12/dekiscript',NULL,'AddThis',1,0,NULL,'2011-07-11 19:55:59'),(18,'EXT','sid://mindtouch.com/2007/06/media','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/18','Multimedia',1,1,'','2011-07-11 19:55:59'),(7,'EXT','sid://mindtouch.com/2007/06/feed','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/7','Atom/RSS Feeds',1,1,'','2011-07-11 19:55:59'),(24,'EXT','sid://mindtouch.com/2008/02/silverlight','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/24','Silverlight',1,1,'','2011-07-11 19:55:59'),(8,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/8','Flickr',1,1,'','2011-07-11 19:55:59'),(32,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/32','WidgetBox',1,1,'','2011-07-11 19:55:59'),(10,'ext','sid://mindtouch.com/2007/06/google',NULL,'Google',1,0,NULL,'2011-07-11 19:55:59'),(11,'ext','sid://mindtouch.com/2007/06/graphviz',NULL,'Graphviz',1,0,NULL,'2011-07-11 19:55:59'),(40,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/40','Zoho',1,1,'','2011-07-11 19:55:59'),(20,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/20','PageBus',1,1,'','2011-07-11 19:55:59'),(13,'ext','sid://mindtouch.com/2007/06/imagemagick',NULL,'ImageMagick',1,0,NULL,'2011-07-11 19:55:59'),(14,'ext','sid://mindtouch.com/2008/02/jira',NULL,'Jira',1,0,NULL,'2011-07-11 19:55:59'),(15,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/15','LinkedIn',1,1,'','2011-07-11 19:55:59'),(37,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/37','Lightbox',1,1,'','2011-07-11 19:55:59'),(16,'ext','sid://mindtouch.com/2008/01/mantis',NULL,'Mantis',1,0,NULL,'2011-07-11 19:55:59'),(17,'ext','sid://mindtouch.com/2007/06/math',NULL,'Math',1,0,NULL,'2011-07-11 19:55:59'),(19,'ext','sid://mindtouch.com/2007/06/mysql',NULL,'MySql',1,0,NULL,'2011-07-11 19:55:59'),(21,'ext','sid://mindtouch.com/2007/12/dekiscript',NULL,'PayPal',1,0,NULL,'2011-07-11 19:55:59'),(2,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/2','AccuWeather',1,1,'','2011-07-11 19:55:59'),(23,'ext','sid://mindtouch.com/2007/12/dekiscript',NULL,'Scribd',1,0,NULL,'2011-07-11 19:55:59'),(28,'EXT','sid://mindtouch.com/2008/05/svg','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/28','SVG',1,1,'','2011-07-11 19:55:59'),(4,'EXT','sid://mindtouch.com/2007/12/dapper','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/4','Dapper',1,1,'','2011-07-11 19:55:59'),(27,'ext','sid://mindtouch.com/2008/02/svn',NULL,'Subversion',1,0,NULL,'2011-07-11 19:55:59'),(30,'ext','sid://mindtouch.com/2008/02/trac',NULL,'Trac',1,0,NULL,'2011-07-11 19:55:59'),(26,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/26','Spoiler',1,1,'','2011-07-11 19:55:59'),(31,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/31','Twitter',1,1,'','2011-07-11 19:55:59'),(25,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/25','Skype',1,1,'','2011-07-11 19:55:59'),(35,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/35','YUI Media Player',1,1,'','2011-07-11 19:55:59'),(6,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/6','Digg',1,1,'','2011-07-11 19:55:59'),(9,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/9','FlowPlayer',1,1,'','2011-07-11 19:55:59'),(33,'EXT','sid://mindtouch.com/2007/07/windows.live','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/33','Windows Live',1,1,'','2011-07-11 19:55:59'),(12,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/12','Gravatar',1,1,'','2011-07-11 19:55:59'),(41,'ext','sid://mindtouch.com/ent/2008/05/salesforce',NULL,'Salesforce',1,0,NULL,'2011-07-11 19:55:59'),(42,'ext','sid://mindtouch.com/ent/2008/05/sugarcrm',NULL,'SugarCRM',1,0,NULL,'2011-07-11 19:55:59'),(43,'ext','sid://mindtouch.com/ext/2009/12/anychart',NULL,'AnyChart',1,0,NULL,'2011-07-11 19:55:59'),(44,'ext','sid://mindtouch.com/ext/2009/12/anygantt',NULL,'AnyGantt',1,0,NULL,'2011-07-11 19:55:59'),(29,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/29','Syntax Highlighter',1,1,'','2011-07-11 19:55:59'),(5,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/5','DHtml',1,1,'','2011-07-11 19:55:59'),(36,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/36','EditGrid',1,1,'','2011-07-11 19:55:59'),(38,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/38','Quicktime',1,1,'','2011-07-11 19:55:59'),(22,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/22','Scratch',1,1,'','2011-07-11 19:55:59'),(39,'EXT','sid://mindtouch.com/2007/12/dekiscript','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/39','Remember The Milk',1,1,'','2011-07-11 19:55:59'),(34,'EXT','sid://mindtouch.com/2007/06/yahoo','local://4b8285ae06f9bb86a355b4d00ab31f92/deki/services/default/34','Yahoo!',1,1,'','2011-07-11 19:55:59'),(45,'ext','sid://mindtouch.com/std/2009/04/activitystream',NULL,'Activity Stream',1,0,NULL,'2011-10-13 20:21:52'),(46,'ext','sid://mindtouch.com/ext/2010/06/analytics.search',NULL,'Curation Analytics (Search)',1,0,NULL,'2011-10-13 20:21:52'),(47,'ext','sid://mindtouch.com/ext/2010/06/analytics.content',NULL,'Curation Analytics (Content)',1,0,NULL,'2011-10-13 20:21:52');
/*!40000 ALTER TABLE `services` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tag_map`
--

DROP TABLE IF EXISTS `tag_map`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `tag_map` (
  `tagmap_id` int(10) unsigned NOT NULL auto_increment,
  `tagmap_page_id` int(10) unsigned NOT NULL,
  `tagmap_tag_id` int(4) unsigned NOT NULL,
  PRIMARY KEY  (`tagmap_id`),
  UNIQUE KEY `tagmap_page_id` (`tagmap_page_id`,`tagmap_tag_id`),
  KEY `tagmap_tag_id` (`tagmap_tag_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `tag_map`
--

LOCK TABLES `tag_map` WRITE;
/*!40000 ALTER TABLE `tag_map` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag_map` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tags`
--

DROP TABLE IF EXISTS `tags`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `tags` (
  `tag_id` int(4) unsigned NOT NULL auto_increment,
  `tag_name` varchar(255) NOT NULL default '',
  `tag_type` tinyint(2) unsigned NOT NULL default '0',
  PRIMARY KEY  (`tag_id`),
  UNIQUE KEY `tag_name` (`tag_name`,`tag_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `tags`
--

LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `transactions`
--

DROP TABLE IF EXISTS `transactions`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `transactions` (
  `t_id` int(4) NOT NULL auto_increment,
  `t_timestamp` datetime NOT NULL,
  `t_user_id` int(4) NOT NULL,
  `t_page_id` int(4) unsigned default NULL,
  `t_title` varchar(255) default NULL,
  `t_namespace` tinyint(2) unsigned default NULL,
  `t_type` tinyint(2) default NULL,
  `t_reverted` tinyint(1) NOT NULL default '0',
  `t_revert_user_id` int(4) unsigned default NULL,
  `t_revert_timestamp` datetime default NULL,
  `t_revert_reason` varchar(255) default NULL,
  PRIMARY KEY  (`t_id`),
  KEY `t_timestamp` (`t_timestamp`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `transactions`
--

LOCK TABLES `transactions` WRITE;
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_grants`
--

DROP TABLE IF EXISTS `user_grants`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `user_grants` (
  `user_grant_id` int(10) unsigned NOT NULL auto_increment,
  `page_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `role_id` int(4) unsigned NOT NULL,
  `creator_user_id` int(10) unsigned NOT NULL,
  `expire_date` datetime default NULL,
  `last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`user_grant_id`),
  UNIQUE KEY `page_id` (`page_id`,`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=56 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `user_grants`
--

LOCK TABLES `user_grants` WRITE;
/*!40000 ALTER TABLE `user_grants` DISABLE KEYS */;
INSERT INTO `user_grants` VALUES (1,40,1,4,1,NULL,'2011-10-13 20:23:37'),(2,41,1,4,1,NULL,'2011-10-13 20:23:38'),(3,42,1,4,1,NULL,'2011-10-13 20:23:38'),(4,43,1,4,1,NULL,'2011-10-13 20:23:38'),(5,44,1,4,1,NULL,'2011-10-13 20:23:38'),(6,45,1,4,1,NULL,'2011-10-13 20:23:40'),(7,46,1,4,1,NULL,'2011-10-13 20:23:40'),(8,47,1,4,1,NULL,'2011-10-13 20:23:40'),(9,48,1,4,1,NULL,'2011-10-13 20:23:40'),(10,49,1,4,1,NULL,'2011-10-13 20:23:40'),(11,50,1,4,1,NULL,'2011-10-13 20:23:41'),(12,51,1,4,1,NULL,'2011-10-13 20:23:41'),(13,52,1,4,1,NULL,'2011-10-13 20:23:41'),(14,53,1,4,1,NULL,'2011-10-13 20:23:41'),(15,54,1,4,1,NULL,'2011-10-13 20:23:41'),(16,55,1,4,1,NULL,'2011-10-13 20:23:41'),(17,56,1,4,1,NULL,'2011-10-13 20:23:41'),(18,57,1,4,1,NULL,'2011-10-13 20:23:41'),(19,58,1,4,1,NULL,'2011-10-13 20:23:42'),(20,59,1,4,1,NULL,'2011-10-13 20:23:42'),(21,60,1,4,1,NULL,'2011-10-13 20:23:42'),(22,61,1,4,1,NULL,'2011-10-13 20:23:42'),(23,62,1,4,1,NULL,'2011-10-13 20:23:42'),(24,63,1,4,1,NULL,'2011-10-13 20:23:42'),(25,64,1,4,1,NULL,'2011-10-13 20:23:46'),(26,65,1,4,1,NULL,'2011-10-13 20:23:46'),(27,66,1,4,1,NULL,'2011-10-13 20:23:46'),(28,67,1,4,1,NULL,'2011-10-13 20:23:46'),(29,68,1,4,1,NULL,'2011-10-13 20:23:46'),(30,69,1,4,1,NULL,'2011-10-13 20:23:46'),(31,70,1,4,1,NULL,'2011-10-13 20:23:47'),(32,71,1,4,1,NULL,'2011-10-13 20:23:47'),(33,72,1,4,1,NULL,'2011-10-13 20:23:47'),(34,73,1,4,1,NULL,'2011-10-13 20:23:47'),(35,74,1,4,1,NULL,'2011-10-13 20:23:48'),(36,75,1,4,1,NULL,'2011-10-13 20:23:48'),(37,76,1,4,1,NULL,'2011-10-13 20:23:48'),(38,77,1,4,1,NULL,'2011-10-13 20:23:49'),(39,78,1,4,1,NULL,'2011-10-13 20:23:49'),(40,79,1,4,1,NULL,'2011-10-13 20:23:49'),(41,80,1,4,1,NULL,'2011-10-13 20:23:49'),(42,81,1,4,1,NULL,'2011-10-13 20:23:49'),(43,82,1,4,1,NULL,'2011-10-13 20:23:49'),(44,83,1,4,1,NULL,'2011-10-13 20:23:49'),(45,84,1,4,1,NULL,'2011-10-13 20:24:47'),(46,85,1,4,1,NULL,'2011-10-13 20:24:47'),(47,86,1,4,1,NULL,'2011-10-13 20:24:47'),(48,87,1,4,1,NULL,'2011-10-13 20:24:48'),(49,88,1,4,1,NULL,'2011-10-13 20:24:48'),(50,89,1,4,1,NULL,'2011-10-13 20:24:48'),(51,90,1,4,1,NULL,'2011-10-13 20:24:48'),(52,91,1,4,1,NULL,'2011-10-13 20:24:48'),(53,92,1,4,1,NULL,'2011-10-13 20:24:48'),(54,93,1,4,1,NULL,'2011-10-13 20:24:49'),(55,22,1,4,1,NULL,'2011-10-13 20:24:49');
/*!40000 ALTER TABLE `user_grants` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_groups`
--

DROP TABLE IF EXISTS `user_groups`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `user_groups` (
  `user_id` int(10) NOT NULL,
  `group_id` int(10) NOT NULL,
  `last_edit` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  UNIQUE KEY `user_id` (`user_id`,`group_id`),
  KEY `group_id` (`group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `user_groups`
--

LOCK TABLES `user_groups` WRITE;
/*!40000 ALTER TABLE `user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `users` (
  `user_id` int(10) unsigned NOT NULL auto_increment,
  `user_name` varchar(255) NOT NULL,
  `user_real_name` varchar(255) default NULL,
  `user_password` tinyblob NOT NULL,
  `user_newpassword` tinyblob NOT NULL,
  `user_email` varchar(255) default NULL,
  `user_touched` varchar(14) NOT NULL default '',
  `user_token` varchar(32) NOT NULL default '',
  `user_role_id` int(4) unsigned NOT NULL,
  `user_active` tinyint(1) unsigned NOT NULL,
  `user_external_name` varchar(255) default NULL,
  `user_service_id` int(4) unsigned NOT NULL,
  `user_builtin` tinyint(1) unsigned NOT NULL default '0',
  `user_create_timestamp` datetime NOT NULL default '0001-01-01 00:00:00',
  `user_language` varchar(255) default NULL,
  `user_timezone` varchar(255) default NULL,
  `user_seat` tinyint(3) unsigned NOT NULL default '0',
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `user_name` (`user_name`,`user_service_id`),
  UNIQUE KEY `user_real_name_service_id` (`user_external_name`,`user_service_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Admin','','77da245e656a56818e6d7d874e1dd5c7','','lorchard@mozilla.com','20111013202447','2158a249b6b8368a738bf81d97627be1',5,1,NULL,1,1,'0001-01-01 00:00:00',NULL,NULL,0),(2,'Anonymous','','','','','20111013201622','',3,1,NULL,1,1,'0001-01-01 00:00:00',NULL,NULL,0);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `watchlist`
--

DROP TABLE IF EXISTS `watchlist`;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `watchlist` (
  `wl_user` int(5) unsigned NOT NULL default '0',
  `wl_namespace` tinyint(2) unsigned NOT NULL default '0',
  `wl_title` varchar(255) NOT NULL default '',
  UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`),
  KEY `namespace_title` (`wl_namespace`,`wl_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;

--
-- Dumping data for table `watchlist`
--

LOCK TABLES `watchlist` WRITE;
/*!40000 ALTER TABLE `watchlist` DISABLE KEYS */;
/*!40000 ALTER TABLE `watchlist` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2011-10-13 20:26:36
