-version 2.8 - Wastelands ()
+version 2.8 - Wastelands (2022-12-10)
+ Fixed documentation
+ + Fixed some PHP 8 defaults
+ + Fixed #17
version 2.7 - Sacred Grove (2022-06-12)
Apache (2.4 and up) with PHP extension enabled
-PHP (7 and up)
+PHP (8 and up)
- mysql & mysqli
- curl
- pdo
- imap +ssl if you us the email importer
- xmlread
- xmlwriter
-MySQL server or access to database 5.6.x and up
+MySQL server or access to a database 5.6.x and up
- DB user rights has to include create, alter a view
- NOT MariaDB. It is missing some functions MySQL has.
-Latest browser for accessing the client. IE (not Edge) is not supported anymore.
\ No newline at end of file
+Latest browser for accessing the client. IE (not Edge) is not supported anymore.
If you are updating from a previous version make sure every update info from
the version your are updating from is done.
+## version 2.8 Wastelands
++ Nothing.
+
## version 2.7 Sacred Grove
+ New syntax in config file. Switched from define() to const syntax.
Use config.default.php as a template to update your config.
## version 2.6 - Hypostyle
-
+ Update config file with the new language setting. See config.default and
translation.txt for more information
+ Run update search index to use the URL within the search index for your existing data.
## version 2.5 - Winnowing Hall
-
+ Update config file with the two new constants. See config.default and
snapshots-of-linked-webpage.txt for more information
define('WKHTMLTOPDF_USE',false);
define('WKHTMLTOPDF_COMMAND','/absolute/path/to/wkhtmltoimage');
## version 2.4 - Seven Portals (2020-02-16)
-
+ Run (after authentication) at /index.php?p=stats the "Search index update"
to make the search work again correctly. At success, there is no confirmation.
To validate you can now search for single words case-insensitive.
# time settings
date_default_timezone_set('Europe/Berlin');
-define('DEBUG',true);
+define('DEBUG',false);
## check request
$_urlToParse = filter_var($_SERVER['QUERY_STRING'],FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW);
class Category {
/**
* the database object
- * @var object
+ * @var mysqli
*/
private $DB;
* @param bool $doNotCreate
* @return int 0=fail, 1=existing, 2=new, 3=newNotCreated
*/
- public function initbystring(string $string, $doNotCreate=false): int {
+ public function initbystring(string $string, bool $doNotCreate=false): int {
$ret = 0;
$this->_id = false;
if(!empty($string)) {
* @param bool $key
* @return string
*/
- public function getData($key=false): string {
+ public function getData(bool $key=false): string {
$ret = $this->_data;
if(!empty($key) && isset($this->_data[$key])) {
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2021 Johannes Keßler
+ * Copyright 2016-2022 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
|| isset($headers['x-mailing-list'])
|| isset($headers['list-unsubscribe'])
|| isset($headers['list-owner'])
- || isset($headers['auto-submitted'])
|| isset($headers['x-autoreply-from'])
|| isset($headers['x-mail-autoreply'])
|| isset($headers['x-mc-system'])
/**
* the database object
*
- * @var Object
+ * @var mysqli
*/
private $DB;
/**
* Link constructor.
*
- * @param Object $databaseConnectionObject
+ * @param mysqli $databaseConnectionObject
* @return void
*/
- public function __construct($databaseConnectionObject) {
+ public function __construct(mysqli $databaseConnectionObject) {
$this->DB = $databaseConnectionObject;
}
/**
* the database object
*
- * @var object
+ * @var mysqli
*/
private $DB;
/**
* Management constructor.
*
- * @param Object $databaseConnectionObject
+ * @param mysqli $databaseConnectionObject
* @return void
*/
- public function __construct($databaseConnectionObject) {
+ public function __construct(mysqli $databaseConnectionObject) {
$this->DB = $databaseConnectionObject;
}
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2021 Johannes Keßler
+ * Copyright 2016-2022 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
*
* @param string $input The string to check
* @param string $mode How the string should be checked
- * @param mixed $limit If int given the string is checked for length
+ * @param int $limit If int given the string is checked for length
*
* @see http://de.php.net/manual/en/regexp.reference.unicode.php
* http://www.sql-und-xml.de/unicode-database/#pc
*
* @return bool
*/
- static function validate($input,$mode='text',$limit=false): bool {
+ static function validate(string $input, string $mode='text', int $limit=0): bool {
// check if we have input
$input = trim($input);
/**
* the database object
*
- * @var object
+ * @var mysqli
*/
private $DB;
/**
* Tag constructor.
*
- * @param Obnject $databaseConnectionObject
+ * @param mysqli $databaseConnectionObject
*/
public function __construct($databaseConnectionObject) {
$this->DB = $databaseConnectionObject;