PHP Classes

File: includes/SiteClass.class.php

Recommend this page to a friend!
  Classes of Barton Phillips  >  PHP Site Class  >  includes/SiteClass.class.php  
File: includes/SiteClass.class.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Site Class
Create database driven Web sites
Author: By
Last change: fix up
make getPageWigget public
fix up nullable with a default
Added return types and arg types to almost all fuctions.
Updated version to 3.1 and README.md
modified: README.md
modified: includes/SiteClass.class.php
ErrorClass add E_DEPRECIATED. SiteClass add id for image2 and 3 and remove alt for image2. Changed $h->desc and $h->keyword
modified: includes/SiteClass.class.php
modified: includes/database-engines/ErrorClass.class.php
Fixed: When getting myIp I don't want to look at noTrack.
modified: includes/SiteClass.class.php
SiteClass fixed $mainTitle in getPageBanner(). Other two just cosmetic.
modified: includes/SiteClass.class.php
modified: includes/database-engines/ErrorClass.class.php
modified: includes/database-engines/dbTables.class.php
modified: includes/SiteClass.class.php
modified: includes/database-engines/Database.class.php
modified: includes/database-engines/ErrorClass.class.php
modified: includes/database-engines/dbAbstract.class.php
modified: includes/siteload.php
Update README.md version. Add ?object $h=null and ?object $b=null and then $h = $h ?? new stdClass also for $b.
modified: README.md
modified: includes/SiteClass.class.php
Updated the version.
modified: includes/SiteClass.class.php
Mods for PHP8.1. PHP8.1 does not like passing a null. Changed siteload.php to use a class. Old siteload is now siteloadOld.php.
modified: includes/SiteClass.class.php // Update the Version.
modified: includes/database-engines/Database.class.php
modified: includes/database-engines/ErrorClass.class.php
modified: includes/database-engines/SqlException.class.php
modified: includes/database-engines/dbMysqli.class.php
modified: includes/database-engines/helper-functions.php
modified: includes/siteload.php
new file: includes/siteloadOld.php
small adds
See comments in the files below
modified: includes/SiteClass.class.php
modified: includes/database-engines/Database.class.php
modified: includes/database-engines/SqlException.class.php
modified: includes/database-engines/dbAbstract.class.php
modified: includes/database-engines/dbMysqli.class.php
modified: includes/siteload.php
SiteClass:
Added $b->script in default footer in getPageFooter(). Put not $this->count in side not $this->noTrack
Add explanation of how zero gets into isJavaScript in tracker.
Also remove $ok and use fetchrow('num')[0] instead in table checks.
Also added __LINE__ to all debug messages.
Add just plain 'bot', 'spider' and "HeadlessChrome" to list.
Add tracker() makes isJavaScript = 0x8000 if it is isMe() true.
dbMysqli: add some more comments
modified: includes/SiteClass.class.php
modified: includes/database-engines/dbMysqli.class.php
Add comment at top
modified: includes/SiteClass.class.php
Add just plain 'bot' to list in checkIfBot().
modified: includes/SiteClass.class.php
setSiteCookie() add defaults for $secure, $httponly and $samesite. New version number.
modified: includes/SiteClass.class.php
Fix pots2 to use which=8
modified: includes/SiteClass.class.php
1) update version, 2) correct constructor comments, 3) removed doctype from getPageTop(), 4) add title, desc, preheadcomment setting, 5) throw if headFile returns 1
modified: includes/SiteClass.class.php
Add comments and fix bots2.
modified: includes/SiteClass.class.php
modified: includes/database-engines/Database.class.php
Date: 6 months ago
Size: 36,766 bytes

You need to be a registered user and login to get this file.

1,601,502 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.