summaryrefslogtreecommitdiff
path: root/includes/classes
AgeCommit message (Collapse)AuthorFilesLines
2026-06-05Fix countries_inc.php scope in RoleUser::load() — require not require_onceLester Caine1-1/+1
Same issue as preferences/register: require_once inside a method is globally tracked, so a second user object load won't re-execute the file, leaving $bwIso3166 undefined and flag unset. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05Replace GIF flag scan with static ISO alpha-3 country list and SVG flagsLester Caine1-3/+5
- Add countries_inc.php: 252 countries as alpha-3 → name + alpha-3 → alpha-2 map for flag image lookup; derived from webtrees CountryService, no runtime webtrees dependency - Add 243 Marble SVG flags (xx.svg) plus eng/sct/wls/nir for constituent countries - Remove 244 full-name GIF flags - RoleUser: set users_country_code (alpha-3), flag (alpha-2 lowercase), and users_country (display name) at load time - preferences.php, register.php, hauth_register.php: replace opendir GIF scan with require_once countries_inc.php - Templates: replace {section loop=$flags} with {foreach $countries as $code => $name}; iexplain now uses display name instead of raw flag code Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30Fix invalid cookie domain when remember-me is activeLester Caine1-1/+1
parse_url(BIT_ROOT_URL, PHP_URL_HOST) returns null for a path-only URL; the ?? '/' fallback set domain to '/' which browsers reject as invalid. Use ?? '' so the domain attribute is omitted and the browser infers the current host. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18Ensure permissions array is populated when checking admin permission. May ↵Lester Caine1-0/+3
not be set during install process
2026-05-16Correct logic around getRoles to correctly return just the roles a user is ↵Lester Caine1-2/+2
assigned to.
2026-05-16Tidy loadPermissions to ignore anonymous blockLester Caine1-1/+11
2026-05-15Remove unused group model codeLester Caine2-29/+4
2026-05-15To simplyfy maintenence BitUser classes have been retired and active code ↵Lester Caine4-3911/+1
base defaulted to ROLE_MODEL
2026-05-14php-cs-fixer tidies to php8.5 standardsLester Caine7-259/+244
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10php8.5 tidies and drop Hash from getUserIdFromCookie as it only allows a ↵Lester Caine2-13/+13
cookie string
2026-04-19Picking off Roles niggles and a few PHP8.4 tidies.lsces1-6/+6
2026-04-19BitUser still needs more work for PHP8.4 functionalitylsces1-2/+2
2026-04-19Namesspace tidies for general authentication functionslsces1-1/+1
2026-04-16PHP8.4 style tweakslsces2-18/+12
2026-04-06Hard coded defaults for php8.4lsces1-1/+1
2026-04-06recaptcha not working in smarty5 currently need to address at some point.lsces1-3/+3
2026-04-06BitUser side needs more work to align with php8.4 stylelsces1-2/+3
2026-04-05More little tweaks for now required defaults. registration_ip data has ↵lsces1-2/+4
appeared from upstream, and as it is useful I'm adding it manually but need an update script for the live sites.
2026-04-05Some tweaks to bring RoleUser in line with BitUser ... It may be more ↵lsces2-7/+9
practical going forward to split this into two packages but there is a lot of common stuff.
2026-03-27Still need to sort edge cases in users and switch between group and role modeslsces2-8/+25
2026-02-01Spelling correction more major work needed on users thoughlsces1-1/+1
2025-09-05Populate user_content_count in user data as can't run it from the Smarty ↵lsces1-0/+1
template.
2025-08-29auth selection options need a lot more work, only the one I'm using has been ↵lsces1-0/+111
tested
2025-08-29Classes updated to PHP8.4 and namespacelsces6-1374/+1456
2025-05-13PHP8 fixes: curly params; use ::verifyIdParameter(); default ↵spiderr1-3/+3
site_session_lifetime value
2025-04-06Clean up Cloudflare Turnstile, now workingspiderr2-25/+22
2025-04-05remove Solve Media smcaptcha (not defunct) and implement Cloudflare ↵spiderr2-3/+76
Turnstile groundwork
2024-07-06FIX registration_ip for importUserspiderr1-0/+2
2022-07-31migrate from font-awesome 3.2.1 icon- to 6.1.2 fa-spiderr1-13/+13
2022-06-14remove unused logic in getDisplayNameFromHashspiderr1-14/+2
2022-06-01add users_users.registration_ipspiderr1-0/+2
2022-01-10add Orders link to user list if commerce is installedspiderr1-1/+1
2021-09-24clean up group members listspiderr1-2/+3
2021-05-07tidy up register.tpl to not flag on $msg; check HTTP_REFERER in ↵spiderr1-1/+1
securityViolation log
2021-02-17PHP7 replace split with explodespiderr1-2/+2
2021-02-11add join_sql to ::getFavoritesspiderr1-0/+1
2021-02-09make getUserInfo public + staticspiderr2-4/+5
2021-02-05empty check on last_loginspiderr1-1/+1
2021-02-05fix object passed by ref, do is_object checkspiderr1-2/+2
2021-02-05fix INCLUDE and CLASS pathsmodela bitweaver4-4/+4001
2021-02-02move _inc and _lib to includes/ and use PKG_INCLUDE_PATH constantsmodela bitweaver1-3/+3
2021-02-01create standard USERS_PKG_CLASS_PATH in includes/classesmodela bitweaver3-0/+4011