Permalink
Browse files

Merge branch 'dev'

  • Loading branch information...
JB Lebrun
JB Lebrun committed Sep 3, 2018
2 parents a333a9c + 7a7db25 commit 9254292479dcfdbcef0e29bb54c481468d8a0d20
Showing with 2,802 additions and 2,457 deletions.
  1. +1 −1 .gitignore
  2. +45 −0 documents/changelogs/Release-20180801.md
  3. +5 −5 engine/etc/static.php.inc
  4. +9 −7 engine/lib/object/Plugin.php.inc
  5. +19 −9 engine/lib/tool/array.php.inc
  6. +52 −57 engine/lib/tool/client.php.inc
  7. +57 −7 engine/lib/tool/clientBots/Bots.php.inc
  8. +66 −6 engine/lib/tool/clientBots/Tools.php.inc
  9. +3 −2 engine/lib/tool/clientDevices/Alcatel.php.inc
  10. +5 −2 engine/lib/tool/clientDevices/Asus.php.inc
  11. +45 −0 engine/lib/tool/clientDevices/BlackBerry.php.inc
  12. +6 −5 engine/lib/tool/clientDevices/Blackview.php.inc
  13. +7 −6 engine/lib/tool/clientDevices/Condor.php.inc
  14. +48 −0 engine/lib/tool/clientDevices/Google.php.inc
  15. +51 −0 engine/lib/tool/clientDevices/HTC.php.inc
  16. +10 −4 engine/lib/tool/clientDevices/Huawei.php.inc
  17. +45 −0 engine/lib/tool/clientDevices/Kyocera.php.inc
  18. +25 −8 engine/lib/tool/clientDevices/OnePlus.php.inc
  19. +7 −2 engine/lib/tool/clientDevices/Samsung.php.inc
  20. +6 −3 engine/lib/tool/clientDevices/Sony.php.inc
  21. +3 −2 engine/lib/tool/clientDevices/Xiaomi.php.inc
  22. +49 −2 engine/lib/tool/file.php.inc
  23. +52 −31 engine/lib/tool/folder.php.inc
  24. +20 −12 plugin/input/FileManager/FileManager.php.inc
  25. +51 −51 plugin/template/AdminPage/AdminPage.php.inc
  26. +27 −21 plugin/template/AdminPage/main.html.inc
  27. +14 −14 plugin/template/AdminPage/style.css
  28. +18 −12 plugin/template/AdminPage/thumb.html.inc
  29. +39 −36 plugin/template/ClassicPage/ClassicPage.php.inc
  30. +21 −15 plugin/template/ClassicPage/main.html.inc
  31. +18 −12 plugin/template/ClassicPage/thumb.html.inc
  32. +39 −36 plugin/template/DefaultPage/DefaultPage.php.inc
  33. +18 −13 plugin/template/DefaultPage/main.html.inc
  34. +22 −15 plugin/template/DefaultPage/thumb.html.inc
  35. +38 −32 plugin/template/Large2Page/Large2Page.php.inc
  36. +29 −25 plugin/template/Large2Page/main.html.inc
  37. +27 −24 plugin/template/Large2Page/thumb.html.inc
  38. +0 −38 plugin/template/SimplestPage/SimplestPage.php.inc
  39. +0 −32 plugin/template/SimplestPage/main.html.inc
  40. +0 −35 plugin/template/SimplestPage/thumb.html.inc
  41. +0 −39 plugin/template/SquaredPage/SquaredPage.php.inc
  42. +0 −41 plugin/template/SquaredPage/main.html.inc
  43. +0 −24 plugin/template/SquaredPage/style.css
  44. +0 −46 plugin/template/SquaredPage/thumb.html.inc
  45. +38 −36 plugin/template/WebPage/WebPage.php.inc
  46. +35 −30 plugin/template/WebPage/main.html.inc
  47. +19 −19 plugin/template/WebPage/style.css
  48. +40 −35 plugin/template/WebPage/thumb.html.inc
  49. +38 −35 plugin/template/WebPageExtended/WebPageExtended.php.inc
  50. +40 −37 plugin/template/WebPageExtended/main.html.inc
  51. +19 −21 plugin/template/WebPageExtended/style.css
  52. +45 −40 plugin/template/WebPageExtended/thumb.html.inc
  53. +38 −35 plugin/template/WebPageLight/WebPageLight.php.inc
  54. +32 −27 plugin/template/WebPageLight/main.html.inc
  55. +18 −18 plugin/template/WebPageLight/style.css
  56. +37 −32 plugin/template/WebPageLight/thumb.html.inc
  57. +38 −34 plugin/template/WebPageUltraExtended/WebPageUltraExtended.php.inc
  58. +45 −40 plugin/template/WebPageUltraExtended/main.html.inc
  59. +19 −19 plugin/template/WebPageUltraExtended/style.css
  60. +48 −43 plugin/template/WebPageUltraExtended/thumb.html.inc
  61. +68 −66 plugin/theme/Basic/Basic.php.inc
  62. +15 −15 plugin/theme/Basic/editor.css
  63. +16 −16 plugin/theme/Basic/parts.css
  64. +12 −15 plugin/theme/Basic/parts.php.inc
  65. +15 −15 plugin/theme/Basic/style.css
  66. +63 −59 plugin/theme/BlueBoxStyle/BlueBoxStyle.php.inc
  67. +18 −18 plugin/theme/BlueBoxStyle/editor.css
  68. +12 −13 plugin/theme/BlueBoxStyle/editor_ie.css
  69. +15 −15 plugin/theme/BlueBoxStyle/parts.css
  70. +12 −12 plugin/theme/BlueBoxStyle/parts.php.inc
  71. +13 −13 plugin/theme/BlueBoxStyle/parts_ie.css
  72. +12 −12 plugin/theme/BlueBoxStyle/style.css
  73. +141 −119 plugin/theme/GreyStyle/GreyStyle.php.inc
  74. +14 −14 plugin/theme/GreyStyle/editor.css
  75. +21 −21 plugin/theme/GreyStyle/parts.css
  76. +13 −13 plugin/theme/GreyStyle/parts.php.inc
  77. +24 −27 plugin/theme/GreyStyle/style.css
  78. +41 −34 plugin/theme/IndigoFlatStyle/IndigoFlatStyle.php.inc
  79. +20 −20 plugin/theme/IndigoFlatStyle/css/admin.css
  80. +14 −14 plugin/theme/IndigoFlatStyle/css/editor.css
  81. +16 −16 plugin/theme/IndigoFlatStyle/css/parts.css
  82. +15 −1 plugin/theme/IndigoFlatStyle/css/popup.css
  83. +0 −31 plugin/theme/IndigoFlatStyle/css/print.css
  84. +76 −76 plugin/theme/IndigoFlatStyle/css/style.css
  85. +13 −16 plugin/theme/IndigoFlatStyle/parts.php.inc
  86. +49 −38 plugin/theme/MacOS7Style/MacOS7Style.php.inc
  87. +16 −16 plugin/theme/MacOS7Style/editor.css
  88. +17 −17 plugin/theme/MacOS7Style/parts.css
  89. +13 −13 plugin/theme/MacOS7Style/parts.php.inc
  90. +14 −14 plugin/theme/MacOS7Style/style.css
  91. +51 −46 plugin/theme/MassiveGreenStyle/MassiveGreenStyle.php.inc
  92. +16 −16 plugin/theme/MassiveGreenStyle/editor.css
  93. +15 −15 plugin/theme/MassiveGreenStyle/parts.css
  94. +12 −12 plugin/theme/MassiveGreenStyle/parts.php.inc
  95. +13 −13 plugin/theme/MassiveGreenStyle/parts_ie.css
  96. +14 −14 plugin/theme/MassiveGreenStyle/style.css
  97. +35 −32 plugin/theme/PsionicStormStyle/PsionicStormStyle.php.inc
  98. +18 −18 plugin/theme/PsionicStormStyle/editor.css
  99. +18 −18 plugin/theme/PsionicStormStyle/parts.css
  100. +12 −13 plugin/theme/PsionicStormStyle/parts.php.inc
  101. +19 −19 plugin/theme/PsionicStormStyle/style.css
  102. +63 −59 plugin/theme/RedBoxStyle/RedBoxStyle.php.inc
  103. +17 −17 plugin/theme/RedBoxStyle/editor.css
  104. +12 −13 plugin/theme/RedBoxStyle/editor_ie.css
  105. +15 −15 plugin/theme/RedBoxStyle/parts.css
  106. +12 −12 plugin/theme/RedBoxStyle/parts.php.inc
  107. +13 −13 plugin/theme/RedBoxStyle/parts_ie.css
  108. +12 −12 plugin/theme/RedBoxStyle/style.css
  109. +35 −32 plugin/theme/SunnyBlocksStyle/SunnyBlocksStyle.php.inc
  110. +17 −17 plugin/theme/SunnyBlocksStyle/editor.css
  111. +18 −18 plugin/theme/SunnyBlocksStyle/parts.css
  112. +12 −12 plugin/theme/SunnyBlocksStyle/parts.php.inc
  113. +19 −19 plugin/theme/SunnyBlocksStyle/style.css
