Initial commit to new repo (carried over from: https://github.com/ryancramerdesign/ProcessWire/tree/devns)
4
site-classic/assets/index.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
// Intentionally left blank to test that htaccess rewrite rules are working.
|
||||
// Accessing this file from http should produce a '403 forbidden' error,
|
||||
// since all PHP files are blocked under /assets/.
|
42
site-classic/config.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php namespace ProcessWire;
|
||||
|
||||
/**
|
||||
* ProcessWire Configuration File
|
||||
*
|
||||
* Site-specific configuration for ProcessWire
|
||||
*
|
||||
* Please see the file /wire/config.php which contains all configuration options you may
|
||||
* specify here. Simply copy any of the configuration options from that file and paste
|
||||
* them into this file in order to modify them.
|
||||
*
|
||||
* SECURITY NOTICE
|
||||
* In non-dedicated environments, you should lock down the permissions of this file so
|
||||
* that it cannot be seen by other users on the system. For more information, please
|
||||
* see the config.php section at: https://processwire.com/docs/security/file-permissions/
|
||||
*
|
||||
* This file is licensed under the MIT license
|
||||
* https://processwire.com/about/license/mit/
|
||||
*
|
||||
* ProcessWire 3.x, Copyright 2016 by Ryan Cramer
|
||||
* https://processwire.com
|
||||
*
|
||||
*/
|
||||
|
||||
if(!defined("PROCESSWIRE")) die();
|
||||
|
||||
/*** SITE CONFIG *************************************************************************/
|
||||
|
||||
/**
|
||||
* Enable debug mode?
|
||||
*
|
||||
* Debug mode causes additional info to appear for use during dev and debugging.
|
||||
* This is almost always recommended for sites in development. However, you should
|
||||
* always have this disabled for live/production sites.
|
||||
*
|
||||
* @var bool
|
||||
*
|
||||
*/
|
||||
$config->debug = false;
|
||||
|
||||
|
||||
/*** INSTALLER CONFIG ********************************************************************/
|
BIN
site-classic/install/files/1/hyatt2.0x100.jpg
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
site-classic/install/files/1/hyatt2.232x176.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
site-classic/install/files/1/hyatt2.jpg
Normal file
After Width: | Height: | Size: 840 KiB |
BIN
site-classic/install/files/1/hyatt_interior11.0x100.jpg
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
site-classic/install/files/1/hyatt_interior11.232x176.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
site-classic/install/files/1/hyatt_interior11.jpg
Normal file
After Width: | Height: | Size: 578 KiB |
BIN
site-classic/install/files/1/hyatt_interior9.0x100.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
site-classic/install/files/1/hyatt_interior9.232x176.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
site-classic/install/files/1/hyatt_interior9.jpg
Normal file
After Width: | Height: | Size: 418 KiB |
BIN
site-classic/install/files/1/marquis_interior13b_med.0x100.jpg
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
site-classic/install/files/1/marquis_interior13b_med.232x176.jpg
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
site-classic/install/files/1/marquis_interior13b_med.jpg
Normal file
After Width: | Height: | Size: 392 KiB |
BIN
site-classic/install/files/1/marquis_interior3.0x100.jpg
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
site-classic/install/files/1/marquis_interior3.232x176.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
site-classic/install/files/1/marquis_interior3.jpg
Normal file
After Width: | Height: | Size: 583 KiB |
BIN
site-classic/install/files/1/marquis_interior7b.0x100.jpg
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
site-classic/install/files/1/marquis_interior7b.232x176.jpg
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
site-classic/install/files/1/marquis_interior7b.jpg
Normal file
After Width: | Height: | Size: 346 KiB |
BIN
site-classic/install/files/1/westin_interior1.0x100.jpg
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
site-classic/install/files/1/westin_interior1.232x176.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
site-classic/install/files/1/westin_interior1.jpg
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
site-classic/install/files/1/westin_interior2.0x100.jpg
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
site-classic/install/files/1/westin_interior2.232x176.jpg
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
site-classic/install/files/1/westin_interior2.jpg
Normal file
After Width: | Height: | Size: 237 KiB |
1
site-classic/install/files/README.txt
Normal file
@@ -0,0 +1 @@
|
||||
This file is here to ensure Git adds the dir to the repo. You may delete this file.
|
6
site-classic/install/info.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php if(!defined("PROCESSWIRE_INSTALL")) die();
|
||||
$info = array(
|
||||
'title' => "Classic",
|
||||
'summary' => "This was the default site profile from ProcessWire versions 2.0 through 2.4. While now a little older in appearance, it is a great starting point for learning about ProcessWire.",
|
||||
'screenshot' => "screenshot.jpg"
|
||||
);
|
538
site-classic/install/install.sql
Normal file
@@ -0,0 +1,538 @@
|
||||
--- WireDatabaseBackup {"time":"2014-08-27 14:02:01","user":"","dbName":"pw2_tmp","description":"","tables":[],"excludeTables":["pages_drafts","pages_roles","permissions","roles","roles_permissions","users","users_roles","user","role","permission"],"excludeCreateTables":[],"excludeExportTables":["field_roles","field_permissions","field_email","field_pass","caches","session_login_throttle","page_path_history"]}
|
||||
|
||||
DROP TABLE IF EXISTS `caches`;
|
||||
CREATE TABLE `caches` (
|
||||
`name` varchar(128) NOT NULL,
|
||||
`data` mediumtext NOT NULL,
|
||||
`expires` datetime NOT NULL,
|
||||
PRIMARY KEY (`name`),
|
||||
KEY `expires` (`expires`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `field_body`;
|
||||
CREATE TABLE `field_body` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('27', '<h3>The page you were looking for is not found.</h3>\r\n<p>Please use our search engine or navigation above to find the page.</p>');
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('1', '<h2>What is ProcessWire?</h2>\n\n<p>ProcessWire gives you full control over your fields, templates and markup. It provides a powerful template system that works the way you do. Not to mention, ProcessWire\'s API makes working with your content easy and enjoyable. <a href=\"http://processwire.com\">Learn more</a></p>\n\n<h2>Basic Site Profile</h2>\n\n<p>This is a basic starter site for you to use in developing your own site. There are a few pages here to serve as examples, but this site profile does not make any attempt to demonstrate all that ProcessWire can do. To learn more or ask questions, visit the <a href=\"http://www.processwire.com/talk/\" target=\"_blank\">ProcessWire forums</a>. If you are building a new site, this basic profile is a good place to start. You may use these existing templates and design as they are, or you may replace them entirely. <a href=\"./templates/\">Read more</a></p>\n\n<h2>Browse the Site</h2>');
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('1002', '<h2>Ut capio feugiat saepius torqueo olim</h2><h3>In utinam facilisi eum vicis feugait nimis</h3><p>Iusto incassum appellatio cui macto genitus vel. Lobortis aliquam luctus, roto enim, imputo wisi tamen. Ratis odio, genitus acsi, neo illum consequat consectetuer ut. </p><p>Wisi fere virtus cogo, ex ut vel nullus similis vel iusto. Tation incassum adsum in, quibus capto premo diam suscipere facilisi. Uxor laoreet mos capio premo feugait ille et. Pecus abigo immitto epulae duis vel. Neque causa, indoles verto, decet ingenium dignissim. </p><p>Patria iriure vel vel autem proprius indoles ille sit. Tation blandit refoveo, accumsan ut ulciscor lucidus inhibeo capto aptent opes, foras. </p><h3>Dolore ea valde refero feugait utinam luctus</h3><p>Usitas, nostrud transverbero, in, amet, nostrud ad. Ex feugiat opto diam os aliquam regula lobortis dolore ut ut quadrum. Esse eu quis nunc jugis iriure volutpat wisi, fere blandit inhibeo melior, hendrerit, saluto velit. Eu bene ideo dignissim delenit accumsan nunc. Usitas ille autem camur consequat typicus feugait elit ex accumsan nutus accumsan nimis pagus, occuro. Immitto populus, qui feugiat opto pneum letalis paratus. Mara conventio torqueo nibh caecus abigo sit eum brevitas. Populus, duis ex quae exerci hendrerit, si antehabeo nobis, consequat ea praemitto zelus. </p><p>Immitto os ratis euismod conventio erat jus caecus sudo. Appellatio consequat, et ibidem ludus nulla dolor augue abdo tego euismod plaga lenis. Sit at nimis venio venio tego os et pecus enim pneum magna nobis ad pneum. Saepius turpis probo refero molior nonummy aliquam neque appellatio jus luctus acsi. Ulciscor refero pagus imputo eu refoveo valetudo duis dolore usitas. Consequat suscipere quod torqueo ratis ullamcorper, dolore lenis, letalis quia quadrum plaga minim. </p>');
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('1003', '<h2>The site template files are located in /site/templates/</h2>\n\n<p>Each of the template files in this site profile includes the header template (head.inc), outputs the bodycopy, and then includes the footer template (foot.inc). This is to avoid duplication of the markup that is the same across all pages in the site. This strategy is called <em>direct output with includes</em> and is just one strategy you can use for templates.</p>\n\n<p>You could of course make each template completely self contained with its own markup (called direct output), but if you have more than one template with some of the same markup, then it wouldn\'t be very efficient to do that. As a result, it\'s better to move the reused parts (aka partials) into include files.</p>\n\n<p>Another strategy would be to use a have a <em>main</em> template that contains all your markup and has placeholders (variables) for the dynamic parts. Then your other templates would populate the placeholders before including the main template. This strategy is called <em>delayed output.</em></p>\n\n<p><a href=\"https://processwire.com/docs/tutorials/how-to-structure-your-template-files/\">Read more about these template strategies</a></p>');
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('1001', '<h2>Si lobortis singularis genitus ibidem saluto.</h2>\n\n<p>Dolore ad nunc, mos accumsan paratus duis suscipit luptatum facilisis macto uxor iaceo quadrum. Demoveo, appellatio elit neque ad commodo ea. Wisi, iaceo, tincidunt at commoveo rusticus et, ludus. Feugait at blandit bene blandit suscipere abdo duis ideo bis commoveo pagus ex, velit. Consequat commodo roto accumsan, duis transverbero.</p>');
|
||||
INSERT INTO `field_body` (`pages_id`, `data`) VALUES('1004', '<h2>Pertineo vel dignissim, natu letalis fere odio</h2><h3>Si lobortis singularis genitus ibidem saluto</h3><p>Magna in gemino, gilvus iusto capto jugis abdo mos aptent acsi qui. Utrum inhibeo humo humo duis quae. Lucidus paulatim facilisi scisco quibus hendrerit conventio adsum. Feugiat eligo foras ex elit sed indoles hos elit ex antehabeo defui et nostrud. Letatio valetudo multo consequat inhibeo ille dignissim pagus et in quadrum eum eu. Aliquam si consequat, ut nulla amet et turpis exerci, adsum luctus ne decet, delenit. Commoveo nunc diam valetudo cui, aptent commoveo at obruo uxor nulla aliquip augue. </p><p>Iriure, ex velit, praesent vulpes delenit capio vero gilvus inhibeo letatio aliquip metuo qui eros. Transverbero demoveo euismod letatio torqueo melior. Ut odio in suscipit paulatim amet huic letalis suscipere eros causa, letalis magna. </p>');
|
||||
|
||||
DROP TABLE IF EXISTS `field_email`;
|
||||
CREATE TABLE `field_email` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`pages_id`),
|
||||
KEY `data_exact` (`data`),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `field_headline`;
|
||||
CREATE TABLE `field_headline` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` text NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_headline` (`pages_id`, `data`) VALUES('1', 'Basic Example Site');
|
||||
INSERT INTO `field_headline` (`pages_id`, `data`) VALUES('1001', 'About Us');
|
||||
INSERT INTO `field_headline` (`pages_id`, `data`) VALUES('1003', 'Developing Site Templates');
|
||||
|
||||
DROP TABLE IF EXISTS `field_images`;
|
||||
CREATE TABLE `field_images` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` varchar(255) NOT NULL,
|
||||
`sort` int(10) unsigned NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`pages_id`,`sort`),
|
||||
KEY `data` (`data`),
|
||||
KEY `modified` (`modified`),
|
||||
KEY `created` (`created`),
|
||||
FULLTEXT KEY `description` (`description`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'westin_interior2.jpg', '7', 'Westin Peachtree Atlanta hotel lobby area.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'marquis_interior7b.jpg', '5', 'Elevator at the Atlanta Marriott Marquis hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'marquis_interior13b_med.jpg', '6', 'Atrium at the Atlanta Marriott Marquis hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'marquis_interior3.jpg', '4', 'Elevator core at the Atlanta Marriott Marquis hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'hyatt_interior11.jpg', '3', 'Looking up from the lobby area at the Atlanta Hyatt hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'hyatt2.jpg', '2', 'Detail from Atlanta Hyatt Hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'hyatt_interior9.jpg', '1', 'Detail from Atlanta Hyatt Hotel.', NOW(), NOW());
|
||||
INSERT INTO `field_images` (`pages_id`, `data`, `sort`, `description`, `modified`, `created`) VALUES('1', 'westin_interior1.jpg', '0', 'Westin Peachtree Atlanta hotel lobby area.', NOW(), NOW());
|
||||
|
||||
DROP TABLE IF EXISTS `field_pass`;
|
||||
CREATE TABLE `field_pass` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` char(40) NOT NULL,
|
||||
`salt` char(32) NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=ascii;
|
||||
|
||||
DROP TABLE IF EXISTS `field_permissions`;
|
||||
CREATE TABLE `field_permissions` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` int(11) NOT NULL,
|
||||
`sort` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`pages_id`,`sort`),
|
||||
KEY `data` (`data`,`pages_id`,`sort`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `field_process`;
|
||||
CREATE TABLE `field_process` (
|
||||
`pages_id` int(11) NOT NULL DEFAULT '0',
|
||||
`data` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`pages_id`),
|
||||
KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('6', '17');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('3', '12');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('8', '12');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('9', '14');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('10', '7');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('11', '47');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('16', '48');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('300', '104');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('21', '50');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('29', '66');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('23', '10');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('304', '138');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('31', '136');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('22', '76');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('30', '68');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('303', '129');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('2', '87');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('302', '121');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('301', '109');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('28', '76');
|
||||
INSERT INTO `field_process` (`pages_id`, `data`) VALUES('1007', '150');
|
||||
|
||||
DROP TABLE IF EXISTS `field_roles`;
|
||||
CREATE TABLE `field_roles` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` int(11) NOT NULL,
|
||||
`sort` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`pages_id`,`sort`),
|
||||
KEY `data` (`data`,`pages_id`,`sort`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `field_sidebar`;
|
||||
CREATE TABLE `field_sidebar` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_sidebar` (`pages_id`, `data`) VALUES('1', '<h3>About ProcessWire</h3>\n\n<p>ProcessWire is an open source CMS and web application framework aimed at the needs of designers, developers and their clients.</p>\n\n<p><a href=\"https://processwire.com/about/sites/\">Showcase</a><br /><a href=\"https://processwire.com/docs/\">Documentation</a><br /><a href=\"https://processwire.com/docs/tutorials/\">Tutorials</a><br /><a href=\"https://processwire.com/talk/\">Support</a><br /><a href=\"http://cheatsheet.processwire.com\">API Cheatsheet</a><br /><a href=\"http://modules.processwire.com\">Modules</a></p>\n\n<p> </p>\n\n<p> </p>');
|
||||
INSERT INTO `field_sidebar` (`pages_id`, `data`) VALUES('1002', '<h3>Sudo nullus</h3><p>Et torqueo vulpes vereor luctus augue quod consectetuer antehabeo causa patria tation ex plaga ut. Abluo delenit wisi iriure eros feugiat probo nisl aliquip nisl, patria. Antehabeo esse camur nisl modo utinam. Sudo nullus ventosus ibidem facilisis saepius eum sino pneum, vicis odio voco opto.</p>');
|
||||
|
||||
DROP TABLE IF EXISTS `field_summary`;
|
||||
CREATE TABLE `field_summary` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` mediumtext NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1002', 'Dolore ea valde refero feugait utinam luctus. Probo velit commoveo et, delenit praesent, suscipit zelus, hendrerit zelus illum facilisi, regula. ');
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1001', 'This is a placeholder page with two child pages to serve as an example. ');
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1005', 'View this template\'s source for a demonstration of how to create a basic site map. ');
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1003', 'More about the templates included in this basic site profile. ');
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1004', 'Mos erat reprobo in praesent, mara premo, obruo iustum pecus velit lobortis te sagaciter populus.');
|
||||
INSERT INTO `field_summary` (`pages_id`, `data`) VALUES('1', 'ProcessWire is an open source CMS and web application framework aimed at the needs of designers, developers and their clients. ');
|
||||
|
||||
DROP TABLE IF EXISTS `field_title`;
|
||||
CREATE TABLE `field_title` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`data` text NOT NULL,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
KEY `data_exact` (`data`(255)),
|
||||
FULLTEXT KEY `data` (`data`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('11', 'Templates');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('16', 'Fields');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('22', 'Setup');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('3', 'Pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('6', 'Add Page');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('8', 'Tree');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('9', 'Save Sort');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('10', 'Edit Page');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('21', 'Modules');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('29', 'Users');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('30', 'Roles');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('2', 'Admin');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('7', 'Trash');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('27', '404 Page Not Found');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('302', 'Insert Link');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('23', 'Login');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('304', 'Profile');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('301', 'Empty Trash');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('300', 'Search');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('303', 'Insert Image');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('28', 'Access');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('31', 'Permissions');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('32', 'Edit pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('34', 'Delete pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('35', 'Move pages (change parent)');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('36', 'View pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('50', 'Sort child pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('51', 'Change templates on pages');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('52', 'Administer users');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('53', 'User can update profile/password');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('54', 'Lock or unlock a page');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1', 'Home');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1001', 'About');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1002', 'Child page example 1');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1000', 'Search');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1003', 'Templates');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1004', 'Child page example 2');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1005', 'Site Map');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1006', 'Use Page Lister');
|
||||
INSERT INTO `field_title` (`pages_id`, `data`) VALUES('1007', 'Find');
|
||||
|
||||
DROP TABLE IF EXISTS `fieldgroups`;
|
||||
CREATE TABLE `fieldgroups` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) CHARACTER SET ascii NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `name` (`name`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=97 DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('2', 'admin');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('3', 'user');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('4', 'role');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('5', 'permission');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('1', 'home');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('88', 'sitemap');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('83', 'basic-page');
|
||||
INSERT INTO `fieldgroups` (`id`, `name`) VALUES('80', 'search');
|
||||
|
||||
DROP TABLE IF EXISTS `fieldgroups_fields`;
|
||||
CREATE TABLE `fieldgroups_fields` (
|
||||
`fieldgroups_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`fields_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`sort` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`data` text,
|
||||
PRIMARY KEY (`fieldgroups_id`,`fields_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('2', '2', '1', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('2', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('3', '3', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('3', '4', '2', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('4', '5', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('5', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('3', '92', '1', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '44', '5', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '76', '3', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('80', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '78', '1', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '44', '5', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '82', '4', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('88', '79', '1', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '79', '2', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('1', '82', '4', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('88', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '76', '3', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '79', '2', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '1', '0', NULL);
|
||||
INSERT INTO `fieldgroups_fields` (`fieldgroups_id`, `fields_id`, `sort`, `data`) VALUES('83', '78', '1', NULL);
|
||||
|
||||
DROP TABLE IF EXISTS `fields`;
|
||||
CREATE TABLE `fields` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`type` varchar(128) CHARACTER SET ascii NOT NULL,
|
||||
`name` varchar(255) CHARACTER SET ascii NOT NULL,
|
||||
`flags` int(11) NOT NULL DEFAULT '0',
|
||||
`label` varchar(255) NOT NULL DEFAULT '',
|
||||
`data` text NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `name` (`name`),
|
||||
KEY `type` (`type`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=98 DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('1', 'FieldtypePageTitle', 'title', '13', 'Title', '{\"required\":1,\"textformatters\":[\"TextformatterEntities\"],\"size\":0,\"maxlength\":255}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('2', 'FieldtypeModule', 'process', '25', 'Process', '{\"description\":\"The process that is executed on this page. Since this is mostly used by ProcessWire internally, it is recommended that you don\'t change the value of this unless adding your own pages in the admin.\",\"collapsed\":1,\"required\":1,\"moduleTypes\":[\"Process\"],\"permanent\":1}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('3', 'FieldtypePassword', 'pass', '24', 'Set Password', '{\"collapsed\":1,\"size\":50,\"maxlength\":128}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('5', 'FieldtypePage', 'permissions', '24', 'Permissions', '{\"derefAsPage\":0,\"parent_id\":31,\"labelFieldName\":\"title\",\"inputfield\":\"InputfieldCheckboxes\"}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('4', 'FieldtypePage', 'roles', '24', 'Roles', '{\"derefAsPage\":0,\"parent_id\":30,\"labelFieldName\":\"name\",\"inputfield\":\"InputfieldCheckboxes\",\"description\":\"User will inherit the permissions assigned to each role. You may assign multiple roles to a user. When accessing a page, the user will only inherit permissions from the roles that are also assigned to the page\'s template.\"}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('92', 'FieldtypeEmail', 'email', '9', 'E-Mail Address', '{\"size\":70,\"maxlength\":255}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('82', 'FieldtypeTextarea', 'sidebar', '0', 'Sidebar', '{\"inputfieldClass\":\"InputfieldCKEditor\",\"rows\":5,\"contentType\":1,\"toolbar\":\"Format, Styles, -, Bold, Italic, -, RemoveFormat\\r\\nNumberedList, BulletedList, -, Blockquote\\r\\nPWLink, Unlink, Anchor\\r\\nPWImage, Table, HorizontalRule, SpecialChar\\r\\nPasteText, PasteFromWord\\r\\nScayt, -, Sourcedialog\",\"inlineMode\":0,\"useACF\":1,\"usePurifier\":1,\"toggles\":[2,4,8],\"formatTags\":\"p;h2;h3;h4;h5;h6;pre;address\",\"extraPlugins\":[\"pwimage\",\"pwlink\",\"sourcedialog\"],\"removePlugins\":\"image,magicline\",\"collapsed\":2}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('44', 'FieldtypeImage', 'images', '0', 'Images', '{\"extensions\":\"gif jpg jpeg png\",\"adminThumbs\":1,\"inputfieldClass\":\"InputfieldImage\",\"maxFiles\":0,\"descriptionRows\":1,\"fileSchema\":2,\"textformatters\":[\"TextformatterEntities\"],\"outputFormat\":1,\"defaultValuePage\":0,\"defaultGrid\":0,\"icon\":\"camera\"}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('79', 'FieldtypeTextarea', 'summary', '1', 'Summary', '{\"textformatters\":[\"TextformatterEntities\"],\"inputfieldClass\":\"InputfieldTextarea\",\"collapsed\":2,\"rows\":3,\"contentType\":0}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('76', 'FieldtypeTextarea', 'body', '0', 'Body', '{\"inputfieldClass\":\"InputfieldCKEditor\",\"rows\":10,\"contentType\":1,\"toolbar\":\"Format, Styles, -, Bold, Italic, -, RemoveFormat\\r\\nNumberedList, BulletedList, -, Blockquote\\r\\nPWLink, Unlink, Anchor\\r\\nPWImage, Table, HorizontalRule, SpecialChar\\r\\nPasteText, PasteFromWord\\r\\nScayt, -, Sourcedialog\",\"inlineMode\":0,\"useACF\":1,\"usePurifier\":1,\"formatTags\":\"p;h2;h3;h4;h5;h6;pre;address\",\"extraPlugins\":[\"pwimage\",\"pwlink\",\"sourcedialog\"],\"removePlugins\":\"image,magicline\",\"toggles\":[2,4,8]}');
|
||||
INSERT INTO `fields` (`id`, `type`, `name`, `flags`, `label`, `data`) VALUES('78', 'FieldtypeText', 'headline', '0', 'Headline', '{\"description\":\"Use this instead of the Title if a longer headline is needed than what you want to appear in navigation.\",\"textformatters\":[\"TextformatterEntities\"],\"collapsed\":2,\"size\":0,\"maxlength\":1024}');
|
||||
|
||||
DROP TABLE IF EXISTS `modules`;
|
||||
CREATE TABLE `modules` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`class` varchar(128) CHARACTER SET ascii NOT NULL,
|
||||
`flags` int(11) NOT NULL DEFAULT '0',
|
||||
`data` text NOT NULL,
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `class` (`class`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=155 DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('1', 'FieldtypeTextarea', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('2', 'FieldtypeNumber', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('3', 'FieldtypeText', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('4', 'FieldtypePage', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('30', 'InputfieldForm', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('6', 'FieldtypeFile', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('7', 'ProcessPageEdit', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('10', 'ProcessLogin', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('12', 'ProcessPageList', '0', '{\"pageLabelField\":\"title\",\"paginationLimit\":25,\"limit\":50}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('121', 'ProcessPageEditLink', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('14', 'ProcessPageSort', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('15', 'InputfieldPageListSelect', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('117', 'JqueryUI', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('17', 'ProcessPageAdd', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('125', 'SessionLoginThrottle', '3', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('122', 'InputfieldPassword', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('25', 'InputfieldAsmSelect', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('116', 'JqueryCore', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('27', 'FieldtypeModule', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('28', 'FieldtypeDatetime', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('29', 'FieldtypeEmail', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('108', 'InputfieldURL', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('32', 'InputfieldSubmit', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('33', 'InputfieldWrapper', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('34', 'InputfieldText', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('35', 'InputfieldTextarea', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('36', 'InputfieldSelect', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('37', 'InputfieldCheckbox', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('38', 'InputfieldCheckboxes', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('39', 'InputfieldRadios', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('40', 'InputfieldHidden', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('41', 'InputfieldName', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('43', 'InputfieldSelectMultiple', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('45', 'JqueryWireTabs', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('46', 'ProcessPage', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('47', 'ProcessTemplate', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('48', 'ProcessField', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('50', 'ProcessModule', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('114', 'PagePermissions', '3', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('97', 'FieldtypeCheckbox', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('115', 'PageRender', '3', '{\"clearCache\":1}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('55', 'InputfieldFile', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('56', 'InputfieldImage', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('57', 'FieldtypeImage', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('60', 'InputfieldPage', '0', '{\"inputfieldClasses\":[\"InputfieldSelect\",\"InputfieldSelectMultiple\",\"InputfieldCheckboxes\",\"InputfieldRadios\",\"InputfieldAsmSelect\",\"InputfieldPageListSelect\",\"InputfieldPageListSelectMultiple\"]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('61', 'TextformatterEntities', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('66', 'ProcessUser', '0', '{\"showFields\":[\"name\",\"email\",\"roles\"]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('67', 'MarkupAdminDataTable', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('68', 'ProcessRole', '0', '{\"showFields\":[\"name\"]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('76', 'ProcessList', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('78', 'InputfieldFieldset', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('79', 'InputfieldMarkup', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('80', 'InputfieldEmail', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('89', 'FieldtypeFloat', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('83', 'ProcessPageView', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('84', 'FieldtypeInteger', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('85', 'InputfieldInteger', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('86', 'InputfieldPageName', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('87', 'ProcessHome', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('90', 'InputfieldFloat', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('92', 'InputfieldTinyMCE', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('94', 'InputfieldDatetime', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('98', 'MarkupPagerNav', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('129', 'ProcessPageEditImageSelect', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('103', 'JqueryTableSorter', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('104', 'ProcessPageSearch', '1', '{\"searchFields\":\"title\",\"displayField\":\"title path\"}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('105', 'FieldtypeFieldsetOpen', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('106', 'FieldtypeFieldsetClose', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('107', 'FieldtypeFieldsetTabOpen', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('109', 'ProcessPageTrash', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('111', 'FieldtypePageTitle', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('112', 'InputfieldPageTitle', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('113', 'MarkupPageArray', '3', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('131', 'InputfieldButton', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('133', 'FieldtypePassword', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('134', 'ProcessPageType', '1', '{\"showFields\":[]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('135', 'FieldtypeURL', '1', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('136', 'ProcessPermission', '1', '{\"showFields\":[\"name\",\"title\"]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('137', 'InputfieldPageListSelectMultiple', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('138', 'ProcessProfile', '1', '{\"profileFields\":[\"pass\",\"email\"]}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('139', 'SystemUpdater', '1', '{\"systemVersion\":7}', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('148', 'AdminThemeDefault', '2', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('149', 'InputfieldSelector', '2', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('150', 'ProcessPageLister', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('151', 'InputfieldCKEditor', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('152', 'MarkupHTMLPurifier', '0', '', NOW());
|
||||
INSERT INTO `modules` (`id`, `class`, `flags`, `data`, `created`) VALUES('153', 'JqueryMagnific', '1', '', NOW());
|
||||
|
||||
DROP TABLE IF EXISTS `pages`;
|
||||
CREATE TABLE `pages` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`parent_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`templates_id` int(11) unsigned NOT NULL DEFAULT '0',
|
||||
`name` varchar(128) CHARACTER SET ascii NOT NULL,
|
||||
`status` int(10) unsigned NOT NULL DEFAULT '1',
|
||||
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`modified_users_id` int(10) unsigned NOT NULL DEFAULT '2',
|
||||
`created` timestamp NOT NULL DEFAULT '2015-12-18 06:09:00',
|
||||
`created_users_id` int(10) unsigned NOT NULL DEFAULT '2',
|
||||
`sort` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `name_parent_id` (`name`,`parent_id`),
|
||||
KEY `parent_id` (`parent_id`),
|
||||
KEY `templates_id` (`templates_id`),
|
||||
KEY `modified` (`modified`),
|
||||
KEY `created` (`created`),
|
||||
KEY `status` (`status`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1009 DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1', '0', '1', 'home', '9', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('2', '1', '2', 'processwire', '1035', NOW(), '40', NOW(), '2', '5');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('3', '2', '2', 'page', '21', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('6', '3', '2', 'add', '1045', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('7', '1', '2', 'trash', '1039', NOW(), '41', NOW(), '2', '6');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('8', '3', '2', 'list', '21', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('9', '3', '2', 'sort', '1047', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('10', '3', '2', 'edit', '1045', NOW(), '41', NOW(), '2', '3');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('11', '22', '2', 'template', '21', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('16', '22', '2', 'field', '21', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('21', '2', '2', 'module', '21', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('22', '2', '2', 'setup', '21', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('23', '2', '2', 'login', '1035', NOW(), '41', NOW(), '2', '4');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('27', '1', '29', 'http404', '1035', NOW(), '41', NOW(), '3', '4');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('28', '2', '2', 'access', '13', NOW(), '41', NOW(), '2', '3');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('29', '28', '2', 'users', '29', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('30', '28', '2', 'roles', '29', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('31', '28', '2', 'permissions', '29', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('32', '31', '5', 'page-edit', '25', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('34', '31', '5', 'page-delete', '25', NOW(), '41', NOW(), '2', '3');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('35', '31', '5', 'page-move', '25', NOW(), '41', NOW(), '2', '4');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('36', '31', '5', 'page-view', '25', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('37', '30', '4', 'guest', '25', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('38', '30', '4', 'superuser', '25', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('41', '29', '3', 'admin', '1', NOW(), '40', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('40', '29', '3', 'guest', '25', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('50', '31', '5', 'page-sort', '25', NOW(), '41', NOW(), '41', '5');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('51', '31', '5', 'page-template', '25', NOW(), '41', NOW(), '41', '6');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('52', '31', '5', 'user-admin', '25', NOW(), '41', NOW(), '41', '10');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('53', '31', '5', 'profile-edit', '1', NOW(), '41', NOW(), '41', '13');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('54', '31', '5', 'page-lock', '1', NOW(), '41', NOW(), '41', '8');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('300', '3', '2', 'search', '1045', NOW(), '41', NOW(), '2', '5');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('301', '3', '2', 'trash', '1047', NOW(), '41', NOW(), '2', '5');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('302', '3', '2', 'link', '1041', NOW(), '41', NOW(), '2', '6');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('303', '3', '2', 'image', '1041', NOW(), '41', NOW(), '2', '7');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('304', '2', '2', 'profile', '1025', NOW(), '41', NOW(), '41', '5');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1000', '1', '26', 'search', '1025', NOW(), '41', NOW(), '2', '3');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1001', '1', '29', 'about', '1', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1002', '1001', '29', 'what', '1', NOW(), '41', NOW(), '2', '0');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1003', '1', '29', 'templates', '1', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1004', '1001', '29', 'background', '1', NOW(), '41', NOW(), '2', '1');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1005', '1', '34', 'site-map', '1', NOW(), '41', NOW(), '2', '2');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1006', '31', '5', 'page-lister', '1', NOW(), '40', NOW(), '40', '9');
|
||||
INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('1007', '3', '2', 'lister', '1', NOW(), '40', NOW(), '40', '8');
|
||||
|
||||
DROP TABLE IF EXISTS `pages_access`;
|
||||
CREATE TABLE `pages_access` (
|
||||
`pages_id` int(11) NOT NULL,
|
||||
`templates_id` int(11) NOT NULL,
|
||||
`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`pages_id`),
|
||||
KEY `templates_id` (`templates_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('37', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('38', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('32', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('34', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('35', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('36', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('50', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('51', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('52', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('53', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('54', '2', NOW());
|
||||
INSERT INTO `pages_access` (`pages_id`, `templates_id`, `ts`) VALUES('1006', '2', NOW());
|
||||
|
||||
DROP TABLE IF EXISTS `pages_parents`;
|
||||
CREATE TABLE `pages_parents` (
|
||||
`pages_id` int(10) unsigned NOT NULL,
|
||||
`parents_id` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`pages_id`,`parents_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('2', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('3', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('3', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('7', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('22', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('22', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('28', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('28', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('29', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('29', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('29', '28');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('30', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('30', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('30', '28');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('31', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('31', '2');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('31', '28');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1001', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1002', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1002', '1001');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1003', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1004', '1');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1004', '1001');
|
||||
INSERT INTO `pages_parents` (`pages_id`, `parents_id`) VALUES('1005', '1');
|
||||
|
||||
DROP TABLE IF EXISTS `pages_sortfields`;
|
||||
CREATE TABLE `pages_sortfields` (
|
||||
`pages_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`sortfield` varchar(20) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`pages_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `session_login_throttle`;
|
||||
CREATE TABLE `session_login_throttle` (
|
||||
`name` varchar(128) NOT NULL,
|
||||
`attempts` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`last_attempt` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`name`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `templates`;
|
||||
CREATE TABLE `templates` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) CHARACTER SET ascii NOT NULL,
|
||||
`fieldgroups_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`flags` int(11) NOT NULL DEFAULT '0',
|
||||
`cache_time` mediumint(9) NOT NULL DEFAULT '0',
|
||||
`data` text NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `name` (`name`),
|
||||
KEY `fieldgroups_id` (`fieldgroups_id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('2', 'admin', '2', '8', '0', '{\"useRoles\":1,\"parentTemplates\":[2],\"allowPageNum\":1,\"redirectLogin\":23,\"slashUrls\":1,\"noGlobal\":1,\"modified\":1377936792}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('3', 'user', '3', '8', '0', '{\"useRoles\":1,\"noChildren\":1,\"parentTemplates\":[2],\"slashUrls\":1,\"pageClass\":\"User\",\"noGlobal\":1,\"noMove\":1,\"noTrash\":1,\"noSettings\":1,\"noChangeTemplate\":1,\"nameContentTab\":1}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('4', 'role', '4', '8', '0', '{\"noChildren\":1,\"parentTemplates\":[2],\"slashUrls\":1,\"pageClass\":\"Role\",\"noGlobal\":1,\"noMove\":1,\"noTrash\":1,\"noSettings\":1,\"noChangeTemplate\":1,\"nameContentTab\":1}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('5', 'permission', '5', '8', '0', '{\"noChildren\":1,\"parentTemplates\":[2],\"slashUrls\":1,\"guestSearchable\":1,\"pageClass\":\"Permission\",\"noGlobal\":1,\"noMove\":1,\"noTrash\":1,\"noSettings\":1,\"noChangeTemplate\":1,\"nameContentTab\":1}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('1', 'home', '1', '0', '0', '{\"useRoles\":1,\"noParents\":1,\"slashUrls\":1,\"modified\":1377936792,\"roles\":[37]}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('29', 'basic-page', '83', '0', '0', '{\"slashUrls\":1,\"modified\":1377936792}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('26', 'search', '80', '0', '0', '{\"noChildren\":1,\"noParents\":1,\"allowPageNum\":1,\"slashUrls\":1,\"modified\":1377936792}');
|
||||
INSERT INTO `templates` (`id`, `name`, `fieldgroups_id`, `flags`, `cache_time`, `data`) VALUES('34', 'sitemap', '88', '0', '0', '{\"noChildren\":1,\"noParents\":1,\"redirectLogin\":23,\"slashUrls\":1,\"modified\":1377936792}');
|
||||
|
||||
UPDATE pages SET created_users_id=41, modified_users_id=41, created=NOW(), modified=NOW();
|
||||
|
||||
--- /WireDatabaseBackup {"numTables":16,"numCreateTables":22,"numInserts":302,"numSeconds":0}
|
BIN
site-classic/install/screenshot.jpg
Normal file
After Width: | Height: | Size: 71 KiB |
90
site-classic/modules/README.txt
Normal file
@@ -0,0 +1,90 @@
|
||||
ABOUT /SITE/MODULES/
|
||||
====================
|
||||
This directory /site/modules/ is where you may install additional plugin modules.
|
||||
These modules are specific to your site only. There is also a corresponding
|
||||
/wire/modules/ directory, which contains ProcessWire's core modules (and best to
|
||||
leave those alone).
|
||||
|
||||
If safe for your hosting environment, you may wish to make this directory
|
||||
writable to PHP so that the installation of your modules can be managed from
|
||||
ProcessWire's admin. However, this is not necessarily safe in all shared hosting
|
||||
environments and is completely optional.
|
||||
|
||||
|
||||
Where to get modules?
|
||||
---------------------
|
||||
Visit the modules directory at: http://modules.processwire.com
|
||||
|
||||
|
||||
Installing modules from the ProcessWire admin
|
||||
---------------------------------------------
|
||||
If your /site/modules/ directory is writable, you can install modules from
|
||||
ProcessWire's admin directly from the Modules Directory, from a ZIP file or from
|
||||
a URL to a ZIP file. In your ProcessWire admin, see Modules > New for
|
||||
installation options.
|
||||
|
||||
|
||||
Installing modules from the file system
|
||||
---------------------------------------
|
||||
Each module (and any related files) should live in a directory of its own. The
|
||||
directory should generally carry the same name as the module. For instance, if
|
||||
you are installing a module named ProcessDatabaseBackups.module, then it should
|
||||
live in the directory /site/modules/ProcessDatabaseBackups/.
|
||||
|
||||
Once you have placed a new module in this directory, you need to let ProcessWire
|
||||
know about it. Login to the admin and click "Modules". Then click the "Check for
|
||||
new modules" button. It will find your new module(s). Click the "Install" button
|
||||
next to any new modules that you want to install.
|
||||
|
||||
|
||||
Removing modules
|
||||
----------------
|
||||
The first step in removing a module is to uninstall it from ProcessWire (if it
|
||||
isn't already). You do this by going to the "Modules" page, and "Site" tab in
|
||||
your ProcessWire admin. Click the "Uninstall" button next to the module you
|
||||
want to remove.
|
||||
|
||||
After the module is uninstalled, you may remove the module files. If your
|
||||
modules file system is writable to ProcessWire, it will give you a "Delete"
|
||||
button next to the module in your "Modules" admin page. You may click that to
|
||||
remove the module files.
|
||||
|
||||
If your file system is not writable, you may remove the module files manually
|
||||
from the file system (via SFTP or whatever tool you are using to manage your
|
||||
files on the server).
|
||||
|
||||
|
||||
Interested in learning how to make your own modules?
|
||||
----------------------------------------------------
|
||||
We've created two "Hello World" modules as examples for those interested in
|
||||
learning module development:
|
||||
|
||||
- Helloworld.module demonstrates the basics of modules and hooks.
|
||||
http://modules.processwire.com/modules/helloworld/
|
||||
|
||||
- ProcessHello.module demonstrates the basics of how to create a Process
|
||||
module. Process modules are those that create applications in the admin.
|
||||
http://modules.processwire.com/modules/process-hello/
|
||||
|
||||
There is a module development forum located at:
|
||||
https://processwire.com/talk/forum/19-moduleplugin-development/
|
||||
|
||||
For a tutorial on how to create modules, see:
|
||||
http://wiki.processwire.com/index.php/Module_Creation
|
||||
|
||||
|
||||
Additional resources
|
||||
--------------------
|
||||
|
||||
To find and download new modules, see the modules directory at:
|
||||
http://modules.processwire.com/
|
||||
|
||||
For more information about modules, see the documentation at:
|
||||
http://processwire.com/api/modules/
|
||||
|
||||
For discussion and support of modules, see:
|
||||
http://processwire.com/talk/forum/4-modulesplugins/
|
||||
|
||||
|
||||
|
||||
|
98
site-classic/templates/README.txt
Normal file
@@ -0,0 +1,98 @@
|
||||
PROCESSWIRE TEMPLATE FILES
|
||||
==========================
|
||||
|
||||
The files in this directory correspond with the templates list in ProcessWire admin. Template files are just
|
||||
PHP files that output markup. They may also be just basic HTML files (with a .PHP extension). Most pages in
|
||||
the site are assigned to one of the template files in this directory.
|
||||
|
||||
These template files typically comprise the majority of what makes your site unique from any other
|
||||
ProcessWire installation. In keeping with this approach, you'll also see '/scripts/' and '/styles/'
|
||||
directories within this templates directory. They contain the site's javascript and CSS files. Though
|
||||
that is stylistic only, you can certainly place them somewhere else or rename them as desired.
|
||||
|
||||
Templates have full unrestricted access to the ProcessWire API and typically use it for finding pages and
|
||||
referencing their properties for output. If desired, templates may go further than this and call upon other
|
||||
web applications or anything else that you might do with PHP.
|
||||
|
||||
Every template is supplied with a $page object that refers to the current page being viewed. This $page
|
||||
object is locally scoped to the template file. The only thing you need to do to access it is directly
|
||||
refer to it in your PHP code. For instance, if you wanted to output the page's $title field from your
|
||||
template, you would do the following:
|
||||
|
||||
<?php echo $page->title; ?>
|
||||
|
||||
...or short syntax (if supported by your web host):
|
||||
|
||||
<?=$page->title?>
|
||||
|
||||
And likewise for any other fields assigned to the template. Though some fields require more, like
|
||||
files, images, page references and the like.
|
||||
|
||||
For more details about the $page API variable, please see:
|
||||
http://processwire.com/api/variables/page/
|
||||
|
||||
|
||||
LOADING OTHER PAGES FROM YOUR TEMPLATE
|
||||
======================================
|
||||
|
||||
Templates are also supplied with a $pages API variable that provides for loading and finding other pages.
|
||||
The most common methods used in that object are get() and find(), both of which take a selector string to
|
||||
locate and return pages. The only difference between them is that get() always returns 1 page, and find()
|
||||
returns a PageArray. Below are examples:
|
||||
|
||||
// find all pages using the skyscraper template
|
||||
$skyscrapers = $pages->find("template=skyscraper");
|
||||
|
||||
// find all skyscrapers with a height greater than 500 ft, and less than or equal to 1000 ft.
|
||||
$skyscrapers = $pages->find("template=skyscraper, height>500, height<=1000");
|
||||
|
||||
// find all skyscrapers in Chicago with 60+ floors, sorted by floors ascending
|
||||
$skyscrapers = $pages->get("/cities/chicago/")->children("floors>=60, sort=floors");
|
||||
|
||||
// find all skyscrapers built before 1950 with 10+ floors, sorted by year, then floors
|
||||
$skyscrapers = $pages->find("template=skyscraper, year<1950, floors>=10, sort=-year, sort=-floors");
|
||||
|
||||
// find all skyscrapers by architects David Childs or Renzo Piano, and sort by height descending
|
||||
$david = $pages->get("/architects/david-childs/");
|
||||
$renzo = $pages->get("/architects/renzo-piano/");
|
||||
$skyscrapers = $pages->find("architect=$david|$renzo, sort=-height");
|
||||
|
||||
// find all skyscrapers that mention the words "limestone" and "granite" somewhere in their body copy.
|
||||
$skyscrapers = $pages->get("/cities/")->find("template=skyscraper, body~=limestone granite");
|
||||
|
||||
// find all skyscrapers that mention the phrase "empire state building" in their body copy.
|
||||
$skyscrapers = $pages->find("template=skyscraper, body*=empire state building");
|
||||
|
||||
For more about the $pages API variable, please see:
|
||||
http://processwire.com/api/variables/pages/
|
||||
|
||||
|
||||
INCLUDING A TEMPLATE FROM ANOTHER TEMPLATE
|
||||
==========================================
|
||||
|
||||
When you include a template from another template, use the following syntax:
|
||||
|
||||
include("./my-template.php");
|
||||
|
||||
Note the leading "./" above. Do NOT use this syntax:
|
||||
|
||||
include("my-template.php");
|
||||
|
||||
The difference between the second [incorrect] example and the first [correct] example is that the first
|
||||
example starts with: "./". This tells PHP to look in the current directory. Whereas if you omit that part,
|
||||
PHP will search your include path, which could result in an error, or even worse, include the wrong file.
|
||||
So just remember to always precede your included files with "./".
|
||||
|
||||
|
||||
MORE INFORMATION
|
||||
================
|
||||
|
||||
The information in this file is very brief. Please see the official documentation at:
|
||||
http://processwire.com/api/
|
||||
|
||||
The ProcessWire API cheatsheet is especially handy:
|
||||
http://processwire.com/api/cheatsheet/
|
||||
|
||||
Please join the ProcessWire forum and we're always glad to assist with any questions you have:
|
||||
http://processwire.com/talk/
|
||||
|
15
site-classic/templates/admin.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php namespace ProcessWire;
|
||||
|
||||
/**
|
||||
* Admin template just loads the admin application controller,
|
||||
* and admin is just an application built on top of ProcessWire.
|
||||
*
|
||||
* This demonstrates how you can use ProcessWire as a front-end
|
||||
* to another application.
|
||||
*
|
||||
* Feel free to hook admin-specific functionality from this file,
|
||||
* but remember to leave the require() statement below at the end.
|
||||
*
|
||||
*/
|
||||
|
||||
require($config->paths->adminTemplates . 'controller.php');
|
13
site-classic/templates/basic-page.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Page template
|
||||
*
|
||||
*/
|
||||
|
||||
include("./head.inc");
|
||||
|
||||
echo $page->body;
|
||||
|
||||
include("./foot.inc");
|
||||
|
11
site-classic/templates/errors/500.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>500 Internal Server Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Internal Server Error</h1>
|
||||
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
|
||||
<p>{message}</p>
|
||||
</body>
|
||||
</html>
|
21
site-classic/templates/errors/README.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
When a fatal error occurs, ProcessWire displays the message:
|
||||
|
||||
"Unable to complete this request due to an error."
|
||||
|
||||
The message is intentionally vague for security purposes.
|
||||
Details will be logged to /site/assets/logs/errors.txt.
|
||||
|
||||
When present in this directory, the file 500.html will be
|
||||
displayed instead of the generic error message above. Feel
|
||||
free to modify this file to show whatever you would like.
|
||||
Please note the following:
|
||||
|
||||
* 500.html is plain HTML and has no PHP or API access.
|
||||
|
||||
* You may enter the tag {message} and ProcessWire will
|
||||
replace this with additional details when applicable.
|
||||
When not applicable, it will make it blank.
|
||||
|
||||
* If you are logged in as an admin, ProcessWire will
|
||||
give you a detailed error message rather than 500.html.
|
||||
|
43
site-classic/templates/foot.inc
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
// Output navigation for any children below the bodycopy.
|
||||
// This navigation cycles through the page's children and prints
|
||||
// a link and summary:
|
||||
|
||||
if($page->numChildren) {
|
||||
|
||||
echo "<ul class='nav'>";
|
||||
|
||||
foreach($page->children as $child) {
|
||||
echo "<li><p><a href='{$child->url}'>{$child->title}</a><br />";
|
||||
echo "<span class='summary'>{$child->summary}</span></p></li>";
|
||||
}
|
||||
|
||||
echo "</ul>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div><!--/bodycopy-->
|
||||
|
||||
</div><!--/container-->
|
||||
|
||||
</div><!--/content-->
|
||||
|
||||
<div id="footer" class="footer">
|
||||
<div class="container">
|
||||
<p>Powered by <a href='http://processwire.com'>ProcessWire Open Source CMS/CMF</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
// If the page is editable, then output a link that takes us straight to the page edit screen:
|
||||
if($page->editable()) {
|
||||
echo "<a class='nav' id='editpage' href='{$config->urls->admin}page/edit/?id={$page->id}'>Edit</a>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
160
site-classic/templates/head.inc
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Demo site header include file (HTML5)
|
||||
*
|
||||
* Note that this file has nothing to do with ProcessWire. We just split our common
|
||||
* header and footer markup into separate files (head.inc and foot.inc) like this,
|
||||
* since it was common to all of our templates.
|
||||
*
|
||||
*/
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
|
||||
<title><?php echo $page->get("headline|title"); ?></title>
|
||||
|
||||
<meta name="description" content="<?php echo $page->summary; ?>" />
|
||||
|
||||
<meta name="generator" content="ProcessWire <?php echo $config->version; ?>" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/main.css" />
|
||||
|
||||
<!--[if IE]>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/ie.css" />
|
||||
<![endif]-->
|
||||
|
||||
<!-- This website is powered by ProcessWire CMF/CMS - https://processwire.com -->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p id='bgtitle'><?php
|
||||
|
||||
// print the section title as big faded text that appears near the top left of the page
|
||||
echo $page->rootParent->title;
|
||||
|
||||
?></p>
|
||||
|
||||
<div id="masthead" class="masthead">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<a href='<?php echo $config->urls->root; ?>'><p id='logo'>ProcessWire</p></a>
|
||||
|
||||
<ul id='topnav'><?php
|
||||
|
||||
// Create the top navigation list by listing the children of the homepage.
|
||||
// If the section we are in is the current (identified by $page->rootParent)
|
||||
// then note it with <a class='on'> so we can style it differently in our CSS.
|
||||
// In this case we also want the homepage to be part of our top navigation,
|
||||
// so we prepend it to the pages we cycle through:
|
||||
|
||||
$homepage = $pages->get("/");
|
||||
$children = $homepage->children;
|
||||
$children->prepend($homepage);
|
||||
|
||||
foreach($children as $child) {
|
||||
$class = $child === $page->rootParent ? " class='on'" : '';
|
||||
echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>";
|
||||
}
|
||||
|
||||
?></ul>
|
||||
|
||||
<ul id='breadcrumb'><?php
|
||||
|
||||
// Create breadcrumb navigation by cycling through the current $page's
|
||||
// parents in order, linking to each:
|
||||
|
||||
foreach($page->parents as $parent) {
|
||||
echo "<li><a href='{$parent->url}'>{$parent->title}</a> > </li>";
|
||||
}
|
||||
|
||||
?></ul>
|
||||
|
||||
<h1 id='title'><?php
|
||||
|
||||
// The statement below asks for the page's headline or title.
|
||||
// Separating multiple fields with a pipe "|" returns the first
|
||||
// one that has a value. So in this case, we print the headline
|
||||
// field if it's there, otherwise we print the title.
|
||||
|
||||
echo $page->get("headline|title");
|
||||
|
||||
?></h1>
|
||||
|
||||
<form id='search_form' action='<?php echo $config->urls->root?>search/' method='get'>
|
||||
<input type='text' name='q' id='search_query' value='<?php echo htmlentities($input->whitelist('q'), ENT_QUOTES, 'UTF-8'); ?>' />
|
||||
<button type='submit' id='search_submit'>Search</button>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
// Grab a random image from the homepage and display it.
|
||||
// Note that $homepage was loaded above where we generated the top navigation.
|
||||
|
||||
if(count($homepage->images)) {
|
||||
$image = $homepage->images->getRandom();
|
||||
$thumb = $image->size(232, 176);
|
||||
echo "<a href='{$image->url}'><img id='photo' src='{$thumb->url}' alt='{$thumb->description}' width='{$thumb->width}' height='{$thumb->height}' /></a>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div id="sidebar">
|
||||
|
||||
<?php
|
||||
|
||||
// Output subnavigation
|
||||
//
|
||||
// Below we check to see that we're not on the homepage, and that
|
||||
// there are at least one or more pages in this section.
|
||||
//
|
||||
// Note $page->rootParent is always the top level section the page is in,
|
||||
// or to word differently: the first parent page that isn't the homepage.
|
||||
|
||||
if($page->path != '/' && $page->rootParent->numChildren > 0) {
|
||||
|
||||
// We have determined that we're not on the homepage
|
||||
// and that this section has child pages, so make navigation:
|
||||
|
||||
echo "<ul id='subnav' class='nav'>";
|
||||
|
||||
foreach($page->rootParent->children as $child) {
|
||||
$class = $page === $child ? " class='on'" : '';
|
||||
echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>";
|
||||
}
|
||||
|
||||
echo "</ul>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class='sidebar_item'>
|
||||
|
||||
<?php
|
||||
|
||||
// if the current page has a populated 'sidebar' field, then print it,
|
||||
// otherwise print the sidebar from the homepage
|
||||
|
||||
if($page->sidebar) echo $page->sidebar;
|
||||
else echo $homepage->sidebar;
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div><!--/sidebar-->
|
||||
|
||||
<div id="bodycopy">
|
||||
|
13
site-classic/templates/home.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Home template
|
||||
*
|
||||
*/
|
||||
|
||||
include("./head.inc");
|
||||
|
||||
echo $page->body;
|
||||
|
||||
include("./foot.inc");
|
||||
|
49
site-classic/templates/search.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Search template
|
||||
*
|
||||
*/
|
||||
|
||||
$out = '';
|
||||
|
||||
if($q = $sanitizer->selectorValue($input->get->q)) {
|
||||
|
||||
// Send our sanitized query 'q' variable to the whitelist where it will be
|
||||
// picked up and echoed in the search box by the head.inc file.
|
||||
$input->whitelist('q', $q);
|
||||
|
||||
// Search the title, body and sidebar fields for our query text.
|
||||
// Limit the results to 50 pages.
|
||||
// Exclude results that use the 'admin' template.
|
||||
$matches = $pages->find("title|body|sidebar~=$q, limit=50");
|
||||
|
||||
$count = count($matches);
|
||||
|
||||
if($count) {
|
||||
$out .= "<h2>Found $count pages matching your query:</h2>" .
|
||||
"<ul class='nav'>";
|
||||
|
||||
foreach($matches as $m) {
|
||||
$out .= "<li><p><a href='{$m->url}'>{$m->title}</a><br />{$m->summary}</p></li>";
|
||||
}
|
||||
|
||||
$out .= "</ul>";
|
||||
|
||||
} else {
|
||||
$out .= "<h2>Sorry, no results were found.</h2>";
|
||||
}
|
||||
} else {
|
||||
$out .= "<h2>Please enter a search term in the search box (upper right corner)</h2>";
|
||||
}
|
||||
|
||||
// Note that we stored our output in $out before printing it because we wanted to execute
|
||||
// the search before including the header template. This is because the header template
|
||||
// displays the current search query in the search box (via the $input->whitelist) and
|
||||
// we wanted to make sure we had that setup before including the header template.
|
||||
|
||||
include("./head.inc");
|
||||
|
||||
echo $out;
|
||||
|
||||
include("./foot.inc");
|
28
site-classic/templates/sitemap.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Site map template
|
||||
*
|
||||
*/
|
||||
|
||||
include("./head.inc");
|
||||
|
||||
function sitemapListPage($page) {
|
||||
|
||||
echo "<li><a href='{$page->url}'>{$page->title}</a> ";
|
||||
|
||||
if($page->numChildren) {
|
||||
echo "<ul>";
|
||||
foreach($page->children as $child) sitemapListPage($child);
|
||||
echo "</ul>";
|
||||
}
|
||||
|
||||
echo "</li>";
|
||||
}
|
||||
|
||||
echo "<ul class='sitemap'>";
|
||||
sitemapListPage($pages->get("/"));
|
||||
echo "</ul>";
|
||||
|
||||
include("./foot.inc");
|
||||
|
5
site-classic/templates/styles/ie.css
Normal file
@@ -0,0 +1,5 @@
|
||||
#bgtitle {
|
||||
/* This doesn't render well in IE (any version), so we just exclude it. */
|
||||
display: none;
|
||||
}
|
||||
|
BIN
site-classic/templates/styles/images/bg.gif
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
site-classic/templates/styles/images/btn-search.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
site-classic/templates/styles/images/logo.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
site-classic/templates/styles/images/topnav_a_bg.gif
Normal file
After Width: | Height: | Size: 91 B |
504
site-classic/templates/styles/main.css
Normal file
@@ -0,0 +1,504 @@
|
||||
@import url(reset.css);
|
||||
|
||||
/**
|
||||
* ProcesssWire.com site template stylesheet. Prepared for use in the basic site profile.
|
||||
*
|
||||
* Please feel free to use and/or modify under the same license as ProcessWire.
|
||||
*
|
||||
* Copyright 2010 by Ryan Cramer Design, LLC
|
||||
*
|
||||
*/
|
||||
|
||||
body {
|
||||
background: #e4ebee url(images/bg.gif) repeat-x;
|
||||
}
|
||||
|
||||
body, input, textarea, table {
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
font-size: 14px;
|
||||
color: #2f4248;
|
||||
}
|
||||
|
||||
#masthead,
|
||||
#content,
|
||||
#footer {
|
||||
padding-right: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
width: 85%;
|
||||
min-width: 920px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#masthead {
|
||||
background: none;
|
||||
height: 210px;
|
||||
}
|
||||
|
||||
#logo {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 44px;
|
||||
background: url(images/logo.gif);
|
||||
width: 179px;
|
||||
height: 25px;
|
||||
text-indent: -9999px;
|
||||
}
|
||||
|
||||
#title {
|
||||
font-size: 37px;
|
||||
color: #003051;
|
||||
position: absolute;
|
||||
top: 155px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#bgtitle {
|
||||
position: absolute;
|
||||
top: 62px;
|
||||
left: 0;
|
||||
font-size: 162px;
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
#topnav {
|
||||
position: absolute;
|
||||
right: 250px;
|
||||
top: 3px;
|
||||
}
|
||||
|
||||
#topnav li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#topnav a,
|
||||
#sidebar ul.nav a,
|
||||
#breadcrumb a,
|
||||
a.nav {
|
||||
font-family: "Helvetica Neue", Arial, sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
color: #a7e5f9;
|
||||
}
|
||||
|
||||
#topnav a {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 0 0 1px;
|
||||
padding: 48px 10px 20px 10px;
|
||||
}
|
||||
|
||||
#topnav a:hover,
|
||||
#topnav a.on {
|
||||
color: #fff;
|
||||
background: url(images/topnav_a_bg.gif) top left repeat-x;
|
||||
}
|
||||
|
||||
#breadcrumb {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 97px;
|
||||
}
|
||||
#breadcrumb li {
|
||||
color: #5197ae;
|
||||
font-size: 11px;
|
||||
display: inline;
|
||||
padding: 0 2px 0 0;
|
||||
|
||||
}
|
||||
#breadcrumb a {
|
||||
color: #005f7d;
|
||||
padding: 0 2px 0 0;
|
||||
}
|
||||
#breadcrumb a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#search_form { }
|
||||
|
||||
#search_query {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
right: 0;
|
||||
width: 222px;
|
||||
padding: 2px 5px;
|
||||
height: 17px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#search_submit {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
right: 0;
|
||||
border: none;
|
||||
background: url(images/btn-search.png) top left no-repeat;
|
||||
width: 27px;
|
||||
height: 21px;
|
||||
text-indent: -9999px;
|
||||
}
|
||||
#search_submit:hover {
|
||||
background-position: center left;
|
||||
cursor: pointer;
|
||||
}
|
||||
#search_submit:focus {
|
||||
background-position: bottom left;
|
||||
}
|
||||
|
||||
#masthead #photo {
|
||||
position: absolute;
|
||||
top: 34px;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
#content {
|
||||
background: #f8f8f8;
|
||||
font-size: 14px;
|
||||
line-height: 1.7em;
|
||||
color: #333;
|
||||
padding-top: 0;
|
||||
padding-bottom: 4em;
|
||||
min-height: 400px;
|
||||
|
||||
}
|
||||
#content p,
|
||||
#content ul,
|
||||
#content ol,
|
||||
#content table {
|
||||
margin: 1em 0 1.5em 0;
|
||||
}
|
||||
|
||||
#content a {
|
||||
color: #f00076;
|
||||
}
|
||||
#content a:hover {
|
||||
background-color: #f00076;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#content em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#content strong {
|
||||
font-family: "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: bold;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
#content h2,
|
||||
#content h3,
|
||||
#content h4 {
|
||||
margin-top: 1.5em;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
#content h2 {
|
||||
color: #006fbb;
|
||||
font-size: 23px;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#content h3 {
|
||||
color: #690033;
|
||||
font-size: 18px;
|
||||
border-bottom: 1px dotted #ccc;
|
||||
margin-bottom: -0.5em;
|
||||
padding-bottom: 0.25em;
|
||||
}
|
||||
#content h2 + h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#content h3 + ul,
|
||||
#content h3 + ol {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
#content h4 {
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#content ol li {
|
||||
margin: 0 0 0 3em;
|
||||
}
|
||||
|
||||
#content ul li {
|
||||
margin: 0 0 0 3em;
|
||||
display: list-item;
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
#content ol li {
|
||||
margin: 0 0 0 3em;
|
||||
display: list-item;
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
#content ul.nav { }
|
||||
|
||||
#content ul.nav li {
|
||||
display: block;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
border-bottom: 1px dotted #ccc;
|
||||
}
|
||||
#content ul.nav li a {
|
||||
font-family: "Helvetica Neue", Arial, sans-serif;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#content ul.nav li p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#content .disclaimer {
|
||||
font-size: 11px;
|
||||
line-height: 17px;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#sidebar {
|
||||
position: relative;
|
||||
float: right;
|
||||
width: 232px;
|
||||
min-height: 200px;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
#sidebar h3 {
|
||||
border: none;
|
||||
color: #006fbb;
|
||||
font-size: 16px;
|
||||
}
|
||||
#sidebar h3 + ul.nav {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#sidebar #photo {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sidebar ul.nav {
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
#sidebar ul.nav li {
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#sidebar ul.nav a {
|
||||
display: block;
|
||||
padding: 8px 10px 8px 15px;
|
||||
color: #005f7d;
|
||||
background: #d5e5eb;
|
||||
border-top: 1px solid #fff;
|
||||
}
|
||||
#sidebar ul.nav a:hover,
|
||||
#sidebar ul.nav a.on {
|
||||
background: #db1174;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#sidebar .sidebar_item {
|
||||
padding: 0 5px 0 14px;
|
||||
margin: 0 0 2em 0;
|
||||
border-left: 1px dotted #ccc;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#bodycopy {
|
||||
padding-right: 265px;
|
||||
padding-top: 1px;
|
||||
margin-top: 0;
|
||||
|
||||
}
|
||||
#bodycopy strong {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
#content #bodycopy > h2:first-child {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#bodycopy .video {
|
||||
margin: 1em 0;
|
||||
background: #000;
|
||||
padding: 10px;
|
||||
padding-bottom: 3px;
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
|
||||
#footer {
|
||||
clear: both;
|
||||
border: none;
|
||||
font-size: 11px;
|
||||
padding: 2em 0;
|
||||
}
|
||||
#footer p,
|
||||
#footer a {
|
||||
color: #85aaba;
|
||||
}
|
||||
|
||||
#footer p {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer a:hover {
|
||||
text-decoration: underline;
|
||||
color: #db1174;
|
||||
}
|
||||
|
||||
/**
|
||||
* The edit link that appears when you are logged in.
|
||||
* It is recommended that you implement an edit button
|
||||
* in your templates to make it easy to switch to and
|
||||
* from the admin control panel when editing pages.
|
||||
*
|
||||
*/
|
||||
#editpage {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 5px 6px;
|
||||
background: #db1174;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
#editpage:hover {
|
||||
background: #ffffcc;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Alignment styles that are used by the InputfieldTinyMCE for
|
||||
* positioning images in bodycopy. If you are using this field type,
|
||||
* you may want to include these or similar styles in your site.
|
||||
*
|
||||
*/
|
||||
.align_left {
|
||||
float: left;
|
||||
margin: 0 1em 0.25em 0;
|
||||
}
|
||||
|
||||
.align_right {
|
||||
float: right;
|
||||
margin: 0 0 0.25em 1em;
|
||||
}
|
||||
|
||||
.align_center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional CSS classes specific to the FieldtypeComments module
|
||||
* when used in this site design template.
|
||||
*
|
||||
*/
|
||||
|
||||
#content .CommentList {
|
||||
margin: 1em 0 0 0;
|
||||
}
|
||||
|
||||
#content .CommentListItem {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
border-left: 5px solid #ddd;
|
||||
border-top: 1px dotted #ccc;
|
||||
padding: 1em 0 1px 1em;
|
||||
background: #fff;
|
||||
|
||||
}
|
||||
#content .CommentListItem p {
|
||||
margin-top: 0;
|
||||
}
|
||||
#content .CommentHeader,
|
||||
#CommentForm label {
|
||||
margin: 0;
|
||||
font-weight: bold;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #3786bc;
|
||||
}
|
||||
#content .CommentText {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#CommentForm { }
|
||||
|
||||
#CommentForm h3 {
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#CommentForm label {
|
||||
display: block;
|
||||
color: #f00076;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#CommentForm p {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.CommentForm_cite,
|
||||
.CommentForm_email {
|
||||
float: left;
|
||||
}
|
||||
.CommentForm_cite input,
|
||||
.CommentForm_email input {
|
||||
width: 200px;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.CommentForm_text {
|
||||
clear: left;
|
||||
}
|
||||
.CommentForm_text textarea {
|
||||
padding: 2px;
|
||||
width: 75%;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
#CommentForm .error {
|
||||
background: #a30000;
|
||||
color: #fff;
|
||||
padding: 0.25em 0.5em;
|
||||
}
|
||||
#CommentForm .success {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* WireFatalError is a class that ProcessWire will use to output
|
||||
* fatal errors in the design, but only if debug mode is on, or if
|
||||
* you are logged in as a superuser.
|
||||
*
|
||||
*/
|
||||
.WireFatalError {
|
||||
background: #a30000;
|
||||
color: #fff;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
50
site-classic/templates/styles/reset.css
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Reset stylesheet to normalize styles across browsers
|
||||
*
|
||||
*/
|
||||
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,label,input,textarea,p,blockquote,th,td {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse:collapse;
|
||||
border-spacing:0;
|
||||
}
|
||||
|
||||
fieldset,img {
|
||||
border:0;
|
||||
}
|
||||
|
||||
address,caption,cite,code,dfn,em,strong,th,var {
|
||||
font-style:normal;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
ol,ul,li {
|
||||
list-style:none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
caption,th {
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-size:100%;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
q:before,q:after {
|
||||
content:'';
|
||||
}
|
||||
|
||||
abbr,acronym {
|
||||
border:0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|