<?
//
//  cP Account Creator Version 0.4 Beta Build 01
//  Copyright (C) 2004 Brian Freeman
//  All Rights Reserved.
//
//  This script set is distributed as is with absolutely no warranty.
//  Users of this script set agree to use at their own risk.
//  Questions or comments?  Contact webmaster@freemans-web.com
//
//

$sql_usr="_$email";
$sql_usr1="$ownername$sql_usr";

$conn2  = mysql_connect($dbhost, $sql_usr1, $password) or die(mysql_error( ));
mysql_select_db($sql_usr1,$conn2) or die(mysql_error( ));

$get_items="CREATE TABLE `activity` (
  `event_id` bigint(20) NOT NULL auto_increment,
  `event_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `message` varchar(250) NOT NULL default '',
  PRIMARY KEY  (`event_id`)
) TYPE=MyISAM AUTO_INCREMENT=40 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `categories` (
  `cat_id` bigint(20) NOT NULL auto_increment,
  `cat_name` varchar(250) NOT NULL default '',
  `cat_doc_type` varchar(20) default NULL,
  `cat_description` text,
  PRIMARY KEY  (`cat_id`),
  UNIQUE KEY `category_category_ndx` (`cat_name`),
  KEY `categories_cat_doc_type_ndx` (`cat_doc_type`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `comments` (
  `comment_id` bigint(20) NOT NULL auto_increment,
  `doc_id` bigint(20) NOT NULL default '0',
  `reply_to` bigint(20) default NULL,
  `owner_id` bigint(20) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `body` text NOT NULL,
  `comment_props` text,
  PRIMARY KEY  (`comment_id`),
  KEY `comment_doc_id_ndx` (`doc_id`),
  KEY `comment_owner_id_ndx` (`owner_id`),
  FULLTEXT KEY `comments_full_ndx` (`body`,`comment_props`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `doc_categories` (
  `doc_id` bigint(20) NOT NULL default '0',
  `doc_cat_id` bigint(20) NOT NULL default '0',
  PRIMARY KEY  (`doc_id`,`doc_cat_id`),
  KEY `doc_categories_doc_id_ndx` (`doc_id`),
  KEY `doc_categories_doc_cat_id_ndx` (`doc_cat_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `docs` (
  `doc_id` bigint(20) NOT NULL auto_increment,
  `doc_version` bigint(20) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `doc_hidden` tinyint(4) NOT NULL default '0',
  `doc_folder_id` bigint(20) default NULL,
  `doc_owner_id` bigint(20) NOT NULL default '0',
  `doc_tag` varchar(32) default NULL,
  `doc_type` varchar(20) NOT NULL default '',
  `doc_title` varchar(250) NOT NULL default '',
  `doc_body` text NOT NULL,
  `doc_props` text,
  PRIMARY KEY  (`doc_id`),
  UNIQUE KEY `docs_owner_title_ndx` (`doc_type`,`doc_owner_id`,`doc_title`),
  KEY `doc_owner_id_ndx` (`doc_owner_id`),
  KEY `doc_folder_id_ndx` (`doc_folder_id`),
  KEY `doc_type_ndx` (`doc_type`),
  KEY `doc_tag_ndx` (`doc_tag`),
  KEY `doc_hidden_ndx` (`doc_hidden`),
  KEY `doc_title_ndx` (`doc_title`),
  KEY `doc_created_ndx` (`created`),
  KEY `doc_modified_ndx` (`modified`),
  FULLTEXT KEY `docs_full_ndx` (`doc_title`,`doc_body`,`doc_props`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `events` (
  `doc_id` bigint(20) NOT NULL default '0',
  `event_begin` datetime NOT NULL default '0000-00-00 00:00:00',
  `event_end` datetime NOT NULL default '0000-00-00 00:00:00',
  `event_private` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`doc_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `folders` (
  `folder_id` bigint(20) NOT NULL auto_increment,
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `folder_owner_id` bigint(20) NOT NULL default '0',
  `folder_parent_id` bigint(20) NOT NULL default '0',
  `folder_public` tinyint(4) NOT NULL default '0',
  `folder_children` tinyint(4) NOT NULL default '0',
  `folder_type` varchar(20) NOT NULL default '',
  `folder_name` varchar(250) NOT NULL default '',
  `folder_body` text,
  `folder_props` text,
  PRIMARY KEY  (`folder_id`),
  UNIQUE KEY `folder_name_ndx` (`folder_name`),
  KEY `folder_owner_id_ndx` (`folder_owner_id`),
  KEY `folder_parent_id_ndx` (`folder_parent_id`),
  FULLTEXT KEY `folder_ndx` (`folder_name`,`folder_body`,`folder_props`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `group_members` (
  `group_id` bigint(20) NOT NULL default '0',
  `group_user_id` bigint(20) NOT NULL default '0',
  `date_added` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`group_id`,`group_user_id`),
  KEY `group_id_ndx` (`group_id`),
  KEY `group_user_id_ndx` (`group_user_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `groups` (
  `group_id` bigint(20) NOT NULL auto_increment,
  `group_type` tinyint(4) NOT NULL default '0',
  `group_owner_id` bigint(20) NOT NULL default '0',
  `group_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `group_modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `group_name` varchar(250) NOT NULL default '',
  `group_body` text,
  `group_props` text,
  PRIMARY KEY  (`group_id`),
  UNIQUE KEY `group_name_ndx` (`group_name`),
  FULLTEXT KEY `group_text_ndx` (`group_name`,`group_body`,`group_props`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `messages` (
  `msg_id` bigint(20) NOT NULL auto_increment,
  `msg_to_user_id` bigint(20) NOT NULL default '0',
  `msg_from_user_id` bigint(20) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `expires` datetime NOT NULL default '0000-00-00 00:00:00',
  `msg_read` tinyint(4) NOT NULL default '0',
  `msg_title` varchar(250) NOT NULL default '',
  `msg_body` text NOT NULL,
  PRIMARY KEY  (`msg_id`),
  KEY `msg_to_user_ndx` (`msg_to_user_id`),
  KEY `msg_from_user_ndx` (`msg_from_user_id`),
  KEY `msg_read_ndx` (`msg_read`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `notifications` (
  `note_id` bigint(20) NOT NULL auto_increment,
  `note_subscr_id` bigint(20) NOT NULL default '0',
  `note_user_id` bigint(20) NOT NULL default '0',
  `note_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `note_sent` datetime default NULL,
  `note_message` varchar(250) NOT NULL default '',
  `note_url` varchar(250) NOT NULL default '',
  `note_body` text,
  `note_props` text,
  PRIMARY KEY  (`note_id`),
  KEY `note_subscr_id` (`note_subscr_id`),
  KEY `note_user_id` (`note_user_id`),
  KEY `note_sent` (`note_sent`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `obj_props` (
  `obj_prop_id` bigint(20) NOT NULL auto_increment,
  `obj_id` bigint(20) NOT NULL default '0',
  `obj_prop_name` varchar(250) NOT NULL default '',
  `obj_prop_seq` tinyint(4) NOT NULL default '0',
  `obj_prop_type` varchar(20) NOT NULL default '',
  `obj_prop_size` int(11) default NULL,
  `obj_prop_prompt` varchar(250) NOT NULL default '',
  `obj_prop_doc` text,
  `obj_prop_admin` tinyint(4) NOT NULL default '0',
  `obj_prop_options` text NOT NULL,
  PRIMARY KEY  (`obj_prop_id`),
  UNIQUE KEY `obj_props_name_ndx` (`obj_id`,`obj_prop_name`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `objs` (
  `obj_id` bigint(20) NOT NULL auto_increment,
  `obj_active` tinyint(4) NOT NULL default '0',
  `obj_class` varchar(30) NOT NULL default '',
  `obj_class_file` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`obj_id`),
  UNIQUE KEY `objs_class_ndx` (`obj_class`)
) TYPE=MyISAM AUTO_INCREMENT=10 ;
" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (1, 1, 'Article', 'article.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (2, 0, 'Notice', 'notice.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (3, 0, 'Ad', 'ad.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (4, 0, 'Event', 'event.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (5, 1, 'DocFile', 'file.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (6, 1, 'Image', 'image.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (7, 0, 'Link', 'link.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (8, 0, 'Poll', 'poll.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `objs` VALUES (9, 1, 'User', 'user.php');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `permissions` (
  `obj_type` varchar(10) NOT NULL default '',
  `obj_id` bigint(20) NOT NULL default '0',
  `editor_type` char(1) NOT NULL default '',
  `editor_id` bigint(20) NOT NULL default '0',
  `can_edit` tinyint(4) NOT NULL default '0',
  `can_submit` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`obj_type`,`obj_id`,`editor_type`,`editor_id`),
  KEY `perms_obj_ndx` (`obj_type`,`obj_id`),
  KEY `perms_editor_ndx` (`editor_type`,`editor_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `poll_votes` (
  `doc_id` bigint(20) NOT NULL default '0',
  `user_id` bigint(20) NOT NULL default '0',
  `question_id` bigint(20) NOT NULL default '0',
  PRIMARY KEY  (`doc_id`,`user_id`),
  KEY `poll_votes_doc_id_ndx` (`doc_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `properties` (
  `name` varchar(250) NOT NULL default '',
  `value` text,
  PRIMARY KEY  (`name`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));









$get_items="INSERT INTO `properties` VALUES ('INIT', '2005-08-21 02:11:51');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('FILEPATH', 'files/');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('DEFAULT_IMAGE_SIZE', '400');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SELPORTRAIT_SIZE', '150');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('PUBLISH_MODEL', 'open');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('IMAGE_QUALITY', '80');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('MAX_IMAGE_SIZE', '1200');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('ALLOW_COMMENTS', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));



$get_items="INSERT INTO `properties` VALUES ('COMMENT_SUBJECTS', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('LINES_PER_PAGE', '20');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('NOTICES_ADMIN_ONLY', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('CHARSET', 'iso-8859-1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('REPORT_DAYS', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_TEMPLATES', 'templates');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('TREE_TITLE', 'Site Map');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('COOKIE_DAYS', '7');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('TRACK_SESSIONS', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('DEFAULT_USER_SUBSCRIBE', '1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('CACHED_VALUE_UPDATE_TIME', '60');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('OKTAGS', '<b> <big> <blink> <blockquote> <br> <br/> <hr> <i> <s> <small>\n<strike> <tt> <u> <abbr> <cite> <code> <del> <dfn> <em> <ins> <kbd>\n<samp> <strong> <var> <a> <p> <ul> <ol> <li> <dl> <dt> <dd> <table>\n<th> <tr> <td> <h1> <h2> <h3> <h4> <h5> <h6> <div> <img> <span>');" ;
 $get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_NAME', 'My Website');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_URL', 'http://$sf_path');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_DESCRIPTION', 'Test Website');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_EMAIL', '$email@$domain');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('REGISTER_MODEL', 'confirm');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('LANGUAGE', 'en');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('THEME', 'default');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_DATE_FORMAT', 'Y-M-d');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_TIME_FORMAT', 'H:i T');" ;
 $get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('ENCRYPTION', 'MD5');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('SITE_THEME', 'default');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `properties` VALUES ('LOGO', 'back.gif');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `ratings` (
  `doc_id` bigint(20) NOT NULL default '0',
  `user_id` bigint(20) NOT NULL default '0',
  `rating` int(11) NOT NULL default '0',
  PRIMARY KEY  (`doc_id`,`user_id`),
  KEY `ratings_doc_ndx` (`doc_id`),
  KEY `ratings_user_id_ndx` (`user_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `rss` (
  `rss_url` varchar(250) NOT NULL default '',
  `rss_loaded` datetime NOT NULL default '0000-00-00 00:00:00',
  `rss_text` text NOT NULL,
  PRIMARY KEY  (`rss_url`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `schedule` (
  `folder_id` bigint(20) NOT NULL default '0',
  `doc_id` bigint(20) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `begin_date` datetime default NULL,
  `end_date` datetime default NULL,
  PRIMARY KEY  (`folder_id`,`doc_id`)
) TYPE=MyISAM;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `sessions` (
  `session_id` bigint(20) NOT NULL auto_increment,
  `session_date` datetime NOT NULL default '0000-00-00 00:00:00',
  `session_uid` bigint(20) NOT NULL default '0',
  `remote_ip` varchar(50) default NULL,
  `referer` varchar(250) default NULL,
  `agent` varchar(250) default NULL,
  `authuser` varchar(250) default NULL,
  PRIMARY KEY  (`session_id`)
) TYPE=MyISAM AUTO_INCREMENT=8 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `subscriptions` (
  `subscr_id` bigint(20) NOT NULL auto_increment,
  `subscr_owner_id` bigint(20) NOT NULL default '0',
  `subscr_obj_type` enum('D','F','G','U') NOT NULL default 'D',
  `subscr_obj_id` bigint(20) NOT NULL default '0',
  `subscr_notify_mod` enum('N','Y') NOT NULL default 'N',
  `subscr_notify_add` enum('N','Y') NOT NULL default 'N',
  `subscr_notify_frequency` enum('D','H','W','I') NOT NULL default 'D',
  `subscr_notify_type` enum('E','O') NOT NULL default 'E',
  `subscr_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `subscr_modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `subscr_props` text,
  PRIMARY KEY  (`subscr_id`),
  UNIQUE KEY `subscr_owner_id` (`subscr_owner_id`,`subscr_obj_type`,`subscr_obj_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `templates` (
  `tpl_id` bigint(20) NOT NULL auto_increment,
  `tpl_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `tpl_modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `tpl_theme_id` bigint(20) NOT NULL default '0',
  `tpl_type_id` int(11) NOT NULL default '0',
  `tpl_name` varchar(50) NOT NULL default '',
  `tpl_filename` varchar(250) NOT NULL default '',
  `tpl_body` text NOT NULL,
  PRIMARY KEY  (`tpl_id`),
  UNIQUE KEY `tpl_theme_id` (`tpl_theme_id`,`tpl_name`)
) TYPE=MyISAM AUTO_INCREMENT=151 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));


$get_items="INSERT INTO `templates` VALUES (1, '2003-06-04 10:13:10', '2003-06-23 20:38:31', 1, 0, 'form', './themes/Blog1/form.ihtml', '<!-- $Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n<fieldset><legend>Input Form</legend>\r\n    {BEGIN:input_form}\r\n    {!if ''\"{input_form_type}\"==\"ignore\"''\r\n        ''{input_form_prompt}''\r\n        ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n    !}\r\n    <p class=\"field\">{input_form_field}</p>\r\n    {END:input_form}\r\n    <input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n    {BEGIN:input_form_hidden}\r\n    {hidden_form_field}\r\n    {END:input_form_hidden}\r\n    <input type=\"submit\" value=\"Submit\"/>\r\n    <input type=\"reset\"/>\r\n</fieldset>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (2, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 1, 0, 'page', './themes/Blog1/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n    <!-- \\\$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n	<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\" />\n	<title>{page_title}</title>\n	<meta name=\"generator\" content=\"Siteframe {siteframe_version}\" />\n	<link rel=\"stylesheet\" type=\"text/css\" \n	    href=\"{site_path}/themes/{theme}/print.css\"\n	    media=\"print\"/>\n	<link rel=\"stylesheet\" type=\"text/css\" \n	    href=\"{site_path}/themes/{theme}/screen.css\"\n	    media=\"screen\"/>\n{head_content}\n{rdf}\n</head>\n<body>\n    <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n    <tr class=\"title\">\n        <td id=\"UL\">&nbsp;</td>\n        <td id=\"title\">\n        {!if defined(logo)\n            ''<img src=\"{logo}\" border=\"0\" alt=\"\" title=\"{site_name}\">''\n            ''<h1>{site_name}</h1>''\n        !}\n        </td>\n    </tr>\n    {!if defined(user_id)\n       ''<tr>\n        <td id=\"ML\">&nbsp;</td>\n        <td id=\"menu\">\n            {user_name} |\n            <a href=\"{site_path}/user.php\">My Page</a> |\n            <a href=\"{site_path}/prefs.php\">Preferences</a>\n        </td></tr>''\n    !}\n    <tr>\n        <td id=\"navigation\" nowrap>{!if defined(navigation)\n            ''{navigation}''\n            ''<p class=\"opt\">Options</p>\n             <p class=\"opt\"><a href=\"{site_path}/\">Home</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/login.php\">Login</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/register.php\">Register</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/search.php\">Search</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/edit.php\">New document</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/editfolder.php\">New folder</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/folders.php\">Folders</a></p>\n             <p class=\"opt\"><a href=\"{site_path}/users.php\">Users</a></p>''\n        !}<p>{!date ''F j, Y''!}<br/>{!date ''h:ia T''!}</p>\n        {!if ''{gen_rss}+0''\n            ''<p>\n             <a href=\"{site_path}/rss.xml\">\n             <img src=\"{site_path}/images/xml.gif\" border=\"0\" alt=\"RSS\" style=\"text-align:center;\">\n             </a></p>''\n        !}\n        </td>\n        <td id=\"content\">\n        {folder_path}\n        {!if defined(no_title) '''' ''<h2>{page_title}</h2>''!}\n        {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n        {!if defined(recordset) ''{recordset}''!}\n        <p>{body}</p>\n        <p>&nbsp;</p>\n        </td>\n    </tr>\n    <tr>\n        <td id=\"LL\">&nbsp;</td>\n        <td id=\"footer\">\n            <small>\n            {!if defined(footer) \n                ''{footer}''\n                ''&copy;2001, {site_name}. All Rights Reserved.''\n            !}\n            </small>\n        </td>\n    </tr>\n    </table>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (3, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 1, 0, 'popup', './themes/Blog1/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (4, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 1, 0, 'print.css', './themes/Blog1/print.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** Copyright (c)2001, Broadpool, LLC. All Rights Reserved.\n*/\nbody {\n    margin-left: 1in;\n    margin-right: 1in;\n    font-family: arial, helvetica, verdana, tahoma, times new roman, times, sans-serif;\n    font-size: 12pt;\n    line-height: 150%;\n}\n#content {\n    border: 1px solid gray;\n    padding: .2in;\n}\n/* these items will not appear in print view */\n#UL, #ML, #LL, #navigation, #menu, .action, .edit, .inputform {\n    display: none;\n}\n/* some colors */\n.error {\n    color: red;\n}\na {\n    color: gray;\n    text-decoration: underline;\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (5, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 1, 0, 'screen.css', './themes/Blog1/screen.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** Copyright (c)2001, Broadpool, LLC. All Rights Reserved.\n*/\nbody {\nwidth: 700px;\n}\nbody,input,select,textarea,td {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\ntd {\nvertical-align: top;\n}\n#title {\npadding: 5px;\n}\n#content {\nborder: 1px solid #eeeeee;\npadding: 5px;\n}\n#content * {\nline-height: 150%;\n}\n#footer {\npadding: 5px;\n}\n#navigation {\nwhite-space: nowrap;\nwidth: 130px;\nfont-size: 10px;\nborder-top: 1px solid gray;\ncolor: gray;\n}\n#menu {\nfont-size: 9px;\ntext-align: right;\ncolor: gray;\n}\ndiv.edit {\nbackground: #eeeeee;\npadding: 5px;\n}\n/*==================================================\n** Heading Formats\n*/\nh1 {\nfont-family: georgia,tahoma,times new roman,times,serif;\nfont-size: 24px;\nfont-weight: normal;\nline-height: 100%;\n}\nh2 {\nmargin-top: 0;\nmargin-bottom: 24px;\n}\nh3 {\nfont-size: 18px;\nborder-top: 1px #eeeeee solid;\n}\nh4 {\nfont-size: 12px;\nmargin-bottom: 0;\n}\nh4+p {\nmargin-top: 0;\n}\n\n/*==================================================\n** Paragraph Formats\n*/\np.action {\nfont-size: 9px;\nfont-weight: bold;\ntext-align: right;\n}\np.author {\nfont-size: 10px;\nfont-style: italic;\n}\np.editor {\nfont-size: 9px;\ntext-align: center;\nmargin-top: 0;\nmargin-bottom: 0;\n}\np.error {\ncolor: red;\n}\np.info {\nfont-size: 10px;\npadding-top: 1px;\nborder-top: 1px solid #eeeeee;\ntext-align: right;\n}\np.opt {\nfont-weight: bold;\nmargin: 0;\npadding-top: 1px;\npadding-bottom: 1px;\nborder-bottom: 1px solid gray;\nbackground: #eeeeee;\nwidth: 100%;\nwhite-space: nowrap;\n}\n\n/*==================================================\n** General Overrides\n*/\ndt {\nfont-weight: bold;\nmargin-top: 5px;\n}\nhr {\nheight: 1px;\ncolor: #eeeeee;\n}\nth {\nborder: 1px solid #eeeeee;\npadding: 2px;\n}\n.calday {\nmargin: 0;\ntext-align: right;\nfont-size: 16px;\ncolor: gray;\nfont-family: georgia,tahoma,times new roman,times,serif;\nfont-weight: bold;\n}\n.day {\nheight: 75px;\nborder: 1px solid #eeeeee;\n}\n.even {\nbackground: #eeeeee;\n}\n.event_date {\nwhite-space: nowrap;\n}\n.today {\ncolor: black;\n}\n\n/*==================================================\n** Link Styles\n*/\na {\ncolor: navy;\ntext-decoration: none;\n}\na:visited {\ncolor: gray;\n}\na:hover {\ncolor: red;\ntext-decoration: underline;\n}\np.opt a, #menu a {\ncolor: navy;\n}\np.opt a:hover {\ncolor: red;\ntext-decoration: none;\n}\np.editor a {\nborder: 1px solid gray;\npadding: 1px;\n}\np.editor a:hover {\nborder: 1px solid red;\ntext-decoration: none;\n}\nform {\nwidth: 100%;\n}\ntextarea {\nwidth: 100%;\n}\n.inputform {\nwidth: 100%;\n}\nfieldset {\nborder: 1px gray solid;\npadding: 5px;\n}\n\ndiv.subfolders {\nclear: right;\n}\ndiv.subfolder {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\nline-height: 100%;\nwidth: 90px;\nheight: 90px;\noverflow: auto;\nborder: 1px gray solid;\npadding: 2px;\nmargin: 2px;\nfloat: left;\ntext-align: center;\n}\ndiv.path {\nbackground: lemonchiffon;\ncolor: gray;\npadding: 3px;\nmargin: 5px 0 5px 0;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\n}\ndiv.thumbnail {\nwidth: 120px;\nheight: 150px;\npadding: 2px;\nmargin: 2px;\nborder: 1px gray solid;\ntext-align: center;\n}\n\n/* advertisements */\ndiv.ad {\nmargin: 5px;\nborder: 3px gray solid;\npadding: 5px;\n}\ndiv.adtitle {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 12px;\n}\ndiv.adbody {\nfont-family: times new roman,times,serif;\nfont-size: 12pt;\ndisplay: inline;\n}\ndiv.adbody p {\ndisplay: inline;\n}\ndiv.adurl {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 10px;\n}\ndiv.adowner {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: normal;\nfont-size: 9px;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (6, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 1, 0, 'weblog', './themes/Blog1/weblog.ihtml', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### This file defines a weblog format (entries organized by day)\n### for the home page (index.php). You can either rename this file\n### to index.ihtml in the ./templates/ directory, or you can cut\n### and paste the contents of this file into a document to use as\n### an online home page.\n#!}\n{BEGIN:weblog 31 x}\n{!if ''\"{xday}\"!=\"{doc_created_mday}\"''\n    ''<h2>{doc_created_weekday}, {doc_created_month}\n    {doc_created_mday}, {doc_created_year}</h2>''\n!}\n<h3>{!if ''{doc_type}==Link''\n    ''<a href=\"{doc_link_url}\" target=\"_new\">{doc_title}</a>''\n   ''{doc_title}''\n!}\n<a href=\"{site_path}/document.php?id={doc_id}\" style=\"border:0;\">\n    <img src=\"{!icon ''document''!}\" align=\"right\"\n         border=\"0\" alt=\"\" title=\"Read entire document/add a comment\">\n</a>\n</h3>\n<p class=\"info\">\n    {!date ''h:ia T'' ''{doc_created}''!} |\n    <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>\n    {!if ''{doc_folder_id}''\n        ''| <a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\n    !}\n    | <a href=\"{site_path}/comment.php?id={doc_id}\">Comment</a>\n</p>\n{!if ''\"{doc_type}\"==\"Image\"''\n    ''<a href=\"{site_path}/document.php?id={doc_id}\">\n     <img src=\"{doc_file_50}\" border=\"0\" align=\"right\"\n        alt=\"{doc_title}\" title=\"{doc_title}\"></a>''\n!}{!if defined(doc_summary)\n    ''<p>{doc_summary}</p>''\n    ''<p>{doc_body}</p>''\n!}\n{!if ''{doc_type}==Poll''\n    ''{poll_display}''\n!}\n{!set xday ''{doc_created_mday}''!}\n{END:weblog}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (7, '2003-06-04 10:13:10', '2003-06-23 20:34:34', 2, 0, 'form', './themes/Broadpool/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n<p class=\"action\">\r\n{!if ''{folder_id}+0''\r\n    ''[<a href=\"{site_path}/folder.php?id={folder_id}\">{folder_name}</a>]''\r\n!}\r\n{!if ''{doc_folder_id}+0''\r\n    ''[<a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>]''\r\n!}\r\n{!if ''{doc_id}+0''\r\n    ''[<a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>]''\r\n!}\r\n</p>\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n<div class=\"formrow\">\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\r\n</div>\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<div class=\"formbuttons\">\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</div>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (8, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 2, 0, 'mouse.gif', './themes/Broadpool/mouse.gif', '');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (9, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 2, 0, 'page', './themes/Broadpool/page.ihtml', '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n        \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n<html lang=\"{language}\">\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n<meta name=\"generator\" content=\"Siteframe {version}\" />\n{!if defined(site_meta_keywords)\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''\n!}\n<title>{page_title}</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/print.css\"\n      media=\"print\"/>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/screen.css\"\n      media=\"screen\"/>\n{!if defined(custom_css)\n  ''<link rel=\"stylesheet\" type=\"text/css\" href=\"{custom_css}\"/>''\n!}\n{head_content}\n{rdf}\n</head>\n<body>\n\n<div id=\"title\">\n  {!if defined(logo)\n  ''<a href=\"{site_path}/\"><img src=\"{logo}\" alt=\"{site_name}\" class=\"logo\"/></a>''\n  !}\n  <a href=\"{site_path}/\">{site_name}</a>\n</div>\n\n<div id=\"subtitle\">\n  <span class=\"left\">\n  {!if defined(folder_path)\n    ''{folder_path}''\n    ''{site_description}''\n  !}\n  </span>\n  <span class=\"right\">\n  {!if defined(user_id)\n  ''{user_name}\n   <a href=\"{site_path}/user.php\">My Page</a>\n   <a href=\"{site_path}/prefs.php\">Preferences</a>''\n  ''<a href=\"{site_path}/register.php\">Register</a>\n   <a href=\"{site_path}/login.php\">Login</a>''\n  !}\n  </span>\n  &nbsp;\n</div>\n\n<div id=\"page\">\n  <div id=\"content\">\n  {folder_path}\n  {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n  {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n  {!if defined(recordset) ''{recordset}''!}\n  {body}\n    <div id=\"footer\">\n    {!if defined(footer)\n      ''{footer}''\n      ''Copyright &copy;2002, {site_name}. All Rights Reserved.''\n    !}\n    </div>\n  </div>\n</div>\n\n{!if defined(navigation) ''<div id=\"menu\">{navigation}</div>''!}\n\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (10, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 2, 0, 'popup', './themes/Broadpool/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (11, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 2, 0, 'print.css', './themes/Broadpool/print.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\n#title {\ncolor: gray;\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 24pt;\ntext-align: right;\nletter-spacing: -.05em;\n}\n#title a, #title a:visited, #title a:hover {\ncolor: white;\ntext-decoration: none;\n}\nh1,h2,h3,h4,#footer,p.author,p.info,p.subject {\nfont-family: arial,helvetica,sans-serif;\nmargin-bottom: 0;\n}\np.author,p.info {\nfont-style: italic;\nmargin: 12pt 0 24pt 0;\n}\n#content {\nfont-family: georgia,times new roman,times,serif;\nfont-size: small;\nline-height: 160%;\n}\n#footer {\nmargin-top: 1em;\nfont-size: smaller;\ncolor: gray;\n}\ndiv.Comments {\nfont-size: smaller;\nline-height: 130%;\n}\ndiv.Comments p {\nmargin: 0;\n}\ndiv.Comments p.subject {\nmargin-top: 1em;\nfont-weight: bold;\n}\np.author,p.info {\nfont-size: smaller;\n}\n\n#subtitle,#site,#menu,.action,.edit,.path,.textad,.textadblock {\ndisplay: none;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (12, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 2, 0, 'screen.css', './themes/Broadpool/screen.css', '/* screen.css\n** \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** This stylesheet is used for screen (not print) displays\n*/\nbody {\nmargin: 0;\nbackground: white;\ncolor: black;\nbackground-image: url(\"/themes/Broadpool/mouse.gif\");\nbackground-repeat: no-repeat;\nbackground-position: bottom right;\nbackground-attachment: fixed;\n}\n\n#title {\nwidth: 100%;\nbackground: royalblue;\ncolor: white;\nheight: 65px;\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 76px;\npadding: 2px 5px 2px 5px;\noverflow: hidden;\nletter-spacing: -.05em;\n}\n#title a, #title a:visited, #title a:hover {\ncolor: white;\ntext-decoration: none;\n}\n.logo {\nfloat: right;\n}\na img {\nborder: none;\n}\n\n#subtitle {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nbackground: #eeeeee;\ncolor: gray;\npadding: 2px 5px 2px 5px;\nborder-top: 2px midnightblue solid;\nborder-bottom: 2px midnightblue solid;\n}\n#subtitle .left {\nfloat: left;\n}\n#subtitle .right {\nfloat: right;\n}\n#subtitle a, #subtitle a:visited {\ncolor: dimgray;\ntext-decoration: none;\nmargin: 0 0 0 2px;\n}\n#subtitle a:hover {\ncolor: black;\n}\n#subtitle .path {\ndisplay: inline;\n}\n\n#page {\nwidth: 100%;\n}\n\n#content {\npadding: 20px 20px 10px 140px;\nfont-family: georgia,times new roman,times,serif;\nfont-size: small;\nline-height: 160%;\n}\n#footer {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: normal;\nfont-size: 11px;\ncolor: silver;\nposition: relative;\nbottom: 0;\nmargin: 20px 0 10px 0;\nline-height: 120%;\n}\n\n#menu {\nposition: absolute;\nleft: 10px;\ntop: 80px;\nwidth: 110px;\nmargin-top: 20px;\noverflow: visible;\nbackground: navajowhite;\npadding: 10px 0 10px 0;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\ncolor: gray;\n}\n#menu br {\ndisplay: none;\n}\n#menu a, #menu a:visited, #menu b {\ndisplay: block;\ntext-decoration: none;\npadding: 1px 10px 1px 10px;\n}\n#menu a:hover {\ncolor: black;\nbackground: white;\n}\n#menu b {\ncolor: black;\nfont-weight: bold;\n}\n\na {\ncolor: chocolate;\ntext-decoration: none;\n}\na:visited {\ncolor: saddlebrown;\n}\na:hover {\ntext-decoration: underline;\n}\n\nh1 {\nmargin: 0 0 20px 0;\npadding: 0 0.25em 0;\nfont: bold 2.5em arial, helvetica, sans-serif;\nline-height: 0.8em;\nborder-bottom: 1px solid silver;\ntext-align: right;\ncolor: #557;\nletter-spacing: -.05em;\n}\nh2,h3,h4 {\nfont-family: arial,helvetica,sans-serif;\ncolor: royalblue;\nclear: both;\n}\nh2 {\nborder-bottom: 1px silver solid;\nletter-spacing: -1px;\nline-height: .7em;\npadding: 10px 20px 0 0;\n}\nh3,h4 {\nmargin: 2em 0 0 0;\n}\n\ndiv.path {\ndisplay: none;\n}\n\n/* forms */\nform {\nborder-top: 2px gray dashed;\nborder-bottom: 2px gray dashed;\npadding: 20px;\nline-height: 120%;\n}\nform hr {\ndisplay: none;\n}\np.prompt {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 14px;\ncolor: gray;\nmargin-bottom: 2px;\n}\np.field {\nmargin: 2px 0 2px 0;\n}\np.doc {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: gray;\nmargin-top: 2px;\n}\ntextarea, p.doc {\nwidth: 600px;\n}\n\n/* tables */\ntable {\nborder-top: 1px gray solid;\nborder-bottom: 1px gray solid;\nclear: both;\n}\nth {\nfont-family: verdana,arial,helvetica,sans-serif;\nletter-spacing: -1px;\nfont-size: 12px;\nvertical-align: bottom;\ntext-align: left;\nborder-bottom: 1px gray solid;\ncolor: gray;\nline-height: 130%;\n}\ntd {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nvertical-align: top;\nline-height: 130%;\n}\ntd p {\nmargin: 0;\n}\ntd.listinfo {\nwhite-space: nowrap;\nfont-size: 10px;\n}\n.even {\nbackground: navajowhite;\npadding: 1px 0 1px 0;\n}\n.event_date {\nwhite-space: nowrap;\n}\n.infotable {\nborder: none;\nbackground: #eeeeee;\nwidth: 400px;\nborder-spacing: 1px;\n}\n.infotable th {\nborder: none;\nwidth: 130px;\nvertical-align: top;\n}\n.backnext table {\nborder: none;\nfloat: right;\n}\n\n.Document, .Comments {\nwidth: 600px;\n}\n.Comments {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nborder-top: 1px silver solid;\nline-height: 130%;\n}\n.Comments p {\nmargin: 0;\n}\n.Comments p.subject {\nfont-size: 12px;\nfont-weight: bold;\nmargin: 10px 0 0 0;\n}\n\np.action,p.author,p.info {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nclear: both;\nline-height: 120%;\n}\np.action a, p.action a:visited {\npadding: 1px 3px 1px 3px;\nborder: 1px silver solid;\ncolor: gray;\nmargin-right: 5px;\n}\np.action a:hover {\ncolor: black;\ntext-decoration: none;\n}\np.action a:active {\nbackground: gray;\ncolor: white;\n}\np.author,p.info {\nfont-size: 11px;\ncolor: gray;\n}\np.error {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12px;\ncolor: red;\n}\n#content small {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\ncolor: gray;\n}\n.recordset {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: black;\n}\n.recordset a {\ncolor: gray;\ntext-decoration: none;\n}\n.recordset a:visited {\ncolor: silver;\n}\n.recordset a:hover {\ncolor: red;\ntext-decoration: none;\n}\n\n.subfolders, .imageboxes {\nclear: both;\n}\ndiv.subfolder, div.picbox, div.picboxlong {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\nline-height: 100%;\nwidth: 90px;\nheight: 90px;\noverflow: auto;\nborder: 1px silver solid;\npadding: 2px;\nmargin: 2px;\nfloat: left;\ntext-align: center;\nbackground: white;\n}\ndiv.picbox {\nwidth: 110px;\nheight: 110px;\n}\ndiv.picboxlong {\nwidth: 110px;\nheight: 150px;\n}\n\n.imageframe {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: gray;\n}\n\n.pollbar {\nbackground: royalblue;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (13, '2003-06-04 10:13:10', '2003-06-23 20:39:02', 3, 0, 'form', './themes/Gray_Matter/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n<div class=\"formrow\">\r\n  {!if ''\"{input_form_type}\"==\"ignore\"''\r\n      ''{input_form_prompt}''\r\n      ''<span class=\"prompt\">{input_form_prompt}:</span>''\r\n  !}\r\n  <span class=\"field\">\r\n  {input_form_field}\r\n  {!if defined(input_form_doc) ''<span class=\"doc\">{input_form_doc}</span>''!}\r\n  </span>\r\n</div>\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<div class=\"formrow\">\r\n  <span class=\"field\">\r\n  <input type=\"submit\" value=\"Submit\"/>\r\n  <input type=\"reset\"/>\r\n  </span>\r\n</div>\r\n&nbsp;\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (14, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 3, 0, 'page', './themes/Gray_Matter/page.ihtml', '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n        \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n<html lang=\"{language}\">\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n<meta name=\"generator\" content=\"Siteframe {version}\"/>\n<title>{page_title}</title>\n<link type=\"text/css\" rel=\"stylesheet\"\n    href=\"{site_path}/themes/{theme}/print.css\"\n    media=\"print\">\n<link type=\"text/css\" rel=\"stylesheet\"\n    href=\"{site_path}/themes/{theme}/screen.css\"\n    media=\"screen\">\n{head_content}\n{rdf}\n</head>\n\n<body>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n<tr><td colspan=\"2\" id=\"title\">\n    {banner}\n    {!if defined(logo)\n        ''<a href=\"{site_path}/\"><img src=\"{logo}\" alt=\"{site_name}\" border=\"0\"/></a>''\n        ''<h1>{site_name}</h1>''\n    !}\n    <div id=\"description\">{site_description}</div>\n    </td>\n<tr><td colspan=\"2\" id=\"menu\">\n        <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td valign=\"bottom\">\n            <a href=\"{site_path}/\">Home</a> | <a href=\"{site_path}/login.php\">Login</a>\n            {!if defined(user_id)\n                ''| <a href=\"{site_path}/user.php\">My Page</a>\n                 | <a href=\"{site_path}/prefs.php\">Preferences</a>''\n            !}\n        </td><td align=\"right\">\n            <form action=\"{site_path}/search.php\" method=\"post\" class=\"searchform\">\n                Search: <input type=\"text\" name=\"searchfor\" size=\"12\"/>\n                <input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n            </form>\n        </td></tr></table>\n    </td></tr>\n<tr><td id=\"navigation\" width=\"160px\" rowspan=\"2\" valign=\"top\">\n        {!if defined(navigation)\n\n           ''{navigation}''\n\n           ''<a href=\"{site_path}/register.php\">Register</a><br/>\n            <br/>\n            <a href=\"{site_path}/search.php\">Search</a><br/>\n            <a href=\"{site_path}/users.php\">Users</a><br/>\n            <a href=\"{site_path}/folders.php\">Folders</a><br/>\n            <br/>\n            <a href=\"{site_path}/editfolder.php\">New folder</a><br/>\n            <a href=\"{site_path}/edit.php\">New document</a><br/>\n            <br/>''\n        !}\n        <br/>\n        {!if ''{gen_rss}+0''\n            ''<p style=\"text-align:center;\">\n             <a href=\"{site_path}/rss.xml\">\n             <img src=\"{site_path}/images/xml.gif\" border=\"0\" alt=\"RSS\">\n             </a></p>''\n        !}\n    </td>\n    <td id=\"content\" valign=\"top\">\n        {folder_path}\n        {!if defined(no_title) '''' ''<h2>{page_title}</h2>''!}\n        {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n        {!if defined(recordset) ''{recordset}''!}\n        {body}\n    </td></tr>\n<tr><td id=\"footer\">\n    {!if defined(footer)\n        ''{footer}''\n        ''Copyright &copy;2002, {site_name}. All Rights Reserved.''\n    !}\n    </td></tr>\n</table>\n</body>\n\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (15, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 3, 0, 'popup', './themes/Gray_Matter/popup.ihtml', '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n        \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n<html lang=\"{language}\">\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n<meta name=\"generator\" content=\"Siteframe {version}\"/>\n<title>{site_name} - {page_title}</title>\n<link type=\"text/css\" rel=\"stylesheet\"\n    href=\"{site_path}/themes/{theme}/screen.css\"\n    media=\"screen\">\n<style type=\"text/css\">\nform,.formrow { width:auto; }\ntd#content { margin:0; padding:10px; }\n.prompt { width:100%; float:none; display:block; text-align:left; }\n.field { width:100%; float:none; }\ntextarea { width:100%; }\n</style>\n{head_content}\n</head>\n<body>\n<body>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n<tr><td colspan=\"2\" id=\"title\">\n<h4>{page_title}</h4>\n</td>\n<tr><td id=\"content\" valign=\"top\">\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</td></tr></table>\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (16, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 3, 0, 'print.css', './themes/Gray_Matter/print.css', '/* print.css \n** \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** Copyright (c)2001, Broadpool, LLC. All rights reserved.\n*/\nbody {\n    margin-left: 1in;\n    margin-right: 1in;\n    font-family: helvetica,arial,sans-serif;\n    font-size: .8em;\n    line-height: 150%;\n}\n#menu,#navigation,.action,.editor,.inputform {\n    display: none;\n}\nh1 {\n    font-size: 12pt;\n    text-transform: uppercase;\n    text-align: center;\n    border-top: 1px solid black;\n    border-bottom: 1px solid black;\n    margin-bottom: .5in;\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (17, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 3, 0, 'screen.css', './themes/Gray_Matter/screen.css', '/* screen.css\n** Copyright (c)2001-2002, Broadpool, LLC. All Rights Reserved.\n** \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n*/\nbody,th,td,input,select,textarea {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\nbody {\nmargin: 0;\nwidth: 100%;\nbackground: #444444;\ncolor: gray;\n}\ninput,select,textarea {\ncolor: black;\nbackground: #dddddd;\n}\n#title {\nbackground: black;\ncolor: #dddddd;\nvertical-align: bottom;\npadding: 5px;\n}\n#description {\nbackground: black;\ncolor: #eeeeee;\nfont-family: georgia,times new roman,times,serif;\nfont-size: 14px;\nfont-weight: bold;\nfont-style: italic;\ntext-align: right;\nposition: absolute;\ntop: 5px;\nright: 5px;\nwidth: 380px;\n}\n#menu {\nfont-size: 11px;\nfont-weight: normal;\nbackground: silver;\ncolor: black;\npadding: 1px 5px 1px 5px;\nline-height: 100%;\nborder-top: 1px #eeeeee solid;\nborder-bottom: 1px black solid;\n}\n#menu td {\nvertical-align: middle;\n}\n#content {\nline-height: 150%;\ncolor: #eeeeee;\npadding: 5px 10px 5px 10px;\nmargin-left: 110px;\nheight: 100%;\noverflow: visible;\n}\n#navigation {\ncolor: gray;\nbackground: black;\nwidth: 134px;\nfont-size: 10px;\n}\n#footer {\nfont-size: 10px;\nmargin-left: 110px;\nmargin-right: 160px;\npadding: 5px 10px 5px 10px;\n}\ndiv.Comments, div.Document, table.infotable {\nwidth: 600px;\n}\n.infotable {\nmargin-top: 10px;\nmargin-bottom: 10px;\n}\nh1 {\nfont-size: 24px;\n}\nh2 {\nfont-family: arial,helvetica,sans-serif;\nfont-size: 24px;\ncolor: white;\nbackground: gray;\npadding: 5px;\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\nfont-weight: normal;\nmargin: 10px 0 20px 0;\nline-height: 120%;\n}\nh3, p.subject, th, .pollbar {\nfont-size: 12px;\nfont-weight: bold;\nline-height: 14px;\npadding: 2px;\nbackground: gray;\ncolor: white;\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\n}\nh4 {\nfont-size: 11px;\ndisplay: inline;\n}\nhr {\nheight: 1px;\ncolor: gray;\n}\np.action {\nclear: left;\nfont-size: 10px;\nline-height: 200%;\nvertical-align: middle;\ncolor: #444444;\ntext-align: left;\n}\np.action a img {\nvertical-align: middle;\n}\np.error {\ncolor: white;\nfont-weight: bold;\npadding: 10px;\nborder: 1px gray solid;\n}\np.info {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 9px;\nline-height: 120%;\nmargin: 10px 0 10px 0;\n}\np.recordset {\nfont-size: 10px;\nfont-weight: bold;\ncolor: white;\n}\np#greeting {\nfont-style: italic;\n}\n/*\nth {\ncolor: white;\nbackground: #666666;\npadding: 1px 5px 1px 5px;\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\nfont-size: 11px;\nline-height: 12px;\n}\n*/\n.infotable th {\nborder: none;\nwidth: 150px;\ntext-align: left;\nfont-size: 10px;\nline-height: 12px;\n}\ntd {\nvertical-align: top;\n}\ntd.event_date {\nwhite-space: nowrap;\n}\ntr.even {\nbackground: black;\n}\na {\ntext-decoration: none;\ncolor: ivory;\n}\na:visited {\ncolor: lemonchiffon;\n}\na:hover {\ntext-decoration: underline;\ncolor: khaki;\n}\na img {\nborder: none;\n}\n#menu a {\ncolor: black;\nfont-weight: bold;\ntext-decoration: none;\n}\n#menu a:hover {\ncolor: white;\ntext-decoration: none;\n}\n#menu form {\ndisplay: inline;\nmargin: 0;\npadding: 0;\n}\n#menu input {\nfont-size: 9px;\nwidth: 60px;\nborder: 1px black solid;\n}\n#navigation br {\ndisplay: none;\n}\n#navigation p {\nmargin: 0;\npadding: 0;\n}\n#navigation img {\nvertical-align: middle;\n}\n#navigation a, #navigation b, p.editor a, p.editor a:visited,\n.backnext a, .backnext a:visited, .infotable,\np.action a, p.action a:visited {\ntext-decoration: none;\ncolor: silver;\nbackground: #666666;\npadding: 1px 5px 1px 5px;\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\nmargin: 1px 0 1px 0;\nfont-size: 10px;\nline-height: 11px;\n}\n#navigation a, #navigation b {\ndisplay: block;\n}\n#navigation b {\ncolor: white;\nfont-size: 11px;\nline-height: 12px;\n}\np.editor a:hover, #navigation a:hover, .backnext a:hover,\np.action a:hover {\ncolor: white;\ntext-decoration: none;\n}\np.editor a:active, #navigation a:active, .backnext a:active,\np.action a:active {\ncolor: white;\n/*background: #eeeeee;*/\nborder-top: 1px black solid;\nborder-left: 1px black solid;\nborder-bottom: 1px silver solid;\nborder-right: 1px silver solid;\ntext-decoration: none;\n}\n\np.recordset a {\ncolor: #dddddd;\ntext-decoration: none;\npadding: 1px;\n}\np.recordset a:hover {\ntext-decoration: underline;\n}\n.calday {\nfont-size: 18px;\nline-height: 100%;\nmargin: 0;\npadding: 0;\ntext-align: right;\n}\n.day {\nheight: 80px;\npadding: 2px;\nborder: 1px gray solid;\nline-height: 100%;\n}\n.today {\ncolor: red;\n}\n\ndiv.edit {\nmargin: 5px;\n}\np.editor {\ntext-align: right;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: gray;\n}\n\n\nform {\nwidth: 650px;\npadding: 20px;\nborder-top: 1px black solid;\nborder-left: 1px black solid;\nborder-bottom: 1px silver solid;\nborder-right: 1px silver solid;\n}\nform.searchform {\ndisplay: inline;\nborder: none;\n}\nform#shutterfly {\ndisplay: none;\n}\n.formrow {\nclear: both;\npadding-top: 10px;\n}\n.formrow h3 {\nmargin: 5px 0 5px 0;\n}\n.prompt {\nmargin-bottom: 3px;\nwidth: 120px;\ntext-align: right;\nfont-weight: bold;\nfloat: left;\ncolor: white;\n}\n.doc {\nfont-weight: normal;\ndisplay: block;\ncolor: silver;\n}\n.field {\nwidth: 520px;\nfloat: right;\ntext-align: left;\n}\ntextarea {\nwidth: 500px;\n}\n\n\ndiv.subfolders {\nclear: right;\nwidth: 100%;\nmargin: 10px 0 10px 0;\n}\n.subfolder, .picbox, .picboxlong {\nfont-size: 10px;\ntext-align: center;\nmargin: 1px;\npadding: 1px;\nwidth: 110px;\nheight: 110px;\nfloat: left;\nline-height: 12px;\noverflow: auto;\nbackground: gray;\ncolor: white;\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\n}\n.picbox img, .picboxlong img, .imageframe img, .index img {\nborder-top: 1px silver solid;\nborder-left: 1px silver solid;\nborder-bottom: 1px black solid;\nborder-right: 1px black solid;\n}\n.picbox a:active img, .picboxlong a:active img, .imageframe a:active img,\n.index a:active img {\nborder-top: 1px black solid;\nborder-left: 1px black solid;\nborder-bottom: 1px silver solid;\nborder-right: 1px silver solid;\n}\n.picboxlong {\nheight: 140px;\n}\ndiv.path {\ncolor: white;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: normal;\nfont-size: 10px;\nline-height: 100%;\nmargin-bottom: 20px;\n}\ndiv.path a {\ncolor: linen;\ntext-decoration: none;\n}\ndiv.path a:hover {\ncolor: lightgray;\ntext-decoration: underline;\n}\n\n/* images */\n\n.imageboxes {\nwidth: 100%;\nclear: left;\nmargin: 10px 0 10px 0;\n}\n.imageboxes td {\ntext-align: center;\nfont-size: 9px;\nline-height: 100%;\nheight: 110px;\nborder: 1px gray solid;\nmargin: 1px;\npadding: 2px;\n}\n\n/* table */\n.list {\nclear: left;\n}\ntd.listinfo {\nwhite-space: nowrap;\nfont-size: smaller;\n}\n.list p {\nmargin-top: 0;\nmargin-bottom: 5px;\n}\n\n.backnext {\nfont-size: 9px;\ntext-align: center;\ntext-transform: uppercase;\nmargin: 5px 0 5px 0;\n}\n.imageframe {\ntext-align: center;\ncolor: gray;\nfont-size: 10px;\n}\n\n/* division to non-break paragraphs */\ndiv.notices {\nmargin-left: 1em;\ntext-indent: -1em;\n}\ndiv.notices p {\ndisplay: inline;\n}\n\n/* advertisements */\ndiv.ad {\nmargin: 10px 0 10px 0;\nborder: 3px darkgreen solid;\npadding: 10px;\nfont-size: 11px;\nline-height: 12px;\nbackground: burlywood;\ncolor: black;\n}\ndiv.ad a,div.ad a:visited,div.ad a:hover {\nfont-weight: bold;\ncolor: black;\ntext-decoration: none;\n}\ndiv.adtitle {\nfont-weight: bold;\ncolor: white;\n}\ndiv.adbody {\ndisplay: inline;\nfont-size: 10px;\n}\ndiv.adbody p {\ndisplay: inline;\n}\ndiv.adurl {\nfont-weight: bold;\nfont-size: 10px;\n}\ndiv.adurl a, div.adurl a:visited, div.adurl a:hover {\ncolor: maroon;\n}\ndiv.adowner {\nfont-weight: normal;\nfont-size: 9px;\n}\n.rating {\ndisplay: none;\n}\n.ahem {\ncolor: red;\ndisplay: none;\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (18, '2003-06-04 10:13:10', '2003-06-23 20:39:21', 4, 0, 'form', './themes/Magic/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n  ''{input_form_prompt}''\r\n  ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (19, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 4, 0, 'page', './themes/Magic/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n{!if defined(site_meta_keywords)\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''!}\n<meta name=\"generator\" content=\"Siteframe {version}\"/>\n<title>{page_title:STRIPTAGS}</title>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"{site_path}/themes/{theme}/print.css\"/>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"{site_path}/themes/{theme}/screen.css\"/>\n{!if defined(custom_css)\n''<link rel=\"stylesheet\" type=\"text/css\" href=\"{custom_css}\"/>''\n!}{!if defined(head_content) ''{head_content}''!}\n{rdf}\n</head>\n<body>\n\n<div id=\"site\">\n<a href=\"{site_path}/\">\n{!if defined(logo)\n''<img src=\"{logo}\" alt=\"{site_name}\"/>''\n''{site_name}''\n!}</a></div>\n\n<div id=\"content\">\n{folder_path}\n{!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{recordset}\n{body}\n</div>\n\n<div id=\"footer\">\n{footer}\n</div>\n\n{!if defined(navigation)\n''<div id=\"menu\">{navigation}</div>''\n!}\n\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (20, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 4, 0, 'popup', './themes/Magic/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (21, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 4, 0, 'print.css', './themes/Magic/print.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\r\nh1,h2,h3,h4,#footer,p.author,p.info,p.subject {\r\nfont-family: arial,helvetica,sans-serif;\r\n}\r\n#footer {\r\nmargin-top: 1em;\r\nfont-size: smaller;\r\ncolor: gray;\r\n}\r\ndiv.Comments {\r\nfont-size: smaller;\r\n}\r\ndiv.Comments p {\r\nmargin: 0;\r\n}\r\ndiv.Comments p.subject {\r\nmargin-top: 1em;\r\nfont-weight: bold;\r\n}\r\np.author,p.info {\r\nfont-size: smaller;\r\n}\r\n\r\n#menu,.action,.edit,.path,.textad,.textadblock {\r\ndisplay: none;\r\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (22, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 4, 0, 'screen.css', './themes/Magic/screen.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\nbody {\nmargin-left: 150px;\nmargin-right: 150px;\n}\n\n#site {\nfont-family: arial,helvetica,sans-serif;\nfont-size: 12px;\ntext-transform: lowercase;\ncolor: silver;\nfont-weight: bold;\nmargin-bottom: 30px;\n}\n#site a {\ncolor: silver;\ntext-decoration: none;\n}\n#site a:hover {\ncolor: #eeeeee;\ntext-decoration: none;\n}\n\n#menu, div.edit {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nline-height: 13px;\nwidth: 134px;\n}\n#menu {\nposition: absolute;\ntop: 10px;\nright: 10px;\n}\ndiv.edit {\nposition: absolute;\nright: 10px;\nline-height: auto;\n}\n#menu br {\ndisplay: none;\n}\n#menu a, #menu b, div.edit a, div.edit a:visited {\ndisplay: block;\ncolor: gray;\nbackground: #eeeeee;\npadding: 1px 5px 1px 5px;\nmargin: 1px;\ntext-decoration: none;\n}\n#menu a > img {\nbackground: white;\n}\n#menu b {\ncolor: black;\n}\n#menu a:hover, div.edit a:hover {\nbackground: silver;\ncolor: black;\ntext-decoration: none;\n}\n#menu a:hover > img {\nbackground: white;\n}\n\n#content {\nline-height: 150%;\nheight: 85%;\noverflow: visible;\n}\n\n#footer {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: silver;\nmargin: 20px 0 10px 0;\nclear: both;\n}\n\n#shutterfly {\ndisplay: none;\n}\n\na, a:visited {\ncolor: darkolivegreen;\ntext-decoration: none;\n}\na img {\nborder: none;\n}\na:hover {\ncolor: dimgray;\ntext-decoration: underline;\n}\n\ntable {\nborder: none;\n}\ntable.list {\nborder-bottom: 1px #eeeeee solid;\n}\ntable.list p {\ndisplay: inline;\n}\n.listinfo {\nwhite-space: nowrap;\n}\ntr {\nline-height: 120%;\n}\nth,td {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\nth {\ntext-align: left;\nborder-bottom: 1px #eeeeee solid;\nvertical-align: bottom;\n}\n.infotable {\nwidth: 600px;\nmargin-left: 0;\npadding-left: 0;\n}\n.infotable th {\nwidth: 150px;\nborder: none;\nvertical-align: top;\n}\n.infotable th, .infotable td {\npadding: 0 2px 0 2px;\n}\n.infotable tr {\nbackground: #eeeeee;\nmargin-left: 0;\npadding-left: 5px;\n}\ntd {\nvertical-align: top;\n}\n.even {\nbackground: #eeeeee;\n}\n\nh1,h2,h3,h4 {\nfont-family: arial,helvetica,sans-serif;\ncolor: gray;\nmargin-bottom: 5px;\n}\nh2 {\n}\nh3 {\n}\nh4 {\n}\nh1 {\nfont-weight: normal;\nmargin: 10px 0 40px 0;\n}\n\ndiv.path,p.action,p.author,p.info,p.recordset,.cfolderinfo {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\nline-height: 12px;\n}\np.action {\nclear: left;\n}\np.action a {\nmargin-right: 10px;\n}\n.event_date {\nwhite-space: nowrap;\n}\ndiv.path, div.path a, div.path a:visited {\ncolor: gray;\n}\n\nhr {\nheight: 1px;\ncolor: silver;\n}\n\nform {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12px;\nborder: 1px #eeeeee solid;\npadding: 10px 20px 20px 20px;\n}\nform hr {\ndisplay: none;\n}\nform h3 {\nbackground: #eeeeee;\npadding: 2px 5px 2px 5px;\n}\nform.cfolder {\nborder: none;\npadding: none;\n}\np.doc,textarea {\nwidth: 500px;\n}\ntextarea {\nfont-family: auto;\n}\np.doc {\nfont-size: 10px;\nline-height: 12px;\ncolor: gray;\nmargin-top: 2px;\n}\np.field {\nmargin: 0;\n}\np.prompt {\ncolor: gray;\nfont-style: italic;\nmargin-top: 10px;\nmargin-bottom: 0;\n}\n\n.notice {\nmargin-bottom: 10px;\n}\n.notice p, .notice h4 {\ndisplay: inline;\nmargin-right: 10px;\n}\n\n.subfolders,.imageboxes {\nmargin: 5px 0 5px 0;\nclear: both;\n}\n.subfolder,.picbox,.picboxlong {\ntext-align:center;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\nline-height: 12px;\nmargin: 2px;\npadding: 2px;\nborder: 1px #eeeeee solid;\nfloat: left;\n}\n.subfolder {\nwidth: 90px;\nheight: 90px;\n}\n.picbox {\nwidth: 110px;\nheight: 110px;\n}\n.picboxlong {\nwidth: 110px;\nheight: 130px;\n}\n\n.backnext a, .backnext a:hover, .backnext a:hover span {\ntext-decoration: none;\ncolor: gray;\ntext-transform: lowercase;\n}\n.backnext table {\nfloat:right;\n}\n.backnext span {\ncolor: white;\n}\n\n.Comments {\nline-height: 140%;\nfont-size: smaller;\n}\n.Comments p.subject {\nfont-family: verdana,arial,helvetica,sans-serif;\npadding-top: 2px;\nfont-weight: bold;\nmargin-top: 10px;\nmargin-bottom: 5px;\nborder-top: 1px #eeeeee solid;\n}\n.Comments p {\nmargin: 0 0 5px 0;\n}\n.Comments p.info {\nfont-family: verdana,arial,helvetica,sans-serif;\nmargin-bottom: 10px;\n}\n\nfieldset {\npadding: 20px;\n}\nfieldset * {\nmargin-top: 0;\nmargin-bottom: 5px;\n}\nlegend {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 9px;\ncolor: darkgreen;\n}\n\n\n\n.imageboxes td { }\n.imageboxes { }\n.list td p, .infotable td p { }\n.list { }\n.listinfo { }\n.subfolder, .picbox, .picboxlong { }\n.subfolder, .picboxlong { }\n.textad a, #menu .textad a { }\n.textad b { }\n.textad { }\n.textadblock { }\ndiv.Comments p { }\ndiv.Comments p.info { }\ndiv.Comments p.subject { }\ndiv.Comments { }\ndiv.ad { }\ndiv.adbody p { }\ndiv.adbody { }\ndiv.adowner { }\ndiv.adtitle { }\ndiv.adurl { }\ndiv.description { }\ndiv.image { }\ndiv.notices p { }\ndiv.notices { }\ndiv.path { }\ndiv.subfolders { }\nform { }\nform#searchform { }\nlegend { }\np.author { }\np.editor { }\np.error {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12px;\ncolor: crimson;\n}\np.imageframe {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: silver;\nline-height: 12px;\ntext-transform: lowercase;\n}\np.imageframe img {\nborder: 1px silver solid;\n}\np.recordset a { }\np.recordset { }\nspan.pollbar { }\ntable { }\ntd { }\ntd.event_date { }\nth { }\ntr { }\ntr.backnext a { }\n\n.rating {\ndisplay: none;\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (23, '2003-06-04 10:13:10', '2003-06-23 20:39:33', 5, 0, 'form', './themes/Pico/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" \r\n      action=\"{form_action}\" \r\n      name=\"{form_name}\" \r\n      enctype=\"multipart/form-data\" \r\n{form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc)\r\n''<p class=\"doc\">{input_form_doc}</p>''\r\n!}\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (24, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 5, 0, 'page', './themes/Pico/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n\n<head>\n<title>{page_title}</title>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n{!if defined(site_meta_keywords)\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''\n!}\n<meta name=\"generator\" content=\"Siteframe {siteframe_version}\"/>\n<link rel=\"stylesheet\"\n      type=\"text/css\"\n      href=\"{site_path}/themes/{theme}/screen.css\"/>\n{head_content}\n{rdf}\n</head>\n\n<body>\n\n<div id=\"page\">\n\n<div id=\"header\">\n<a href=\"{site_url}\">{!if defined(logo)\n''<img src=\"{logo}\" alt=\"{site_name}\"/>''\n''{site_name}''!}</a>\n</div><!-- header -->\n\n{!if defined(folder_path)\n''<div class=\"pagenav\">{folder_path}</div>''\n!}\n\n<div id=\"menu\">\n{navigation}\n</div>\n\n<div id=\"content\">\n{!if defined(no_title) '''' ''<h2>{page_title}</h2>'' !}\n{!if defined(error) ''<p class=\"error\">{error}</p>'' !}\n{!if defined(recordset) ''{recordset}'' !}\n{body}\n</div><!-- content -->\n\n<div id=\"footer\">\n{footer}\n</div><!-- footer -->\n\n</div><!-- page -->\n\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (25, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 5, 0, 'popup', './themes/Pico/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (26, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 5, 0, 'screen.css', './themes/Pico/screen.css', 'body {\nbackground: white;\nmargin-left: 15%;\nmargin-right: 15%;\n}\nbody, th, td, input, select {\nfont-family: Trebuchet MS, Verdana, Arial, Helvetica, Sans-Serif;\nfont-size: 12px;\ncolor: #333333;\n}\n#page {\nmargin: 0 0 10% 0;\n}\n\n#header {\nborder-bottom: 1px #dddddd solid;\ncolor: sienna;\nfont-size: 16px;\nfont-weight: bold;\n}\n#header a {\ncolor: sienna;\ntext-decoration: none;\n}\n\n#menu {\ntext-align: right;\ncolor: gray;\nmargin: 2px 0 20px 0;\nfont-size: 11px;\n}\n#menu a, #footer a {\ncolor: gray;\ntext-decoration: none;\nmargin: 0 2px 0 2px;\n}\n#menu a:hover, #footer a:hover {\ncolor: black;\n}\n\n#content {\nline-height: 200%;\n}\n#content a {\ncolor: black;\ntext-decoration: none;\n}\n#content a:visited {\ncolor: gray;\nborder-bottom: none;\n}\n#content a:hover {\ncolor: black;\ntext-decoration: underline;\nborder-bottom: none;\n}\n\n#footer {\ncolor: #dddddd;\nfont-size: 11px;\nborder-top: 1px #dddddd solid;\nmargin: 32px 0 10px 0;\ntext-align: center;\nclear: both;\n}\n\nform {\nline-height: 130%;\nbackground: #dddddd;\npadding: 20px;\n}\np.prompt {\nmargin: 0;\nfont-weight: bold;\n}\np.field {\nmargin: 0;\n}\np.doc {\nmargin-top: 0;\ncolor: gray;\nfont-size: 10px;\nline-height: 12px;\n}\n\nh1, h2 {\ntext-align: center;\n}\n\nhr {\ncolor: #dddddd;\nheight: 1px;\nclear: both;\n}\n\nimg {\nborder: none;\n}\n\ntextarea {\nwidth: 500px;\n}\n\nth, td {\nvertical-align: top;\n}\nth {\ntext-align: left;\nfont-weight: bold;\n}\n\n.action {\nfont-size: 11px;\ntext-align: center;\ncolor: gray;\nclear: both;\n}\n#content .action a:link, #content .action a:visited {\nfont-weight: bold;\nmargin: 0 4px 0 4px;\ntext-decoration: none;\ncolor: gray;\nborder: none;\n}\n#content .action a:hover {\ncolor: black;\n}\n\n.author {\nwidth: 150px;\npadding: 10px;\nbackground: #dddddd;\nfloat: right;\nmargin: 0 0 5px 10px;\nline-height: 12px;\n}\n\n.error {\nborder-top: 5px darkslateblue solid;\nborder-bottom: 5px darkslateblue solid;\npadding: 5px;\nmargin: 5px 0 20px 0;\ntext-align: center;\n}\n\n.event_date {\nwhite-space: nowrap;\n}\n\n.image {\ntext-align: center;\nmargin: 24px 0 24px 0;\n}\n\n.info {\nfont-size: 10px;\ncolor: #dddddd;\nclear: both;\ntext-align: center;\n}\n\n.odd {\nbackground: #dddddd;\npadding: 1px;\n}\n\n.pagenav {\ntext-align: left;\nfloat: left;\nfont-size: 10px;\npadding-top: 5px;\n}\n.pagenav a {\ncolor: gray;\ntext-decoration: none;\n}\n.pagenav a:hover {\ntext-decoration: none;\ncolor: black;\n}\n.backandforth {\ncolor: white;\nfont-size: 11px;\nmargin: 10px 0 10px 0;\n}\n#content .backandforth a {\ncolor: gray;\ntext-decoration: none;\n}\n#content .backandforth a:hover {\ntext-decoration: none;\ncolor: black;\n}\n#content .backandforth a span {\ncolor: white;\n}\n#content .backandforth a:hover span {\ncolor: black;\n}\n\n.picbox, .picboxlong, .subfolder {\nwidth: 120px;\nheight: 120px;\ntext-align: center;\nfont-size: 10px;\nline-height: 12px;\nfloat: left;\nborder: 1px #dddddd solid;\npadding: 4px;\nmargin: 2px;\n}\n.picboxlong {\nheight: 150px;\n}\n\n.subfolders, .imageboxes {\nclear: both;\nwidth: 100%;\nmargin-left: auto;\nmargin-right: auto;\n}\n\n.comments {\nline-height: 140%;\n}\n.comments * {\nmargin: 0;\n}\n.subject {\nfont-weight: bold;\nfont-size: 14px;\nborder-top: 1px #dddddd solid;\nmargin: 10px 0 2px 0;\n}\n.comments .info {\ntext-align: left;\n}\n\n.item p {\nmargin: .5in;\ntext-indent: -.5in;\n}\n\n.selfportrait {\ntext-align: center;\n}\n\n.description {\ntext-align: left;\n}\n\n.recordset {\nfont-size: 10px;\ncolor: black;\ntext-align: center;\n}\n#content .recordset a {\ncolor: gray;\ntext-decoration: none;\npadding: 1px;\n}\n#content .recordset a:hover {\nbackground: black;\ncolor: white;\ntext-decoration: none;\n}\n\n.pollbar {\nbackground: #dddddd;\n}\n\n@media print {\n    #header { margin-top: 0; margin-bottom: .5in; }\n    #menu { display: none; }\n    .action { display: none; }\n    .backandforth { display: none; }\n    .pagenav { display: none; }\n    body { margin: 0; }\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (27, '2003-06-04 10:13:10', '2003-06-23 20:39:46', 6, 0, 'form', './themes/Post/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n<p class=\"doc\">{input_form_doc}</p>\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"{input_form_submit}\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (28, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 6, 0, 'page', './themes/Post/page.ihtml', '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n        \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n<html lang=\"{language}\">\n<head>\n	<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\">\n	<title>{page_title}</title>\n	<meta name=\"generator\" content=\"Siteframe {version}\">\n	<meta name=\"version\" content=\"\$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\">\n	<link rel=\"stylesheet\"\n	      type=\"text/css\"\n	      href=\"{site_path}/themes/{theme}/post.css\"\n	      media=\"screen\">\n{head_content}\n{rdf}\n</head>\n<body>\n\n    <table id=\"fizbang\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n    <tr>\n        <td colspan=\"2\" id=\"title\">\n        <h1>{site_name}</h1>\n        <p id=\"dateline\">\n            {!date ''F j, Y h:ia T''!}\n        </p>\n    </tr>\n    <tr>\n        <td id=\"menu\" rowspan=\"2\" nowrap>\n            {!if defined(navigation)\n                ''{navigation}''\n                ''<a href=\"{site_path}/\">Home</a><br>\n                 <a href=\"{site_path}/login.php\">Login</a><br>\n                 <a href=\"{site_path}/register.php\">Register</a><br>\n                 <a href=\"{site_path}/user.php\">My Page</a><br>\n                 <a href=\"{site_path}/prefs.php\">Preferences</a><br>\n                 <br>\n                 <a href=\"{site_path}/edit.php\">New document</a><br>\n                 <a href=\"{site_path}/editfolder.php\">New folder</a><br>\n                 <br>\n                 <a href=\"{site_path}/search.php\">Search</a><br>\n                 <a href=\"{site_path}/users.php\">Users</a><br>\n                 <a href=\"{site_path}/folders.php\">Folders</a><br>\n                 <a href=\"{site_path}/month.php\">Calendar</a><br>\n                 <br>''\n            !}\n        </td>\n        <td id=\"content\">\n            {folder_path}\n            {!if defined(no_title)  '''' ''<h2>{page_title}</h2>'' !}\n            {!if defined(error)     ''<p class=\"error\">{error}</p>'' '''' !}\n            {!if defined(recordset) ''{recordset}'' '''' !}\n            {body}\n        </td>\n    </tr>\n    <tr>\n        <td id=\"footer\">\n        {!if defined(footer)\n            ''{footer}''\n            ''Copyright &copy;2001, {site_name}. All rights reserved.\n             Contents may not be reproduced without the express written permission\n             of the copyright holder.''\n        !}\n        </td>\n    </tr>\n    </table>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (29, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 6, 0, 'popup', './themes/Post/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (30, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 6, 0, 'post.css', './themes/Post/post.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** \"Post\" theme stylesheet\n*/\nbody, td {\n    font-family: times new roman,times,georgia,serif;\n}\ntd {\n    vertical-align: top;\n}\ninput, select, textarea {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 11px;\n}\na {\n    color: #333366;\n    text-decoration: underline;\n}\ndt {\n    font-weight: bold;\n    margin-top: 5px;\n}\na:visited {\n    color: #333366;\n    text-decoration: none;\n}\na:hover {\n    color: red;\n    text-decoration: underline;\n}\n#fizbang {\n    width: 740px;\n    margin: auto;\n}\n#footer {\n    font-size: x-small;\n    padding: 5px;\n    border-right: 2px #333366 solid;\n    border-bottom: 2px #333366 solid;\n}\n#menu {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    font-weight: bold;\n    background: #333366;\n    color: gray;\n    padding: 2px;\n    white-space: nowrap;\n}\n#menu a {\n    color: white;\n    padding: 1px;\n    text-decoration: none;\n}\n#menu a:hover {\n    color: navy;\n    background: white;\n}\n#content {\n    padding: 5px;\n    border-right: 2px #333366 solid;\n}\n#title {\n    background: #333366;\n    color: white;\n    font-family: arial,helvetica,sans-serif;\n    padding: 5px;\n}\nh1 {\n    font-size: 36px;\n    font-weight: bold;\n    margin-top: 0;\n    margin-bottom: 0;\n    line-height: 100%;\n    border-bottom: 1px red solid;\n}\nh2, h3, h4 {\n    font-weight: normal;\n}\nh3 {\n    margin-bottom: 0;\n    padding-bottom: 0;\n    border-top: 1px red solid;\n}\nh4 {\n    margin-top: 5px;\n    font-weight: bold;\n    display: run-in;\n}\np#dateline {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    font-weight: bold;\n    color: #dddddd;\n    padding: 0;\n    margin: 0;\n}\np#greeting {\n    font-family: arial,helvetica,sans-serif;\n    font-weight: bold;\n}\n.action {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    font-weight: bold;\n}\n.author {\n    font-size: smaller;\n}\n.box {\n    width: 20%;\n    border: 1px #dddddd solid;\n    margin: 2px;\n    padding: 3px;\n    float: right;\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n}\n.calday {\n    font-size: 18px;\n    text-align: right;\n    line-height: 100%;\n    margin: 0;\n    padding: 0;\n}\n.day {\n    height: 70px;\n    padding: 2px;\n    border: 1px navy solid;\n}\n.error {\n    color: red;\n    font-weight: bold;\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    border: 1px dashed red;\n    padding: 5px;\n}\n.event_date {\n    white-space: nowrap;\n}\n.imageframe {\n    font-size: smaller;\n    background: #333366;\n    color: white;\n    text-align: center;\n    padding: 10px;\n}\n.info {\n    font-size: x-small;\n    margin: 0;\n    margin-top: 0;\n}\n.recordset {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    font-weight: bold;\n    color: gray;\n}\n.today {\n    background: black;\n    color: white;\n    padding: 2px;\n}\n\ndiv.edit {\n    margin: 5px;\n}\np.editor {\n    text-align: center;\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    font-weight: bold;\n    color: gray;\n}\np.editor a {\n    text-decoration: none;\n    border: 1px red double;\n    padding: 1px;\n    margin: 1px;\n}\np.editor a:hover {\n    background: black;\n    color: white;\n}\ndiv.subfolders {\n    clear: right;\n}\ndiv.subfolder {\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n    line-height: 100%;\n    width: 90px;\n    height: 90px;\n    overflow: auto;\n    border: 1px gray solid;\n    padding: 2px;\n    margin: 2px;\n    float: left;\n    text-align: center;\n}\ndiv.path {\n    background: lemonchiffon;\n    color: gray;\n    padding: 3px;\n    margin: 5px 0 5px 0;\n    font-family: verdana,arial,helvetica,sans-serif;\n    font-size: 10px;\n}\n\n/* advertisements */\ndiv.ad {\nmargin: 5px;\nborder: 3px gray solid;\npadding: 5px;\n}\ndiv.adtitle {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 12px;\n}\ndiv.adbody {\nfont-family: times new roman,times,serif;\nfont-size: 12pt;\ndisplay: inline;\n}\ndiv.adbody p {\ndisplay: inline;\n}\ndiv.adurl {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 10px;\n}\ndiv.adowner {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: normal;\nfont-size: 9px;\n}\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (31, '2003-06-04 10:13:10', '2003-06-24 13:58:49', 7, 0, 'form', './themes/Simple/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"{input_form_submit}\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (32, '2003-06-04 10:13:10', '2003-06-24 13:59:34', 7, 0, 'page', './themes/Simple/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\r\n<head>\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\">\r\n<meta name=\"generator\" content=\"Siteframe {version}\">\r\n{!if defined(site_meta_keywords)\r\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''\r\n!}\r\n    <title>{page_title}</title>\r\n    <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"\r\n          href=\"{site_path}/themes/{theme}/style.css\"/>\r\n    {!if defined(custom_css)\r\n        ''<style type=\"text/css\">\r\n         @import url({custom_css});\r\n         </style>''\r\n    !}\r\n    {!if defined(head_content) ''{head_content}''!}\r\n{rdf}\r\n</head>\r\n<body>\r\n{!if defined(logo)\r\n    ''<div id=\"logo\"><a href=\"{site_path}/\"\r\n     ><img src=\"{logo}\" border=\"0\"\r\n           alt=\"{site_name}\" title=\"{site_name}\"/></a>\r\n     </div>''\r\n!}\r\n<table id=\"title\">\r\n<tr>\r\n    <td class=\"sitename\">\r\n    {!if defined(site_description)\r\n        ''{site_description}''\r\n        ''{site_name}''\r\n    !}\r\n    </td>\r\n    <td class=\"links\">\r\n    {!if defined(user_id)\r\n        ''{user_name} |''\r\n    !}\r\n    <a href=\"{site_path}/\">Home</a>\r\n    {!if defined(user_id)\r\n        ''| <a href=\"{site_path}/user.php\">My Page</a>\r\n         | <a href=\"{site_path}/prefs.php\">Preferences</a>''\r\n        ''| <a href=\"{site_path}/login.php\">Login</a>\r\n         | <a href=\"{site_path}/register.php\">Register</a>''\r\n    !}\r\n    {!if ''{gen_rss}+0''\r\n        ''| <a href=\"{site_path}/rss.xml\">\r\n         <img src=\"{site_path}/images/xml.gif\" border=\"0\" alt=\"RSS\" style=\"vertical-align:middle;\"/>\r\n         </a>''\r\n    !}\r\n    </td>\r\n</tr>\r\n</table>\r\n<table style=\"border:0; width:100%;\"><tr>\r\n{!if defined(navigation)\r\n    ''<td id=\"menu\">\r\n    {navigation}\r\n    </td>''\r\n!}\r\n<td id=\"page\">\r\n    {!if defined(folder_path)\r\n      ''{folder_path}''\r\n      ''<div class=\"path\">&nbsp;</div>''\r\n    !}\r\n    {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\r\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\r\n    {recordset}\r\n    <div id=\"content\">\r\n    {body}\r\n    </div>\r\n    <div id=\"footer\">\r\n    {!if defined(footer) ''{footer}''\r\n        ''&copy;2002, {site_name}. All Rights Reserved.''!}\r\n    </div>\r\n</td></tr></table>\r\n</body>\r\n</html>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (33, '2003-06-04 10:13:10', '2003-06-24 14:00:12', 7, 0, 'popup', './themes/Simple/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<html>\r\n<head>\r\n<title>{page_title}</title>\r\n<style type=\"text/css\">\r\nbody, th, td {\r\nfont-family:verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\n}\r\n.prompt,.field,.doc,p {\r\nmargin: 0;\r\ndisplay: block;\r\n}\r\n.prompt {\r\nfont-weight: bold;\r\n}\r\n.doc {\r\nmargin-bottom: 5px;\r\ncolor: gray;\r\nfont-size: 10px;\r\n}\r\n.button {\r\nfont-size: 9px;\r\n}\r\ntextarea {\r\nwidth: 350px;\r\n}\r\nform {\r\nmargin: 5px 0 0 0;\r\n}\r\nh4 {\r\nfont-family: arial,helvetica,sans-serif;\r\nmargin: 0;\r\nbackground: silver;\r\npadding: 2px;\r\n}\r\n.error {\r\ncolor: red;\r\nfont-style: italic;\r\nmargin: 10px 0 10px 0;\r\n}\r\n</style>\r\n</head>\r\n<body>\r\n<h4>{page_title}</h4>\r\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\r\n{body}\r\n<p class=\"button\">\r\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\r\n</p>\r\n</body>\r\n</html>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (34, '2003-06-04 10:13:10', '2003-06-24 14:00:52', 7, 0, 'style.css', './themes/Simple/style.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\r\n** Copyright (c)2002, Broadpool, LLC. All Rights Reserved.\r\n*/\r\nbody,th,td,input,select,textarea {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\n}\r\nbody {\r\nbackground: white;\r\ncolor: black;\r\n}\r\ntd {\r\nvertical-align: top;\r\n}\r\ntable#title {\r\npadding: 2px;\r\nbackground: #dddddd;\r\nmargin-top: 5px;\r\nwidth: 100%;\r\nfont-size: 11px;\r\n}\r\n#content {\r\nline-height: 150%;\r\n}\r\n#footer {\r\ncolor: gray;\r\nfont-size: 10px;\r\nmargin-top: 10px;\r\npadding-top: 5px; \r\n}\r\n#page {\r\nbackground: white;\r\nmargin-left: 20px;\r\npadding: 10px;\r\n}\r\n#menu {\r\nbackground: #dddddd;\r\npadding: 10px;\r\nwhite-space: nowrap;\r\nwidth: 120px;\r\nmargin-right: 20px;\r\nline-height: 14px;\r\n}\r\n#menu a {\r\n}\r\n#menu p {\r\nmargin-top: 0;\r\nmargin-bottom: 0;\r\n}\r\n\r\ndiv.edit {\r\n}\r\np.editor {\r\nfloat: right;\r\nfont-weight: bold;\r\nfont-size: 9px;\r\nbackground: #f5f5dc;\r\ncolor: gray;\r\nborder: 1px gray solid;\r\nborder-right: 6px gray solid;\r\npadding: 2px;\r\n}\r\np.editor a {\r\ntext-decoration: none;\r\ncolor: gray;\r\n}\r\np.editor a:hover {\r\ntext-decoration: none;\r\ncolor: red;\r\n}\r\n\r\nform {\r\nborder: 1px gray solid;\r\npadding: 5px;\r\nbackground: #eeeeee;\r\n}\r\ntextarea {\r\nwidth: 90%;\r\n}\r\ndiv.image {\r\n}\r\np.imageframe {\r\nborder: 1px gray solid;\r\npadding: 10px;\r\ntext-align: center;\r\n}\r\ndiv.Comments {\r\n}\r\np.subject {\r\nfont-weight: bold;\r\nmargin: 0;\r\n}\r\n.Comments p {\r\nmargin-top: 0;\r\nmargin-bottom: 5px;\r\n}\r\n.Comments p.info {\r\nmargin-bottom: 20px;\r\n}\r\n\r\np.prompt {\r\nfont-weight: bold;\r\nmargin-bottom: 0;\r\nmargin-top: 5px;\r\n}\r\np.field {\r\nmargin: 0;\r\npadding-left: 10px;\r\n}\r\np.doc {\r\nmargin-top: 0;\r\ncolor: gray;\r\n}\r\np.info,.rating {\r\nfont-size: 10px;\r\nmargin-top: 0;\r\nmargin-bottom: 0;\r\n}\r\ntd p {\r\nmargin-top: 0;\r\nmargin-bottom: 5px;\r\n}\r\nh1, h2, h3, h4 {\r\nfont-family: helvetica,arial,verdana,sans-serif;\r\n}\r\nh1 {\r\nmargin: 0 0 30px 0;\r\n}\r\nh2 {\r\nline-height: 1em;\r\n}\r\nh3 {\r\n}\r\nh4 {\r\nfont-size: 12px;\r\n}\r\nh4+p {\r\nmargin-top: 0;\r\npadding-top: 0;\r\n}\r\n\r\nhr {\r\nheight: 1px;\r\ncolor: gray;\r\n}\r\n\r\ndiv.Document {\r\nwidth: 600px;\r\n}\r\n\r\np.action {\r\nfont-size: 11px;\r\nmargin: 10px 0 10px 0;\r\nclear: both;\r\ncolor: gray;\r\n}\r\np.action a {\r\ncolor: darkgreen;\r\n}\r\np.action a:hover {\r\ncolor: red;\r\ntext-decoration: underline;\r\n}\r\n\r\nlegend {\r\nfont-size: 10px;\r\n}\r\nfieldset {\r\npadding: 5px;\r\nborder: 1px gray solid;\r\n}\r\n\r\nth {\r\nbackground: #dddddd;\r\n}\r\ntd.day {\r\nheight: 100px;\r\nborder: 1px gray solid;\r\n}\r\np.calday {\r\nfont-size: 12px;\r\nfont-weight: bold;\r\ntext-align: right;\r\n}\r\n.today {\r\ncolor: red;\r\n}\r\n\r\n.pollbar {\r\nbackground: navy;\r\n}\r\n.recordset {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 9px;\r\ncolor: gray;\r\n}\r\n.sitename {\r\nfont-weight: bold;\r\nfont-size: larger;\r\n}\r\n.links {\r\nfont-size: smaller;\r\ntext-align: right;\r\nvertical-align: bottom;\r\n}\r\n.error {\r\nbackground: #dddddd;\r\nfont-weight: bold;\r\ncolor: red;\r\npadding: 5px;\r\nmargin-left: 10%;\r\nmargin-right: 10%;\r\nmargin-top: 24px;\r\nmargin-bottom: 24px;\r\n}\r\n.event_date {\r\nwhite-space: nowrap;\r\n}\r\n.even{\r\nbackground: #eeeeee;\r\n}\r\n.infotablewrapper {\r\ntext-align: center;\r\n}\r\n.infotable {\r\nborder: 1px gray solid;\r\nwidth: 600px;\r\nmargin-left: auto;\r\nmargin-right: auto;\r\n}\r\n.infotable th {\r\nwidth: 150px;\r\n}\r\n.infotable tr {\r\nbackground: #eeeeee;\r\n}\r\n.infotable * {\r\ntext-align: left;\r\n}\r\n/* links */\r\na {\r\ntext-decoration: none;\r\ncolor: navy;\r\n}\r\na:hover {\r\ntext-decoration: underline;\r\ncolor: red;\r\n}\r\n.sidebar {\r\nfloat:right;\r\npadding:10px;\r\nmargin: 0 10px;\r\n}\r\n.formdiv {\r\nwidth:100%;\r\nmargin:0;\r\n}\r\ndiv.subfolders {\r\nclear: right;\r\n}\r\ndiv.subfolder, div.picbox, div.picboxlong {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\nline-height: 100%;\r\nwidth: 90px;\r\nheight: 90px;\r\noverflow: auto;\r\nborder: 1px gray solid;\r\npadding: 2px;\r\nmargin: 2px;\r\nfloat: left;\r\ntext-align: center;\r\n}\r\ndiv.picbox {\r\nwidth: 110px;\r\nheight: 110px;\r\n}\r\ndiv.picboxlong {\r\nwidth: 110px;\r\nheight: 150px;\r\n}\r\ndiv.path {\r\ncolor: gray;\r\nmargin: 5px 0 5px 0;\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\n}\r\n\r\ndiv.notices {\r\nborder-right: 5px darkslateblue solid;\r\npadding-right: 10px;\r\ncolor: darkslategray;\r\n}\r\ndiv.notice {\r\ntext-indent: 1em;\r\n}\r\ndiv.notice p {\r\ndisplay: inline;\r\n}\r\n\r\n/* advertisements */\r\ndiv.ad {\r\nmargin: 5px;\r\nborder: 3px gray solid;\r\npadding: 5px;\r\n}\r\ndiv.adtitle {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-weight: bold;\r\nfont-size: 12px;\r\n}\r\ndiv.adbody {\r\nfont-family: times new roman,times,serif;\r\nfont-size: 12pt;\r\ndisplay: inline;\r\n}\r\ndiv.adbody p {\r\ndisplay: inline;\r\n}\r\ndiv.adurl {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-weight: bold;\r\nfont-size: 10px;\r\n}\r\ndiv.adowner {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-weight: normal;\r\nfont-size: 9px;\r\n}\r\n\r\ndiv.path {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\nmargin: 0 0 20px 0;\r\ncolor: gray;\r\n}\r\ndiv.path a {\r\ncolor: black;\r\n}\r\ndiv.path a:hover {\r\ncolor: gray;\r\n}\r\n\r\nh2.date {\r\nfont-size: 12px;\r\ncolor: gray;\r\nmargin: 20px 0 10px 0;\r\n}\r\nh3.title {\r\nfont-size: 18px;\r\nmargin: 10px 0 5px 0;\r\n}\r\n\r\n.even { background: #dddddd; }\r\n.odd  { background: white; }\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (35, '2003-06-04 10:13:10', '2003-06-23 20:38:19', 9, 0, 'form', './themes/TextBased/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n<p class=\"doc\">{input_form_doc}</p>\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"{input_form_submit}\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (36, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 9, 0, 'page', './themes/TextBased/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n{!if defined(site_meta_keywords)\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''!}\n<meta name=\"generator\" content=\"Siteframe {version}\"/>\n<title>{page_title:STRIPTAGS}</title>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\" href=\"{site_path}/themes/{theme}/print.css\"/>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"{site_path}/themes/{theme}/screen.css\"/>\n{!if defined(custom_css)\n''<link rel=\"stylesheet\" type=\"text/css\" href=\"{custom_css}\"/>''\n!}\n{!if defined(head_content) ''{head_content}''!}\n{rdf}\n</head>\n<body>\n{!if defined(page_width) ''<div style=\"width:{page_width};\">''!}\n<table id=\"page\">\n<tr>\n  <td id=\"site\">\n    {!if defined(logo)\n    ''<a href=\"{site_path}/\"><img src=\"{logo}\" class=\"logo\" alt=\"{site_name}\"\n        title=\"{site_name}: {site_description}\"/></a>''\n    ''<a href=\"{site_path}/\">{site_name}</a>''\n    !}\n  </td>\n  <td id=\"title\">\n    {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n    {!if defined(alt_title) ''<h1>{alt_title}</h1>''!}\n  </td>\n</tr>\n<tr>\n  <td id=\"menu\">\n    <p>Menu<br/>\n    {navigation}\n    <form id=\"searchform\" action=\"/search.php\" method=\"post\">\n    <i>Find on this site:</i>\n    <input type=\"text\" maxsize=\"250\" name=\"searchfor\" value=\"\" class=\"small\"/>\n    <input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n    <input type=\"submit\" value=\"Search\"/>\n    </form>\n  </td>\n  <td id=\"content\" rowspan=\"2\">\n    {folder_path}\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n    {recordset}\n    {body}\n  </td>\n</tr>\n</table>\n<div id=\"footer\">\n{!if defined(footer) ''{footer}''\n''Copyright &copy;2002, {site_name}. All Rights Reserved.''!}\n</div>\n{!if defined(page_width) ''</div>''!}\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (37, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 9, 0, 'popup', './themes/TextBased/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (38, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 9, 0, 'print.css', './themes/TextBased/print.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\r\nh1,h2,h3,h4,#footer,p.author,p.info,p.subject {\r\nfont-family: arial,helvetica,sans-serif;\r\n}\r\n#footer {\r\nmargin-top: 1em;\r\nfont-size: smaller;\r\ncolor: gray;\r\n}\r\ndiv.Comments {\r\nfont-size: smaller;\r\n}\r\ndiv.Comments p {\r\nmargin: 0;\r\n}\r\ndiv.Comments p.subject {\r\nmargin-top: 1em;\r\nfont-weight: bold;\r\n}\r\np.author,p.info {\r\nfont-size: smaller;\r\n}\r\n\r\n#site,#menu,.action,.edit,.path,.textad,.textadblock {\r\ndisplay: none;\r\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (39, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 9, 0, 'screen.css', './themes/TextBased/screen.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** Copyright (c)2002, Broadpool, LLC. All Rights Reserved.\n*/\nbody {\nbackground: white;\ncolor: black;\nmargin: 10px;\n}\nh1,h2,h3,h4 {\nfont-family: arial,helvetica,sans-serif;\n}\nh2 {\nbackground: powderblue;\npadding: 2px;\nfont-size: 16px;\n}\nh3 {\nfont-size: 14px;\n}\nh4 {\nfont-size: 12px;\n}\na span {\ntext-decoration: none;\n}\na:hover span {\ncolor: black;\n}\na img {\nborder: none;\n}\nimg {\nborder: none;\n}\ntr.backnext a {\ntext-decoration: none;\n}\n\n/* major divisions */\n\n#page {\nwidth: 100%;\nborder: none;\nmargin: 0;\npadding: 0;\nborder-collapse: collapse;\nborder-spacing: 0;\n}\n#page tr {\nmargin: 0;\n}\n#page td {\nvertical-align: top;\n}\n#site,#menu {\nwidth: 140px;\npadding-right: 10px;\n}\n#menu {\npadding-bottom: 10px;\n}\n#title,#content {\npadding-left: 10px;\nborder-left: 1px silver solid;\n}\n#content {\npadding-bottom: 10px;\n}\n#footer {\nborder-top: 1px silver solid;\npadding-top: 3px;\ncolor: silver;\nclear:both;\n}\n\n#logo img {\nborder: none;\nmargin: 0;\n}\n#menu #logo a {\npadding: 0;\n}\n#menu p {\nmargin-bottom: 10px;\n}\n#site {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: larger;\n}\n#site a {\ncolor: black;\ntext-decoration: none;\n}\nh1 {\nbackground: beige;\npadding: 2px;\nfont-size: 18px;\nmargin: 0 0 20px 0;\n}\n#menu,#footer {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\n}\n#menu p {\nmargin-top: 0;\nfont-weight: bold;\n}\n#menu a {\npadding-left: 10px;\nfont-weight: normal;\n}\n\n/* paragraphs */\n\np.action,p.author,p.info,p.recordset {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\nclear: left;\n}\np.action {\ntext-align: center;\nmargin: 10px 0 10px 0;\n}\np.action a {\npadding: 0 10px 0 10px;\n}\np.author {\ncolor: gray;\nfont-weight: bold;\n}\ndiv.edit {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\nbackground: lemonchiffon;\npadding: 3px;\ntext-align: center;\nfont-weight: bold;\nmargin: 20px 20% 20px 20%;\nclear: left;\n}\np.editor {\nmargin: 0;\n}\np.error {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\nbackground: khaki;\npadding: 10px;\n}\np.recordset {\ncolor: gray;\npadding: 2px;\nbackground: mintcream;\nfont-weight: bold;\ntext-align: center;\n}\np.recordset a {\nfont-weight: normal;\ncolor: black;\n}\n\n/* forms */\n\np.prompt {\nmargin-bottom: 2px;\nmargin-top: 10px;\nfont-weight: bold;\n}\np.field {\nmargin-top: 2px;\nmargin-bottom: 2px;\n}\np.doc {\nfont-size: smaller;\nmargin-top: 2px;\n}\np.doc,textarea {\nwidth: 500px;\n}\n#shutterfly {\ndisplay: none;\nborder: none;\n}\nform#searchform {\nwidth: auto;\nbackground: #eeeeee;\npadding: 10px;\nborder: none;\ntext-align: center;\nfont-size: 10px;\nmargin: 10px 0 10px 0;\n}\n#searchform input {\nfont-size: 10px;\n}\n#searchform input.small {\nwidth: 100px;\ndisplay: block;\n}\n\n\n/* tables */\n\ntable {\nmargin: 10px 0 10px 0;\n}\n.list {\nborder-top: 1px silver solid;\nborder-bottom: 1px silver solid;\nclear: left;\n}\n.listinfo {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\nwhite-space: nowrap;\n}\n.infotablewrapper {\n/* unfortunately, this is required for Internet Explorer */\ntext-align: center;\n}\n.infotable {\npadding: 5px;\nwidth: 600px;\n/* this centers the table on compliant browsers */\nmargin-left: auto;\nmargin-right: auto;\n}\n.infotable * {\ntext-align: left;\n}\n.infotable tr {\nbackground: whitesmoke;\n}\n.infotable th {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\nborder: none;\ntext-align: left;\nwidth: 150px;\n}\n.even {\nbackground: whitesmoke;\n}\nth {\nborder-bottom: 1px silver solid;\n}\ntd {\nvertical-align: top;\n}\n.list td p, .infotable td p {\nmargin: 0;\n}\ntr {\npadding: 2px;\n}\n.backnext {\ntext-align: right;\n}\n.backnext a {\ntext-decoration: none;\n}\n.backnext table {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\nfont-weight: bold;\n}\ntd.event_date {\nwhite-space: nowrap;\n}\n\n/* folders */\n\ndiv.subfolders {\nwidth: 100%;\nclear: right;\n}\n/* see .subfolder, below */\ndiv.path {\nbackground: oldlace;\npadding: 2px;\nmargin-bottom: 20px;\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\n}\n\n/* comments */\n\ndiv.Comments {\nmargin: 10px 0 10px 0;\nbackground: #eeeeee;\npadding: 0 10px 0 10px;\n}\ndiv.Comments p {\nmargin 0;\n}\ndiv.Comments p.subject {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\npadding-top: 10px;\n}\ndiv.Comments p.info {\npadding-bottom: 10px;\ncolor: gray;\n}\n\n/* polls */\n\nspan.pollbar {\nborder: 1px black solid;\nbackground: paleturquoise;\n}\n\n/* images */\n\ndiv.image {\ntext-align: center;\ncolor: gray;\n}\ndiv.description {\ncolor: black;\n}\np.imageframe {\nfont-size: smaller;\n}\n.subfolder, .picbox, .picboxlong {\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\ntext-align: center;\nmargin: 1px;\npadding: 1px;\nwidth: 110px;\nheight: 110px;\nfloat: left;\nborder: 1px palegoldenrod solid;\noverflow: auto;\n}\n.subfolder, .picboxlong {\nheight: 140px;\n}\n\n/* imageboxes - table class to hold images */\n.imageboxes {\nclear: both;\nmargin: 10px 0 10px 0;\nwidth: 100%;\n}\n.imageboxes td {\ntext-align: center;\nheight: 110px;\nfont-family: arial,helvetica,sans-serif;\nfont-size: smaller;\n}\n\n/* miscellaneous */\n\nhr {\nheight: 1px;\ncolor: rosybrown;\n}\nlegend {\nfont-family: arial,helvetica,sans-serif;\nfont-size: 10px;\n}\n\n/* text ads */\n\n.textadblock {\nfont-family: arial,helvetica,sans-serif;\nfont-size: 12px;\nfloat: right;\nwidth: 150px;\nmargin-left: 10px;\npadding-left: 10px;\nborder-left: 1px silver solid;\n}\n.textad {\nfont-family: arial,helvetica,sans-serif;\nfont-size: 12px;\nbackground: mintcream;\nborder: 1px palegreen solid;\nmargin: 10px 0 10px 0;\npadding: 5px;\ncolor: gray;\ntext-align: left;\nwidth: 140px;\n}\n.textad a, #menu .textad a {\ntext-decoration: none;\npadding: 0;\n}\n.textad b {\ncolor: black;\ndisplay: block;\n}\n\ndiv.notices {\nmargin-left: 1em;\ntext-indent: -1em;\n}\ndiv.notices p {\ndisplay: inline;\n}\n\n/* advertisements */\ndiv.ad {\nmargin: 5px;\nborder: 3px gray solid;\npadding: 5px;\n}\ndiv.adtitle {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 12px;\n}\ndiv.adbody {\nfont-family: times new roman,times,serif;\nfont-size: 12pt;\ndisplay: inline;\n}\ndiv.adbody p {\ndisplay: inline;\n}\ndiv.adurl {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 10px;\n}\ndiv.adowner {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-weight: normal;\nfont-size: 9px;\n}\n\n.rating {\ndisplay: none;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (40, '2003-06-04 10:13:10', '2003-06-26 22:17:35', 10, 0, 'form', 'themes/Two-Column/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n<p class=\"action\">{!if ''{doc_folder_id}+0''\r\n    ''[<a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>]''\r\n!}\r\n{!if ''{doc_id}+0''\r\n    ''[<a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>]''\r\n!}\r\n</p>\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (41, '2003-06-04 10:13:10', '2003-06-26 22:17:45', 10, 0, 'page', 'themes/Two-Column/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\r\n<head>\r\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\r\n<title>{page_title}</title>\r\n<meta name=\"generator\" content=\"Siteframe {version}\"/>\r\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\"\r\n      href=\"{site_path}/themes/{theme}/print.css\"/>\r\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"\r\n      href=\"{site_path}/themes/{theme}/style.css\"/>\r\n{!if defined(custom_css)\r\n    ''<style type=\"text/css\">\r\n     @import url({custom_css});\r\n     </style>''\r\n!}\r\n{head_content}\r\n{rdf}\r\n</head>\r\n<body>\r\n<div id=\"header\">\r\n    <p>\r\n    <a href=\"{site_path}/\">Home</a> &bull;\r\n    {!if defined(user_id)\r\n        ''{user_name} &bull; <a href=\"{site_path}/user.php\">My Page</a>\r\n         &bull; <a href=\"{site_path}/prefs.php\">Preferences</a>''\r\n        ''<a href=\"{site_path}/login.php\">Login</a> &bull;\r\n         <a href=\"{site_path}/register.php\">Register</a>''\r\n    !}</p>\r\n</div>\r\n<div id=\"left\">\r\n    {!if defined(logo)\r\n        ''<a href=\"{site_path}/\" title=\"{site_name}\"\r\n        ><img src=\"{logo}\" alt=\"{site_name}\" border=\"0\"\r\n        ></a>''\r\n        ''<p class=\"title\">{site_name}</p>''\r\n    !}\r\n    {folder_path}\r\n    {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\r\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\r\n    {!if defined(recordset) ''{recordset}''!}\r\n    {body}\r\n</div>\r\n<div id=\"right\">\r\n    <b>Menu</b><br/>\r\n    {navigation}\r\n    {!if ''{gen_rss}+0''\r\n        ''<div style=\"text-align:center;\">\r\n         <a href=\"{site_path}/rss.xml\">\r\n         <img src=\"{site_path}/images/xml.gif\" border=\"0\" alt=\"RSS\"/></a>\r\n         </div>''\r\n    !}\r\n    <div id=\"footer\">\r\n    {!if defined(footer)\r\n        ''{footer}''\r\n        ''&copy;2003, {site_name}. All rights reserved.''\r\n    !}</div>\r\n</div>\r\n</body>\r\n</html>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (42, '2003-06-04 10:13:10', '2003-06-26 22:17:52', 10, 0, 'popup', 'themes/Two-Column/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<html>\r\n<head>\r\n<title>{page_title}</title>\r\n<style type=\"text/css\">\r\nbody, th, td {\r\nfont-family:verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\n}\r\n.prompt,.field,.doc,p {\r\nmargin: 0;\r\ndisplay: block;\r\n}\r\n.prompt {\r\nfont-weight: bold;\r\n}\r\n.doc {\r\nmargin-bottom: 5px;\r\ncolor: gray;\r\nfont-size: 10px;\r\n}\r\n.button {\r\nfont-size: 9px;\r\n}\r\ntextarea {\r\nwidth: 350px;\r\n}\r\nform {\r\nmargin: 5px 0 0 0;\r\n}\r\nh4 {\r\nfont-family: arial,helvetica,sans-serif;\r\nmargin: 0;\r\nbackground: tan;\r\npadding: 2px;\r\n}\r\n.error {\r\ncolor: red;\r\nfont-style: italic;\r\nmargin: 10px 0 10px 0;\r\n}\r\n</style>\r\n</head>\r\n<body>\r\n<h4>{page_title}</h4>\r\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\r\n{body}\r\n<p class=\"button\">\r\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\r\n</p>\r\n</body>\r\n</html>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (43, '2003-06-04 10:13:10', '2003-06-26 22:17:58', 10, 0, 'print.css', 'themes/Two-Column/print.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\r\n#header {\r\n    display: none;\r\n}\r\n#right {\r\n    display: none;\r\n}\r\nfieldset {\r\n    padding: .25in;\r\n}\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (44, '2003-06-04 10:13:10', '2003-06-26 22:18:08', 10, 0, 'style.css', 'themes/Two-Column/style.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\r\n** Copyright (c)2002, Broadpool, LLC. All Rights Reserved.\r\n*/\r\nbody,th,td,input,select,textarea {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\n}\r\nbody {\r\nbackground: navy;\r\ncolor: white;\r\nmargin: 0;\r\n}\r\ntd {\r\nvertical-align: top;\r\n}\r\n#header {\r\nbackground: black;\r\ncolor: white;\r\nfont-size: 9px;\r\nfont-weight: bold;\r\npadding: 2px;\r\n}\r\n#header p {\r\nmargin-top: 0;\r\nmargin-bottom: 0;\r\n}\r\n#header a {\r\ncolor: white;\r\ntext-decoration: none;\r\n}\r\n#header a:hover {\r\ntext-decoration: underline;\r\n}\r\n#left {\r\nbackground: white;\r\ncolor: black;\r\npadding: 20px;\r\nborder-right: 3px black solid;\r\nborder-bottom: 3px black solid;\r\nborder-top: 1px black solid;\r\nborder-left: 1px black solid;\r\nfloat: left;\r\nwidth: 70%;\r\nmargin-right: 20px;\r\nmargin-top: 3px;\r\nmargin-left: 3px;\r\n}\r\n#left td {\r\ncolor: black;\r\n}\r\n#right {\r\nfont-size: 10px;\r\ncolor: white;\r\npadding: 20px;\r\n}\r\n#right a {\r\ncolor: #dddddd;\r\ntext-decoration: none;\r\n}\r\n#right a:hover {\r\nbackground: white;\r\ncolor: navy;\r\n}\r\np.title {\r\nfont-size: 24px;\r\nfont-weight: bold;\r\n}\r\n#right p {\r\nmargin: 0,0,3px,0;\r\n}\r\n#navigation {\r\n}\r\n#footer {\r\nmargin-top: 6px;\r\n}\r\n\r\ndiv#edit {\r\n}\r\np.editor {\r\ntext-align: right;\r\nfont-weight: bold;\r\nfont-size: 10px;\r\nline-height: 150%;\r\nmargin-top: 10px;\r\nmargin-bottom: 10px;\r\n}\r\np.editor a {\r\nborder: 1px gray solid;\r\npadding: 2px;\r\ntext-decoration: none;\r\ncolor: red;\r\n}\r\np.editor a:hover {\r\nbackground: red;\r\ncolor: white;\r\n}\r\n\r\nform {\r\nborder: 1px gray solid;\r\npadding: 5px;\r\nbackground: #eeeeee;\r\n}\r\ntextarea,p.doc {\r\nwidth: 90%\r\n}\r\ndiv.image {\r\ntext-align: center;\r\n}\r\np.imageframe {\r\nborder: 1px gray solid;\r\npadding: 10px;\r\n}\r\ndiv.Comments {\r\n}\r\np.subject {\r\nfont-weight: bold;\r\nmargin-bottom: 0;\r\npadding-bottom: 0;\r\n}\r\np.subject+p.comment {\r\nmargin-top: 0;\r\n}\r\np.comment {\r\nmargin-bottom: 0;\r\nborder-top: 1px gray solid;\r\npadding-top: 2px;\r\n}\r\n\r\np.prompt {\r\nfont-weight: bold;\r\nmargin-bottom: 0;\r\nmargin-top: 5px;\r\n}\r\np.field,p.doc {\r\nmargin-top: 0;\r\npadding-left: 10px;\r\n}\r\np.doc {\r\nfont-size: 9px;\r\n}\r\np.info {\r\nfont-size: 10px;\r\nmargin-top: 0;\r\nmargin-bottom: 0;\r\n}\r\ntd p {\r\nmargin-top: 0;\r\nmargin-bottom: 5px;\r\n}\r\nh1, h2, h3, h4 {\r\nfont-family: helvetica,arial,verdana,sans-serif;\r\n}\r\nh1 {\r\nborder-top: 1px black solid;\r\nborder-bottom: 1px black solid;\r\nmargin-top: 0;\r\nmargin-bottom: 24px;\r\npadding-top: 2px;\r\npadding-bottom: 2px;\r\n}\r\nh2 {\r\nline-height: 1em;\r\n}\r\nh3 {\r\n}\r\nh4 {\r\nmargin-bottom: 3px;\r\n}\r\nh4+p {\r\nmargin-top: 0;\r\npadding-top: 0;\r\n}\r\n\r\nhr {\r\nborder-top-width: 1px;\r\nborder-top-color: gray;\r\n}\r\n\r\ndiv.document {\r\n}\r\n\r\np.action {\r\nfont-size: 10px;\r\nfont-weight: bold;\r\nclear: left;\r\n}\r\n\r\nlegend {\r\nfont-size: 10px;\r\n}\r\nfieldset {\r\npadding: 5px;\r\nborder: 1px black solid;\r\n}\r\n\r\nth {\r\nborder: 1px black solid;\r\npadding: 1px;\r\ncolor: black;\r\n}\r\ntd.day {\r\nheight: 100px;\r\nborder: 1px black solid;\r\n}\r\np.calday {\r\nfont-size: 12px;\r\nfont-weight: bold;\r\ntext-align: right;\r\n}\r\n.today {\r\ncolor: red;\r\n}\r\n\r\n.recordset {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 9px;\r\ncolor: gray;\r\n}\r\n.sitename {\r\nfont-weight: bold;\r\nfont-size: larger;\r\n}\r\n.links {\r\nfont-size: smaller;\r\ntext-align: right;\r\nvertical-align: bottom;\r\n}\r\n.error {\r\nfont-weight: bold;\r\ncolor: red;\r\nmargin-top: 24px;\r\nmargin-bottom: 24px;\r\n}\r\n.event_date {\r\nwhite-space: nowrap;\r\n}\r\ntr.even {\r\npadding: 1px;\r\nbackground: #dddddd;\r\n}\r\n/* links */\r\na {\r\ntext-decoration: none;\r\ncolor: navy;\r\n}\r\na:hover {\r\ntext-decoration: underline;\r\ncolor: red;\r\n}\r\ndiv.subfolders {\r\nclear: right;\r\n}\r\ndiv.subfolder {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 9px;\r\nline-height: 100%;\r\nwidth: 100px;\r\nheight: 100px;\r\noverflow: auto;\r\nborder: 1px gray solid;\r\npadding: 2px;\r\nmargin: 2px;\r\nfloat: left;\r\ntext-align: center;\r\n}\r\ndiv.path {\r\nbackground: lemonchiffon;\r\ncolor: gray;\r\npadding: 3px;\r\nmargin: 5px 0 5px 0;\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\n}\r\n\r\n/* images */\r\n\r\ndiv.image {\r\ntext-align: center;\r\ncolor: gray;\r\n}\r\ndiv.description {\r\ncolor: black;\r\n}\r\np.imageframe {\r\nfont-size: smaller;\r\n}\r\n.subfolder, .picbox, .picboxlong {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: smaller;\r\ntext-align: center;\r\nmargin: 1px;\r\npadding: 1px;\r\nwidth: 110px;\r\nheight: 110px;\r\nfloat: left;\r\nborder: 1px palegoldenrod solid;\r\noverflow: auto;\r\n}\r\n.subfolder, .picboxlong {\r\nheight: 140px;\r\n}\r\na img {\r\nborder: 1px white solid;\r\n}\r\na:hover img {\r\nborder: 1px seagreen solid;\r\n}\r\n/* imageboxes - table class to hold images */\r\n.imageboxes {\r\nwidth: 100%;\r\n}\r\n.imageboxes td {\r\ntext-align: center;\r\nheight: 110px;\r\nfont-size: 9px;\r\n}\r\n\r\n/* text ads */\r\n\r\n.textadblock {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\nfloat: right;\r\nwidth: 150px;\r\nmargin-left: 10px;\r\npadding-left: 10px;\r\nborder-left: 1px silver solid;\r\n}\r\n.textad {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\nbackground: mintcream;\r\nborder: 1px palegreen solid;\r\nmargin: 10px 0 10px 0;\r\npadding: 5px;\r\ncolor: gray;\r\ntext-align: left;\r\nwidth: 140px;\r\n}\r\n.textad a, #menu .textad a {\r\ntext-decoration: none;\r\npadding: 0;\r\n}\r\n.textad b {\r\ncolor: black;\r\ndisplay: block;\r\n}\r\n\r\ndiv.notices {\r\nmargin-left: 1em;\r\ntext-indent: -1em;\r\n}\r\ndiv.notices p {\r\ndisplay: inline;\r\n}\r\n\r\n/* advertisements */\r\ndiv.ad {\r\nmargin: 5px;\r\nborder: 3px gray solid;\r\npadding: 5px;\r\n}\r\ndiv.adtitle {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-weight: bold;\r\nfont-size: 12px;\r\n}\r\ndiv.adbody {\r\nfont-family: times new roman,times,serif;\r\nfont-size: 12pt;\r\ndisplay: inline;\r\n}\r\ndiv.adbody p {\r\ndisplay: inline;\r\n}\r\ndiv.adurl {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-weight: bold;\r\nfont-size: 10px;\r\n}\r\ndiv.adowner {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-weight: normal;\r\nfont-size: 9px;\r\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (45, '2003-06-04 10:13:10', '2003-06-25 04:53:15', 11, 0, 'form', './themes/default/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\">\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n  ''{input_form_prompt}''\r\n  ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (46, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 11, 0, 'page', './themes/default/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>{page_title:STRIPTAGS}</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/stylesheet.css\"/>\n{head_content}\n{rdf}\n</head>\n<body>\n\n<div id=\"banner\">\n<a href=\"{site_path}/\">{!if defined(logo)\n    ''<img src=\"{logo}\" alt=\"{site_name}\"/>''\n    ''{site_name}''!}</a>\n</div>\n<div id=\"tag\">\n<span style=\"float:right;\">{!date ''F j, Y''!}</span>\n{!if defined(folder_path) ''{folder_path}'' ''{site_description}''!}\n</div>\n\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n<tr><td id=\"menu\">\n    <b>Menu</b><br/>\n    {navigation}\n</td>\n<td id=\"content\">\n    {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n    {recordset}\n    {body}\n</td></tr></table>\n\n<div id=\"footer\">\n{footer}\n</div>\n\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (47, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 11, 0, 'popup', './themes/default/popup.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>Control Panel - {page_title:STRIPTAGS}</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/stylesheet.css\"/>\n{head_content}\n</head>\n<body>\n\n<div id=\"banner\" style=\"font-size:24px;\">\n{site_name}\n</div>\n\n<div id=\"content\" style=\"padding:10px;\">\n    <h3>{page_title}</h3>\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n    {recordset}\n    {body}\n</div>\n\n<div id=\"footer\">\n{footer}\n</div>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (48, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 11, 0, 'stylesheet.css', './themes/default/stylesheet.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ */\r\nbody {\r\nbackground: white;\r\nmargin: 0;\r\n}\r\nbody,input,select,td,th {\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\n}\r\ntable {\r\nborder: none;\r\n}\r\ntd,th {\r\nline-height: 135%;\r\nvertical-align: top;\r\n}\r\n#banner {\r\nwidth: 100%;\r\nbackground: #cccccc;\r\npadding: 5px 5px 5px 10px;\r\nborder-bottom: 1px black solid;\r\nfont-family: trebuchet ms,arial,helvetica,sans-serif;\r\nfont-size: 36px;\r\nfont-weight: bold;\r\ncolor: navy;\r\nletter-spacing: -2px;\r\n}\r\n#banner span {\r\nfont-style: italic;\r\nfont-size: 12px;\r\n}\r\n#banner a, #banner a:hover {\r\ncolor: navy;\r\ntext-decoration: none;\r\n}\r\n#tag {\r\nwidth: 100%;\r\nbackground: navy;\r\ncolor: white;\r\npadding: 2px 5px 2px 10px;\r\nborder-bottom: 1px black solid;\r\n}\r\n#content {\r\nbackground: white;\r\npadding: 20px;\r\nline-height: 150%;\r\nborder-left: 1px navy solid;\r\n}\r\n#menu {\r\nwidth: 140px;\r\nline-height: 150%;\r\nfont-weight: bold;\r\npadding: 10px;\r\nbackground: #eeeeee;\r\n}\r\na {\r\ncolor: navy;\r\ntext-decoration: none;\r\n}\r\na:hover {\r\ncolor: black;\r\ntext-decoration: underline;\r\n}\r\n#footer {\r\nwidth: 100%;\r\nclear: both;\r\ntext-align: center;\r\npadding: 10px;\r\nborder-top: 1px navy solid;\r\ncolor: gray;\r\n}\r\nh1,h2,h3,h4 {\r\nfont-family: trebuchet ms,arial,helvetica,sans-serif;\r\nline-height: 100%;\r\n}\r\nh1 {\r\nmargin-bottom: 40px;\r\n}\r\nform {\r\n}\r\n.path {\r\ncolor: white;\r\n}\r\n.path a {\r\ncolor: white;\r\ntext-decoration: none;\r\n}\r\n.path a:hover {\r\ncolor: silver;\r\ntext-decoration: none;\r\n}\r\n.prompt {\r\nborder-top: 1px dotted gray;\r\npadding-top: 5px;\r\nmargin-bottom: 2px;\r\nfont-weight: bold;\r\n}\r\n.field {\r\nmargin: 0;\r\n}\r\n.doc {\r\nmargin-top: 2px;\r\ncolor: gray;\r\n}\r\ntextarea {\r\nwidth:90%;\r\n}\r\n.error {\r\nfont-weight: bold;\r\nfont-size: 12px;\r\ncolor: maroon;\r\n}\r\n\r\n.subfolders,.imageboxes {\r\nmargin: 5px 0 5px 0;\r\nclear: both;\r\n}\r\n.subfolder,.picbox,.picboxlong {\r\ntext-align:center;\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 10px;\r\nline-height: 12px;\r\nmargin: 2px;\r\npadding: 2px;\r\nborder: 1px #eeeeee solid;\r\nfloat: left;\r\n}\r\n.subfolder {\r\nwidth: 90px;\r\nheight: 90px;\r\n}\r\n.picbox {\r\nwidth: 110px;\r\nheight: 110px;\r\n}\r\n.picboxlong {\r\nwidth: 110px;\r\nheight: 140px;\r\n}\r\n\r\n.backnext {\r\nfloat:right;\r\n}\r\n.infotable {\r\nwidth: 600px;\r\nborder: 1px gray solid;\r\n}\r\n.list {\r\nclear: both;\r\n}\r\n.list p {\r\nmargin-top: 0;\r\npadding-top: 0;\r\n}\r\nth {\r\nborder-bottom: 1px navy solid;\r\ntext-align: left;\r\n}\r\n.infotable th {\r\ntext-align: left;\r\nborder: none;\r\nmargin-right: 10px;\r\nwhite-space: nowrap;\r\nwidth: 120px;\r\n}\r\n\r\n.info {\r\nfont-size: 10px;\r\ncolor: gray;\r\n}\r\n\r\n.action {\r\ncolor: gray;\r\nclear: left;\r\n}\r\n.action a {\r\ncolor: gray;\r\ntext-decoration: none;\r\n}\r\n#content .action a:hover;\r\ncolor: black;\r\ntext-decoration: underline;\r\n}\r\n\r\n.event_date {\r\nwhite-space: nowrap;\r\n}\r\n\r\nimg {\r\nborder: none;\r\n}\r\n\r\n.Comments {\r\nwidth: 600px;\r\n}\r\n.Comments p {\r\nmargin: 0 0 5px 0;\r\n}\r\n.subject {\r\nfont-weight: bold;\r\nborder-top: 1px dotted gray;\r\nmargin-top: 20px;\r\n}\r\n\r\n.stats {\r\nfloat: right;\r\nborder: 1px gray solid;\r\npadding: 10px;\r\n}\r\n\r\n.even {\r\nbackground: #eeeeee;\r\npadding: 2px;\r\n}\r\n\r\n.pollbar {\r\nbackground: navy;\r\n}\r\n\r\n.weblog {\r\nwidth: 90%;\r\n}\r\n.weblog td {\r\nvertical-align: top;\r\nline-height: 150%;\r\n}\r\n.weblog p {\r\n}\r\n.weblog .icon {\r\nwidth: 50px;\r\ntext-align: left;\r\n}\r\n.weblog .info {\r\n}\r\n\r\ndt {\r\nfont-weight: bold;\r\npadding-bottom: 0;\r\n}\r\ndd {\r\npadding-top: 0;\r\n}\r\n\r\nhr {\r\ncolor: navy;\r\nheight: 1px;\r\n}\r\n\r\n.category {\r\nfloat: left;\r\nheight: 240px;\r\nwidth: 180px;\r\nmargin: 2px;\r\nborder: 1px #dddddd solid;\r\npadding: 2px;\r\noverflow-y: auto;\r\n}\r\n.categorytitle {\r\nbackground: navy;\r\ncolor: white;\r\nfont-weight: bold;\r\npadding: 1px 5px 1px 5px;\r\nmargin: -2px -2px 5px -2px;\r\n}\r\n.categorylinks {\r\npadding: 0 3px 0 3px;\r\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (49, '2003-06-22 22:22:35', '2003-06-23 20:40:13', 13, 0, 'form', './themes/Siteframe/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\r\n<p>{form_instructions}</p>\r\n\r\n{!menu_item form_action ''{folder_name}''\r\n  ''{site_path}/folder.php?id={folder_id}''\r\n  ''{folder_id}+0''!}\r\n{!menu_item form_action ''{doc_folder_name}''\r\n  ''{site_path}/folder.php?id={doc_folder_id}''\r\n  ''{doc_folder_id}+0''!}\r\n{!menu_item form_action ''{doc_title}''\r\n  ''{site_path}/document.php?id={doc_id}''\r\n  ''{doc_id}+0''!}\r\n<p class=\"action\">\r\n{!menu form_action '' {sep} ''!}\r\n</p>\r\n\r\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\" {form_java}>\r\n{BEGIN:input_form}\r\n{!if ''\"{input_form_type}\"==\"ignore\"''\r\n    ''{input_form_prompt}''\r\n    ''<p class=\"prompt\">{input_form_prompt}:</p>''\r\n!}\r\n<p class=\"field\">{input_form_field}</p>\r\n<p class=\"doc\">{input_form_doc}</p>\r\n{END:input_form}\r\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\r\n{BEGIN:input_form_hidden}\r\n{hidden_form_field}\r\n{END:input_form_hidden}\r\n<input type=\"submit\" value=\"Submit\"/>\r\n<input type=\"reset\"/>\r\n</form>\r\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (50, '2003-06-28 21:08:47', '2003-06-28 21:08:47', 0, 99, 'user_messages', '', '{!# user_messages - displays an \"inbox\" of notifications !}\r\n\r\n<table class=\"list\">\r\n<tr><th>Date/Time</th><th>From</th><th>Message</th></tr>\r\n{BEGIN:active_notifications user_user_id}\r\n<tr class=\"{row_class}\">\r\n<td>{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}</td>\r\n<td>{!if defined(note_from_id)\r\n  ''<a href=\"{site_path}/user.php?id={note_from_id}\">{note_from}</a>''\r\n  ''-''\r\n!}</td>\r\n<td><a href=\"#\" onClick=\"javascript:window.open(''{site_path}/msgpopup.php?id={note_id}'',''message'',''width=350,height=500,scrollbars=true'');\">{note_message}</a></td>\r\n</tr>\r\n{END:active_notifications}\r\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (51, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'xmlresponse', '', '<?xml version=\"1.0\" encoding=\"iso-8859-1\" \?\>\n<response>\n<error>{xmlerror}</error>\n{!if defined(xmlmessage) ''<message>{xmlmessage}</message>''!}\n</response>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (52, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'xmltbpings', '', '<?xml version=\"1.0\" encoding=\"iso-8859-1\" \?\>\n<!-- name=\"generator\" content=\"siteframe/{version}\" -->\n<rss version=\"0.92\">\n  <channel>\n    <title>{site_name}</title>\n    <link>{site_url}</link>\n    <copyright>Copyright {!date ''Y''!}, {site_name}. All Rights Reserved.</copyright>\n    <managingEditor>{site_email}</managingEditor>\n    <lastBuildDate>{!date ''F j, Y h:ia T''!}</lastBuildDate>\n    <docs>http://backend.userland.com/rss092</docs>\n  {!if defined(site_description)\n    ''<description>{site_description:nohtml}</description>''\n  !}\n  {!if defined(logo)\n    ''<image>\n        <url>{site_url}/{logo}</url>\n        <title>{site_name:nohtml}</title>\n        <link>{site_url}</link>\n     </image>''\n  !}\n  {BEGIN:tb_pings doc_id}\n    <item>\n        <tb_id>{tb_id}</tb_id>\n        <title>{tb_title:nohtml}</title>\n        <link>{tb_url}</link>\n        <description>{tb_excerpt}</description>\n    </item>\n  {END:tb_pings}\n  </channel>\n</rss>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (53, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_images', '', '{template:user_common}\n{!set page_title \"{user_user_name} - Images\"!}\n\n<div class=\"subfolders\">\n{BEGIN:user_images user_user_id}\n<div class=\"picboxlong\">\n<a href=\"{site_path}/document.php?id={doc_id}\"><img src=\"{doc_file_100}\" border=\"0\"/></a>\n<br/>\n<a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>\n</div>\n{END:user_images}\n</div>\n<p style=\"clear:left;\">&nbsp;</p>\n\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (54, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_ratings', '', '{template:user_common}\n{!set page_title \"{user_user_name} - Ratings\"!}\n\n<table class=\"list\">\n <tr><th>Title</th>\n    <th>Owner</th>\n    <th>Rating</th></tr>\n{BEGIN:user_doc_ratings user_user_id -r }\n    <tr class=\"{row_class}\">\n        <td><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a></td>\n        <td nowrap><a href=\"{site_path}/user.php?id={doc_owner_id}\">{doc_user_name}</a>{!user_indicators doc!}</td>\n        <td align=\"right\">{rating:%d}</td>\n    </tr>\n{END:user_doc_ratings}\n</table>\n{recordset}\n\n<p class=\"action\"><a href=\"#\" title=\"click to view rating distribution chart\"\nonClick=\"javascript:window.open(''{site_path}/chart_user_ratings.php?id={user_user_id}'',\n        ''rating_chart'',\n        ''width=600,height=400,toolbar=no,scrollbar=no'')\"\n>Rating Distribution</a></p>\n\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (55, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'xmlrdf', '', '<!--\n<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n         xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n         xmlns:trackback=\"http://madskills.com/public/xml/rss/module/trackback/\">\n<rdf:Description\n    rdf:about=\"{site_url}/document.php?id={doc_id}\"\n    dc:identifer=\"{site_url}/document.php?id={doc_id}\"\n    dc:title=\"{doc_title}\"\n    trackback:ping=\"{site_url}/tb.php?doc={doc_id}\" />\n</rdf:RDF>\n-->');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (56, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_common', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ #!}\n<p class=\"action\">\n<a href=\"{site_path}/user.php?id={user_user_id}\">User Home</a>\n{sep} <a href=\"{site_path}/user.php?id={user_user_id}&amp;page=user_folders\">Folders</a>\n{sep} <a href=\"{site_path}/user.php?id={user_user_id}&amp;page=user_docs\">Documents</a>\n{sep} <a href=\"{site_path}/user.php?id={user_user_id}&amp;page=user_images\">Images</a>\n{sep} <a href=\"{site_path}/user.php?id={user_user_id}&amp;page=user_ratings\">Ratings</a>\n{sep} <a href=\"{site_path}/user.php?id={user_user_id}&amp;page=user_favorites\">Favorite Members</a>\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (57, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_docs', '', '{template:user_common}\n{!set page_title \"{user_user_name} - Documents\"!}\n\n<table class=\"list\">\n<tr><th>Type</th><th>Title</th><th>Folder</th></tr>\n{BEGIN:user_docs user_user_id -r}\n<tr class=\"{row_class}\">\n    <td nowrap>{doc_type} </td>\n    <td><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a> </td>\n    <td nowrap><a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a> </td>\n</tr>\n{END:user_docs}\n</table>\n{recordset}\n\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (58, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_favorites', '', '{template:user_common}\n{!set page_title \"{user_user_name} - Favorite Members\"!}\n\n<table class=\"list\">\n <tr><th>Member Name</th>\n    <th>Rating Average</th>\n    <th># ratings</th>\n </tr>\n{BEGIN:favorite_users user_user_id -r }\n    <tr class=\"{row_class}\">\n        <td nowrap><a href=\"{site_path}/user.php?id={user_user_id}\">{user_user_name}</a>{!user_indicators user!}</td>\n        <td align=\"right\">{favorite_user_rating:%.2f}</td>\n        <td align=\"right\">{favorite_user_rating_count:%d}</td>\n    </tr>\n{END:favorite_users}\n</table>\n{recordset}\n\n<p>Favorite members are determined by how this member has rated the\nsubmissions of other members. <b>Note:</b>\nOnly members for whom 2 or more ratings have been given are listed.</p>\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (59, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user_folders', '', '{template:user_common}\n{!set page_title \"{user_user_name} - Folders\"!}\n\n<div class=\"subfolders\">\n{BEGIN:user_folders user_user_id userfoldersihtml}\n<div class=\"subfolder\">\n<a href=\"{site_path}/folder.php?id={folder_id}\"><img src=\"{folder_image}\" alt=\"{folder_name}\"/></a>\n<br/>\n<a href=\"{site_path}/folder.php?id={folder_id}\">{folder_name_display}</a>\n</div>\n{END:user_folders}\n</div>\n<p style=\"clear:left;\">&nbsp;</p>\n\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (60, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'user', '', '{template:user_common}\n\n{!if defined(user_user_selfportrait)\n    ''<img src=\"{user_user_selfportrait}\"\n    alt=\"self-portrait of {user_user_name}\"\n    title=\"{user_user_name}\"/>''\n!}\n<table class=\"infotable\">\n  <tr><th>Nickname: </th><td>{user_user_nickname} </td>\n      <td rowspan=\"9\">{user_user_description}</td>\n  </tr>\n  <tr><th>Location: </th><td>{user_user_country_name}</td>\n  </tr>\n  <tr><th>Created: </th><td nowrap>{!date ''{site_date_format}'' ''{user_user_created}''!}</td></tr>\n  <tr><th>Modified:</th><td nowrap>{!date ''{site_date_format}'' ''{user_user_modified}''!}</td></tr>\n  <tr><th nowrap>Last Login: </th>\n      <td>{!date ''{site_date_format} {site_time_format}'' ''{user_user_last_login}''!}</td></tr>\n  <tr><th nowrap>Home Page: </th><td nowrap><a href=\"{user_user_homepage}\">{user_user_homepage}</a></td></tr>\n  <tr><th>Groups: </th>\n  <td>\n  {BEGIN:user_groups user_user_id}\n  <a href=\"{site_path}/group.php?id={group_id}\">{group_name}</a><br/>\n  {END:user_groups}\n  </td></tr>\n</table>\n\n{template:edituser}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (61, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'users', '', '<table class=\"list\">\n<tr><th>User Name</th><th>Country</th><th>Home Page</th>\n<th>Joined </th><th>Last Login</th></tr>\n{BEGIN:all_users -r}\n<tr class=\"{row_class}\">\n<td class=\"nowrap\"><b><a href=\"{site_path}/user.php?id={user_user_id}\">{user_user_name}</a></b> </td>\n<td class=\"nowrap\">{user_user_country_name} </td>\n<td><a href=\"{user_user_homepage}\">{user_user_homepage}</a> </td>\n<td nowrap>{!date ''{site_date_format}'' ''{user_user_created}''!} </td>\n<td nowrap>{!date ''{site_date_format} {site_time_format}'' ''{user_user_last_login}''!} </td>\n</tr>\n{END:all_users}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (62, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'search', '', '{form_instructions}\n<form action=\"{form_action}\" method=\"post\">\n    <input type=\"text\" maxsize=\"250\" name=\"searchfor\" value=\"{searchfor}\"/>\n    <input type=\"submit\" value=\"Go\"/>\n    <input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n    <br/><br/>\n    Search only:<br/><br/>\n    <input type=\"checkbox\" name=\"search_users\" value=\"1\" {!if defined(search_users) ''checked''!}> Users &nbsp;\n    <input type=\"checkbox\" name=\"search_documents\" value=\"1\" {!if defined(search_documents) ''checked''!}> Documents &nbsp;\n    <input type=\"checkbox\" name=\"search_folders\" value=\"1\" {!if defined(search_folders) ''checked''!}> Folders &nbsp;\n    <input type=\"checkbox\" name=\"search_comments\" value=\"1\" {!if defined(search_comments) ''checked''!}> Comments &nbsp;\n</form>\n\n<ul>\n{BEGIN:search_results}\n    <li>{search_result_type}: <a href=\"{search_url}\">{search_name}</a></li>\n{END:search_results}\n</ul>\n{!if defined(num_results)\n    ''<p>{num_results} item(s) found</p>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (63, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'sfolder', '', '{folder_body}\n\n<p class=\"action\">\n    <a href=\"edit.php?folder={folder_id}&class={folder_limit_type}\">Add document</a> {sep}\n    <a href=\"#schedule\">Schedule</a>\n</p>\n\n{template:subfolders}\n\n{BEGIN:current folder_id current}\n    <h3>{doc_title}</h3>\n    {!document ''{doc_id}''!}\n{END:current}\n\n<h3>Schedule</h3>\n<a name=\"schedule\"/>\n<table cellpadding=\"0\" cellspacing=\"2px\" border=\"0\">\n<tr><th>Owner</th><th>Title </th><th>Begin </th><th>End </th></tr>\n{BEGIN:schedule folder_id schedule}\n<tr class=\"{row_class}\">\n<td><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a> </td>\n<td><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a> </td>\n<td nowrap>{!date ''{site_date_format} {site_time_format}'' ''{folder_begin_date}''!} </td>\n<td nowrap>{!date ''{site_date_format} {site_time_format}'' ''{folder_end_date}''!} </td>\n</tr>\n{END:schedule}\n</table>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (64, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'slideshow', '', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>{folder_name}</title>\n<style type=\"text/css\">\n<!--\n    body {\n    background: black;\n    color: white;\n    margin: 2px;\n    }\n    p { margin: 0 0 2px 0; }\n    .heading {\n    font-family: arial,helvetica,sans-serif;\n    background: white;\n    color: black;\n    padding: 3px;\n    }\n    a { color: gray; text-decoration: none; }\n    .close {\n    font-size: 10px;\n    font-weight: bold;\n    float: right;\n    }\n    #title {\n    font-size: 18px;\n    font-weight: bold;\n    }\n    #author {\n    font-size: 12px;\n    color: gray;\n    }\n    table {\n    text-align:center;\n    }\n    td {\n    height:610px;\n    width:610px;\n    text-align:center;\n    vertical-align:middle;\n    background: black;\n    padding: 5px;\n    }\n-->\n</style>\n<script>\n// (C) 2000 www.CodeLifter.com\n// http://www.codelifter.com\n// Free for all users, but leave in this  header\n// NS4-6,IE4-6\n// Fade effect only in IE; degrades gracefully\n\n// =======================================\n// set the following variables\n// =======================================\n\n// Set slideShowSpeed (milliseconds)\nvar slideShowSpeed = 5000\n\n// Duration of crossfade (seconds)\nvar crossFadeDuration = 3\n\n// Specify the image files\nvar Pic = new Array() // do not touch this\nvar Title = new Array()\nvar Author = new Array()\n// to add more images, just continue\n// the pattern, adding to the array below\n\n{BEGIN:folder_docs folder_id fd}\nPic[{row_number}] = \"{doc_file_600}\"\nTitle[{row_number}] = \"{doc_title:noquote}\"\nAuthor[{row_number}] = \"{doc_user_name}\"\n{END:folder_docs}\n\n// =======================================\n// do not edit anything below this line\n// =======================================\n\nvar t\nvar j = 1\nvar p = Pic.length\n\nvar preLoad = new Array()\nfor (i = 1; i <= p; i++){\n   preLoad[i] = new Image()\n   preLoad[i].src = Pic[i]\n}\nvar title = document.all.item(\"title\")\nvar author = document.all.item(\"author\")\n\nfunction runSlideShow(){\n   if (document.all){\n      document.images.SlideShow.style.filter=\"blendTrans(duration=2)\"\n      document.images.SlideShow.style.filter=\"blendTrans(duration=crossFadeDuration)\"\n      document.images.SlideShow.filters.blendTrans.Apply()\n   }\n   document.images.SlideShow.src = preLoad[j].src\n   document.title = \"{folder_name} - \"+Title[j]\n   document.getElementById(\"title\").innerHTML=Title[j]\n   document.getElementById(\"author\").innerHTML=Author[j]\n   if (document.all){\n      document.images.SlideShow.filters.blendTrans.Play()\n   }\n   j = j + 1\n   if (j > (p-1)) j=1\n   t = setTimeout(\"runSlideShow()\", slideShowSpeed)\n}\n</script>\n</head>\n<body onload=\"runSlideShow()\">\n<div class=\"heading\">\n<p class=\"close\">[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</p>\n<p id=\"title\">Slideshow</p>\n<p id=\"author\">Please wait while images load...</p>\n</div>\n<table><tr><td>\n<img src=\"{site_path}/images/film.gif\" name=''SlideShow'' alt=\"slideshow image\"/>\n</td></tr></table>\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (65, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'subfolders', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### lists subfolders of current folder !}\n{!if ''{folder_children}+0''\n''<div class=\"subfolders\">\n{BEGIN:folder_subfolders folder_id subfolders}\n{!if ''{folder_group_break}&&\"{parent_folder_sorted}\"==\"user\"''\n''<h3 style=\"clear:both;\">{folder_user_name}</h3>''\n!}\n<div class=\"subfolder\">\n<a href=\"{site_path}/folder.php?id={folder_id}\"><img src=\"{folder_image}\"\nborder=\"0\" alt=\"{folder_name}\"/></a><br>\n<a href=\"{site_path}/folder.php?id={folder_id}\">{folder_name_display}</a>\n</div>\n{END:folder_subfolders}\n</div>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (66, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'subscriptions', '', '<p>Your currently-active subscriptions are displayed below.\nFrom this page, you can choose to edit or remove any of your existing\nsubscriptions.</p>\n<ul>\n<li>To create a new subscription, navigate to the\ndocument, folder, or group you wish to subscribe to, then click\non the \"Subscribe\" link.</li>\n<li>To modify a subscription, click on the <b>Title</b>.</li>\n<li>To delete one or more subscriptions, check the box in the <b>Del</b> column,\nthen press <b>Delete Checked Subscriptions</b>.</li>\n</ul>\n\n<form method=\"post\" action=\"{site_path}/subscriptions.php?id={subscr_user_id}\" enctype=\"multipart/form-data\">\n<table class=\"list\">\n<tr>\n  <th>Type</th>\n  <th>Title</th>\n  <th>Add</th>\n  <th>Mod</th>\n  <th>Notification</th>\n  <th>Frequency</th>\n  <th>Del</th>\n</tr>\n{BEGIN:all_subscriptions subscr_user_id}\n<tr class=\"{row_class}\">\n  <td>{subscr_obj_type_display}</td>\n  <td><a href=\"{site_path}/subscribe.php?id={subscr_id}\">{subscr_obj_title}</a></td>\n  <td align=\"center\">{!if ''{subscr_notify_add}'' ''Y'' ''N''!}</td>\n  <td align=\"center\">{!if ''{subscr_notify_mod}'' ''Y'' ''N''!}</td>\n  <td>{subscr_notify_type_display}</td>\n  <td>{subscr_notify_frequency_display}</td>\n  <td align=\"center\">\n    <input type=\"checkbox\" name=\"remove[]\" value=\"{subscr_id}\"/>\n  </td>\n</tr>\n{END:all_subscriptions}\n</table>\n<p class=\"doc\">Click the <b>Del</b> checkbox and press <b>Delete Checked\nSubscriptions</b> to remove one or more subscriptions. Deletion is immediate;\nthere is no confirmation.</p>\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n<input type=\"submit\" value=\"Delete Checked Subscriptions\"/>\n<input type=\"reset\"/>\n</form>\n\n{!menu_item subscr_action ''documents''\n  ''{site_path}/subscribe.php?type=D'' ''{subscr_all_objects}''!}\n{!menu_item subscr_action ''folders''\n  ''{site_path}/subscribe.php?type=F'' ''{subscr_all_objects}''!}\n{!menu_item subscr_action ''groups''\n  ''{site_path}/subscribe.php?type=G'' ''{subscr_all_objects}''!}\n{!menu_item subscr_action ''users''\n  ''{site_path}/subscribe.php?type=U'' ''{subscr_all_objects}''!}\n<p class=\"action\">{!if ''{subscr_all_objects}'' ''Subscribe to all:''!}\n{!menu subscr_action '' {sep} ''!}\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (67, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 13, 0, 'page', './themes/Siteframe/page.ihtml', '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>{page_title}</title>\n<meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\"/>\n<meta name=\"generator\" content=\"Siteframe {siteframe_version}\"/>\n{!if defined(site_meta_keywords)\n''<meta name=\"keywords\" content=\"{site_meta_keywords}\"/>''\n!}\n<link rel=\"stylesheet\" type=\"text/css\" media=\"print\"\n      href=\"{site_path}/themes/{theme}/printer.css\"/>\n<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"\n      href=\"{site_path}/themes/{theme}/siteframe.css\"/>\n{!if defined(head_content) ''{head_content}''!}\n{rdf}\n</head>\n<body>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"page\">\n<tr>\n  <td colspan=\"3\" id=\"title\">\n      {!if defined(logo)\n        ''<a href=\"{site_path}/\"><img src=\"{logo}\" alt=\"{site_name}\" class=\"logo\"/></a>''\n        ''<a href=\"{site_path}/\">{site_name}</a>''\n      !}\n  </td>\n</tr>\n<tr>\n  <td colspan=\"3\" id=\"topmenu\">\n    {!if defined(user_id)\n    '' {user_name} | <a href=\"{site_path}/user.php\">My Page</a>\n      | <a href=\"{site_path}/prefs.php\">Prefs</a>\n      | <a href=\"{site_path}/login.php\">Logout</a>''\n    '' <a href=\"{site_path}/register.php\">Register</a>\n      | <a href=\"{site_path}/login.php\">Login</a>''\n    !}\n  </td>\n</tr>\n<tr>\n  <td id=\"left\">\n  {navigation}\n  </td>\n  <td id=\"center\">\n    <p class=\"folderpath\">\n    {!if defined(folder_path)\n    ''{folder_path}''\n    ''<a href=\"{site_path}/\">Home</a>''!}&nbsp;</p>\n    {!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n    {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n    {recordset}\n\n    <div id=\"content\">\n    {body}\n    </div><!-- content -->\n\n    <div id=\"footer\">\n    {footer}\n    </div><!-- footer -->\n  </td>\n  <td id=\"right\">\n  {!if defined(right)\n  ''{right}''\n  ''<p><b>Recent Additions</b></p>\n  {BEGIN:recent_docs 10 _right_recent_docs_}\n  <p><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a></p>\n  {END:recent_docs}''\n  !}\n  </td>\n</tr>\n</table>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (68, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 13, 0, 'page_div', './themes/Siteframe/page_div.ihtml', '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html lang=\"{language}\">\n<head>\n  <title>{page_title}</title>\n  <meta http-equiv=\"content-type\" content=\"text/html; charset={charset}\">\n  <meta name=\"generator\" content=\"Siteframe/{version}\">\n  <link rel=\"stylesheet\" type=\"text/css\" media=\"print\"\n        href=\"{site_path}/themes/{theme}/printer.css\"/>\n  <link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"\n        href=\"{site_path}/themes/{theme}/siteframe.css\"/>\n  {!if defined(head_content) ''{head_content}''!}\n</head>\n<body>\n  <div id=\"page\">\n\n    <div id=\"title\">\n    {!if defined(logo)\n      ''<a href=\"{site_path}\"><img src=\"{logo}\" alt=\"{site_name}\" class=\"logo\"/></a>''\n      ''{site_name}''\n    !}\n    </div><!-- title -->\n\n    <div id=\"topmenu\">\n    {!if defined(user_id)\n    '' {user_name} | <a href=\"{site_path}/user.php\">My Page</a> | <a href=\"{site_path}/prefs.php\">Prefs</a>''\n    '' <a href=\"{site_path}/register.php\">Register</a> | <a href=\"{site_path}/login.php\">Login</a>''\n    !}\n    </div><!-- topmenu -->\n\n    <div id=\"main\">\n\n      <div id=\"left\">\n      {navigation}\n      </div>\n\n      <div id=\"right\">\n      {!if defined(right)\n      ''{right}''\n      ''<p><b>Recent Additions</b></p>\n      {BEGIN:recent_docs 5 _right_recent_docs_}\n      <p><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a></p>\n      {END:recent_docs}''\n      !}\n      </div>\n\n      <div id=\"center\">\n        <p class=\"folderpath\">\n        {!if defined(folder_path)\n        ''{folder_path}''\n        ''<a href=\"{site_path}\">Home</a>''!}&nbsp;</p>\n        <h1>{page_title}</h1>\n        {!if defined(error) ''<p class=\"error\">{error}</p>''!}\n        {recordset}\n\n        <div id=\"content\">\n        {body}\n        </div><!-- content -->\n\n        <div id=\"footer\">\n        {footer}\n        </div>\n\n      </div><!-- center -->\n\n    </div><!-- content -->\n\n  </div><!-- page -->\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (69, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 13, 0, 'popup', './themes/Siteframe/popup.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<html>\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody, th, td {\nfont-family:verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\n.prompt,.field,.doc,p {\nmargin: 0;\ndisplay: block;\n}\n.prompt {\nfont-weight: bold;\n}\n.doc {\nmargin-bottom: 5px;\ncolor: gray;\nfont-size: 10px;\n}\n.button {\nfont-size: 9px;\n}\ntextarea {\nwidth: 350px;\n}\nform {\nmargin: 5px 0 0 0;\n}\nh4 {\nfont-family: arial,helvetica,sans-serif;\nmargin: 0;\nbackground: tan;\npadding: 2px;\n}\n.error {\ncolor: red;\nfont-style: italic;\nmargin: 10px 0 10px 0;\n}\n</style>\n</head>\n<body>\n<h4>{page_title}</h4>\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{body}\n<p class=\"button\">\n  <small>[<a href=\"#\" onClick=\"javascript:self.close();\">Close</a>]</small>\n</p>\n</body>\n</html>\n');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (70, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 13, 0, 'printer.css', './themes/Siteframe/printer.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** stylesheet for printing\n*/\n\n/* hide these things */\n#topmenu,#left,#right,p.action,p.folderpath,div.edit {\ndisplay:none;\n}\n\nbody {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12pt;\n}\n#content {\nline-height: 130%;\n}\n#footer {\ncolor: gray;\nfont-size: 10pt;\n}\nimg {\nborder: none;\n}\nth {\ntext-align: left;\nborder-bottom: 1px gray solid;\n}\ntd {\nvertical-align: top;\n}\ntr.even {\nborder: 1px gray solid;\npadding: 2px;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (71, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 13, 0, 'siteframe.css', './themes/Siteframe/siteframe.css', '/* \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n** copyright (c)2002, broadpool, llc. all rights reserved.\n** this cascading stylesheet contains screen formatting materials\n** for the \"Siteframe\" theme\n*/\nbody {\nbackground: white;\ncolor: black;\nmargin: 0;\npadding: 0;\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12px;\n}\n\n/* default hyperlinks */\na {\ncolor: mediumslateblue;\ntext-decoration: none;\n}\na:hover {\ncolor: dodgerblue;\n}\n\n/* the #page table encompasses the entire viewport */\n#page {\nmargin: 0;\n}\n\n/* the #title division runs the full width of the viewport\n** at the very top of the screen */\n#title {\nbackground: white;\nfont-family: georgia,times new roman,times,serif;\nfont-weight: bold;\nvertical-align: bottom;\nfont-size: 30px;\npadding: 0 5px 0 5px;\ncolor: midnightblue;\n}\n#title a,#title a:visited {\ncolor: midnightblue;\ntext-decoration: none;\n}\n#title a:hover {\ncolor: darkslateblue;\ntext-decoration: none;\n}\n/* this little menu immediately follows the #title and acts as a\n** separator for the remainder of the page */\n#topmenu {\nfont-size: 10px;\nfont-weight: bold;\nbackground: black;\ncolor: silver;\npadding: 2px;\nborder-top: 1px gray solid;\nborder-bottom: 1px gray solid;\ntext-align: right;\n}\n#topmenu a {\ncolor: steelblue;\ntext-decoration: none;\n}\n#topmenu a:hover {\ncolor: dodgerblue;\n}\n\n/* the #main division covers the entire rest of the viewing space */\n#main {\n}\n#left,#right {\nwidth: 130px;\nfont-size: 11px;\nbackground: silver;\n}\n\n/* the code for this left-hand menu\n** was adapted from http://alistapart.com/stories/taminglists/\n** by Mark Newhouse\n*/\n#left {\npadding: 0;\nwhite-space: nowrap;\n}\n#left ul {\nlist-style: none;\nmargin: 0;\npadding: 0;\nborder: none;\n}\n#left a {\nborder-bottom: 1px black solid;\nmargin: 0;\nfont-weight: bold;\n}\n#left .title {\npadding: 2px 2px 2px 7px;\nborder-bottom: 1px black solid;\nmargin: 0;\nfont-weight: bold;\nbackground: gray;\ncolor: white;\n}\n#left .info {\npadding: 2px 2px 2px 7px;\nfont-weight: normal;\n}\n#left a {\ndisplay: block;\nwidth: 100%;\ntext-decoration: none;\nbackground: silver;\ncolor: navy;\npadding: 2px;\nborder-left: 5px gray solid;\n}\nhtml>body #left a {\nwidth: auto;\n}\n#left a:hover {\nbackground-color: white;\ncolor: darkslategray;\nborder-left: 5px red solid;\n}\n#left br {\ndisplay: none;\n}\n\n/* the right-hand column is a rather arbitrary one; it contains\n** \"extra stuff\" to be defined in context. For example, on document\n** pages it contains a list of other documents in the same folder.\n*/\n#right a {\ncolor: navy;\ntext-decoration: none;\n}\n#right a:hover {\ncolor: slateblue;\n}\n#right {\nline-height: 150%;\nfont-size: 11px;\npadding: 5px;\n}\n#right p {\nmargin: 0 0 5px 0;\n}\n#center {\nbackground: white;\ncolor: black;\npadding: 10px;\nmargin: 0 145px 0 132px;\nborder: 1px gray solid;\nborder-top: none;\n}\n\n/* the content area is where the primary text goes */\n#content {\nline-height: 150%;\n}\n#content a {\ncolor: navy;\ntext-decoration: none;\n}\n#content a:hover {\ncolor: slateblue;\ntext-decoration: underline;\n}\n#content a:active {\ncolor: crimson;\ntext-decoration: none;\n}\n\n/* the footer goes at the bottom */\n#footer {\ncolor: gray;\nfont-size: 10px;\nmargin-top: 20px;\n}\n#footer a {\ncolor: darkslategray;\ntext-decoration: none;\n}\n#footer a:hover {\ntext-decoration: underline;\n}\n\nh1 {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: normal;\ncolor: gray;\n}\nh2,h3,h4 {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: normal;\ncolor: gray;\nmargin-top: 20px;\nmargin-bottom: 5px;\n}\n\nimg.logo {\nborder: none;\npadding: 2px;\n}\n\np {\nmargin-top: 0;\npadding-top: 0;\n}\np.action {\nclear:both;\ntext-align: left;\n}\np.action a {\ncolor: gray;\n}\np.ahem {\nline-height: 200%;\ncolor: red;\ndisplay: none;\n}\np.error {\nfont-family: verdana,arial,helvetica,sans-serif;\ncolor: crimson;\nmargin: 10px 0 10px 0;\nline-height: 150%;\n}\np.info {\nmargin: 5px 0 5px 0;\ncolor: gray;\nfont-size: 10px;\n}\ndiv.path {\ndisplay: none;\n}\np.folderpath {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\ncolor: gray;\nmargin: 0;\npadding: 0;\n}\np.folderpath a {\ncolor: gray;\ntext-decoration: none;\n}\np.folderpath a:hover {\ncolor: dodgerblue;\n}\np.recordset {\nfont-size: 10px;\ncolor: silver;\n}\np.recordset a {\ncolor: gray;\ntext-decoration: none;\n}\np.recordset a:visited {\ncolor: lightgray;\n}\np.recordset a:hover {\ncolor: black;\ntext-decoration: underline;\n}\n\n/* comments */\np.subject {\nbackground: silver;\nfont-weight: bold;\nfont-size: 11px;\npadding: 1px;\nmargin: 5px 0 2px 0;\ncolor: black;\n}\n.comment p {\nmargin: 0;\npadding: 0;\n}\n\n/* page editing */\n#content div.edit {\nposition: absolute;\ntop: 0;\nright: 0;\npadding: 2px;\nmargin: 5px;\nbackground: snow;\nborder: 1px gray solid;\ncolor: gray;\nfont-size: 10px;\nfont-weight: bold;\n}\n#content p.editor {\nmargin: 0;\npadding: 0;\n}\n\nform {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 11px;\n}\nform hr {\ndisplay: none;\n}\nform p {\nmargin: 0;\npadding: 2px;\n}\nform p.prompt {\nmargin-top: 5px;\nfont-weight: bold;\ncolor: gray;\n}\nform p.field {\n}\nform p.doc {\ncolor: gray;\nborder-bottom: 1px dotted silver;\nmargin-bottom: 5px;\n}\ntextarea {\nfont-family: verdana,arial,helvetica,sans-serif;\nwidth: 600px;\n}\n\n/* divisions */\ndiv.imageboxes {\ndisplay: block;\n}\n\n/* tables */\ntable {\nmargin: 20px 0 20px 0;\npadding: 0;\n}\ntr.even {\nbackground: #eeeeee;\npadding: 1px;\n}\nth {\nfont-size: 11px;\nfont-weight: bold;\ntext-align: left;\nborder-bottom: 1px silver solid;\n}\n.infotable th {\nborder: none;\nvertical-align: top;\n}\ntd {\nvertical-align: top;\nfont-size: 11px;\n}\ntd.event_date {\nwhite-space: nowrap;\n}\ntable.list {\nclear: both;\nborder-bottom: 1px silver solid;\n}\ntable.list td {\npadding: 3px;\nline-height: 130%;\n}\n.listinfo {\nwhite-space:nowrap;\n}\n.nowrap {\nwhite-space:nowrap;\n}\n\n/* definition lists */\ndt {\nfont-weight: bold;\n}\n\n/* \"box\" display for front page */\ntable.box {\nwidth: 100%;\nmargin: 0;\n}\ntd.box {\npadding: 10px;\nwidth: 33%;\nheight: 200px;\nborder: 1px gray dotted;\nfont-size: 11px;\n}\ntd.box p {\nmargin-bottom: 5px;\npadding: 0;\n}\ntd.box h2, td.box h3, td.box h4, .infobox h2, .infobox h3, .infobox h4 {\nmargin-top: 0;\nfont-weight: bold;\n}\n\ndiv.infobox {\nmargin-top: 10px;\nmargin-bottom: 10px;\npadding: 10px;\nborder: 1px silver solid;\n}\n\n.q {\nfont-family: arial,helvetica,sans-serif;\nfont-weight: bold;\nfont-size: 14px;\ncolor: saddlebrown;\n}\n\n/* folders */\ndiv.subfolders {\n/*display: none;*/\n}\ndiv.subfolder {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 10px;\nline-height: 100%;\nwidth: 90px;\nheight: 90px;\noverflow: auto;\nborder: 1px gray solid;\npadding: 2px;\nmargin: 2px;\ntext-align: center;\nfloat: left;\n}\n\nhr {\nheight: 1px;\ncolor: silver;\nmargin: 0;\npadding: 0;\n}\n\n.portal {\nwidth: 100%;\n}\n.portal td {\nmargin: 5px;\npadding: 0;\nborder: 1px navy solid;\n}\n.portal td h3 {\nmargin: 0;\npadding: 5px;\nbackground: navy;\ncolor: white;\nfont-size: 14px;\nfont-weight: bold;\n}\n.portal td p {\npadding: 5px;\n}\na img {\nborder: none;\n}\n\ndiv.notices {\nmargin-left: 1em;\ntext-indent: -1em;\n}\ndiv.notices p {\ndisplay: inline;\n}\n\n.messages {\ntext-align: center;\nmargin: 5px;\npadding: 5px;\nborder: 1px yellow solid;\n}\n#left .messages a {\nborder: none;\ndisplay: inline;\nfont-weight: bold;\n}\n#left .messages br {\ndisplay: inline;\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (72, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'results', '', '<table cellpadding=\"0\" cellspacing=\"2px\" class=\"inputform\">\n{BEGIN:poll_results}\n<tr><td>{poll_option}</td>\n    <td align=\"right\">&nbsp;{poll_votes}</td>\n    <td align=\"right\">&nbsp;{poll_percent}%</td>\n    <td>&nbsp;<span class=\"pollbar\">{poll_bar}</span></td>\n</tr>\n{END:poll_results}\n</table>\n<p>{poll_total} votes have been cast<br>\n<a href=\"{site_path}/document.php?id={doc_id}&revote=1\">Click here to change your vote</a>\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (73, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'rss', '', '<?xml version=\"1.0\" encoding=\"iso-8859-1\" \?\>\n<!-- name=\"generator\" content=\"siteframe/{siteframe_version}\" -->\n<rss version=\"0.92\">\n  <channel>\n    <title>{site_name}</title>\n    <link>{site_url}</link>\n    <copyright>Copyright {!date ''Y''!}, {site_name}. All Rights Reserved.</copyright>\n    <managingEditor>{site_email}</managingEditor>\n    <lastBuildDate>{!date ''F j, Y h:ia T''!}</lastBuildDate>\n    <docs>http://backend.userland.com/rss092</docs>\n  {!if defined(site_description)\n    ''<description>{site_description:nohtml}</description>''\n  !}\n  {!if defined(logo)\n    ''<image>\n        <url>{site_url}/{logo}</url>\n        <title>{site_name:nohtml}</title>\n        <link>{site_url}</link>\n     </image>''\n  !}\n  {BEGIN:recent_docs num_rss _rdx}\n    <item>\n        <title>{doc_title:nohtml}</title>\n        <link>{site_url}/document.php?id={doc_id}</link>\n        <description>\n        {!if defined(doc_summary)\n        ''{doc_summary:nohtml}''\n        ''{doc_body:nohtml}''\n        !}\n        </description>\n        {!if ''(\"{doc_type}\"==\"Image\")||(\"{doc_type}\"==\"File\")''\n        ''<enclosure url=\"{site_url}/{doc_file_100}\" type=\"{doc_file_mime_type}\"/>''\n        !}\n    </item>\n  {END:recent_docs}\n  </channel>\n</rss>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (74, '2003-06-26 19:31:39', '2003-06-26 19:31:39', 14, 0, 'form', 'themes/Swiss/form.ihtml', '<!-- \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ -->\n<p>{form_instructions}</p>\n\n{!menu_item form_action ''{folder_name}''\n  ''{site_path}/folder.php?id={folder_id}''\n  ''{folder_id}+0''!}\n{!menu_item form_action ''{doc_folder_name}''\n  ''{site_path}/folder.php?id={doc_folder_id}''\n  ''{doc_folder_id}+0''!}\n{!menu_item form_action ''{doc_title}''\n  ''{site_path}/document.php?id={doc_id}''\n  ''{doc_id}+0''!}\n<p class=\"action\">\n{!menu form_action '' {sep} ''!}\n</p>\n\n<form method=\"post\" action=\"{form_action}\" name=\"{form_name}\" enctype=\"multipart/form-data\">\n{BEGIN:input_form}\n{!if ''\"{input_form_type}\"==\"ignore\"''\n  ''{input_form_prompt}''\n  ''<p class=\"prompt\">{input_form_prompt}:</p>''\n!}\n{!if defined(input_form_doc) ''<p class=\"doc\">{input_form_doc}</p>''!}\n<p class=\"field\">{input_form_field}</p>\n{END:input_form}\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n{BEGIN:input_form_hidden}\n{hidden_form_field}\n{END:input_form_hidden}\n<input type=\"submit\" value=\"Submit\"/>\n<input type=\"reset\"/>\n</form>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (75, '2003-06-26 19:31:39', '2003-06-26 19:31:39', 14, 0, 'page', 'themes/Swiss/page.ihtml', '<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>{page_title:STRIPTAGS}</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/swiss.css\"/>\n{head_content}\n{rdf}\n</head>\n<body>\n\n{!menu_item topmenu ''Login'' ''{site_path}/login.php'' ''!({user_id}+0)''!}\n{!menu_item topmenu ''Register'' ''{site_path}/register.php'' ''!({user_id}+0)''!}\n{!menu_item topmenu ''Logout'' ''{site_path}/login.php'' ''{user_id}+0''!}\n{!menu_item topmenu ''My Page'' ''{site_path}/user.php?id={user_id}'' ''{user_id}+0''!}\n{!menu_item topmenu ''Prefs'' ''{site_path}/prefs.php'' ''{user_id}+0''!}\n\n<table id=\"top\" width=\"96%\" align=\"center\">\n<tr>\n{!if defined(logo) ''<td rowspan=\"2\" id=\"logo\"><a href=\"{site_url}\" title=\"{site_name}\"><img src=\"{logo}\" alt=\"{site_name} logo\"/></a></td>''!}\n<td width=\"99%\">\n<p id=\"topmenu\">{!menu topmenu '' &nbsp; &nbsp; ''!}</p>\n<h1><a href=\"{site_url}\">{site_name}</a></h1></td></tr>\n<tr><td class=\"sitedesc\">\n{!if defined(folder_path) ''{folder_path}'' ''{site_description}''!}\n</td></tr>\n</table>\n\n<table id=\"content\">\n<tr>\n{!if defined(no_navigation) \n  ''''\n  ''<td id=\"left\">\n   <div class=\"menu\">\n     <p class=\"title\">Menu</p>\n     {navigation}\n   </div></td>\n''!}\n<td id=\"right\">\n{!if defined(no_title) '''' ''<h1>{page_title}</h1>''!}\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\n{recordset}\n{body}\n</td></tr></table>\n\n<table id=\"footer\" width=\"96%\" align=\"center\">\n<tr><td>{footer}</td></tr>\n</table>\n\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (76, '2003-06-26 19:31:39', '2003-06-26 20:03:37', 14, 0, 'popup', 'themes/Swiss/popup.ihtml', '\<\?xml version=\"1.0\" encoding=\"{charset}\"\?\>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\r\n<head>\r\n<title>Control Panel - {page_title:STRIPTAGS}</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{site_path}/themes/{theme}/swiss.css\"/>\r\n<style type=\"text/css\">\r\n<!--\r\nbody {\r\nbackground: ghostwhite;\r\nmargin: 0;\r\npadding: 10px;\r\nfont-family: arial,helvetica,verdana,sans-serif;\r\n}\r\ntextarea {\r\nfont-family: arial,helvetica,verdana,sans-serif;\r\nwidth: auto;\r\n}\r\nform {\r\nborder: none;\r\npadding: 0;\r\nwidth: auto;\r\n}\r\n#top {\r\nborder-bottom: 1px darkgreen solid;\r\nfont-weight: bold;\r\n}\r\n.action {\r\ndisplay: none;\r\n}\r\n-->\r\n</style>\r\n{head_content}\r\n</head>\r\n<body>\r\n<div id=\"top\">\r\n{site_name}\r\n</div>\r\n\r\n<h3>{page_title}</h3>\r\n{!if defined(error) ''<p class=\"error\">{error}</p>''!}\r\n{recordset}\r\n{body}\r\n\r\n<div id=\"footer\">\r\n{footer}\r\n</div>\r\n\r\n</body>\r\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (77, '2003-06-26 19:31:39', '2003-06-29 18:41:48', 14, 0, 'swiss.css', 'themes/Swiss/swiss.css', 'body {\r\nbackground: white;\r\ncolor: black;\r\n}\r\nbody, td, th {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 12px;\r\n}\r\n#top {\r\nmargin-bottom: 20px;\r\n}\r\n#top h1 {\r\nborder-bottom: 1px darkgreen solid;\r\nmargin: 0;\r\nbackground: white;\r\nletter-spacing: 0;\r\nfont-size: 18px;\r\n}\r\n#top h1 a, #top h1 a:visited, #top h1 a:active, #top h1 a:hover {\r\ncolor: black;\r\ntext-decoration: none;\r\n}\r\n#logo {\r\nvertical-align: top;\r\n}\r\n#topmenu {\r\nfloat: right;\r\nmargin: 0 5px 0 0;\r\n}\r\n.sitedesc {\r\nfont-style: italic;\r\nvertical-align: top;\r\n}\r\n#content {\r\nwidth: 92%;\r\nmargin: 0 4% 0 4%;\r\nline-height: 125%;\r\n}\r\n#footer {\r\nwidth: 96%;\r\nmargin-top: 20px;\r\nborder-top: 1px darkgreen solid;\r\ncolor: gray;\r\ntext-align: center;\r\n}\r\n#footer td {\r\ncolor: gray;\r\ntext-align: center;\r\n}\r\n#left {\r\nwidth: 20%;\r\npadding-right: 10px;\r\n}\r\n#right {\r\nwidth: 80%;\r\nfont-family: times new roman, times, serif;\r\nfont-size: small;\r\n}\r\n#right p {\r\nmargin-top: 0;\r\n}\r\n.menu {\r\nbackground: #ccffcc;\r\nborder: 2px darkgreen solid;\r\npadding: 15px;\r\n}\r\n.menu b {\r\nmargin-top: 3px;\r\n}\r\n.menu p {\r\nmargin: 0 0 10px 0;\r\ncolor: darkgreen;\r\n}\r\n.menu .title {\r\nfont-weight: bold;\r\ncolor: darkgreen;\r\ntext-align: center;\r\n}\r\n\r\n.popup {\r\n}\r\n.popup form, .popup textarea {\r\nwidth: auto;\r\n}\r\n\r\n#weblog, .Document, .Comments {\r\nwidth: 600px;\r\nmargin-bottom: 15px;\r\n}\r\n\r\n/* hyperlinks */\r\na {\r\ncolor: mediumblue;\r\ntext-decoration: underline;\r\n}\r\na:active {\r\ncolor: red;\r\n}\r\na:visited {\r\ncolor: purple;\r\n}\r\n\r\n/* headings */\r\nh1,h2,h3,h4 {\r\nfont-family: arial,helvetica,sans-serif;\r\nline-height: 120%;\r\nmargin-bottom: 5px;\r\n}\r\nh1 {\r\nfont-size: 24px;\r\nmargin: 0 0 30px 0;\r\nletter-spacing: -1px;\r\n}\r\nh2 { font-size: 18px; }\r\nh3 { font-size: 15px; }\r\nh4 { font-size: 12px; }\r\nh2.date {\r\ncolor: darkgreen;\r\nfont-size: 12px;\r\nletter-spacing: 2px;\r\nborder-bottom: 1px gray solid;\r\n}\r\nh3.title {\r\nfont-size: 18px;\r\n}\r\n\r\n/* tables */\r\ntd {\r\nvertical-align: top;\r\n}\r\nth {\r\nfont-weight: bold;\r\nbackground: ghostwhite;\r\nborder-bottom: 1px gray solid;\r\n}\r\n.infotable {\r\nwidth: 600px;\r\nborder: 2px darkgreen solid;\r\n}\r\n.infotable th, .intotable td {\r\nbackground: silver;\r\n}\r\n.infotable td, .infotable th, .list th, .list td, .inputform td {\r\n}\r\n.infotable th {\r\ntext-align: right;\r\nvertical-align: top;\r\nwidth: 150px;\r\nborder-right: 1px gray solid;\r\n}\r\n.list {\r\nborder-top: 1px gray solid;\r\nborder-bottom: 1px gray solid;\r\npadding: 2px 10px 2px 10px;\r\nmargin: 10px 0 10px 0;\r\n}\r\n.list p {\r\nmargin: 0 0 3px 0;\r\n}\r\n\r\n/* images */\r\nimg { border: none; }\r\n\r\n/* input forms */\r\nform {\r\nline-height: 120%;\r\nwidth: 600px;\r\nborder-top: 1px gray solid;\r\nborder-bottom: 1px gray solid;\r\npadding: 10px 0 10px 0;\r\n}\r\n.prompt { \r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 13px;\r\nmargin: 10px 0 2px 0; \r\nfont-weight: bold; \r\n}\r\n.doc { \r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 12px;\r\nmargin: 2px 0 2px 0; \r\ncolor: darkgray; \r\n}\r\n.field { \r\nmargin: 2px 0 10px 0; \r\n}\r\ntextarea {\r\nwidth: 500px;\r\n}\r\n\r\n/* various paragraphs */\r\n.info, .author, .recordset {\r\nfont-family: arial,helvetica,sans-serif;\r\ncolor: gray;\r\nfont-size: 12px;\r\n}\r\n.action {\r\nfont-family: arial,helvetica,sans-serif;\r\npadding: 2px;\r\ntext-align: center;\r\nclear: both;\r\nfont-size: 12px;\r\n}\r\n.action a {\r\nmargin: 0 3px 0 3px;\r\n}\r\n.error {\r\nfont-family: arial,helvetica,sans-serif;\r\ncolor: red;\r\nclear: both;\r\nfont-size: 12px;\r\n}\r\n.Comments {\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 12px;\r\n}\r\n.Comments p {\r\nmargin-top: 0;\r\nmargin-bottom: 10px;\r\n}\r\n.Comments .subject {\r\nfont-weight: bold;\r\nfont-size: 13px;\r\nmargin-top: 10px;\r\nmargin-bottom: 0;\r\n}\r\n\r\n/* folders and image boxes */\r\n.subfolders,.imageboxes {\r\nmargin: 5px 0 5px 0;\r\nclear: both;\r\n}\r\n.subfolder,.picbox,.picboxlong {\r\ntext-align:center;\r\nfont-family: verdana,arial,helvetica,sans-serif;\r\nfont-size: 11px;\r\nline-height: 13px;\r\nmargin: 2px;\r\npadding: 2px;\r\nborder: 1px #eeeeee solid;\r\nfloat: left;\r\n}\r\n.subfolder {\r\nwidth: 90px;\r\nheight: 90px;\r\n}\r\n.picbox {\r\nwidth: 110px;\r\nheight: 110px;\r\n}\r\n.picboxlong {\r\nwidth: 110px;\r\nheight: 140px;\r\n}\r\n\r\n.backnext {\r\nfloat:right;\r\n}\r\n\r\n/* division */\r\n.image {\r\ntext-align: center;\r\npadding: 20px;\r\nbackground: ghostwhite;\r\nfont-family: arial,helvetica,sans-serif;\r\nfont-size: 12px;\r\nmargin-bottom: 15px;\r\n}\r\n.description {\r\ntext-align: left;\r\n}\r\n.path {\r\nfont-style: normal;\r\ncolor: gray;\r\n}\r\n\r\n\r\n/* miscellaneous */\r\n.pollbar {\r\nbackground: darkgreen;\r\n}\r\n.odd {\r\npadding: 1px;\r\n}\r\n.even {\r\nbackground: ghostwhite;\r\npadding: 1px;\r\n}\r\n.messages {\r\nbackground: yellow;\r\npadding: 10px;\r\ntext-align: center;\r\nline-height: 120%;\r\nmargin: 10px 0 10px 0;\r\n}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (78, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'ratings', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### displays ratings\n#!}\n{!set page_title ''{doc_title:Ratings for \"%s\"}''!}\n<p class=\"info\">\n<a href=\"{site_path}/document.php?id={doc_id}\">{!if ''\"{doc_type}\"==\"Image\"''\n    ''<img src=\"{doc_file_150}\" border=\"0\" alt=\"\" title=\"{doc_title}\">''\n    ''Return to {doc_type}''\n!}\n</a></p>\n<p>Current rating: {doc_rating:%1.1f}/{doc_rating_count}</p>\n<h3>Distribution</h3>\n<table border=\"0\">\n<tr>\n    <th>Rating</th>\n    <th width=\"40px\">#</th>\n    <th width=\"40px\">%</th>\n    <th>Graph</th>\n</tr>\n{BEGIN:ratings}\n<tr>\n    <td align=\"right\">{rating}</td>\n    <td align=\"right\">{rating_count}</td>\n    <td align=\"right\">{rating_percent:%5.1f}%</td>\n    <td><span class=\"pollbar\">{rating_bar}</span></td>\n</tr>\n{END:ratings}\n</table>\n<h3>Ratings</h3>\n<table border=\"0\">\n<tr>\n    <th>User</th>\n    <th>Rating</th>\n</tr>\n{BEGIN:rating_users}\n<tr class=\"{row_class}\">\n    <td><a href=\"{site_path}/user.php?id={rating_user_id}\">{rating_user_name}</a></td>\n    <td align=\"right\">{user_rating}</td>\n</tr>\n{END:rating_users}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (79, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'related_articles', '', '{!# related_articles.ihtml\n### displays other articles in the current folder\n### only works from /document.php\n### this will also not work on pages that include another document\n### iteration (such as a BEGIN:all_docs autoblock\n#!}\n<div class=\"sidebar\">\n<b>Related Articles</b><br/>\n{BEGIN:folder_docs doc_folder_id}\n{!if ''({main_doc_id}+0)==({doc_id}+0)''\n  ''&gt; <b>{doc_title}</b>''\n  ''&bull; <a href=\"/document.php?id={doc_id}\">{doc_title}</a>''\n!}\n<br/>\n{END:folder_docs}\n</div>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (80, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'photo_gallery', '', '{!# this template creates a photo gallery of the most recent 25 images on the site !}\n\n<div class=\"images\">\n{BEGIN:recent_images 25}\n <div class=\"picbox\">\n  <a href=\"{site_path}/document.php?id={doc_id}\"\n  ><img src=\"{doc_file_100}\" alt=\"{doc_title}\"/></a>\n </div>\n{END:recent_images}\n</div><!-- images -->');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (81, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'poll', '', '<div class=\"Poll\">\n    {!if defined(doc_body) ''<p>{doc_body}</p>''!}\n    {poll_display}\n</div>\n<p class=\"info\">\nby <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>{!user_indicators doc!}\n</p>\n{template:comment}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (82, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'pollfolder', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### pollfolder - display a folder of polls\n#!}\n<p>{folder_body}</p>\n<h3>Contents</h3>\n<ul>\n{BEGIN:folder_docs folder_id x1}\n<li><a href=\"#poll{doc_id}\">{doc_title}</a></li>\n{END:folder_docs}\n</ul>\n\n<hr/>\n<p class=\"action\"><a href=\"{site_path}/edit.php?folder={folder_id}&class=Poll\">\nAdd Poll to folder</a></p>\n\n<table border=\"0\" width=\"100%\">\n{BEGIN:folder_docs folder_id x2}\n{!if ''\"{row_class}\"==\"odd\"''\n    ''<tr>''\n!}\n<td width=\"50%\">\n    <h3>{!bookmark \"poll{doc_id}\"!}{doc_title}</h3>\n    <p>{doc_body}</p>\n    {poll_display}\n    <p class=\"info\">by\n    <a href=\"{site_path}/user.php?id={doc_owner_id}\">{doc_user_name}</a>{!user_indicators doc!}\n    </p>\n</td>\n{!if ''\"{row_class}\"!=\"odd\"''\n    ''</tr>''\n!}\n{END:folder_docs}\n</table>\n<p class=\"info\">\n    folder owned by\n    <a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user indicators folder!}\n</p>\n{!if editor(folder_owner_id)\n''<div class=\"edit\"><p class=\"editor\">\n <a href=\"{site_path}/editfolder.php?id={folder_id}\">Edit</a>\n <a href=\"{site_path}/deletefolder.php?id={folder_id}\">Delete</a>\n </p></div>''\n!}\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (83, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notify_html', '', '<div style=\"text-align:center; font-size:smaller; text-transform:uppercase; border-bottom: 1px black solid; margin-bottom: 40px;\">{site_name}</div>\n<h1>Subscription Notifications</h1>\n<p class=\"info\">{user_name}<br/>\n{!date ''{site_date_format} {site_time_format}''!}</>\n\n<p><i>{notify_frequency_display} notifications</i></p>\n\n<hr/>\n\n<dl>\n{BEGIN:subscr_notifications user_id htmlversion}\n<dt>{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}</dt>\n<dd><b>{note_message}</b><br/>\n<a href=\"{note_url}\">{note_url}</a>\n{!if defined(note_body) ''<blockquote><i>{note_body:nohtml}</i></blockquote>''!}\n</dd>\n{END:subscr_notifications}\n</dl>\n\n<hr/>\n\n<p class=\"info\">\nThis message is sent from {site_name}<br/>\n<a href=\"{site_url}\">{site_url}</a><br/>\nYou can edit your subscriptions at\n<a href=\"{site_url}/subscriptions.php?id={user_id}\">{site_url}/subscriptions.php?id={user_id}</a>\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (84, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'notify_immediate', '', '{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}\n{note_message}\n{note_url}\n\n{note_body}\n\n----------------------------------------------------------------------\nYou can edit the subscription that generated this notification at:\n{site_url}/subscribe.php?id={note_subscr_id}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (85, '2003-06-28 18:54:47', '2003-06-28 18:54:47', 0, 0, 'notify_online', '', '{!# notify - this template is used to generate popup subscription notifications\n## since the popup is intended to be a fairly small window, this template generates\n## the entire page, and not just the body. !}\n<?xml version=\"1.0\" encoding=\"{charset}\"\?\>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n        \"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{language}\" lang=\"{language}\">\n<head>\n<title>{page_title}</title>\n<style type=\"text/css\">\nbody { font-family: verdana, arial, helvetica, sans-serif; font-size:12px; }\n#banner {\nfont-family: georgia, times new roman, times, serif;\nfont-size: 16px;\nfont-weight: bold;\ncolor: navy;\nborder-bottom: 1px gray solid;\nmargin-bottom: 5px;\npadding-bottom: 2px;\ntext-align:right;\n}\nh3 { color: gray; }\nblockquote { font-style:italic; margin:5px; }\n.item {\nborder-bottom: 1px gray solid;\npadding-bottom: 5px;\nmargin-bottom: 5px;\n}\n.info { text-align: right; font-size: smaller; }\n</style>\n{head_content}\n</head>\n<body>\n<div id=\"banner\">{site_name}</div>\n<h3>{page_title}</h3>\n{BEGIN:active_notifications user_id}\n<div class=\"item\">\n<p>{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}<br/>\n<b>{note_message}</b><br/>\n<a href=\"#\" onClick=\"opener.location.href=''{note_url}'';\">{note_url}</a></p>\n{!if defined(note_body) ''<blockquote>{note_body:nohtml}</blockquote>''!}\n{!if defined(note_from_id)\n  ''<p class=\"info\">From <a href=\"{site_path}/user.php?id={note_from_id}\">{note_from}</a> [<a href=\"#\" onClick=\"window.open(&#34;{site_path}/message.php?id={note_from_id}&#34;,&#34;reply&#34;)\">Reply</a>]''\n!}\n</div>\n{END:active_notifications}\n<form method=\"post\" action=\"\">\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n<input type=\"submit\" value=\"Acknowledge\"/>\n</form>\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (86, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 2, 'Navigation - Simple', '', '{!# This is a simple navigation menu for personal sites!}\n<a href=\"{site_path}/\">Home</a><br/>\n<a href=\"{site_path}/register.php\">Register</a><br/>\n<a href=\"{site_path}/login.php\">Login</a><br/>\n<a href=\"{site_path}/search.php\">Search</a><br/>\n<a href=\"{site_path}/user.php\">My Page</a><br/>\n<a href=\"{site_path}/prefs.php\">Preferences</a><br/>\n{!if admin(user_id) ''<a href=\"{site_path}/admin\">Control Panel</a><br/>''!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (87, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 2, 'Navigation - Standard', '', '{!# This is a standard navigation menu !}\n<a href=\"{site_path}/\">Home</a><br/>\n<a href=\"{site_path}/register.php\">Register</a><br/>\n<a href=\"{site_path}/login.php\">Login</a><br/>\n<a href=\"{site_path}/search.php\">Search</a><br/>\n<a href=\"{site_path}/user.php\">My Page</a><br/>\n<a href=\"{site_path}/prefs.php\">Preferences</a><br/>\n<a href=\"{site_path}/edit.php\">New Document</a><br/>\n<a href=\"{site_path}/editfolder.php\">New Folder</a><br/>\n<a href=\"{site_path}/folders.php\">List Folders</a><br/>\n<a href=\"{site_path}/docs.php\">List Documents</a><br/>\n<a href=\"{site_path}/groups.php\">List Groups</a><br/>\n<a href=\"{site_path}/users.php\">List Users</a><br/>\n{!if admin(user_id) ''<a href=\"{site_path}/admin\">Control Panel</a><br/>''!}\n{!# the \"default\" menu adds folders and categories here !}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (88, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notice', '', '<p class=\"info\">\nBegins: {!date ''{site_date_format}'' ''{notice_begin_date}''!}\nEnds: {!date ''{site_date_format}'' ''{notice_end_date}''!}\n</p>\n{doc_body}\n{template:edit}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (89, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notices', '', '<h3>All Notices</h3>\n<table class=\"list\">\n<tr><th>Notice </th><th>Begin </th><th>End </th></tr>\n{BEGIN:all_notices}\n<tr class=\"{row_class}\">\n<td><div class=\"notices\">\n    <a href=\"{site_path}/document.php?id={doc_id}\"><b>{doc_title_display}</b></a>\n    {doc_body}</div></td>\n<td style=\"white-space:nowrap;\">\n  {!date ''{site_date_format}'' ''{notice_begin_date}''!}</td>\n<td style=\"white-space:nowrap;\">\n  {!date ''{site_date_format}'' ''{notice_end_date}''!}</td>\n</tr>\n{END:all_notices}\n</table>\n\n<h3>Active Notices</h3>\n<table class=\"list\">\n<tr><th>Notice </th><th>Begin </th><th>End </th></tr>\n{BEGIN:active_notices}\n<tr class=\"{row_class}\">\n<td><div class=\"notices\">\n    <a href=\"{site_path}/document.php?id={doc_id}\"><b>{doc_title_display}</b></a>\n    {doc_body}</div></td>\n<td style=\"white-space:nowrap;\">\n  {!date ''{site_date_format}'' ''{notice_begin_date}''!}</td>\n<td style=\"white-space:nowrap;\">\n  {!date ''{site_date_format}'' ''{notice_end_date}''!}</td>\n</tr>\n{END:active_notices}\n</table>\n\n<p class=\"action\">&bull;\n  <a href=\"{site_path}/edit.php?class=Notice\">Create a new Notice</a>\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (90, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notification', '', 'Notification of new {notify_type}\n{notify_title} {!if ''\"{notify_type}\"==\"document\"'' ''({doc_type_display})''!}\n{site_url}/{notify_program}?id={notify_id}\n\nYou are receiving this message because you requested to be notified about any new {notify_type}s at {site_name}. If you no longer wish to receive these notifications, you can also your settings at {site_url}/prefs.php');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (91, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notifications', '', '<p>To delete a notification, click the checkbox beside it and\npress the <b>Delete Checked</b> button. Click on the \"Toggle All\" link to turn\ncheckboxes on and off.</p>\n\n<script language=\"JavaScript\" type=\"text/javascript\">\n<!--\nfunction CheckAll() {\n  for (var i = 0; i < document.noteform.elements.length; i++) {\n    if(document.noteform.elements[i].type == ''checkbox''){\n      document.noteform.elements[i].checked = !(document.noteform.elements[i].checked);\n    }\n  }\n}\n//-->\n</script>\n\n<form method=\"post\" name=\"noteform\" action=\"{site_path}/notifications.php?id={user_user_id}\">\n<table class=\"list\">\n<tr>\n  <th>Created</th>\n  <th>Delivered</th>\n  <th>Message</th>\n  <th>Del</th>\n</tr>\n{BEGIN:all_notifications user_user_id}\n<tr class=\"{row_class}\">\n  <td>{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}</td>\n  <td align=\"center\">{!if defined(note_sent) ''Yes'' ''-''!}</td>\n  <td>\n<b>{note_message}</b>\n{!if defined(note_url)\n  ''<br/><a href=\"{note_url}\">{note_url}</a>''!}\n{!if defined(note_body) ''<br/>{note_body:nohtml}''!}\n{!if defined(note_from_id)\n  ''<br/><small>from <a href=\"{site_path}/user.php?id={note_from_id}\">{note_from}</a></small>''\n!}\n  </td>\n  <td align=\"center\">\n    <input type=\"checkbox\" name=\"remove[]\" value=\"{note_id}\"/>\n  </td>\n</tr>\n{END:all_notifications}\n<tr><td colspan=\"4\" align=\"right\">\n  [<a href=\"#\" onClick=\"javascript:CheckAll();\">Toggle All</a>]\n</td></tr>\n</table>\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n<input type=\"submit\" value=\"Delete Checked\"/>\n<input type=\"reset\"/>\n</form>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (92, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'notify_ascii', '', '{!# template generates ASCII e-mail notifications !}\n{site_name} Subscription Notifications\n{user_name}\n{!date ''{site_date_format} {site_time_format}''!}\n\n{notify_frequency_display} notifications\n\n-----------------------------------------------------------------------------\n\n{BEGIN:subscr_notifications user_id asciiversion}\n{!date ''{site_date_format} {site_time_format}'' ''{note_created}''!}\n  {note_message}\n  {note_url}\n  {note_body:nohtml}\n{END:subscr_notifications}\n\n-----------------------------------------------------------------------------\n\nThis message is sent from {site_name}\n{site_url}\nYou can edit your subscriptions at {site_url}/subscriptions.php?id={user_id}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (93, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'month', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### generates (hopefully) a calendar of events\n#!}\n{!set no_title ''Yes''!}\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n<tr><td>\n&lt;&lt;<a href=\"{site_path}/month.php?y={prev_year}&amp;m={prev_month}\">{!date\n    ''F Y'' ''{prev_year}-{prev_month}-1''!}</a>\n</td>\n<td align=\"center\">\n<h2>{month} {year}</h2>\n</td>\n<td align=\"right\">\n<a href=\"{site_path}/month.php?y={next_year}&amp;m={next_month}\">{!date\n    ''F Y'' ''{next_year}-{next_month}-1''!}</a>&gt;&gt;\n</td>\n</tr></table>\n<table class=\"calendar\" width=\"100%\" align=\"center\">\n<tr>\n    <th width=\"12%\">Sunday</th>\n    <th width=\"15%\">Monday</th>\n    <th width=\"15%\">Tuesday</th>\n    <th width=\"15%\">Wednesday</th>\n    <th width=\"15%\">Thursday</th>\n    <th width=\"15%\">Friday</th>\n    <th width=\"12%\">Saturday</th>\n</tr>\n{BEGIN:month_days yearmon}\n{!if ''({mday}==1)&&({wday}!=0)''\n    ''<td colspan=\"{wday}\">&nbsp;</td>''\n!}\n{!if ''{wday}==0''\n    ''<tr>''\n!}\n<td class=\"day\"><p class=\"calday\">\n    {!if ''(({mday}+0)==({thisday}+0))&&(({mon}+0)==({thismonth}+0))&&({year}=={thisyear})''\n        ''<span class=\"today\">{mday}</span>''\n        ''{mday}''\n    !}</p>\n    <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\n    {BEGIN:day_events}\n    <tr>\n    <td style=\"font-size:9px;\">{!if ''{hours}'' ''{hours:%02d}:{minutes:%02d}''!}\n        <a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>\n    </td></tr>\n    {END:day_events}\n    </table>\n{!if ''{wday}==6''\n    ''</tr>''\n!}\n{END:month_days}\n{!if ''{wday}!=6''\n    ''</tr>''\n!}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (94, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'link', '', '<p>Link: <a href=\"{doc_link_url}\">{doc_link_url}</a></p>\n<p>{doc_body}</p>\n<p class=\"info\">\n    <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>\n    {!if defined(doc_folder_name)\n        ''| <a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\n    !}\n    | {!date ''{site_date_format}'' ''{doc_created}''!}\n</p>\n{template:comment}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (95, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'macros', '', '{!# Siteframe Macro Library\n### Copyright (c)2001, Broadpool, LLC. All rights reserved.\n#!}\n{!set macro_library_version ''\$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $''!}\n{!# ---------------------------------------------------------------------------\n### user - generates a hyperlinked reference to a user\n### syntax:\n###   !user N\n### example:\n###   !user 371\n#!}\n{!define user\n    ''{BEGIN:user \$1 user\$1}<a href=\"{site_path}/user.php?id={user_user_id}\"\n    >{user_user_name}</a>{END:user}''\n!}\n{!# ---------------------------------------------------------------------------\n### doclink - generates a hyperlinked reference to a document\n### n.b. name changed from ''document'', which is an internal macro that inserts\n### the entire contents of a document at the macro location\n### syntax:\n###   !doclink N\n### example:\n###   !doclink 132\n#!}\n{!define doclink\n    ''{BEGIN:document $1 doc$1}<a href=\"{site_path}/document.php?id={doc_id}\"\n    >{doc_title}</a>{END:document}''\n!}\n{!# ---------------------------------------------------------------------------\n### folder - generates a hyperlinked reference to a folder\n### syntax:\n###   !folder N\n### example:\n###   !folder 132\n#!}\n{!define folder\n    ''{BEGIN:folder $1 folder$1}<a href=\"{site_path}/folder.php?id={folder_id}\"\n    >{folder_name_display}</a>{END:folder}''\n!}\n{!# ---------------------------------------------------------------------------\n### thumbnail - generates a clickable thumbnail\n### syntax:\n###   !thumbnail doc_id [options]\n### example:\n###   !thumbnail 242 ''align=\"right\"''\n### if you want thumbnails to be a different size, then change\n### {doc_file_150} to reference a different thumbnail size\n#!}\n{!define thumbnail\n    ''{BEGIN:document $1 thumb$1}\n     <a href=\"{site_path}/document.php?id={doc_id}\"\n     ><img src=\"{doc_file_150}\" alt=\"{doc_title}\" border=\"0\"\n          title=\"{doc_title}\" $2\n     /></a>\n     {END:document}''\n!}\n{!# ---------------------------------------------------------------------------\n### link - generates a hyperlink\n### syntax:\n###   !link text href\n### example:\n###   !link ''The Contax G Pages'' ''http://www.contaxg.com''\n#!}\n{!define link\n    ''<a href=\"$2\">$1</a>''\n!}\n{!# ---------------------------------------------------------------------------\n### bookmark - similar to the above, but generates a named bookmark\n### syntax:\n###   !bookmark ''name''\n#!}\n{!define bookmark\n    ''<a name=\"$1\"></a>''\n!}\n{!# ---------------------------------------------------------------------------\n### icon definitions\n#!}\n{!define icon\n    ''{site_path}/images/\$1.gif''\n!}\n{!# ---------------------------------------------------------------------------\n### powered_by_siteframe\n### generates a link to the \"Powered by Siteframe\" image\n###\n### powered_by_siteframe_graphic\n### generates a link with a graphic image\n#!}\n{!define powered_by_siteframe\n    ''<a href=\"http://siteframe.org\">Powered by Siteframe</a>''\n!}\n{!define powered_by_siteframe_graphic\n    ''<div \$1><a href=\"http://siteframe.org\"\n    ><img src=\"http://siteframe.org/siteframepower.gif\"\n          alt=\"Powered by Siteframe\"\n          title=\"a .COMmunity powered by Siteframe\"\n    /></a></div>''\n!}\n{!# ---------------------------------------------------------------------------\n#!}\n{!set siteframe_credits\n    ''Many thanks to the following people whose contributions helped to make\n     this a great product: Richard Sintchak, Knut Skjaerven, Lincoln Michaud,\n     Charez Golvalez,\n     Vish Vishvanath, Anita Campbell, Ted Campbell, Ted Pecot,\n     Dennis Adams, Barbara Adams, Bob Cousins, Steve Moorey, Christopher Chen,\n     and Rich Preston &bull; Thanks to Nikon for making great cameras &bull;\n     Thanks to Contax for making great cameras and for inspiring this work\n     &bull; Special thanks to Elam for teaching me that baseball is more\n     important than software &bull; Mountain Dew / Code Red &bull; FreeBSD\n     &bull; SuSE Linux''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (96, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'inlcomment', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### this file defines an inline form that can be used\n### for adding comments to a document !}\n{!if defined(user_id)\n''<form method=\"post\" \n       action=\"{site_path}/comment.php\" \n       enctype=\"multipart/form-data\" >\n    <p class=\"prompt\">Subject:</p>\n    <p class=\"field\">\n        <input type=\"text\" name=\"comment_subject\" />\n    </p>\n    <p class=\"prompt\">Comment:</p>\n    <p class=\"field\">\n        <textarea name=\"comment_body\" class=\"inputbox\" rows=\"5\" cols=\"50\"></textarea>\n    </p>\n    <p class=\"prompt\">Send comment to:</p>\n    <input type=\"hidden\" name=\"send_email\" value=\"1\"/>\n    <input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n    <input type=\"hidden\" name=\"comment_reply_to\" value=\"\"/>\n    <input type=\"hidden\" name=\"comment_owner_id\" value=\"{user_id}\"/>\n    <input type=\"hidden\" name=\"comment_doc_id\" value=\"{doc_id}\"/>\n    <input type=\"submit\" value=\"Submit\"/>\n    <input type=\"reset\"/>\n</form>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (97, '2003-06-28 18:54:46', '2005-08-21 02:21:44', 0, 1, 'index', '', '{!# generic index.php template - weblog format !}\r\n{!set no_title \TRUE!} {!# this turns off the front page title !}\r\n<img src=\"{site_path}/images/siteframepower.gif\" alt=\"Siteframe {siteframe_version}\" align=\"right\"/>\r\n\r\n<h1>Welcome {siteframe_version}</h1>\r\n<p>This is the default home page for a \r\n<a href=\"http://siteframe.org\">Siteframe</a>-powered website. \r\nYou should replace this with a home page of your own choosing, \r\nor you can modify this page to suit your needs.</p>\r\n<h2>Changing the home page</h2>\r\n<p>To edit this page, navigate to \r\n<a href=\"{site_path}/admin/\">Control Panel</a> \r\n&rarr; Maintain content templates, and click on \"index\".</p>\r\n<p>To select another home page template, navigate to \r\n<a href=\"{site_path}/admin/\">Control Panel</a> \r\n&rarr; Extended properties, and choose another template \r\nfrom the drop-down menu by HOME_PAGE.</p>\r\n<p>To create your own home page template:</p>\r\n<ol>\r\n<li>Navigate to <a href=\"{site_path}/admin/\">Control Panel</a> \r\n&rarr; Maintain content templates.</li>\r\n<li>Select \"Create a new template.\"</li>\r\n<li>Set the template type to \"Home Page\" and enter any desired \r\nhome page text, then press Save.</li>\r\n<li>Go to <a href=\"{site_path}/admin/\">Control Panel</a> \r\n&rarr; Extended properties, then choose your new template \r\nfrom the HOME_PAGE drop-down list.</li>\r\n</ol>\r\n<p>It is recommend that you do <em>not</em> modify one of the\r\nexisting templates, since your changes may be lost in a future software\r\nupgrade. Either use an existing template unchanged, or create a copy of\r\nan existing template to modify.</p>\r\n\r\n<h2>Administrative user account</h2>\r\n<p>During the installation process, you should have created at least one\r\nadministrative user account. If you did not, you will be unable to maintain\r\nand manage this website.</p>\r\n<p>To create a new administrative user,\r\n<a href=\"{site_path}/admin/newadmin.php\">click here</a>.</p>\r\n<p>If your site already has an administrative user, you are required to\r\nlogin before using the Control Panel.</a>\r\n\r\n<h2>Configuring your site</h2>\r\n<p>If you''re seeing this page, then you have already completed at least the \r\nfirst stage in your site configuration. You can also visit the \r\n<a href=\"{site_path}/admin/properties.php\">Extended properties</a>\r\npage for other configuration options.</p>\r\n\r\n<h2>Site Statistics</h2>\r\n<p>The <a href=\"{site_path}/admin/\">Control Panel</a> contains\r\nlinks to a number of useful reports about your site, including the numbers\r\nof unique visitors per day, lists of referrers, and the most recent visitors\r\nto your site.</p>\r\n\r\n<h2>Further support</h2>\r\n<p>More documentation is available at the Siteframe website\r\n(<a href=\"http://siteframe.org\">http://siteframe.org</a>). \r\nIn addition, there are a number of mailing lists that Siteframe administrators\r\nuse to assist each other with configuring and maintaining their sites.\r\nYou can find more information about these at the Siteframe website.</p>\r\n<p>If you have specific problems or questions, you can contact Siteframe\r\ntechnical support at:</p>\r\n<blockquote><a href=\"mailto:support@siteframe.org\">support@siteframe.org</a></blockquote>\r\n<p>You can submit feedback to the Siteframe development team via your\r\n<a href=\"{site_path}/admin/feedback.php\">Control Panel feedback page</a>.\r\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (98, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'image', '', '{!# special head_content - this defines styles used for the close box\n    as well as the JavaScript necessary to maintain the cookie which\n    indicates whether the imageinfo box is hidden or displayed\n#!}\n{!set head_content ''\n<style type=\"text/css\">\n.xbutton {\nfloat:right;\nheight:13px;\nwidth:12px;\nfont-family:arial,helvetica,sans-serif;\nfont-size:12px;\nfont-weight:bold;\ntext-align:center;\nborder-top:1px silver solid;\nborder-left:1px silver solid;\nborder-right:1px black solid;\nborder-bottom:1px black solid;\nbackground:gray;\ncolor:silver;\n}\n.xbutton a,.xbutton a:visited {\ncolor:silver;\ntext-decoration:none;\n}\n.xbutton a:hover {\ntext-decoration:none;\ncolor:white;\n}\n.xbutton a:active {\ncolor:black;\n}\n</style>\n<script language=\"JavaScript\">\nfunction setCookie(name,value)\n{\n  var nextyear = new Date();\n  nextyear.setFullYear(nextyear.getFullYear()+1);\n  document.cookie = escape(name)+\"=\"+escape(value)+\";path={site_path}/;expires=\"+nextyear.toGMTString();\n}\n</script>'' 1!}\n\n\n<div class=\"backnext\">\n<table>\n<tr><td width=\"50%\" align=\"right\">\n{!if defined(prev_id)\n    ''<b><a href=\"{site_path}/document.php?id={prev_id}\">&larr;<span>Back</span></a></b>&nbsp;''\n    ''&nbsp;''\n!}\n</td><td>\n{!if defined(next_id)\n  ''&nbsp;<b><a href=\"{site_path}/document.php?id={next_id}\"><span>Next</span>&rarr;</a></b>''\n  ''&nbsp;''\n!}\n</td></tr></table>\n</div>\n<div class=\"image\">\n    <p class=\"imageframe\">\n    {!if defined(image_full_size)\n        ''<img src=\"{doc_file}\" border=\"0\" alt=\"{doc_title}\" title=\"{doc_title}\"/>''\n        ''<a href=\"{site_path}/document.php?id={doc_id}&full=1\"><img {doc_image_default} border=\"0\"\n            alt=\"{doc_title}\" title=\"{doc_title}\"/></a>''\n    !}\n    <br/>\n    Copyright &copy;{!date ''Y'' ''{doc_created}''!}, {!if defined(image_copyright) ''{image_copyright}'' ''{doc_user_name}''!}\n    </p>\n    <div class=\"description\">\n    {doc_body}\n    </div>\n</div>\n\n<div class=\"infotablewrapper\">\n<table class=\"infotable\" {!if ''{_COOKIE_hideinfo}+0'' ''style=\"display:none;\"''!}>\n    <tr><th>Photographer: </th>\n        <td>\n        {!if ''{_COOKIE_hideinfo}+0''\n        ''''\n        ''<div class=\"xbutton\"><a href=\"{site_path}/document.php?id={doc_id}\"\n            title=\"Click to hide image information box\"\n            onClick=\"setCookie(&#34;hideinfo&#34;,1);\">X</a></div>''\n        !}\n        <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>\n        {!user_indicators doc!}\n        </td>\n        </tr>\n    <tr><th>Folder: </th>\n        <td>{!if ''{doc_folder_id}''\n        ''<a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\n        !} </td>\n        </tr>\n    <tr><th>Uploaded: </th>\n        <td>{!date ''{site_date_format} {site_time_format}'' ''{doc_created}''!} </td>\n        </tr>\n{!if ''({allow_ratings}+0)&&(iseditor({doc_user_id})||{doc_rating_count}>4)''\n    ''<tr><th>Current Rating: </th>\n     <td>{doc_rating:%.2f}/{doc_rating_count:%d}<br/>\n     <a href=\"{site_path}/ratings.php?id={doc_id}\">View all ratings</a><br/>\n     <a href=\"{site_path}/deleterating.php?id={doc_id}\">Delete my rating</a>\n     </td></tr>''\n!}\n{!if defined(doc_share_count)\n    ''<tr><th>Sharing: </th>\n     <td>{doc_share_count:%d} time(s).\n     </td></tr>''\n!}\n    <tr><th>Copying allowed: </th>\n        <td>{!if ''{copying_allowed}+0'' ''Yes'' ''No''!}\n            {!if ''{copying_allowed}+0''\n                ''<a href=\"#\" onClick=\"document.sflyc4p.submit();return false;\">\n                    Print this photo on Shutterfly</a>''\n            !}\n        </td>\n        </tr>\n    <tr><th>Model release available: </th>\n        <td>{!if ''{image_model_release}+0'' ''Yes'' ''No''!}</td>\n        </tr>\n    <tr><th>Camera: </th>\n        <td>{image_camera}</td>\n        </tr>\n    <tr><th>Lens: </th>\n        <td>{image_lens}</td>\n        </tr>\n    <tr><th>Film: </th>\n        <td>{image_film}</td>\n        </tr>\n    <tr><th>Exposure: </th>\n        <td>{image_exposure}</td>\n        </tr>\n    <tr><th>Flash: </th>\n        <td>{!if ''{image_flash}+0'' ''Yes'' ''No''!}</td>\n        </tr>\n    <tr><th>Support: </th>\n        <td>{image_support}</td>\n        </tr>\n    <tr><th>Filtration: </th>\n        <td>{image_filter}</td>\n        </tr>\n    <tr><th>Adjustments (digital/darkroom): </th>\n        <td>{image_adjustment}</td>\n        </tr>\n    <tr><th>Scan resolution: </th>\n        <td>{image_height}x{image_width}</td>\n        </tr>\n</table>\n</div>\n\n{template:comment}\n\n{!if ''{copying_allowed}+0''\n    ''<form id=\"shutterfly\" name=\"sflyc4p\" action=\"http://www.shutterfly.com/c4p/UpdateCart.jsp\" method=\"post\">\n      <input type=\"hidden\" name=\"addim\" value=\"1\">\n      <input type=\"hidden\" name=\"protocol\" value=\"SFP,100\">\n      <input type=\"hidden\" name=\"pid\" value=\"C4P\">\n      <input type=\"hidden\" name=\"psid\" value=\"AFFL\">\n      <input type=\"hidden\" name=\"referid\" value=\"a2iXxMnVb\">\n      <input type=\"hidden\" name=\"offerid\" value=\"34049\">\n      <input type=\"hidden\" name=\"returl\" value=\"{site_url}/document.php?id={doc_id}\">\n      <input type=\"hidden\" name=\"imraw-1\" value=\"{site_url}/{doc_file}\">\n      <input type=\"hidden\" name=\"imrawheight-1\" value=\"{image_height}\">\n      <input type=\"hidden\" name=\"imrawwidth-1\" value=\"{image_width}\">\n      <input type=\"hidden\" name=\"imthumb-1\" value=\"{site_url}/{doc_file_150}\">\n      <input type=\"hidden\" name=\"imbkprntb-1\" value=\"Hi\">\n    </form>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (99, '2003-06-28 18:54:46', '2003-06-30 23:14:20', 0, 1, 'Home Page - Weblog', '', '{!# generic index.php template - weblog format !}\r\n{!set no_title \TRUE!} {!# this turns off the front page title !}\r\n\r\n<div id=\"weblog\">\r\n{BEGIN:doc_days 14}\r\n<h2 class=\"date\">{!date ''{site_date_format}'' ''{day}''!}</h2>\r\n\r\n  {BEGIN:day_docs day}\r\n  <h3 class=\"title\">{doc_title}</h3>\r\n  {!case ''{doc_type}''\r\n\r\n    ''Image''   ''<a href=\"{site_path}/document.php?id={doc_id}\"\r\n              ><img src=\"{doc_file_400}\" alt=\"{doc_title}\"/></a>''\r\n\r\n    ''Poll''    ''{poll_display}''\r\n\r\n    ''Link''    ''Link: <a href=\"{doc_link_url}\">{doc_link_url}</a>''\r\n\r\n  !}\r\n  {!if defined(doc_summary)\r\n    ''{doc_summary}\r\n     <p>&raquo;&nbsp;<a href=\"{site_path}/document.php?id={doc_id}\">Click \r\n     here for entire document</a></p>''\r\n    ''{doc_body}''\r\n  !}\r\n  <p class=\"info\">\r\n  Posted by {!user ''{doc_user_id}''!}\r\n  at {!date ''{site_time_format}'' ''{doc_created}''!}\r\n  {!if ''{doc_folder_id}''\r\n    ''in <a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\r\n  !}\r\n  {sep}\r\n  <a href=\"{site_path}/document.php?id={doc_id}\">permanent link</a>\r\n  {!if ''{allow_comments}+0''\r\n    ''{sep} <a href=\"#\" onClick=\"window.open(&#34;{site_path}/comments.php?id={doc_id}&#34;, &#34comments&#34;, &#34;height=500,width=350,scrollbars=yes&#34;);\">{doc_comment_count:%d} comment(s)</a>''\r\n  !}\r\n  </p>\r\n  {END:day_docs}\r\n\r\n{END:doc_days}\r\n</div><!-- weblog -->\r\n\r\n<a href=\"http://siteframe.org\"><img src=\"{site_path}/images/siteframepower.gif\" alt=\"Siteframe {siteframe_version}\"/></a>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (100, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'groups', '', '<!-- displays all groups -->\n\n<table class=\"list\">\n<tr><th>Group Name </th><th>Group Owner </th><th>Created </th></tr>\n{BEGIN:all_groups}\n<tr><td><a href=\"{site_path}/group.php?id={group_id}\"><b>{group_name}</b></a>\n{group_body}</td>\n<td><a href=\"{site_path}/user.php?id={group_owner_id}\">{group_user_name}</a></td>\n<td>{!date ''{site_date_format}'' ''{group_created}''!}</td>\n</tr>\n{END:all_groups}\n</table>\n\n{!if defined(user_id)\n ''<p class=\"action\"><a href=\"{site_path}/editgroup.php\">Create a new group</a></p>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (101, '2003-06-28 18:54:46', '2003-07-06 05:48:49', 0, 1, 'Home Page - Folders', '', '{!# This page layout displays a list of folders !}\r\n{!set no_title TRUE!}\r\n\r\n<p> add a general site description at the top of the page </p>\r\n\r\n{template:folderlist} {!# this template displays all folders !}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (102, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'group', '', '{group_body}\n<table class=\"list\">\n<tr><th>Member Name </th><th>Date Added </th></tr>\n{BEGIN:group group_id}\n<tr class=\"{row_class}\">\n<td><a href=\"{site_path}/user.php?id={group_user_id}\">{group_user_nickname}</a></td>\n<td>{!date ''{site_date_format}'' ''{date_added}''!}</td>\n</tr>\n{END:group}\n</table>\n<p class=\"action\">\n<a href=\"{site_path}/groups.php\">All groups</a>\n{!if ''editor(group_id,group)||({group_type}==0)''\n ''{sep} <a href=\"{site_path}/joingroup.php?id={group_id}\">Join this group</a>''\n!}\n{!if defined(user_id)\n  ''{sep} <a href=\"{site_path}/subscribe.php?type=G&amp;obj={group_id}\">Subscribe</a>''!}\n{!if member(group_id)\n ''{sep} <a href=\"{site_path}/mailto.php?group={group_id}\">Send e-mail to group</a>\n  {sep} <a href=\"{site_path}/leavegroup.php?id={group_id}\">Leave this group</a>''\n!}\n{!if submittor(group_id,group)\n ''{sep} <a href=\"{site_path}/editmembers.php?id={group_id}\">Add/remove members</a>''\n!}\n{!if editor(group_id,group)\n ''{sep} <a href=\"{site_path}/permissions.php?id={group_id}&amp;class=group\">Change permissions</a>\n  {sep} <a href=\"{site_path}/editgroup.php?id={group_id}\">Edit</a>\n  {sep} <a href=\"{site_path}/deletegroup.php?id={group_id}\">Delete</a>''\n!}\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (103, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 3, 'Footer - Simple', '', '{!# This is a simple footer that displays a site copyright notice !}\nCopyright &copy;{!date ''Y''!}, {site_name}. All rights reserved.');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (104, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'frontimage', '', '<div class=\"image\">\n   <p class=\"imageframe\">\n    <a href=\"document.php?id={doc_id}\"\n    ><img src=\"{doc_file_600}\" border=\"0\"\n       alt=\"{doc_title}\" title=\"{doc_title}\"/></a>\n    <br/><small>\n    Copyright &copy;{!date ''Y'' ''{doc_created}''!},\n    {!if defined(image_copyright)\n        ''{image_copyright}''\n        ''{doc_user_name}''\n    !}.\n    All Rights Reserved.\n    </small>\n    </p>\n    <div class=\"description\">\n    {doc_body}\n    </div>\n    <p><small>TECHNICAL INFO:\nModel release? {!if ''{image_model_release}+0'' ''Yes'' ''No''!} &bull;\n{!if defined(image_camera) ''Camera: {image_camera} &bull;''!}\n{!if defined(image_lens) ''Lens: {image_lens} &bull;''!}\n{!if defined(image_film) ''Film: {image_film} &bull;''!}\n{!if defined(image_exposure) ''Exposure: {image_exposure} &bull;''!}\nFlash: {!if ''{image_flash}+0'' ''Yes'' ''No''!} &bull;\n{!if defined(image_filter) ''Filtration: {image_filter} &bull;''!}\n{!if defined(image_adjustment) ''Adjustments: {image_adjustment) &bull;''!}\nSupport: {image_support}\n    </small></p>\n</div>\n\n{template:comment}\n{!if ''{copying_allowed}+0''\n    ''<form id=\"shutterfly\" name=\"sflyc4p\" action=\"http://www.shutterfly.com/c4p/UpdateCart.jsp\" method=\"post\">\n      <input type=\"hidden\" name=\"addim\" value=\"1\">\n      <input type=\"hidden\" name=\"protocol\" value=\"SFP,100\">\n      <input type=\"hidden\" name=\"pid\" value=\"C4P\">\n      <input type=\"hidden\" name=\"psid\" value=\"AFFL\">\n      <input type=\"hidden\" name=\"referid\" value=\"a2iXxMnVb\">\n      <input type=\"hidden\" name=\"offerid\" value=\"34049\">\n      <input type=\"hidden\" name=\"returl\" value=\"{site_url}/document.php?id={doc_id}\">\n      <input type=\"hidden\" name=\"imraw-1\" value=\"{site_url}/{doc_file}\">\n      <input type=\"hidden\" name=\"imrawheight-1\" value=\"{image_height}\">\n      <input type=\"hidden\" name=\"imrawwidth-1\" value=\"{image_width}\">\n      <input type=\"hidden\" name=\"imthumb-1\" value=\"{site_url}/{doc_file_150}\">\n      <input type=\"hidden\" name=\"imbkprntb-1\" value=\"Hi\">\n    </form>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (105, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folder_none', '', '{folder_body}\n{template:subfolders}\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (106, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 3, 'Footer - Navigation', '', '{!# this footer displays a set of alternate navigation selections !}\nCopyright &copy;{!date ''Y''!}, {site_name}. All rights reserved.\n<br/>\n[<a href=\"{site_path}/users.php\">Users</a>]\n[<a href=\"{site_path}/groups.php\">Groups</a>]\n[<a href=\"{site_path}/docs.php\">Documents</a>]\n[<a href=\"{site_path}/folders.php\">Folders</a>]');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (107, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folder_events', '', '{folder_body}\n<p class=\"action\">\n    <a href=\"{site_path}/emailfolder.php?id={folder_id}\">Share this folder</a>\n    {sep}\n    {!if defined(folder_limit_type)\n        ''<a href=\"{site_path}/edit.php?folder={folder_id}&class={folder_limit_type}\">Add {folder_limit_type}</a>''\n        ''<a href=\"{site_path}/edit.php?folder={folder_id}\">Add document</a>''\n    !}\n</p>\n\n<table class=\"list\">\n<tr>\n  <th>Date </th>\n  <th>Event </th>\n</tr>\n{BEGIN:folder_doc_events folder_id -r}\n<tr class=\"{row_class}\">\n    <td style=\"white-space:nowrap;\"><b>{!date ''{site_date_format}'' ''{event_begin}''!}</b> </td>\n    <td><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a><br/>\n    {doc_body}</td>\n</tr>\n{END:folder_doc_events}\n</table>\n<p class=\"info\">\n    <a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user_indicators folder!} |\n    {!date ''{site_date_format}'' ''{folder_created}''!}\n</p>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (108, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folder_image', '', '<p class=\"action\" style=\"text-align:center;\">\n<a href=\"#\" title=\"click to view slideshow\"\n   onClick=\"javascript:window.open(''{site_path}/slideshow.php?id={folder_id}'',\n        ''rating_chart'',\n        ''width=618,height=665,toolbar=no,scrollbar=no'')\"\n>View as Slideshow</a></p>\n\n{folder_body}\n<p class=\"info\">\n  <a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user_indicators folder!}\n  {!date ''{site_date_format}'' ''{folder_created}''!}\n</p>\n{template:subfolders}\n<div class=\"imageboxes\">\n{BEGIN:folder_docs folder_id xdo}\n{!if ''{folder_group_break}&&\"{folder_sorted}\"==\"user\"''\n''<h3 style=\"clear:both;\">{doc_user_name}</h3>''\n!}\n<div class=\"picboxlong\" style=\"float:left;\">\n  <a href=\"{site_path}/document.php?id={doc_id}\"\n  ><img src=\"{doc_file_100}\" border=\"0\"\n        alt=\"{doc_title} by {doc_user_name}\"\n        title=\"{doc_title} by {doc_user_name}\"\n  /><br/>\n  <span>{doc_title}</span>\n  </a>\n</div>\n{END:folder_docs}\n</div>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (109, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folders', '', '<table border=\"0\">\n<tr><th>Folder </th><th>Owner </th><th>Limit Type </th><th>Public? </th><th>Created </th></tr>\n{BEGIN:all_folders -r}\n<tr class=\"{row_class}\">\n<td><a href=\"{site_path}/folder.php?id={folder_id}\">{folder_name_display}</a></td>\n<td><a href=\"{site_path}/user.php?id={folder_owner_id}\">{folder_user_name}</a>{!user_indicators folder!}</td>\n<td>{folder_limit_type_display}</td>\n<td>{!if ''{folder_public}+0'' ''Yes'' ''-''!}</td>\n<td nowrap>{!date ''{site_date_format}'' ''{folder_created}''!}</td>\n</tr>\n{END:all_folders}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (110, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folder_ad', '', '{folder_body}\n<p class=\"info\"><a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user_indicators folder!}\n{!date ''{site_date_format}'' ''{folder_created}''!}</p>\n{template:subfolders}\n<table class=\"ads\">\n{BEGIN:active_ads folder_id}\n{!if ''{row_number}%4==1'' ''<tr>''!}\n<td style=\"width:25%;\">\n<div class=\"ad\" style=\"width:150px;\">\n  <div class=\"adtitle\">{doc_title}</div>\n  <div class=\"adbody\">{doc_body}</div>\n  {!if defined(ad_url)\n    ''<div class=\"adurl\">{ad_url_link}</a></div>''\n  !}\n  <div class=\"adowner\"><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a> |\n  <a href=\"{site_path}/document.php?id={doc_id}\">link</a></div>\n</div>\n</td>\n{!if ''{row_number}%4==0'' ''</tr>''!}\n{END:active_ads}\n</table>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (111, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folderlist', '', '<table style=\"border:none;\" cellpadding=\"0\" cellspacing=\"0\">\n{BEGIN:folder_subfolders 0}\n<tr><td style=\"text-align:right; padding:10px;\">\n <a href=\"{site_path}/folder.php?id={folder_id}\"><img src=\"{folder_image}\" alt=\"{folder_name}\"/></a>\n</td><td style=\"border-left:1px gray solid; padding:10px;\">\n <h3><a href=\"{site_path}/folder.php?id={folder_id}\">{folder_name_display}</a></h3>\n {folder_body}\n</td></tr>\n{END:folder_subfolders}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (112, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_comment', '', '<p><i>There is a new comment on\n\"<a href=\"{site_url}/document.php?id={comment_doc_id}\">{doc_title}</a>\"<br/>\nby {doc_user_name}</i></p>\n\n<p><b>Subject:</b> {comment_subject}</p>\n\n<p>{comment_body}</p>\n\n<p><i>{comment_user_name}</i></p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (113, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_confirm', '', '<p><b>Confirmation of email submission</b><br/>\n{site_name}<br/>\n<a href=\"{site_url}\">{site_url}</a></p>\n\n<p>Status Messages:<br/>\n{status}</p>\n<p>{errcount} Error(s):<br/>\n{errors}</p>\n\n<p>Your original message appears below:</p>\n<p><i>{body}</i></p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (114, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_daily', '', '<h1>{site_name} Newsletter</h1>\n<p><a href=\"{site_url}\">{site_url}</a><br/>\n<i>This newsletter is emailed every {report_days} day(s).\nUnsubscribe information is at the end of this page.</i>\n</p>\n\n<h2>Please Note</h2>\n{BEGIN:active_notices}\n<div style=\"margin-bottom:10px;\"><b>{doc_title}</b>{doc_body}</div>\n{END:active_notices}\n\n<h2>Upcoming Events</h2>\n{BEGIN:upcoming_events report_days}\n<p><b>{!date ''{site_date_format}'' ''{event_begin}''!}</b><br/>\n<a href=\"{site_url}/document.php?id={doc_id}\">{doc_title}</a><br/>\n{doc_body}</p>\n{END:upcoming_events}\n\n<h2>New Users</h2>\n{BEGIN:users_today report_days}\n<p><a href=\"{site_url}/user.php?id={user_user_id}\"><b>{user_user_name}</b></a><br/>\nfrom {user_user_country_name}<br/>\n<i>{user_user_description}</i></p>\n{END:users_today}\n\n<h2>New Documents</h2>\n{BEGIN:documents_today report_days}\n<div class=\"safe\">\n{!if ''\"{doc_type}\"==\"Image\"''\n    ''<div class=\"thumbnail\"><a href=\"{site_url}/document.php?id={doc_id}\">\n    <img src=\"{site_url}/{doc_file_100}\" alt=\"\" border=\"0\"/></a></div>''\n!}\n<p><a href=\"{site_url}/document.php?id={doc_id}\"><i>{doc_title}</i></a>\n({doc_type_display})<br/>\nby <a href=\"{site_url}/user.php?id={doc_user_id}\">{doc_user_name}</a></p>\n{!if ''\"{doc_type}\"==\"Article\"''\n''<p>{doc_summary}</p>''\n''{doc_body}''\n!}\n</div>\n{END:documents_today}\n\n<h2>New Folders</h2>\n{BEGIN:folders_today report_days}\n<p><a href=\"{site_url}/folder.php?id={folder_id}\">{folder_name_display}</a>\n{!if ''{folder_public}+0'' ''(Public)''!}\n<br/>\nby <a href=\"{site_url}/user.php?id={folder_user_id}\">{folder_user_name}</a><br/>\n{folder_body}</p>\n{END:folders_today}\n\n<p><i>This report is provided as a free service to members of {site_name}.\nIf you no longer wish to receive this report, point your browser to\n<a href=\"{site_url}\">{site_url}</a> and modify your Preferences.</i></p>\n<p>Copyright &copy;{!date ''Y''!}, {site_name}. All rights reserved.</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (115, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_mailto', '', '<p>{email_body}</p>\n<p><i><a href=\"{site_url}/user.php?id={user_id}\">{user_name}</a></i><br/>\n{!date ''{site_date_format} {site_time_format}''!}</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (116, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_share', '', '<p><i>{user_name} would like you to\n{!if ''\"{doc_type}\"==\"Image\"'' ''see'' ''read''!}\n\"<a href=\"{site_url}/document.php?id={doc_id}\">{doc_title}</a>\"<br/>\nby {doc_user_name}<br/>\nat <a href=\"{site_url}\">{site_name}</a></i></p>\n{!if ''\"{doc_type}\"==\"Image\"''\n''<div style=\"float:right;\">\n<a href=\"{site_url}/document.php?id={doc_id}\">\n<img src=\"{site_url}/{doc_file_100}\" alt=\"{doc_title}\" border=\"0\"/>\n</a></div>''\n!}\n<p>{email_body}</p>\n<p><i><a href=\"{site_url}/user.php?id={user_id}\">{user_name}</a></i><br/>\n{!date ''{site_date_format} {site_time_format}''!}</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (117, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html_sharefolder', '', '<p><i>{user_name} would like you to see\n\"<a href=\"{site_url}/folder.php?id={folder_id}\">{folder_name}</a>\"<br/>\nby {folder_user_name}<br/>\nat <a href=\"{site_url}\">{site_name}</a></i></p>\n<p>{email_body}</p>\n<p><i><a href=\"{site_url}/user.php?id={user_id}\">{user_name}</a></i><br/>\n{!date ''{site_date_format} {site_time_format}''!}</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (118, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'error', '', '<!-- error-handler template -->\n{!set no_title 1!}\n<div style=\"font-size:150px;color:gray;line-height:150px;margin-bottom:40px;\n     text-align:right;\n     font-family:georgia,times new roman,times,serif;\">{errorcode}</div>\n<p>\n{!case ''{errorcode}''\n\n401     ''This part of the website requires authorization, and, sadly, you\n         do not seem to have it. If you''re a h4x0r, then try something\n         else. If you think you are supposed to be here, then ask your\n         site administrator about how to get authorization.''\n\n404     ''The file you tried to reach, \"{error_REQUEST_URI}\", does not seem\n         to exist. Check the spelling, or check the link that sent you here.\n         If you really think that the file should exist, then talk to someone.\n         Probably not your site administrator, because he or she will only\n         laugh at you. Maybe a professional psychologist or a member of the\n         clergy. Someone who will nod their head sympathetically when you\n         try to explain why you thought this file should exist.''\n\n500     ''This error code means INTERNAL SERVER ERROR. However, it&squot;s really\n         a generic code that means something like \"there is a problem, but\n         I have no idea what might have caused it.\" Your site administrator\n         will probably need to check the server logs to determine what might\n         have happened.''\n\n        ''You have reached this page because an error occurred.\n         The HTTP error code is displayed at the top of the page.\n         I am very sorry that I cannot give you more details, but\n         my contract will not allow it.''\n!}</p>\n<p>{error_SERVER_SIGNATURE}<br/>\nYour IP address: {error_REMOTE_ADDR}<br/>\nYour user agent: {error_HTTP_USER_AGENT}\n</p>\n<!--\n{server}\n-->');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (119, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'event', '', '{!set no_title ''Yes''!}\n<div class=\"Document\">\n<h2>{!date ''{site_date_format}'' ''{event_begin}''!}: {doc_title}</h2>\n{doc_body}\n<p class=\"info\"><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a> |\n    {!if ''{doc_folder_id}!=0''\n        ''<a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a> |''\n    !}\n    {!date ''{site_date_format}'' ''{doc_created}'' !}\n</p>\n{template:comment}\n</div>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (120, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'exportmt', '', '{BEGIN:docs_of_type \"Article\"}\nAUTHOR: {doc_user_firstname}\nTITLE: {doc_title}\nCATEGORY: {!if ''{doc_folder_id}+0'' ''{doc_folder_name}''!}\nDATE: {!date ''m/d/Y h:i:00 a'' ''{doc_created}''!}\n-----\nBODY:\n{!if defined(doc_summary) \n   ''{doc_summary}''\n   ''{doc_body}''\n!}\n-----\nEXTENDED BODY:\n{!if defined(doc_summary)\n   ''{doc_body}''\n!}\n--------\n{END:docs_of_type}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (121, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'file', '', '<table class=\"infotable\">\n<tr><th>File:  </th><td><a href=\"{site_path}/download.php?id={doc_id}\">{doc_file}</a>\n       (click to download)</td></tr>\n<tr><th>Description: </th><td>{doc_body}</td></tr>\n<tr><th>Type:  </th><td>{doc_file_mime_type}</td></tr>\n<tr><th>Size:  </th><td>{!format ''{doc_file_size}''!} bytes</td></tr>\n<tr><th>Downloaded: </th><td>{doc_file_download_count:%d} time(s)</td></tr>\n<tr><th>Owner: </th>\n  <td><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>{!user_indicators doc!} </td></tr>\n<tr><th>Folder: </th>\n  <td>{!if defined(doc_folder_name)\n        ''<a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\n    !}</td></tr>\n<tr><th>Created: </th>\n  <td>{!date ''{site_date_format}'' ''{doc_created}''!}</td></tr>\n<tr><th>Updated: </th>\n  <td>{!date ''{site_date_format}'' ''{doc_modified}''!}</td></tr>\n</table>\n{template:comment}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (122, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'folder', '', '{folder_body}\n<p class=\"info\"><a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user_indicators folder!}\n{!date ''{site_date_format}'' ''{folder_created}''!}</p>\n{template:subfolders}\n<table class=\"list\"><tr><th>Title </th><th>Info</th></tr>\n{BEGIN:folder_docs folder_id xdo}\n<tr class=\"{row_class}\">\n  <td class=\"listdoc\"><a href=\"{site_path}/document.php?id={doc_id}\"><b>{doc_title}</b></a>\n  {doc_summary}</td>\n  <td class=\"listinfo\"><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>{!user_indicators doc!}<br/>\n  {!date ''{site_date_format} {site_time_format}'' ''{doc_created}''!}\n</td></tr>\n{END:folder_docs}\n</table>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (123, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_mailto', '', '{email_body}\n\n{user_name}\n{!date ''{site_date_format} {site_time_format}''!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (124, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_share', '', '{user_name} wants you to {!if ''\"{doc_type}\"==\"Image\"'' ''see'' ''read''!} \"{doc_title}\"\nby {doc_user_name}\nClick here: {site_url}/document.php?id={doc_id}\n\n{email_body}\n\n{user_name}\n{!date ''{site_date_format} {site_time_format}''!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (125, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_sharefolder', '', '{user_name} wants you to see \"{folder_name}\"\nby {folder_user_name}\nClick here: {site_url}/folder.php?id={folder_id}\n\n{email_body}\n\n{user_name}\n{!date ''{site_date_format} {site_time_format}''!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (126, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_html', '', '<html>\n<head>\n<title>{email_subject}</title>\n<style type=\"text/css\">\nbody {\nfont-family: verdana,arial,helvetica,sans-serif;\nfont-size: 12px;\nbackground: white;\ncolor: black;\nmargin: 5px 10px 5px 10px;\n}\n#logo {\nclear:both;\n}\n.footer {\nfont-size: 11px;\ncolor: gray;\nborder-top: 1px black solid;\nmargin-top: 20px;\nclear: both;\n}\n.thumbnail {\nfloat: left;\nmargin-right: 5px;\nwidth: 120px;\nheight: 120px;\ntext-align: center;\nborder: 1px gray solid;\npadding: 8px;\n}\n.safe {\nclear: both;\nmargin-bottom: 10px;\n}\nh2 {\nmargin-top: 20px;\nborder-top: 1px gray solid;\nclear: both;\ncolor: gray;\n}\np {\nline-height: 150%;\n}\na {\ncolor: navy;\ntext-decoration: none;\n}\na:hover {\ncolor: red;\ntext-decoration: underline;\n}\n</style>\n</head>\n<body>\n{!if ''\"{logo}\"!=\"\"''\n''<div id=\"logo\"><img src=\"{site_url}/{logo}\" alt=\"{site_name}\" border=\"0\"/></div>''\n!}\n<div class=\"email\">\n{email_body}\n</div>\n<div class=\"footer\">\n<p>If you prefer to receive text-only email (instead of HTML),\nyou can login to <a href=\"{site_url}\">{site_name}</a> and change your\nuser Preferences. If you are not already a member of {site_name},\nthen <a href=\"{site_url}/register.php\">click here to register</a>.</p>\n<p>Sent from {site_name} |\n<a href=\"{site_url}\">{site_url}</a> |\n{email_created} | Siteframe {siteframe_version}</p>\n</div>\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (127, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'edituser', '', '<p class=\"action\">\n{!menu_item user_action\n  ''E-mail''\n  ''{site_path}/mailto.php?id={user_user_id}''!}\n{!menu_item user_action\n  ''Note''\n  ''{site_path}/message.php?id={user_user_id}''\n  ''({user_id}+0)&&({subscription_enable}+0)''!}\n{!menu_item user_action\n  ''Edit''\n  ''{site_path}/edituser.php?id={user_user_id}''\n  ''editor(user_user_id)''!}\n{!menu_item user_action\n  ''Delete''\n  ''{site_path}/deleteuser.php?id={user_user_id}''\n  ''editor(user_user_id)''!}\n{!menu_item user_action\n  ''Subscriptions''\n  ''{site_path}/subscriptions.php?id={user_user_id}''\n  ''editor(user_id)&&({subscription_enable}+0)''!}\n{!menu_item user_action\n  ''Notifications''\n  ''{site_path}/notifications.php?id={user_user_id}''\n  ''editor(user_id)&&{subscription_enable}''!}\n{!menu user_action '' {sep} ''!}\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (128, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email', '', '{user_name} would like for you to {!if ''\"{doc_type}\"==\"Image\"'' ''see'' ''read''!} \"{doc_title}\"\nClick here: {site_url}/document.php?id={doc_id}\n\n{email_body}\n\n===========================================================\nThis message was sent from {site_name}\n{site_url}\n===========================================================');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (129, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii', '', '{email_body}\n\n_______________________________________________________________\n\nSent from {site_name}\n{site_url}\n{email_created}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (130, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_comment', '', 'There is a new comment on \"{doc_title}\"\n{site_url}/document.php?id={doc_id}\nby {doc_user_name}\n\nSubject: {comment_subject}\n\n{comment_body}\n\n-- {comment_user_name}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (131, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_confirm', '', 'CONFIRMATION OF EMAIL SUBMISSION\n{site_name}\n{site_url}\n\nSTATUS MESSAGES\n{status}\n\n{errcount} ERROR(S)\n{errors}\n\nYour original message appears below:\n\n_______________________________________________________________\n\n{body}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (132, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'email_ascii_daily', '', '{site_name} Newsletter\n{!date ''{site_date_format}''!}\n{site_url}\n================================================================================\nThis newsletter is emailed every {report_days} day(s).\nUnsubscribe information is at the end of this page.\n\n--------------------------------------------------------------------------------\nPLEASE NOTE\n{BEGIN:active_notices}\n{doc_title}\n    {doc_body}\n{END:active_notices}\n\n--------------------------------------------------------------------------------\nUPCOMING EVENTS\n{BEGIN:upcoming_events report_days}\n{!date ''{site_date_format}'' ''{event_begin}''!}: {doc_title}\n    {site_url}/document.php?id={doc_id}\n{END:upcoming_events}\n\n--------------------------------------------------------------------------------\nNEW USERS - last {report_days} day(s)\n{BEGIN:users_today report_days}\n{user_user_name} from {user_user_country_name}\n{END:users_today}\n\n--------------------------------------------------------------------------------\nNEW DOCUMENTS - last {report_days} day(s)\n{BEGIN:documents_today report_days}\n{doc_type_display} \"{doc_title}\"\n    {site_url}/document.php?id={doc_id}\n    by {doc_user_name}\n{END:documents_today}\n\n--------------------------------------------------------------------------------\nNEW FOLDERS - last {report_days} day(s)\n{BEGIN:folders_today report_days}\n{folder_name}\n    {site_url}/folder.php?id={folder_id}\n    by {folder_user_name}\n{END:folders_today}\n\n--------------------------------------------------------------------------------\nCopyright (c){!date ''Y''!}, {site_name}. All rights reserved.\n\nThis report is provided as a free service to members of {site_name}.\nIf you no longer wish to receive this report, point your browser to\n{site_url} and modify your Preferences.');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (133, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'edit', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### This stuff generates material for editing a page; it is only\n### generated if the current user is an editor of the document\n### it generates nothing otherwise.\n#!}\n{!if editor(doc_owner_id)\n    ''<div class=\"edit\">\n     <p class=\"editor\">\n        <a href=\"{site_path}/edit.php?id={doc_id}\">Edit {doc_type_display}</a>\n        {sep} <a href=\"{site_path}/delete.php?id={doc_id}\">Delete {doc_type_display}</a>\n     </p>\n     </div>''\n!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (134, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'editfolder', '', '{!menu_item folder_action ''Share''\n  ''{site_path}/emailfolder.php?id={folder_id}''!}\n{!menu_item folder_action ''New {folder_limit_type}''\n  ''{site_path}/edit.php?folder={folder_id}&class={folder_limit_type}''\n  ''(\"{folder_limit_type}\"!=\"\")&&(\"{folder_limit_type}\"!=\"none\")''!}\n{!menu_item folder_action ''New document''\n  ''{site_path}/edit.php?folder={folder_id}''\n  ''\"{folder_limit_type}\"==\"\"''!}\n{!menu_item folder_action ''Upload Multiple''\n  ''{site_path}/multiload.php?folder={folder_id}''\n  ''{multi_file_upload}&&((\"{folder_limit_type}\"==\"Image\")||(\"{folder_limit_type}\"==\"DocFile\")||(\"{folder_limit_type}\"==\"\"))''!}\n{!menu_item folder_action ''Subfolder''\n  ''{site_path}/editfolder.php?parent={folder_id}''\n  ''{folder_children}+0''!}\n{!menu_item folder_action ''Subscribe''\n  ''{site_path}/subscribe.php?type=F&amp;obj={folder_id}''\n  ''({subscription_enable}+0)&&({user_id}+0)!}\n{!menu_item folder_action ''Permissions''\n  ''{site_path}/permissions.php?id={folder_id}&amp;class=folder''\n  ''editor(folder_id,folder)''!}\n{!menu_item folder_action ''Edit''\n  ''{site_path}/editfolder.php?id={folder_id}''\n  ''editor(folder_id,folder)''!}\n{!menu_item folder_action ''Delete''\n  ''{site_path}/deletefolder.php?id={folder_id}''\n  ''editor(folder_id,folder)''!}\n<p class=\"action\">\n{!menu folder_action '' {sep} ''!}\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (135, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'docs', '', '<table class=\"list\">\n<tr><th>Author </th><th>Title </th><th>Folder </th><th>Created </th></tr>\n{BEGIN:all_documents -r}\n<tr class=\"{row_class}\">\n<td style=\"white-space:nowrap;\"><a href=\"{site_path}/user.php?id={doc_owner_id}\">{doc_user_name}</a></td>\n<td><a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>\n{doc_summary}</td>\n<td><a href=\"{site_path}/folder.php?id={doc_folder_id}\">{doc_folder_name}</a></td>\n<td style=\"white-space:nowrap;\">{!date ''{site_date_format}'' ''{doc_created}''!}</td>\n</tr>\n{END:all_documents}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (136, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'day', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $\n### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.\n### This template displays events for a given day.\n#!}\n{!set no_title ''si''!}\n<h2>{!date ''{site_date_format}'' ''{day}''!}</h2>\n{BEGIN:all_events ''{yearmonday}''}\n<p><b>{event_begin}-{event_end}</b>\n{doc_title}<br>\n{doc_body}</p>\n{END:all_events}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (137, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'daily_html', '', '<html>\n<head>\n  <title>{site_name} Newsletter</title>\n  <style type=\"text/css\">\n  body {\n  font-family: georgia, times new roman, times, serif;\n  color: black;\n  background: lemonchiffon;\n  margin: 10px 50px 10px 50px;\n  }\n  .date,.footer {\n  font-family: verdana,arial,helvetica,sans-serif;\n  font-size: 11px;\n  color: gray;\n  }\n  .date {\n  margin-bottom: 20px;\n  }\n  .thumbnail {\n  float: left;\n  margin-right: 5px;\n  width: 120px;\n  height: 120px;\n  text-align: center;\n  border: 1px gray solid;\n  padding: 8px;\n  }\n  .safe {\n  clear: both;\n  margin-bottom: 10px;\n  }\n  h2 {\n  margin-top: 20px;\n  border-top: 1px gray solid;\n  clear: both;\n  color: gray;\n  }\n  p {\n  line-height: 150%;\n  }\n  a {\n  color: darkslateblue;\n  text-decoration: none;\n  }\n  a:hover {\n  color: lightslateblue;\n  }\n  </style>\n</head>\n<body>\n{!if defined(logo)\n''<img src=\"{site_url}/{logo}\" alt=\"{site_name}\" border=\"0\"/>''\n''<h1>{site_name} Newsletter</h1>''\n!}\n<p>\n<a href=\"{site_url}\">{site_url}</a><br/>\n<i>This newsletter is emailed every {report_days} day(s).\nUnsubscribe information is at the end of this page.</i>\n</p>\n\n<h2>Upcoming Events</h2>\n{BEGIN:upcoming_events report_days}\n<p><b>{!date ''{site_date_format}'' ''{event_begin}''!}</b><br/>\n<a href=\"{site_url}/document.php?id={doc_id}\">{doc_title}</a><br/>\n{doc_body}</p>\n{END:upcoming_events}\n\n<h2>New Users</h2>\n{BEGIN:users_today report_days}\n<p><a href=\"{site_url}/user.php?id={user_user_id}\"><b>{user_user_name}</b></a><br/>\nfrom {user_user_country_name}<br/>\n<i>{user_user_description}</i></p>\n{END:users_today}\n\n<h2>New Documents</h2>\n{BEGIN:documents_today report_days}\n<div class=\"safe\">\n{!if ''\"{doc_type}\"==\"Image\"''\n    ''<div class=\"thumbnail\"><a href=\"{site_url}/document.php?id={doc_id}\">\n    <img src=\"{site_url}/{doc_file_100}\" alt=\"\" border=\"0\"/></a></div>''\n!}\n<p><a href=\"{site_url}/document.php?id={doc_id}\"><i>{doc_title}</i></a>\n({doc_type_display})<br/>\nby <a href=\"{site_url}/user.php?id={doc_user_id}\">{doc_user_name}</a></p>\n</div>\n{END:documents_today}\n\n<h2>New Folders</h2>\n{BEGIN:folders_today report_days}\n<p><a href=\"{site_url}/folder.php?id={folder_id}\">{folder_name_display}</a>\n{!if ''{folder_public}+0'' ''(Public)''!}\n<br/>\nby <a href=\"{site_url}/user.php?id={folder_user_id}\">{folder_user_name}</a><br/>\n{folder_body}</p>\n{END:folders_today}\n\n<p><i>This report is provided as a free service to members of {site_name}.\nIf you no longer wish to receive this report, point your browser to\n<a href=\"{site_url}\">{site_url}</a> and modify your Preferences.</i></p>\n<p>Copyright &copy;{!date ''Y''!}, {site_name}. All rights reserved.</p>\n</body>\n</html>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (138, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'comments', '', '{!set footer ''''!}\n<div class=\"Comments\" style=\"width:auto;\">\n{BEGIN:doc_comments doc_id}\n{!if defined(comment_subject) ''<p class=\"subject\">{comment_subject}</p>''!}\n{comment_body}\n<p class=\"info\">by {comment_user_name}\nat {!date ''{site_time_format}'' ''{comment_created}''!}\non {!date ''{site_date_format}'' ''{comment_created}''!}</p>\n{END:doc_comments}\n\n<p><a href=\"{site_path}/comment.php?id={doc_id}\">New comment</a></p>\n\n</div>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (139, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'daily', '', '{site_name} Newsletter\n{!date ''{site_date_format}''!}\n{site_url}\n================================================================================\nThis newsletter is emailed every {report_days} day(s).\nUnsubscribe information is at the end of this page.\n\n--------------------------------------------------------------------------------\nUPCOMING EVENTS\n{BEGIN:upcoming_events report_days}\n{!date ''{site_date_format}'' ''{event_begin}''!}: {doc_title}\n    {site_url}/document.php?id={doc_id}\n{END:upcoming_events}\n\n--------------------------------------------------------------------------------\nNEW USERS - last {report_days} day(s)\n{BEGIN:users_today report_days}\n{user_user_name} from {user_user_country_name}\n{END:users_today}\n\n--------------------------------------------------------------------------------\nNEW DOCUMENTS - last {report_days} day(s)\n{BEGIN:documents_today report_days}\n{doc_type_display} \"{doc_title}\"\n    {site_url}/document.php?id={doc_id}\n    by {doc_user_name}\n{END:documents_today}\n\n--------------------------------------------------------------------------------\nNEW FOLDERS - last {report_days} day(s)\n{BEGIN:folders_today report_days}\n{folder_name}\n    {site_url}/folder.php?id={folder_id}\n    by {folder_user_name}\n{END:folders_today}\n\n--------------------------------------------------------------------------------\nCopyright (c){!date ''Y''!}, {site_name}. All rights reserved.\n\nThis report is provided as a free service to members of {site_name}.\nIf you no longer wish to receive this report, point your browser to\n{site_url} and modify your Preferences.');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (140, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'cfolder_info', '', '<p class=\"cfolderinfo\">\n{!if ''{folder_competition_active}''\n''''\n''<b>This competition is no longer active.</b> <br/>''!}\n{!if ''\"{folder_competition_type}\"==\"max\"'' ''The total rating will determine the winner.''!}\n{!if ''\"{folder_competition_type}\"==\"maxavg\"'' ''The highest average rating will determine the winner.''!}\n{!if ''\"{folder_competition_type}\"==\"vote\"'' ''The most number of votes will determine the winner.''!}\n<br/>\nSubmissions accepted from\n  {!date ''{site_date_format}'' ''{folder_begin_date}''!} to\n  {!date ''{site_date_format}'' ''{folder_end_date}''!}. <br/>\nVoting is permitted between\n  {!date ''{site_date_format}'' ''{folder_begin_voting}''!} and\n  {!date ''{site_date_format}'' ''{folder_end_voting}''!}. <br/>\nThe folder owner is <a href=\"{site_path}/user.php?id={folder_user_id}\">{folder_user_name}</a>{!user_indicators folder!}. <br/>\nFolder created on {!date ''{site_date_format}'' ''{folder_created}''!}. <br/>\nModified on {!date ''{site_date_format}'' ''{folder_modified}''!}. <br/>\n{!if ''{folder_user_limit}+0''\n''Members can submit up to {folder_user_limit:%d} {folder_limit_type_display}(s).''!}\n</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (141, '2003-06-28 18:54:46', '2003-06-30 22:56:32', 0, 0, 'comment', '', '{!# \$Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $ !}\r\n{!#if ''({allow_ratings}+0)&&(iseditor({doc_user_id})||{doc_rating_count}>4)''\r\n    ''<p class=\"rating\">Current rating: {doc_rating}/{doc_rating_count} &bull;\r\n     <a href=\"{site_path}/ratings.php?id={doc_id}\">View all ratings</a> &bull;\r\n     <a href=\"{site_path}/deleterating.php?id={doc_id}\">Delete my rating</a></p>''\r\n!}\r\n{!#if defined(doc_share_count)\r\n    ''<p class=\"info\">This {doc_type} has been shared {doc_share_count} time(s).</p>''\r\n!}\r\n<p class=\"action\">\r\n{!if ''{_COOKIE_hideinfo}+0&&(\"{doc_type}\"==\"Image\")''\r\n  ''<a href=\"{site_path}/document.php?id={doc_id}\"\r\n      title=\"Show complete {doc_type_display} information\"\r\n      onClick=\"setCookie(&#34;hideinfo&#34;,0);\">{doc_type_display} Information</a> {sep}''\r\n!}\r\n{!if ''({allow_comments}+0)&&({comment_inline}+0)''\r\n    ''<a href=\"{site_path}/comment.php?id={doc_id}\"\r\n        title=\"Add rating/comment to this {doc_type_display}\">Comment/Rate</a> {sep}''\r\n!}\r\n{!if ''({allow_comments}+0)&&(!{comment_inline}+0)''\r\n   ''<a href=\"#\"\r\n    title=\"Add rating/comment to this {doc_type_display}\"\r\n    onClick=\"javascript:var x=screen.availWidth-420;\r\n            var f=&#34;left=&#34;+x+&#34;,top=20,width=400,height=500,toolbar=no,scrollbars=yes,status=no,copyhistory=no&#34;\r\n            window.open(&#34;{site_path}/comment.php?id={doc_id}&#34;,\r\n            &#34;comment_window&#34;,f)\">\r\n    Comment/Rate</a> {sep}''\r\n!}\r\n<a href=\"{site_path}/email.php?id={doc_id}\"\r\n   title=\"Send an email to someone about this {doc_type_display}\">Share this {doc_type_display}</a>\r\n{!if ''{subscription_enable}''\r\n  ''{sep} <a href=\"{site_path}/subscribe.php?type=D&amp;obj={doc_id}\">Subscribe</a>''\r\n!}\r\n{!if editor(doc_owner_id)\r\n    ''{sep} <a href=\"{site_path}/edit.php?id={doc_id}\">Edit {doc_type_display}</a>\r\n     {sep} <a href=\"{site_path}/delete.php?id={doc_id}\">Delete {doc_type_display}</a>\r\n     {sep} <a href=\"{site_path}/rotate.php?id={doc_id}&rot=L\">&laquo;&laquo;</a><a href=\"#\"\r\n     >Rotate</a><a href=\"{site_path}/rotate.php?id={doc_id}&rot=R\">&raquo;&raquo;</a>''\r\n!}\r\n</p>\r\n<div class=\"Comments\">\r\n    {BEGIN:doc_comments doc_id}\r\n    {!bookmark \"comment{comment_id}\"!}\r\n    {!if defined(comment_subject) ''<p class=\"subject\">{comment_subject}</p>''\r\n     ''<p class=\"subject\">NO SUBJECT</p>''!}\r\n    <div class=\"comment\">{comment_body}</div>\r\n    <p class=\"info\">\r\n        {!if ''{comment_owner_id}+0''\r\n            ''<a href=\"{site_path}/user.php?id={comment_owner_id}\">{comment_user_name}</a>''\r\n            ''{comment_name} [<a href=\"{comment_url}\">home</a>|<a href=\"mailto:{comment_email}\">mail</a>]''\r\n        !}{!user_indicators comment!}\r\n        at {!date ''{site_time_format}'' ''{comment_created}''!}\r\n        on {!date ''{site_date_format}'' ''{comment_created}''!}\r\n        {!if editor({comment_owner_id})\r\n            ''[<a href=\"{site_path}/delete.php?comment={comment_id}\">Delete</a>]''\r\n        !}\r\n        {!if ''({allow_comments}+0)&&({comment_inline}+0)''\r\n        ''[<a href=\"{site_path}/comment.php?id={doc_id}&amp;reply={comment_id}\">Reply</a>]''\r\n        !}\r\n        {!if ''({allow_comments}+0)&&(!{comment_inline}+0)''\r\n        ''[<a href=\"#\"\r\n        onClick=\"javascript:var x=screen.availWidth-420;\r\n              var f=&#34;left=&#34;+x+&#34;,top=20,width=400,height=500,toolbar=no,scrollbars=yes,status=no,copyhistory=no&#34;\r\n              window.open(&#34;{site_path}/comment.php?id={doc_id}&amp;reply={comment_id}&#34;,\r\n              &#34;comment_window&#34;,f)\"\r\n        >Reply</a>]''\r\n        !}\r\n    </p>\r\n    {END:doc_comments}\r\n    {!if ''{trackback_enable}''\r\n        ''<p class=\"info\">The Trackback URL for this document is {trackback_url}</p>''\r\n    !}\r\n    {BEGIN:tb_pings doc_id}\r\n    {!if ''{row_number}==1''\r\n        ''<h3>Trackback pings received</h3>''!}\r\n    <p><a href=\"{tb_url}\">{tb_title}</a><br/>\r\n    {tb_excerpt}<br/>\r\n    <small>From {tb_site} on {!date ''F j, Y h:ia'' ''{created}''!}</small></p>\r\n    {END:tb_pings}\r\n</div>\r\n{!#include ''templates/edit.ihtml''!}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (142, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'cfolder_image', '', '{template:cfolder_info}\n{folder_body}\n<form class=\"cfolder\"\n      method=\"post\"\n      action=\"{site_path}/folder.php\"\n      enctype=\"multipart/form-data\">\n<div class=\"imageboxes\">\n{BEGIN:competition_docs folder_id}\n<div class=\"picboxlong\" style=\"float:left;\">\n  {doc_competition_value}<br/>\n  <a href=\"{site_path}/document.php?id={doc_id}\"\n  ><img src=\"{doc_file_100}\" border=\"0\"\n        alt=\"{doc_title} by {doc_user_name}\"\n        title=\"{doc_title} by {doc_user_name}\"\n  /><br/>\n  <span>{doc_title}</span>\n  </a>\n  {!if ''{doc_user_id}+0''\n  ''<br/><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>''\n  !}\n</div>\n{END:competition_docs}\n</div>\n<p style=\"clear:both;\">&nbsp;</p>\n{!if ''{folder_voting}''\n''<input type=\"hidden\" name=\"id\" value=\"{folder_id}\"/>\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n<input type=\"submit\" value=\"Submit\"/>\n<input type=\"reset\"/>''!}\n</form>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (143, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'cfolder', '', '{template:cfolder_info}\n{folder_body}\n<form class=\"cfolder\"\n      method=\"post\"\n      action=\"{site_path}/folder.php\"\n      enctype=\"multipart/form-data\">\n<table class=\"list\"><tr><th>Vote</th><th>Title </th><th>Info</th></tr>\n{BEGIN:competition_docs folder_id}\n<tr class=\"{row_class}\">\n  <td style=\"white-space:nowrap;\">{doc_competition_value}</td>\n  <td class=\"listdoc\"><a href=\"{site_path}/document.php?id={doc_id}\"><b>{doc_title}</b></a>\n  {doc_summary}</td>\n  <td class=\"listinfo\">\n  {!date ''{site_date_format} {site_time_format}'' ''{doc_created}''!}<br/>\n  <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>\n</td></tr>\n{END:competition_docs}\n</table>\n{!if ''{folder_voting}''\n''<input type=\"hidden\" name=\"id\" value=\"{folder_id}\"/>\n<input type=\"hidden\" name=\"submitted\" value=\"1\"/>\n<input type=\"submit\" value=\"Submit\"/>\n<input type=\"reset\"/>''!}\n</form>\n{template:editfolder}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (144, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'category_image', '', '{category_description}\n\n<div class=\"subfolders\">\n{BEGIN:category_docs category_id -r}\n<div class=\"picboxlong\">\n<a href=\"{site_path}/document.php?id={doc_id}\"><img src=\"{doc_file_100}\" border=\"0\"/></a>\n<br/>\n<a href=\"{site_path}/document.php?id={doc_id}\">{doc_title}</a>\n</div>\n{END:category_docs}\n</div>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (145, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'bugs', '', '{!set page_title \"Bug Reports\" !}\n<table cellspacing=\"2px\" cellpadding=\"0\" border=\"0\">\n<tr><th>ID</th><th>Submitted By </th><th>Status </th><th>Severity </th><th>Subject </th></tr>\n{BEGIN:docs_of_type \"Bug\"}\n  <tr>\n    <td align=\"right\">{doc_id}</td>\n    <td><a href=\"user.php?id={doc_owner_id}\">{doc_user_name}</a></td>\n    <td>{bug_status} </td>\n    <td>{bug_severity} </td>\n    <td><a href=\"document.php?id={doc_id}\"><b>{doc_title}</b></a></td>\n  </tr>\n{END:docs_of_type}\n</table>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (146, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'category', '', '<p>{category_description}</p>\n<ul>\n{BEGIN:category_docs category_id -r}\n<li>{!doclink ''{doc_id}''!}</li>\n{END:category_docs}\n</ul>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (147, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'category_bar_text', '', '<div class=\"categorybar\">\nGo to:\n{BEGIN:categories cat_bar_categories}\n|\n{!if ''{page_category_id}=={category_id}''\n    ''<b>{category_name}</b>''\n    ''<a href=\"{site_path}/category.php?id={category_id}\">\n    {category_name}</a>''\n!}\n{END:categories}\n</div>\n<p>This demonstrates the \"category bar\" for navigating between\ndifferrent categories</p>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (148, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'bug', '', '<div class=\"Document\">\n    <p class=\"author\"><a href=\"user.php?id={doc_user_id}\">{doc_user_name}</a><br/>\n        {!date ''{site_date_format}'' ''{doc_created}'' !}\n        {!if defined(doc_folder_name)\n            ''<br/>Folder: <a href=\"folder.php?id={doc_folder_id}\">{doc_folder_name}</a>''\n        !}\n    </p>\n    <hr/>\n    <table cellpadding=\"0\" cellspacing=\"2px\" border=\"0\">\n    <tr><td>Bug ID: </td><td><b>#{doc_id}</b></td></tr>\n    <tr><td>Status: </td><td><b>{bug_status}</b></td></tr>\n    <tr><td>Severity: </td><td><b>{bug_severity}</b></td></tr>\n    <tr><td>Reference: </td><td><b>{bug_url}</b></td></tr>\n    </table>\n    <hr/>\n    {!if defined(doc_summary)\n        ''<blockquote>\n         <b>Summary:</b> {doc_summary}\n         </blockquote>''\n    !}\n    <p>{doc_body}</p>\n</div>\n{template:comment}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (149, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'ad', '', '<p class=\"info\">\nThis {doc_type_display} will be active from\n{!date ''{site_date_format} {site_time_format}'' ''{notice_begin_date}''!}\nthrough {!date ''{site_date_format} {site_time_format}'' ''{notice_end_date}''!}\n{!if defined(ad_url) ''<br/>Click-through count: {ad_clicks:%d}''!}\n</p>\n<div class=\"ad\" style=\"width:200px;\">\n  <div class=\"adtitle\">{doc_title}</div>\n  <div class=\"adbody\">{doc_body}</div>\n  {!if defined(ad_url)\n  ''<div class=\"adurl\">{ad_url_link}</div>''\n  !}\n  <div class=\"adowner\"><a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a></div>\n</div>\n{template:edit}');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));
$get_items="INSERT INTO `templates` VALUES (150, '2003-06-28 18:54:46', '2003-06-28 18:54:46', 0, 0, 'article', '', '<div class=\"Document\">\n    <p class=\"author\">\n        {!date ''{site_date_format}'' ''{doc_created}''!}<br/>\n        {!if defined(doc_author_override)\n            ''by {doc_author_override}''\n            ''by <a href=\"{site_path}/user.php?id={doc_user_id}\">{doc_user_name}</a>''\n        !}\n    </p>\n    {doc_body}\n{template:comment}\n</div>');";
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));



$get_items="CREATE TABLE `themes` (
  `theme_id` bigint(20) NOT NULL auto_increment,
  `theme_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `theme_modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `theme_name` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`theme_id`),
  UNIQUE KEY `theme_name` (`theme_name`)
) TYPE=MyISAM AUTO_INCREMENT=15 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));


$get_items="INSERT INTO `themes` VALUES (1, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Blog1');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (2, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Broadpool');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (3, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Gray_Matter');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (4, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Magic');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (5, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Pico');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (6, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Post');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (7, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Simple');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (13, '2003-06-22 22:22:35', '2003-06-22 22:22:35', 'Siteframe');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (9, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'TextBased');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (10, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'Two-Column');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (11, '2003-06-04 10:13:10', '2003-06-04 10:13:10', 'default');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `themes` VALUES (14, '2003-06-26 19:31:39', '2003-06-26 19:31:39', 'Swiss');" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `trackback` (
  `tb_id` bigint(20) NOT NULL auto_increment,
  `tb_doc_id` bigint(20) NOT NULL default '0',
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `tb_url` varchar(250) default NULL,
  `tb_title` varchar(250) default NULL,
  `tb_ip` varchar(50) default NULL,
  `tb_site` varchar(250) default NULL,
  `tb_excerpt` text,
  PRIMARY KEY  (`tb_id`),
  KEY `tb_doc_id_ndx` (`tb_doc_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `triggers` (
  `tr_id` bigint(20) NOT NULL auto_increment,
  `tr_user_id` bigint(20) NOT NULL default '0',
  `tr_obj_id` bigint(20) NOT NULL default '0',
  `tr_created` datetime NOT NULL default '0000-00-00 00:00:00',
  `tr_event_class` varchar(50) NOT NULL default '',
  `tr_event_type` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`tr_id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="CREATE TABLE `users` (
  `user_id` bigint(20) NOT NULL auto_increment,
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `modified` datetime NOT NULL default '0000-00-00 00:00:00',
  `user_status` tinyint(4) NOT NULL default '0',
  `user_firstname` varchar(250) default NULL,
  `user_lastname` varchar(250) NOT NULL default '',
  `user_nickname` varchar(250) default NULL,
  `user_email` varchar(250) NOT NULL default '',
  `user_passwd` varchar(250) NOT NULL default '',
  `user_cookie` varchar(250) NOT NULL default '',
  `user_props` text,
  PRIMARY KEY  (`user_id`),
  UNIQUE KEY `users_email_ndx` (`user_email`),
  UNIQUE KEY `user_cookie_ndx` (`user_cookie`),
  KEY `users_name_ndx` (`user_lastname`,`user_firstname`),
  KEY `users_nickname_ndx` (`user_nickname`),
  FULLTEXT KEY `users_full_ndx` (`user_firstname`,`user_lastname`,`user_nickname`,`user_props`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

$get_items="INSERT INTO `users` VALUES (1, '2005-08-21 02:13:44', '2005-08-21 02:14:04', 99, 'Admin', 'Admin', 'Admin Admin', '$email@$domain', '21232f297a57a5a743894a0e4a801fc3', '666c65664b5a04a325a4c7bb8914159c', '<properties><version>3.1.9</version><user_description></user_description><user_homepage></user_homepage><user_country>US</user_country><register_confirm>ddeae6dd0dcccae4a850ee600894955e</register_confirm><user_subscribe>1</user_subscribe><user_notify_comments>1</user_notify_comments><user_last_login>2005-08-21 02:14</user_last_login></properties>');
" ;
$get_items_res=mysql_query($get_items)  or die(mysql_error( ));

echo "MySQL database table added.<br>";

mysql_close($conn2);
?>