/*
* SPECIAL NOTE: Normal json will not allow comments.
* The siteload.php program removes the comments and then
* passes the result to json_decode(), so after the comments are
* revomve the file MUST be legal parsable json.
*
* This is mysitemap.json for a standare system.
* You can have 'doSiteClass' or 'webServer'.
* "doSiteClass": true,
* //"webServer": true,
* ...
* "dbinfo": {
* "host": "localhost",
* "user": "barton",
* "database": "bartonphillips",
* "engine": "mysql",
* },
* ...
* "headFile": "/var/www/bartonphillips.com/includes/head.i.php",
* "bannerFile": "/var/www/bartonphillips.com/includes/banner.i.php",
* "footerFile": "/var/www/bartonphillips.com/includes/footer.i.php",
*/
{
"doSiteClass": true, // This should be true so we are using full SiteClass!
//"webServer": true,
"siteDomain": "bartonphillips.com",
"siteName": "bartonphillips.com",
"mainTitle": "<h1>Barton Phillips Home Page</h1>",
"title": "this title",
"path": "/var/www/bartonphillips.com",
"className": "SiteClass",
"copyright": "Barton L. Phillips",
"author": "Barton L. Phillips, mailto:bartonphillips@gmail.com",
"address": "New Bern, North Carolina",
"favicon": "https://bartonphillips.net/images/favicon.ico",
"canonical": "https://www.bartonphillips.com",
"masterdb": "barton",
"dbinfo": {
"host": "localhost",
"user": "barton",
"database": "barton", //"bartonphillips",
"engine": "mysql",
//"engine": "sqlite", // Don't use it except experment.
"DUMMY": null // DUMMY at end with no comma
},
"errorMode": {
"development": true,
"noEmail": true,
"DUMMY": null // DUMMY at end with no comma
},
//"memberTable": "members",
"headFile": "/var/www/bartonphillips.com/includes/head.i.php",
"bannerFile": "/var/www/bartonphillips.com/includes/banner.i.php",
"footerFile": "/var/www/bartonphillips.com/includes/footer.i.php",
"trackerImg1": "/images/blp-image.png",
//"trackerImgPhone": "/images/8080cpu.jpg",
"trackerImg2": "/images/146624.png",
"EMAILADDRESS": "bartonphillips@gmail.com",
"EMAILRETURN": "bartonphillips@gmail.com",
"EMAILFROM": "webmaster@bartonphillips.com"
}
You can add or remove items. See SiteClass for getPageTopBottom(), getPageHead(), getPageBanner() and getPageFooter(). The 'mysitemap.json is put in your directory along with the 'includes' along with the Head File (head.i.php), Banner File (banner.i.php), Footer File (footer.i.php)
SiteClass Methods
Additional Files
Main SiteClass