summaryrefslogtreecommitdiff
path: root/includes/classes
AgeCommit message (Collapse)AuthorFilesLines
2026-06-06kernel: load mConfig before checkEnvironment writes to itLester Caine1-2/+4
checkEnvironment() called setConfig() to record site_server_type before mConfig had been loaded from the database. This left mConfig non-empty with only the server-type entry, so the subsequent empty() guard in loadConfig() short-circuited and site_title was never loaded. Result: getSiteCookieName() fell back to 'bit-user-bitweaver' on every request where checkEnvironment() ran first, creating a second spurious cookie alongside the real 'bit-user-<site>' cookie and splitting sessions. Fix: call loadConfig() at the top of checkEnvironment() if mConfig is not yet populated, matching the pattern used elsewhere. The bit-user-bitweaver fallback is now only reached during a genuine cold install. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06BitSystem: replace TikiWiki placeholder with architecture docblockLester Caine1-9/+54
Covers the six concerns: package registry (registerPackage/scanPackages/ registerAppMenu), configuration (kernel_config, getConfig/storeConfig), display pipeline (display/fatalError/fatalPermission), permissions and access guards, installer schema registration (register* family / verifyInstalledPackages), and utilities (MIME, versioning, date/time, navigation). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06BitBase: replace TikiWiki placeholder with architecture docblockLester Caine1-2/+34
Covers the four concerns: DB connection, mInfo/mErrors data hash, APCu object caching, and list utilities (prepGetList/postGetList). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01Return early from bit_redirect() if URL is null or emptyLester Caine1-0/+4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24Allow null default in getConfig() for PHP 8.5 compatibilityLester Caine1-2/+2
string|null $pDefault coerced to '' internally; return type stays string to avoid breaking callers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24Drop finfo_close() deprecated in PHP 8.5Lester Caine1-1/+0
finfo objects are freed automatically; explicit close is a deprecation warning in 8.5. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18Remove legacy jscalender in favour of modern replacementLester Caine1-22/+33
2026-05-15Remove unused group model codeLester Caine1-22/+0
2026-05-15Further trimming of role_model selectionLester Caine1-3/+1
2026-05-14move phpmailer to external package managementLester Caine1-2/+2
2026-05-14php-cs-fixer tidies to php8.5 standardsLester Caine11-888/+862
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10(interger) -> (int) for php8.5Lester Caine1-2/+2
2026-05-10Ensure $ADODB_CACHE_DIR exists in the web services /tmp directory ( and ↵Lester Caine1-1/+1
check adodb uses it )
2026-05-10Use BIT_INSTALL to block database access until database is populatedLester Caine1-1/+1
2026-04-19PHP8.4 style tweakslsces1-14/+14
2026-04-16checkEnvironment expanded to manage server style flags and isFeatureActive ↵lsces1-42/+35
checks for a particular feature rather than yust a y/n responce
2026-04-16PHP8.4 tidies and restore missing defaultslsces1-7/+7
2026-04-06Tidying links to bitweaver.org to avoid redirect from httplsces1-6/+6
2026-04-06doc.bitweaver.org no longer exists, reset to main websitelsces1-1/+1
2026-04-06verifyId needs to allow content_id of -1 for anonymous user trafficlsces1-1/+1
2026-04-05bitweaver.txt is not returning a value and in any case it's out of sync with ↵lsces1-2/+5
this rebuild. Making a clean start from bitweaver5 but previous databases should just work.
2026-04-05Use namespace calls rather than require_oncelsces1-1/+1
2026-04-05If the pdo driver is being used, then db_name is part of the db_host string ↵lsces1-15/+8
and needs to be null. The problem remaining is that datadict does not get the right driver when pdo is used, so hard coded for now.
2026-04-05verifyId should only return true for valid positive content_id numbers, but ↵lsces1-1/+1
-1 is used for the anonymous user which can mess things.
2026-04-05Solving a little chicken and egg situation when installing from scratch. ↵lsces4-9/+9
Once the database is created autoload is messing things up until the tables are also created. Need a tidier way of doing this but it works for now by check tables exist before using them.
2026-04-05ADOdb needs a few little changes to properly handle pdo drivers. Currently ↵lsces1-1/+1
hard coded for pdo-firebird but should get the right driver from the Hostname
2026-04-05Renamed as BitDb to match with the autoloaded naming conventionlsces1-1132/+0
2026-03-26Namespace tidieslsces2-2/+4
2026-02-02Fix duplicating _PATH defines ... cluge needed for VSCode to see the defines ↵lsces1-1/+3
so it can actually work.
2026-02-02Modernize code style.lsces1-2/+2
2025-09-11Merge pull request #1 from BitweaverCMS/masterLester Caine2-0/+231
add BitCli and BitLogger
2025-09-04Modernize code with defaults and code style. Also add missing layout tagslsces1-1/+1
2025-08-30add BitCli abd BitLoggerspiderr2-0/+231
2025-08-29Tidied the class layout and removed more adodb links, but still needs more ↵lsces1-173/+197
work to eliminate adodb-time and also pick up current php classes. Is probably obsolite really
2025-08-29Classes remorked in namespace structurelsces13-1463/+3080
2025-06-15revert last commit for BitDatespiderr1-4/+4
2025-06-15use ::mktime instead of ::gmmktime in getTimestampFromISO as the timestamp ↵spiderr1-4/+4
does not have TZ regex parsing
2025-06-07fix login.php for signin.phpspiderr1-3/+3
2025-05-24add cleaned up strftime replacementspiderr1-86/+272
2025-05-24::prepGetList verifyIdParameter on page; empty & bool checks in ::verifyIdspiderr1-2/+2
2025-05-24clean up BitDate methods that are long since outdated; use getdate insteadspiderr1-5/+15
2025-05-13PHP8 fixes: curly params, apache_setenvspiderr1-4/+6
2024-06-04fix fatalPermission for AJAX / api callsspiderr1-1/+6
2024-01-06return second half of mime/type for unknown mime typesspiderr1-0/+3
2022-03-22init listInfo = array(); postGetListspiderr1-0/+2
2021-09-22add BIT_QUERY_CACHE_CLEARspider@dav1-0/+1
2021-06-28remove deprecated / REMOVED get_magic_quotes_gpcspiderr1-8/+0
2021-06-28update timestamp and epoch for postgres to remove deprecated callsspiderr1-2/+2
2021-05-07use signin.tpl for verifyPermission failurespiderr1-1/+1
2021-02-13move bit_setup_inc.php to includes/modela bitweaver1-3/+3