1
Mamba
Bootstrap 5.3.9 coming to Core

FYI: I’ve updated Core themes to Bootstrap 5.3.9

https://github.com/XOOPS/XoopsCore27/pull/364

While doing it, I’ve decided to streamline the whole Bootstrap mess in Core:

• Themes were using Bootstrap 5.3.8
• Install was using Bootstrap 5.3.4
• Upgrade was using Bootstrap 3.4.1

To do it, I’ve placed Bootstrap 5.3.9 in one central location: /media/bootstrap5

https://github.com/XOOPS/XoopsCore27/tree/master/htdocs/media/bootstrap5

Then I’ve updated all of them to use Bootstrap 5.3.9 from that central location above, and deleted all the local Bootstrap files.

This way we don’t duplicate all the various Bootstrap files all over Core.

If you have any other improvement suggestions, please share
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



2
Mamba
Re: XOOPS 2.7.5-Beta2 Released (ready for PHP 8.6.0)

Thanks for looking at this. The short answer is history: those tables date from the 2.0 line, and changing the engine on existing sites needs a proper upgrade step, so it was never done in a maintenance release.

Where we are today in 2.7: the tables added recently (menus, tokens, two-factor) are already InnoDB. The character set is covered as well: the installer creates the database as utf8mb4 and lets you choose the collation, and the tables inherit both. That is also why we would rather not hard-code a COLLATE clause in every CREATE TABLE, since it would override the choice made in the installer.

Moving every core table to InnoDB is planned for XOOPS 2.8.0, together with the move to PDO. The two belong together: PDO gives us real transactions, and those only work on InnoDB. 2.8.0 will create new sites on InnoDB and include an upgrade step that converts the tables of existing sites.

For 2.7.x we are keeping the engines as they are.

If you want InnoDB on your own site now, you can try:
ALTER TABLE  ENGINE=InnoDB
It should work table by table;

However, I didn't test it, so take a backup first and let us know if it worked.
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



3
rmjdias
Re: XOOPS 2.7.5-Beta2 Released (ready for PHP 8.6.0)
  • 11/21 16:59

  • rmjdias

  • Just popping in

  • Posts: 1

  • Since: 2018/9/17


Sobre a criação das tabelas, contida nos arquivos:
--
/xoops_lib/modules/protector/sql/mysql.sql
/modules/system/admin/avatars/main.php
/modules/profiles/sql/mysql.sql
/modules/pm/sql/mysql.sql
/install/sql/mysql.structure.sql .
--
Porque ainda está sendo criadas as tabelas como ENGINE-MyISAM?
Sendo que a recomendação ao criar as tabelas é para usar:
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ?

Comecei a testar a versão 2.7.5 Beta 1
Atenciosamente;



4
Mamba
XOOPS 2.7.5-Beta2 Released (ready for PHP 8.6.0)

Resized Image



XOOPS 2.7.5 Beta 2 — more fixes, a security advisory check for bundled libraries

The XOOPS Development Team is pleased to announce XOOPS 2.7.5 Beta 2, the second test release of XOOPS 2.7.5. It is a maintenance release: it collects the bug fixes and hardening made since XOOPS 2.7.4 and adds a light/dark toggle to the Default and Transition admin themes. Beta 2 adds the fixes made since Beta 1, a check of the bundled libraries against published security advisories, and updated libraries. XOOPS 2.7.5 runs on PHP 8.2 through 8.6. This is a beta for testing: please try it on a copy of your site, not on a production site.

DOWNLOAD: https://github.com/XOOPS/XoopsCore27/releases

New since Beta 1
  1. The Composer Packages panel of the control panel marks every bundled library whose installed version is covered by a published security advisory, with a link to the advisory. It asks Packagist at most once a day and sends the package names only
  2. The upgrade wizard asks you to confirm a current backup of the database, mainfile.php and xoops_data before the first patch, and clears the caches again after the last one
  3. Clearing the caches keeps the .htaccess, .user.ini, php.ini and web.config files a site has placed in the cache folders


