github Aaron-Junker/USOC Pb2.4Bfx0

latest releases: Pb2.4Bfx3, Pb2.4Bfx2, Pb2.4Bfx1...
pre-release3 years ago

Pb2.4Bfx0

Hotfix: https://github.com/Case-Games/USOC/releases/Pb2.4Bfx1

- Install please the hotfix linked above

Install instructions: https://github.com/Case-Games/USOC/wiki/manual%3ADownload-and-install-USOC

USOC now supports PHP8. Through a backwards compatibity script it still supports PHP7.4.
The PHP7.4 support ends in the summer of 2020

We moved all files from the root folder to docs and all from the site folder to the root folder!

Additions

  • Added a beautiful installer
    • Removed install.html
    • Added a hint in the admin area if the install folder still exists

  • ID selection on admin/pages/useredit.php now only allows range from lowest id to highest id
  • Added return declarations to functions
  • Added a backwards compatibility script
    • Backward compatibility functions:
      • string_starts_with();
      • string_ends_with();
      • string_contains();
    • PHP8.0 <-> PHP 7.4
  • Added new content system for plugins
  • Added a new plugin system
    • New function: $U->addPage(string $content, string $name, string $code, int $authorID, string $date, int $online):bool
      • Allows to add a new content page
    • New function: $U->addPage(string $content, string $name, string $code, int $authorID, string $date, int $online):bool
      • Allows to add a new content page
    • Added a plugin folder
    • Added infos about installed plugins on the about page
    • You can now upload files with plugins
    • More Information: Wiki
  • New function $U->editSetting(string $name, string $value):bool
  • Added image folder
    • Added Case Games logo
    • Added load image
    • Added icofont folder
  • Added Subfolders to the includes folder
    • In the JS folder are various JavaScript scripts
      • Added a Script that displays information in the JavaScript console
        • Gets implemented in a further version
    • In the SettingsAssets folder are the assets for the new settingseditor page in the Admin area
      • The files get splited up in a further version
    • Please note, that you can't include files, which aren't in th JS folder, with HTML, you must include them with PHP
  • Added a settings overview page in admin area
    • You can change settings now better
    • The old settings menu is now in an other order on the overview page
  • Added icons to the Admin area main page
  • You can add now /raw/ to the beginning of an URL to get the raw page. For example: localhost/raw/index

Example image

  • New option: 2fa.enabled
    • Sets if users can use 2fa or not
    • If you turn off users also don't get asked for the authenticator code
  • /login folder has now as fallback resource /login/login.php
  • Added vendor folder and the composer file works now
  • Added robots.txt
  • Added information about new versions in the about page
    • New function $U->getNewestVersion():array
      • Returns information about the newest version from GitHub
    • New function $U->versionNameToCode(string $name):int
      • Returns the version identifier code from version $name
  • Added image plugin
    • Read readme.md for install and use instractions

Changes

Code in the database is now saved encoded with html_special_chairs(). This doesn't get done by $U->addPage() or $U->editPage(). To repair your pages just open them in the editor and save them again

  • Plugin System
    • Deleted /admin/pages/blogeditor.php and /admin/sendsiteblog
    • You must now choose the contetn type on the adminarea mainpage to delete a page
    • Plugin system in all editors implemented
  • Renamed register_open() to isRegisterOpen()
  • isRegisterOpen() checks now if user is logged in
  • Renamed placeholder variable $zeile to $row
  • Changed older PHP7.4 functions to PHP8.0 functions
  • Renamed $U->version_code to $U->versionCode
  • Content page names are now all stored lowercase
  • Changed logo source from data URL to fix URL
  • Changed behavior of register and login system
    • If setting "login.login_open" is 0
      • You can now login if you are an administrator in the admin area
      • You also can't register new users now
    • In the admin area you can now only login with an admin account
  • New admin area login style

Example image

  • The "Change password" button in the menu is now hidden if login.changepassword is off
  • $U->getLang() returns now also the english string if the translated string is ""
  • Removed ability on admin/2fa.php to delete or add secret keys
  • Better styled install.html
  • When you add an Google Account you get now redirected to the main page
  • User editor
    • Added a user search function
    • You can't edit yourself now
    • Shows now an error if the user doesn't exists
  • 2fa
    • Code input is now styled and in login.php
    • You can now cancel code input
    • You can not login with a other account if you haven't finished login yet
  • Chenged order of items on about.php
  • Better visible menu items in dark mode when hovered

Fixed bugs

Fixed security bugs

  • You can access wrong files from admin area

Other bugs

Fixex the whole oAuth system

  • Changepassword.php can be accessed even when not logged in
  • Wrong string when registration is closed
  • You can register a new account when you're logged in
  • You can save a page even when it already existed
  • Some functions were declared they give back mixed but they have a type.
  • URL'S parsed by page.php could contain false URL's
  • False setting search in register.php
  • register.php can't be displayed
  • Javascript info banner always on log off screen
  • "Back" link doesn't work in admin/pages/settingseditorsend.php
  • Mobile view doesn't look good on some browsers because it has forced scrollbars
  • oAuth.google.client_id setting didn't have a type
  • oAuth.google.client_id is doubled
  • Headers in profile settings aren't in the right size
  • Google oAuth client id wasn't variable in login.php
  • login.php checks for the wrong oAuth google file
  • The user editor didn't show translations just "%a" and "%b"
  • Useless string replace in login.php
  • String for wrong login is not translated
  • Error messages have a wrong margin
  • No real dark mode for error messages
  • Buttons had no margin
  • Adminarea about page has no title
  • You can see older codes on the 2fa code input¨
  • Working logout

Don't miss a new USOC release

NewReleases is sending notifications on new releases.