Skip to content
Permalink
Browse files

Merge branch 'dev'

  • Loading branch information
JB Lebrun
JB Lebrun committed Nov 4, 2019
2 parents af316a5 + 04584e8 commit 5fa74d7a7de74acee0996827791b4b7daded0094
Showing with 653 additions and 237 deletions.
  1. +21 −0 documents/changelogs/Release-20191001.md
  2. +5 −5 engine/etc/static.php.inc
  3. +3 −3 engine/lib/object/Cryptographer.php.inc
  4. +7 −8 engine/lib/object/ModuleLibraryJoin.php.inc
  5. +44 −4 engine/lib/tool/array.php.inc
  6. +168 −67 engine/lib/tool/client.php.inc
  7. +24 −4 engine/lib/tool/clientBots/Bots.php.inc
  8. +12 −2 engine/lib/tool/clientBots/Unknowns.php.inc
  9. +3 −2 engine/lib/tool/clientDevices/Acer.php.inc
  10. +4 −2 engine/lib/tool/clientDevices/Advan.php.inc
  11. +3 −3 engine/lib/tool/clientDevices/Archos.php.inc
  12. +5 −2 engine/lib/tool/clientDevices/Asus.php.inc
  13. +3 −2 engine/lib/tool/clientDevices/Blackview.php.inc
  14. +3 −2 engine/lib/tool/clientDevices/Doogee.php.inc
  15. +3 −2 engine/lib/tool/clientDevices/HTC.php.inc
  16. +7 −3 engine/lib/tool/clientDevices/Huawei.php.inc
  17. +7 −4 engine/lib/tool/clientDevices/Infinix.php.inc
  18. +4 −3 engine/lib/tool/clientDevices/Kyocera.php.inc
  19. +3 −2 engine/lib/tool/clientDevices/Lenovo.php.inc
  20. +9 −6 engine/lib/tool/clientDevices/Logicom.php.inc
  21. +47 −0 engine/lib/tool/clientDevices/MPMan.php.inc
  22. +4 −2 engine/lib/tool/clientDevices/Meizu.php.inc
  23. +3 −2 engine/lib/tool/clientDevices/Motorola.php.inc
  24. +4 −2 engine/lib/tool/clientDevices/Oppo.php.inc
  25. +4 −2 engine/lib/tool/clientDevices/Oukitel.php.inc
  26. +10 −2 engine/lib/tool/clientDevices/Samsung.php.inc
  27. +3 −2 engine/lib/tool/clientDevices/Sharp.php.inc
  28. +3 −2 engine/lib/tool/clientDevices/Sony.php.inc
  29. +3 −2 engine/lib/tool/clientDevices/Tecno.php.inc
  30. +47 −0 engine/lib/tool/clientDevices/Timmy.php.inc
  31. +5 −2 engine/lib/tool/clientDevices/Wiko.php.inc
  32. +3 −2 engine/lib/tool/clientDevices/Xiaomi.php.inc
  33. +57 −0 engine/lib/tool/clientDevices/Xtouch.php.inc
  34. +4 −4 plugin/input/PerpetualCalendar/PerpetualCalendar.php.inc
  35. +4 −4 plugin/input/SocialNetworksSharingPanel/html/input.html.inc
  36. +97 −69 plugin/module/Admin_SecurityTools/lib/Admin_SecurityToolsCaMykSIntegrityDescription.php.inc
  37. +10 −10 plugin/module/Admin_User/html/admin_edit.html.inc
  38. +7 −4 plugin/theme/IndigoFlatStyle/css/style.css
@@ -0,0 +1,21 @@
# CaMykS Changelog
## Release 20191001