Fixes since Beta 1
  1. The fatal-error page shows the message and backtrace only to a webmaster while debugging is enabled, and is sent with HTTP 500 instead of 200. The debug panel and the Smarty debug console follow the debugLevel setting on every page
  2. Sign-in accepts the password exactly as it was set: a password with a leading or trailing space, or with angle brackets, could be set but not used to sign in
  3. xoops_data/.htaccess works on Apache 2.4 without mod_access_compat, where the old file caused HTTP 500 instead of 403. The shipped directories that had no index file get one, so Apache no longer lists their contents
  4. Every page sends X-Content-Type-Options: nosniff, and the search form no longer puts security tokens into the search URL
  5. Upgrade wizard: the Smarty 4 template repair keeps the original template until the repaired version is complete, the older patches (2.0.18 to 2.5.11) no longer stop with PHP 8 errors, and the character set conversion keeps empty-string column defaults
  6. The TinyMCE 5 and 7 image manager can delete images and categories again, and removes an image's file only when it lies inside the uploads folder
  7. Comments: links keep a module's extra parameters (such as a forum id) intact, and a new comment whose thread cannot be saved shows a message instead of a PHP error
  8. The file cache's garbage collection removes an entry once its own expiry has passed, and the cache 'lock' setting no longer stops reads with a TypeError
  9. The FineUploader endpoint reports I/O failures with an HTTP error status instead of success, and keeps the chunks for a retry
  10. The installer's path page checks again that mainfile.php, uploads and the xoops_data folders are writable, and no longer widens permissions to 0777
  11. A text sanitizer extension that cannot be loaded (such as flash, removed in 2.7.0) is skipped instead of stopping every page that shows BBCode, and an [img] tag works with a language pack that lacks the image texts
  12. Control panel: pages that choose another template after the header raise no warning, the user search popup keeps every selected group across pages, and a failed Profile registration step shows its errors
  13. XML-RPC (off by default, and now deprecated): /xmlrpc.php parses requests again, including indented ones, and accepts a name or password holding a quote or backslash. getPost returns a story that is not public (awaiting approval, scheduled or expired) to an administrator of the News module only
  14. PHP 8.6 is supported: a NUL byte in request input no longer stops a page with a ValueError there, and the unit and integration tests run on PHP 8.2 through 8.6. The XML parsers raise no deprecation notices on PHP 8.4 and later


Bundled libraries
  1. XMF 1.3.4 RC3. Release notes: https://github.com/XOOPS/xmf/releases/tag/v1.3.4-RC3
  2. xoops/helpers 1.1.3: the native XOOPS cache returns cached values with their types intact, Filesystem::unzip() refuses archives that would write through links and caps the decompressed size, and a NUL byte in a path is reported as a failure instead of a ValueError on PHP 8.6
  3. xoops/smartyextensions 2.0.0 Beta1
  4. Smarty 4.6.0, which supports PHP 8.5 and 8.6, and Monolog 3.13.0, which hardens its line, redacting and syslog formatters
  5. php-debugbar 3.8.1, symfony/var-dumper 7.4.22, firebase/php-jwt 7.2.2, kint 6.1.1, symfony/polyfill-mbstring 1.43.3 and webmozart/assert 2.5.1
  6. New: composer/semver 3.6.0, which the advisory check uses, and xoops/moduletools 1.7.2 for module install, admin and test tooling


For theme and module developers
  1. The smartyextensions plugins sanitize_url, linkify, pretty_print_json, format_phone_number, format_date, relative_time, format_currency, number_format, mask_email and datetime_diff, the direct output of xo_get_config and get_session_data, and <{asset_url}> of xoops/helpers now HTML-escape their own output. Remove any |escape after them, or the output is double-encoded. linkify takes plain text and shows HTML passed to it as text
  2. A module script that outputs CSS or JavaScript through the XOOPS bootstrap must send the matching Content-Type header, because every page now carries X-Content-Type-Options: nosniff
  3. xoops/helpers Cache: cache scalars and arrays. Objects come back as __PHP_Incomplete_Class, and a null result is not cached
  4. xoops/moduletools is bundled from Beta 2 on. ModuleTools provides reusable services under Xoops\ModuleTools\ without requiring an installed or active module, so a module can use it on any site running 2.7.5 Beta 2 or later
  5. The XMF 1.3.4 notes from Beta 1 still apply (Session and Serializer refuse objects and enums, MASK_ALLOW_HTML keeps only relative, http, https and mailto addresses, executeQueue(true) for GET writes)


