<commit_before><?php
// SITE_CLASS_VERSION must change when the GitHub Release version changes.
// BLP 2021-09-02 -- Using PHP_MAJOR_VERSION looked like a good idea but it just does not work. If
// I use the null coalesing oporator I get a parser error because the code is parsed before wht
// Version can be checked. I am removing the PHP_MAJOR_VERSION code.
// BLP 2021-09-02 -- add PHP_MAJOR_VERSION to deferentiate between PHP 5 and PHP 7 (search for
// PHP_MAJOR_VERION)
// BLP 2021-03-22 -- add 'options' to setSiteCookie().
// BLP 2021-03-22 -- remove daycountwhat from constructor values amd $inc from daycount().
// BLP 2021-03-16 -- removed 'member' logic from counter2(). Remove 'member' logic from daycount().
// Remove $this-id from all functions. ErrorClass::setDevelopment(true) now sets
// $noEmailErrs also to true. This can be overriden by settin ErrorClass::setNoEmailErrs(false)
// after setting development.
// BLP 2021-03-11 -- add escape for agent.
// BLP 2021-03-09 -- removed logagent2 logic.
// BLP 2021-03-09 -- added nodb flag to setmyip(). 
// BLP 2021-02-28 -- use $_SERVER['SERVER_NAME'] instead of $this->siteDomain.
// BLP 2018-07-02 -- Change 'isMe()' logic to use array_intersect() and then use 'isMe()' instead of old logic.
// BLP 2018-07-01 -- Added logic to look at bartonphillips.net if myUri is a string and starts with
// http. Also add logic to add a date to copyright.
// BLP 2018-06-10 -- If our ip is in myIp then WE ARE NOT A BOT!
// BLP 2018-06-08 -- fix $agent in trackbots()
// BLP 2018-04-20 -- move the init section
// BLP 2017-11-01 -- counter2 left() for filename
// BLP 2016-12-20 -- in tracker() add refid=$_SERVER['HTTP_REFERER'] and alter table tracker change
// refid to varchar(255).
// BLP 2016-11-27 -- changed the sense of $this->myIp and $this->myUri. Now $this->myUri can be an
// object and $this->myIp can be an array.

define("SITE_CLASS_VERSION", "3.0.4");

// One class for all my sites
// This version has been generalized to not have anything about my sites in it!
/**
 * SiteClass
 *
 * @package SiteClass
 * @author <NAME> <<EMAIL>>
 * @link http://www.bartonphillips.com
 * @copyright Copyright (c) 2010, <NAME>
 * @license  MIT
 */

/**
 * @package SiteClass
 * This class can be extended to handle special issues and add methods.
 */

class SiteClass extends dbAbstract {
  private $hitCount = null;
  
  // Give these default values incase they are not mentioned in mysitemap.json.
  // Note they could still be null from mysitemap.json!
  
  public $count = true;
  public $countMe = false;<commit_msg>Update version to 3.0.5 	modified:   includes/SiteClass.class.php<commit_after><?php
// SITE_CLASS_VERSION must change when the GitHub Release version changes.
// BLP 2021-09-02 -- Using PHP_MAJOR_VERSION looked like a good idea but it just does not work. If
// I use the null coalesing oporator I get a parser error because the code is parsed before wht
// Version can be checked. I am removing the PHP_MAJOR_VERSION code.
// BLP 2021-09-02 -- add PHP_MAJOR_VERSION to deferentiate between PHP 5 and PHP 7 (search for
// PHP_MAJOR_VERION)
// BLP 2021-03-22 -- add 'options' to setSiteCookie().
// BLP 2021-03-22 -- remove daycountwhat from constructor values amd $inc from daycount().
// BLP 2021-03-16 -- removed 'member' logic from counter2(). Remove 'member' logic from daycount().
// Remove $this-id from all functions. ErrorClass::setDevelopment(true) now sets
// $noEmailErrs also to true. This can be overriden by settin ErrorClass::setNoEmailErrs(false)
// after setting development.
// BLP 2021-03-11 -- add escape for agent.
// BLP 2021-03-09 -- removed logagent2 logic.
// BLP 2021-03-09 -- added nodb flag to setmyip(). 
// BLP 2021-02-28 -- use $_SERVER['SERVER_NAME'] instead of $this->siteDomain.
// BLP 2018-07-02 -- Change 'isMe()' logic to use array_intersect() and then use 'isMe()' instead of old logic.
// BLP 2018-07-01 -- Added logic to look at bartonphillips.net if myUri is a string and starts with
// http. Also add logic to add a date to copyright.
// BLP 2018-06-10 -- If our ip is in myIp then WE ARE NOT A BOT!
// BLP 2018-06-08 -- fix $agent in trackbots()
// BLP 2018-04-20 -- move the init section
// BLP 2017-11-01 -- counter2 left() for filename
// BLP 2016-12-20 -- in tracker() add refid=$_SERVER['HTTP_REFERER'] and alter table tracker change
// refid to varchar(255).
// BLP 2016-11-27 -- changed the sense of $this->myIp and $this->myUri. Now $this->myUri can be an
// object and $this->myIp can be an array.

define("SITE_CLASS_VERSION", "3.0.5");

// One class for all my sites
// This version has been generalized to not have anything about my sites in it!
/**
 * SiteClass
 *
 * @package SiteClass
 * @author <NAME> <<EMAIL>>
 * @link http://www.bartonphillips.com
 * @copyright Copyright (c) 2010, <NAME>
 * @license  MIT
 */

/**
 * @package SiteClass
 * This class can be extended to handle special issues and add methods.
 */

class SiteClass extends dbAbstract {
  private $hitCount = null;
  
  // Give these default values incase they are not mentioned in mysitemap.json.
  // Note they could still be null from mysitemap.json!
  
  public $count = true;
  public $countMe = false;
{'fraction_non_alphanumeric': 0.11622554660529344, 'fraction_numerical': 0.058496355964710395, 'mean_word_length': 3.2536704730831976, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '941870', 'n_tokens_mistral': 1872, 'n_tokens_neox': 1625, 'n_words': 678}