* [2019-09-02 16:10:49 +0200 | JB Lebrun] Adds September 2019 release history in changelogs. [#View details](https://github.com/Dj1b/CaMykS/commit/c7cf0ddebf96053375778fdfc7ce995a7021e790)
* [2019-09-03 09:40:22 +0200 | JB Lebrun] Updates visibility on contactItem variable in Admin_GenericEmailingManager module to keep backward compatibility. [#View details](https://github.com/Dj1b/CaMykS/commit/e7a8a6fde50e87478bbd2c5d8329caf96a09d56e)
* [2019-09-05 09:12:03 +0200 | JB Lebrun] Updates Admin_SecurityTools module to use admin events, introduced with commit 7f5510f562035d5b30e1dfb328e63a831c59f41f. [#View details](https://github.com/Dj1b/CaMykS/commit/c346e9a328a9a8c25768a6131dc8913d94165b5f)
* [2019-09-05 15:57:25 +0200 | JB Lebrun] Fixes a bug in MultiCell method in CPDF object. [#View details](https://github.com/Dj1b/CaMykS/commit/4ab8752cfb6247658ce5977baafa45352f5ea1e0)
* [2019-09-09 11:18:25 +0200 | JB Lebrun] Updates user agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/93fae5400bfd12b47749a075921815e6de9dfa96)
* [2019-09-09 15:02:54 +0200 | JB Lebrun] Insert Indonesia flag in data. [#View details](https://github.com/Dj1b/CaMykS/commit/12ff2b157973f943160df405257e703b9abc5fdb)
* [2019-09-13 16:24:13 +0200 | JB Lebrun] Updates user agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/b70f206aeea55ac2f7103d309d5e84fbfe69c434)
* [2019-09-23 17:55:22 +0200 | JB Lebrun] Updates user agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/a895fcc3103b94daab506e2d0029fc2a31deef66)
* [2019-09-23 17:56:01 +0200 | JB Lebrun] Enhances folder_listFiles method in folder library. [#View details](https://github.com/Dj1b/CaMykS/commit/d82dff70432c4ede20443f24c5492f9568250fdf)
* [2019-09-24 16:31:31 +0200 | JB Lebrun] Adds new "Check CaMykS Integrity" feature in Admin_SecurityTools module. [#View details](https://github.com/Dj1b/CaMykS/commit/db320022a3f56e58a3a5f3db167fec3b05d1b64b)
* [2019-09-24 16:56:51 +0200 | JB Lebrun] Inserts a button, linked to new Admin_SecurityTools "Check CaMykS Integrity" feature in Admin_Site module. [#View details](https://github.com/Dj1b/CaMykS/commit/f40bc6eef557d482a635268ac7849bdd53436202)
* [2019-09-30 10:06:59 +0200 | JB Lebrun] Updates user agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/b07f56277a47e53e37dbf4aa8cead46527b98953)
* [2019-09-30 16:46:20 +0200 | JB Lebrun] Continues enhancing hasEmptyFirstOption parameter management in display_dateInput in HTMLForm library, following 41fa017514b239ab695ee0c170194ac4a6663cff. [#View details](https://github.com/Dj1b/CaMykS/commit/965d4582d836bcb96266e6fb789bae7e76515ce5)
* [2019-09-30 17:14:57 +0200 | JB Lebrun] Updates user agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/600005963900bb325f691f548c6a1b5a0baddc97)
* [2019-09-30 17:15:14 +0200 | JB Lebrun] Does some files cleaning. [#View details](https://github.com/Dj1b/CaMykS/commit/9782375fca426078b6f26a8360c0767805959c14)
* [2019-10-01 10:02:35 +0200 | JB Lebrun] Does some files cleaning for Doxygen compatibility. [#View details](https://github.com/Dj1b/CaMykS/commit/0be21bc431e6c7185c643144827cf681cb1dd697)
* [2019-10-01 10:09:43 +0200 | JB Lebrun] Prepares release. [#View details](https://github.com/Dj1b/CaMykS/commit/878cd59b0fa8b55e985f69910e00c4d6603346cb)
* [2019-10-01 10:11:08 +0200 | JB Lebrun] Merge branch 'dev' [#View details](https://github.com/Dj1b/CaMykS/commit/af316a54186e84596f477998243fff320e1c933f)
@@ -5,9 +5,9 @@
* @details Engine / Configuration file
* @file engine/etc/static.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.14
* @version 1.0.15
* @date Creation: Sep 2005
* @date Modification: Oct 2019
* @date Modification: Nov 2019
* @copyright 2005 - 2019 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -23,7 +23,7 @@ $this->website = 'https://www.camyks.net';
* @var string $this->version
* @brief CaMykS full version
*/
$this->version = '1.0-20191001';
$this->version = '1.0-20191101';
/**
* @var string $this->mversion
@@ -35,13 +35,13 @@ $this->mversion = '1.0';
* @var string $this->nversion
* @brief CaMykS minor version
*/
$this->nversion = '20191001';
$this->nversion = '20191101';
/**
* @var integer $this->last_modification_date
* @brief CaMykS last modification date
*/
$this->last_modification_date = mktime(0, 0, 0, 1, 10, 2019);
$this->last_modification_date = mktime(0, 0, 0, 1, 11, 2019);
/**
* @var string $this->engine_folder
@@ -4,9 +4,9 @@
* @details Engine / Object Library
* @file engine/lib/object/Cryptographer.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.0
* @version 1.0.1
* @date Creation: Apr 2019
* @date Modification: Apr 2019
* @date Modification: Oct 2019
* @copyright 2019 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -356,7 +356,7 @@ final class Cryptographer {
/* Get decrypted data */
if (($result = sodium_crypto_secretbox_open($data, $iv, $key)) === false) {
$this->set_lastError = 31;
$this->set_lastError(31);
}
/* Return result */
@@ -4,18 +4,17 @@
* @details Engine / Object Library
* @file engine/lib/object/ModuleLibraryJoin.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @version 1.0.1
* @date Creation: Jun 2011
* @date Modification: Apr 2018
* @copyright 2011 - 2018 CaMykS Team
* @date Modification: Oct 2019
* @copyright 2011 - 2019 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* @todo Try to set up get_dateFromHeader and parse_PHPTags methods as protected.
*/
/**
* ModuleLibraryItem class.
* @author CaMykS Team <camyks.contact@gmail.com>
* ModuleLibraryJoin class.
*/
abstract class ModuleLibraryJoin extends ModuleLibrary {
/**
@@ -33,7 +32,7 @@ abstract class ModuleLibraryJoin extends ModuleLibrary {
* @param array $params
* @return void
*/
function __construct(&$module, $params=array()) {
public function __construct(&$module, $params=array()) {
parent::__construct(0, $module);
/* merge params */
@@ -47,7 +46,7 @@ abstract class ModuleLibraryJoin extends ModuleLibrary {
$this->init_library();
}
/* overwrite ModuleLibrary methods */
/* Override ModuleLibrary methods */
/**
* Return a new object.
@@ -251,4 +250,4 @@ abstract class ModuleLibraryJoin extends ModuleLibrary {
return ($this->execute_DBQuery($sql, __LINE__));
}
}
?>
?>
@@ -1,13 +1,13 @@
<?php
/**
* @brief Array specific methods
* @brief Array related methods
* @details Engine / Tool Library
* @file engine/lib/tool/array.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.1
* @version 1.2
* @date Creation: Jan 2010
* @date Modification: Aug 2018
* @copyright 2010 - 2018 CaMykS Team
* @date Modification: Oct 2019
* @copyright 2010 - 2019 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
@@ -87,6 +87,18 @@ function array_checkInteger($array=array()) {
return (count($array) === count(array_filter($array, 'is_integer')));
}
/**
* Check if all elements are the same and given type.
* @param array $array
* @param string $type
* @return boolean result
*/
function array_checkDataType($array=array(), $type='') {
if (!function_exists('is_'.$type))
return false;
return (count($array) === count(array_filter($array, 'is_'.$type)));
}
/**
* Return array with all abs values.
* @param array $array
@@ -114,4 +126,32 @@ function array_abs($array=array()) {
function array_applySameValue($array, $value=null) {
return array_fill_keys(array_keys($array), $value);
}
/**
* Check if array is associative.
* @param array $array
* @return boolean result
*/
function array_isAssociative($array) {
/* Quick tests */
if (count($array) == 0)
return true;
/* Harder test */
return array_keys($array) !== range(0, count($array) - 1);
}
/**
* Check if array is sequential.
* @param array $array
* @return boolean result
*/
function array_isSequential($array) {
/* Quick tests */
if (count($array) == 0)
return true;
/* Harder test */
return array_keys($array) === range(0, count($array) - 1);
}
?>

0 comments on commit 5fa74d7

Please sign in to comment.
You can’t perform that action at this time.