Deprecated in 2.7.5
XML-RPC is deprecated and will be removed in XOOPS 2.8.0: the /xmlrpc.php endpoint, its xmlrpc_enabled setting, and the Blogger, MetaWeblog, MovableType and XOOPS API classes in class/xml/rpc. The endpoint is off by default. A site that has enabled it keeps a working endpoint throughout 2.7.x and should plan for another way to publish before upgrading to 2.8.0.


Upgrading from 2.7.4 or 2.7.5 Beta 1
Copy the new files over the web root and run the upgrade wizard. There are no database changes since 2.7.4. The wizard's 2.7.5 patch updates xoops_data/.htaccess for Apache 2.4: it rewrites the file only when it still holds the two lines XOOPS shipped, and reports a file it cannot write.
  1. If xoopsconfig.php sets 'xmlrpc_enabled' => true, /xmlrpc.php now answers calls; until this release it rejected every request. Leave the setting off if you do not use XML-RPC
  2. If your site used the Dark admin theme, it now loads Transition; switch dark mode on with the toggle in the header. The leftover modules/system/themes/dark folder can be deleted
  3. If you copied extras/login.php (the SSL popup login) somewhere on your site, replace that copy: updating the core does not patch it
  4. A site running a custom template set should re-import it, as for any core template change


Upgrading from 2.7.3 or earlier
Copy the new files over the web root and run the upgrade wizard. From 2.7.3 it creates the user_2fa table and the two-factor preference, registers the SCEditor emoticons as smileys, and adds the Editors preferences. No mainfile.php changes are needed. Replace any copy of extras/login.php, because an older copy skips the two-factor step.

System requirements
PHP 8.2 to 8.6, MySQL 5.7+ or MariaDB 10.3+, and the sodium extension for two-factor authentication.

Languages
Beta 2 adds nine English language constants since Beta 1: four upgrade wizard messages, one comment message and four texts of the Composer Packages panel in the admin themes. See docs/lang_diff.txt.

Thank you to everyone who tested Beta 1 and reported issues. Report problems with this beta at https://github.com/XOOPS/XoopsCore27/issues
Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



5
Mamba
XOOPS Smarty Extensions 2.0.0 Beta1

XOOPS Smarty Extensions 2.0.0 Beta1

xoops/smartyextensions replaces the traditional flat pile of Smarty plugin files with a structured, testable, PSR-4 library. Extensions are grouped by domain, registered through a unified ExtensionRegistry, and fully compatible with both Smarty 4 (registerPlugin) and Smarty 5 (addExtension).

Download: https://github.com/XOOPS/smartyextensions/releases 

This beta is a security-hardening release. It closes several XSS, CSRF-token
and cache-leak paths across the template plugins, and it makes output escaping
consistent: plugins that print text now return it already HTML-escaped.

It is a major version because that escaping change breaks templates that
add |escape after these plugins. Projects pinned to ^1.x (XOOPS core pins
^1.3) will not receive it until they raise their constraint to ^2.0.

Requires PHP 8.2+. Supports Smarty 4 and Smarty 5.

⚠️ Breaking changes in template output. Read Upgrading before deploying,
and test your themes and module templates.

Upgrading

  1. Raise your Composer constraint to "xoops/smartyextensions": "^2.0@beta".

  2. Clear compiled templates and the Smarty output cache after updating.

  3. Remove |escape after these plugins. They now escape their own output,
    so an extra |escape double-encodes it (&amp;amp;, broken & in query strings):

    • |sanitize_url
    • format_date, relative_time, format_currency, number_format,
      mask_email, datetime_diff (direct output), format_phone_number,
      pretty_print_json
    • xo_get_config, get_session_data (direct output)

    Values captured with assign= stay raw: keep escaping them where you print them.

  4. Under $escape_html, print the self-escaping plugins with nofilter.

  5. format_currency / number_format: pass a literal £ or no-break space
    instead of &pound; / &nbsp; as symbol or separator.

  6. linkify now takes plain text. HTML passed in is shown as text instead of
    being rendered. Run it on plain text, before any other HTML formatting.

  7. User-dependent assign results are still cached. If you write
    <{is_user_logged_in assign="loggedIn"}><{if $loggedIn}>…, wrap the call and
    every tag that reads the variable in <{nocache}>…<{/nocache}>.