@@ -1,4 +1,4 @@
.DS_Store
._*
~*
*~
*.local.php.inc
@@ -0,0 +1,45 @@
# CaMykS Changelog
## Release 20180801
* [2018-07-02 18:26:16 +0200 | JB Lebrun] Adds July 2018 release history in changelogs [#View details](https://github.com/Dj1b/CaMykS/commit/db98cbd67395df15f117ba392916c117c6ca81e1)
* [2018-07-02 18:27:28 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/1f0938948d4b8e251900fe52f9a4da461abff7c0)
* [2018-07-03 16:16:42 +0200 | JB Lebrun] Changes visibility for method check_SQLCondition in ModuleLIbrary library. [#View details](https://github.com/Dj1b/CaMykS/commit/32dc8f672feeb5c02dbac2e51585d634a2b127cc)
* [2018-07-03 16:19:11 +0200 | JB Lebrun] Adds a public method to check if log manager is available in CaMykS master library. [#View details](https://github.com/Dj1b/CaMykS/commit/919f0c7daf0c5c35c25ec9c2b7542c9e284f5686)
* [2018-07-03 16:20:52 +0200 | JB Lebrun] Updates email libraries to add logs when sending an email. [#View details](https://github.com/Dj1b/CaMykS/commit/007e6350c5024616b6df6c3604f4ccf1629d3e1a)
* [2018-07-03 16:21:57 +0200 | JB Lebrun] Adds a small CSS enhancement for old websites in GreyStyle main CSS file. [#View details](https://github.com/Dj1b/CaMykS/commit/504556eec1773893529fe46859743622ae41f4f8)
* [2018-07-03 16:24:36 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/24d5d71b4b60806baaca90c4b4ef8e5af29a5ad7)
* [2018-07-04 14:18:59 +0200 | JB Lebrun] Fixes some layout bugs in AdminItemListViewer input. [#View details](https://github.com/Dj1b/CaMykS/commit/d933a26221c8c24da30f10f21d550def7952f807)
* [2018-07-04 14:36:58 +0200 | JB Lebrun] Updates IndigoFlatStyle theme for a better support of mobile in admin mode, and several modules accordingly. [#View details](https://github.com/Dj1b/CaMykS/commit/8e28681cbb96f4573dc82ecd55bdf61092edd6fc)
* [2018-07-05 11:39:57 +0200 | JB Lebrun] Updates User Agent detection in client Library. [#View details](https://github.com/Dj1b/CaMykS/commit/8305d433a943ff35341c74a4732595f7122f6b7c)
* [2018-07-09 12:09:03 +0200 | JB Lebrun] Adds support to SSL_VerifyPeer to http_getContentsUsingPHP method in http library. [#View details](https://github.com/Dj1b/CaMykS/commit/4384edfac407f8b7b7daed8bde116bea7fb17b42)
* [2018-07-09 15:15:57 +0200 | JB Lebrun] Updates user agent information layout in Admin_MonitoringUserAgentChecker module. [#View details](https://github.com/Dj1b/CaMykS/commit/2ee2bd945448659d889ad0eff7c74cbb9b6a3565)
* [2018-07-10 10:17:52 +0200 | JB Lebrun] Adds support for Admin_Site configuration to PayBoxPayment input. [#View details](https://github.com/Dj1b/CaMykS/commit/8a80dea6e01fcfc908da52e802f86fc73c5cf984)
* [2018-07-10 15:10:24 +0200 | JB Lebrun] Adds a method to insert required rewrite-rules in htaccess file in Plugin library. [#View details](https://github.com/Dj1b/CaMykS/commit/74ef44ee797670e294a63bfac0ec7dd9035472d8)
* [2018-07-10 15:12:45 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/d88699239731bb5de43fccf376630817ebf7caf4)
* [2018-07-10 16:05:19 +0200 | JB Lebrun] Fixes needed plugin loading in CaMykS. [#View details](https://github.com/Dj1b/CaMykS/commit/033f3d9486ce34dea55d3689aa0adbbf26b6e3a5)
* [2018-07-10 16:07:16 +0200 | JB Lebrun] Optimises summary data loading in Tool_Installer module. [#View details](https://github.com/Dj1b/CaMykS/commit/224a3c153a98ed7dea6133aae00e6ce3e0469cc1)
* [2018-07-16 11:38:29 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/34c0a619377cedf8e628d6962d65e2bfac106337)
* [2018-07-20 09:20:17 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/b453fcf8f8c730e0057b0082d34e92e5db58c1aa)
* [2018-07-24 11:55:10 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/74d4de78aeb01c45bba3f7e17f744dbf335b40bb)
* [2018-07-25 10:29:45 +0200 | JB Lebrun] Fixes a bug where spaces where not replaced in string_getSymbolicName method, in string library. [#View details](https://github.com/Dj1b/CaMykS/commit/25002e643d1882bb2ca38dd613a7bffa5464a60e)
* [2018-07-25 18:23:44 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/de9402ba5f6c3efce3d412f4468fae5a327a67a0)
* [2018-07-26 18:10:11 +0200 | JB Lebrun] Adds support of other picture formats than GIF for buttons in GenericPageController input. [#View details](https://github.com/Dj1b/CaMykS/commit/6ecc2251f0045342f44b973612c9b2d33181bceb)
* [2018-07-27 12:18:30 +0200 | JB Lebrun] Adds support of other picture formats than GIF for networks icons, and adds several enhancements in SocialNetworksSharingPanel input. [#View details](https://github.com/Dj1b/CaMykS/commit/e91a0145e858442edf0d4e3c05252d298dc3cedd)
* [2018-07-27 12:21:14 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/8c29ba9b1cf9768e7da0c3e34147a56f674c96cc)
* [2018-07-27 12:25:23 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the PayPalExpressCheckout input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/5d89cd964e6802fe1d5ffdc299d99c2e63b931f2)
* [2018-07-27 16:55:27 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the PerpetualCalendar input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/2ea316e824abc1798dc92e4ee0019e3102066a83)
* [2018-07-27 17:29:32 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the QuickItemList input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/8825d543b804daad531dc329d4bf9803e07a2bb4)
* [2018-07-30 14:33:11 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the ReCaptcha input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/1d4f5095b657fea6f3635d929423b65dd173a3bf)
* [2018-07-30 15:01:05 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the SecurimageCaptcha input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/06f03a1ab5f8a434e9c46d3fa1d5c8360dfe19c7)
* [2018-07-30 15:32:52 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the SiteMonitoringToolbar input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/8729743128929c1402e37cf94a4d714a4f5c3ad0)
* [2018-07-30 17:02:55 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the SmartGallery input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/18ef150ead3ae1dc37906f6b8d27079d31e66208)
* [2018-07-30 17:06:54 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the SocialNetworksSharingPanel input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/88bdc73c795c099908b5d9b0cae9a050b07f2edc)
* [2018-07-30 17:46:19 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the SyntaxColoringEngine input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/2ba0ce6f726bee8edd6a4080a517e0a63339295c)
* [2018-07-31 11:13:36 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the TabBuilder input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/5230cb2c5e0bd818f8e665b62a297af83d36b899)
* [2018-07-31 11:42:22 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the TinyMCE input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/7ef379c808eb0f47ad20eb107c381f82efaba504)
* [2018-07-31 12:12:09 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the TinyMCEv3 input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/3d85dc04877524e7a9635597c012b98ebf650152)
* [2018-07-31 14:52:20 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the GeneicVCardHandler input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/b054622911a1a6e56267ff054aaf24bb7fc22b8b)
* [2018-07-31 17:10:25 +0200 | JB Lebrun] Normalises files format, indents more nicely the code and makes the FileManager input, ready to be parsed by Doxygen. [#View details](https://github.com/Dj1b/CaMykS/commit/31670a2cf879110fc924d112e28ca649a2ff8a78)
* [2018-08-01 09:55:44 +0200 | JB Lebrun] Updates User Agent detection in client library. [#View details](https://github.com/Dj1b/CaMykS/commit/d509a7b523d8851af20b8f6074e458b62fa2cd5a)
* [2018-08-01 09:57:20 +0200 | JB Lebrun] Does some files cleaning. [#View details](https://github.com/Dj1b/CaMykS/commit/a345dc65386e0f0b7c20aeed8634685ff65c9814)
* [2018-08-01 10:01:56 +0200 | JB Lebrun] Prepares release. [#View details](https://github.com/Dj1b/CaMykS/commit/27a6e8688be15fff1491c3e057b859cb4e7acf79)
@@ -5,9 +5,9 @@
* @details Engine / Configuration file
* @file engine/etc/static.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.2
* @version 1.0.3
* @date Creation: Sep 2005
* @date Modification: Aug 2018
* @date Modification: Sep 2018
* @copyright 2005 - 2018 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-20180801';
$this->version = '1.0-20180901';
/**
* @var string $this->mversion
@@ -35,13 +35,13 @@ $this->mversion = '1.0';
* @var string $this->nversion
* @brief CaMykS minor version
*/
$this->nversion = '20180801';
$this->nversion = '20180901';
/**
* @var integer $this->last_modification_date
* @brief CaMykS last modification date
*/
$this->last_modification_date = mktime(0, 0, 0, 8, 1, 2018);
$this->last_modification_date = mktime(0, 0, 0, 9, 1, 2018);
/**
* @var string $this->engine_folder
@@ -182,7 +182,7 @@ abstract class Plugin {
if (file_exists($this->plugin_site_path.'/'.$file)) {
require($this->plugin_site_path.'/'.$file);
return true;
} else if (file_exists ($this->plugin_path.'/'.$file)) {
} else if (file_exists($this->plugin_path.'/'.$file)) {
require($this->plugin_path.'/'.$file);
return true;
}
@@ -255,7 +255,7 @@ abstract class Plugin {
* @param string $default
* @return string
*/
public function get_fileURL ($file='', $path=null, $default='') {
public function get_fileURL($file='', $path=null, $default='') {
global $camyks;
switch ($path) {
@@ -281,7 +281,7 @@ abstract class Plugin {
* @param string $default
* @return string
*/
public function get_varFileURL ($file='', $path=false, $default='') {
public function get_varFileURL($file='', $path=false, $default='') {
global $camyks;
switch ($path) {
@@ -533,6 +533,8 @@ abstract class Plugin {
/**
* Update plugin.
* @param string $version
* @param string $more
* @return boolean
*/
public function update($version, $more='') {
@@ -593,7 +595,7 @@ abstract class Plugin {
global $camyks;
return $camyks->get_translation(strtolower($this->name).'_'.$value, $data);
}
/**
* Load available language files for the plugin
* @return void
@@ -711,9 +713,9 @@ abstract class Plugin {
* @return void
*/
public function execute_onCaMykSTerminate() {}
/* Request mode methods */
/**
* Return HTML request mode link.
* @param array $params
@@ -725,7 +727,7 @@ abstract class Plugin {
$params = array_merge(array($this->plugin_type=>$this->name), $params);
return $camyks->get_requestLink($params);
}
/**
* Return JavaScript request mode link.
* @param array $params
@@ -4,11 +4,11 @@
* @details Engine / Tool Library
* @file engine/lib/tool/array.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.1
* @version 1.1
* @date Creation: Jan 2010
* @date Modification: Apr 2018
* @date Modification: Aug 2018
* @copyright 2010 - 2018 CaMykS Team
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* @note This program is distributed as is - WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
@@ -23,14 +23,14 @@ function array_dropValue($array=array(), $value=null, $keepKeys=true) {
/* check array */
if (!is_array($array))
return array();
/* check value */
if ($value == null)
return $array;
/* get parsed array */
$parsed = preg_grep("/{$value}/i", $array, PREG_GREP_INVERT);
/* return result */
if ($keepKeys)
return $parsed;
@@ -51,7 +51,7 @@ function array_recursiveMerge($array1=array(), $array2=array()) {
return $array2;
if (!is_array($array2))
return $array1;
/* merge arrays */
foreach ($array2 as $key => $value) {
if (!isset($array1[$key]))
@@ -64,7 +64,7 @@ function array_recursiveMerge($array1=array(), $array2=array()) {
/* merge other values */
$array1[$key] = $value;
}
/* return merged array */
return $array1;
}
@@ -104,4 +104,14 @@ function array_abs($array=array()) {
}
return $result;
}
?>
/**
* Apply the same value on every key then return it.
* @param array $array
* @param mixed $value
* @return array
*/
function array_applySameValue($array, $value=null) {
return array_fill_keys(array_keys($array), $value);
}
?>
Oops, something went wrong.

0 comments on commit 9254292

Please sign in to comment.