Security

  • Smarty 4 output caching: functions and block handlers are now registered
    non-cacheable, as they already were under Smarty 5. A cached page no longer
    replays xo_permission content or a form_open CSRF token to the next visitor.
  • URL scheme checks: embed_pdf, form_open (action), form_input (src,
    formaction), render_breadcrumbs, render_pagination and generate_url now
    reject javascript:, data: and other executable schemes, including
    entity-encoded forms such as javascript&#58;. They share one check with
    sanitize_url and the asset queue.
  • CSRF token scope: form_open injects the token only when the action is
    relative or matches the XOOPS_URL origin. form_input drops a formaction
    that leaves the site.
  • Attribute injection: form_input drops attribute names that are not plain
    names, and on* event handlers.
  • highlight_text keeps the custom class literal (no $1 expansion) and limits
    it to [A-Za-z0-9_ -]{1,64}.
  • Output escaping: the formatting, config and session plugins listed above
    now HTML-escape their output. Invalid UTF-8 in that output is replaced with U+FFFD.
  • mask_email masks by character, not byte, so multibyte addresses are no
    longer cut mid-character.
  • File helpers: base64_encode_file, get_file_size and get_mime_type
    reject stream wrappers (ftp://, phar://, php://), UNC paths and //host
    paths before touching the filesystem.

Changed

  • render_pagination lists every page up to 100 pages, then switches to a
    window of 2 pages; a caller-supplied window is capped at 20.
  • number_format clamps decimals to 0–20.
  • xo_get_config and get_session_data print nothing for an array value
    instead of Array.

Maintenance

  • Updated CI actions (checkout, setup-php, Codecov, Qodana, SonarQube scan) and
    widened the PHP_CodeSniffer constraint to 3.11 or 4.0.
  • Expanded the tutorial and contributor guidance on escaping, $escape_html
    and nocache.

Full changelog: https://github.com/XOOPS/smartyextensions/blob/master/CHANGELOG.md
Compare: v1.3.0...v2.0.0-Beta1

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



6
Mamba
XOOPS ModuleTools 1.7.2 released

ModuleTools 1.7.2

ModuleTools is the XOOPS Core-bundled successor to the mTools helper-host module. It provides reusable services under Xoops\ModuleTools\ without requiring an installed or active module.

Download: https://github.com/XOOPS/moduletools/releases 

A maintenance release. It fixes block titles in module block admin pages and replaces the copy of 1.5.0 that the XOOPS 2.8 tree carried, so 2.8 can require the published package.

Fixed

  • Block titles keep their language key. Saving a module's block order form, edit form or clone without touching the title replaced a title stored as a language key (_MI_*) with the text it displayed, so the title stopped following the site language. On XOOPS 2.8 titles now go through XoopsBlock::setTitle(); on XOOPS 2.7.5 a title that comes back exactly as shown is left as stored.
  • Common\Blocksadmin loads class/xoopsblock.php itself. A module admin/blocksadmin.php that did not load it failed with Class "XoopsBlock" not found.

Changed

  • Requires xoops/helpers ^1.1 and xoops/xmf ^1.3.3 (were ^1.0 and ^1.3), so Composer can no longer install releases without their security fixes.
  • ConsumerBridgeGenerator marks each generated file that depends on Xmf\Bridge as requiring xoops/xmf ^2.0. ModuleTools itself still runs on XMF 1.3.

Compatibility

  • PHP 8.2+, XOOPS 2.7.5+ and 2.8.
  • No public signature changes; the API version stays 1.2.0.
  • Bootstrap::VERSION now reports the release correctly (the v1.7.1 tag reported 1.7.0).

Upgrade

composer require xoops/moduletools:^1.7.2 

What's Changed

  • chore: release 1.7.1 (1.7.0 withdrawn) by @mambax7 in #15
  • docs(changelog): note the v1.7.1 VERSION constant by @mambax7 in #16
  • chore(deps): require xoops/helpers ^1.1 and xoops/xmf ^1.3.3 by @mambax7 in #17
  • docs(generator): mark generated Xmf\Bridge files as requiring xoops/xmf ^2.0 by @mambax7 in #18
  • Release 1.7.2: keep block-title language keys by @mambax7 in #19

Full Changelog: v1.7.0...v1.7.2


Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



7
Mamba
XOOPS Helpers 1.1.3 released

XOOPS Helpers 1.1.3 released

Download: https://github.com/XOOPS/helpers/releases 

What's Changed

  • fix(filesystem): report a NUL byte in a path, query string or variable name as a failure by @mambax7 in #26
  • docs(changelog): release 1.1.3 by @mambax7 in #27

Full Changelog: v1.1.2...v1.1.3


What Is This?

XOOPS Helpers is a standalone utility library that makes every XOOPS module safer and shorter by replacing the repetitive, error-prone boilerplate every module developer writes over and over:

// Before — scattered across every XOOPS module $escaped = htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8'); $url = XOOPS_URL . '/modules/' . $dirname . '/article.php?id=' . $id; $path = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/language/' . $language . '/blocks.php'; $sitename = $GLOBALS['xoopsConfig']['sitename']; // After $escaped = HtmlBuilder::escape($value); $url = Url::module($dirname, 'article.php', ['id' => $id]); $path = Path::module($dirname, "language/{$language}/blocks.php"); $sitename = Config::get('system.sitename');

That first line is not just shorter — it is structurally safer. Every manual htmlspecialchars() call is a place where a future developer can introduce a stored XSS vulnerability by forgetting it once. HtmlBuilder escapes all attribute values and class names automatically — the source of the vast majority of real-world XSS. Tag content is your responsibility, intentionally: content can legitimately contain HTML (rendered markup, trusted template fragments). The safe path is explicit: pass user-supplied content through HtmlBuilder::escape(). This htmlspecialchars pattern appears 30+ times in the XOOPS Core alone — each one a place where this library makes the correct choice the easiest choice.

Requirements

  • PHP 8.2 or later with the ext-mbstring extension
  • No other runtime dependencies

Optional extensions for enhanced functionality:

  • ext-intl — locale-aware number and date formatting
  • ext-apcu — APCu caching backend
  • ext-zip — zip/unzip filesystem operations

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



8
Mamba
XMF 1.3.4 RC3 released

XMF 1.3.4 RC 3

Third release candidate for the PHP 8.2+ line (^8.2, tested on 8.2–8.5). It is 1.3.4 RC 2 plus one fix for PHP 8.6:

  • Security\Serializer::toJson(): an ArrayIterator in the data no longer raises "Method ArrayIterator::getFlags() is deprecated since 8.6" on PHP 8.6. The size guard still reads the iterator's STD_PROP_LIST flag, which json_encode() honours on every PHP version, without that call (#235).

Ulid converts UUID hex digits with intval() instead of hexdec(), which satisfies static analysis and returns the same values (#236). There are no new features, new dependencies or changed method signatures.

The RC 1 and Beta 1 upgrade notes still apply.

If no regressions are reported, this code becomes 1.3.4, the version planned for XOOPS 2.7.5. Please test it against your modules and report problems at https://github.com/XOOPS/xmf/issues.

Full changelog: v1.3.4-RC2...v1.3.4-RC3

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



9
Mamba
PHP 8.6.0 Released!

PHP 8.6.0 Released!

The PHP development team announces the immediate availability of PHP 8.6.0. This release marks a major update to the PHP language.

PHP 8.6 comes with numerous improvements and new features such as:

  • Partial Function Application
  • Default values for readonly properties
  • New Io\Poll API for monitoring streams
  • New clamp() function
  • New \Time\Duration class
  • New SortDirection enum

See what’s new in PHP 8.6 for more highlights and examples.

Source downloads for PHP 8.6.0 are available on our downloads page. Windows source and binaries are available on the Windows downloads page. The list of changes is recorded in the ChangeLog.

The migration guide in the PHP Manual lists new features and backward-incompatible changes in detail.

Kudos to all the contributors and supporters!

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs



10
Mamba
Re: XOOPS Debugbar 1.4.1 Released

Thanks for the update! 

Support XOOPS => DONATE
Use 2.7.x | Docs | Modules | Bugs




TopTop
(1) 2 3 4 ... 501 »