mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-03-01 08:13:46 +01:00
Add new comments and comment all deletion system
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
* Date: 6/07/17
|
||||
* Time: 11:56
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generate a RandomString
|
||||
*
|
||||
* @param $length length of string
|
||||
* @return string string generated
|
||||
*/
|
||||
function RandomString($length)
|
||||
{
|
||||
//https://phpes.wordpress.com/2007/06/12/generador-de-una-cadena-aleatoria/
|
||||
@@ -23,6 +30,12 @@ function RandomString($length)
|
||||
return $rstr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse a file from Keys system object notation (KSON) to Mapped array
|
||||
*
|
||||
* @param $path path to file
|
||||
* @return array array from kson
|
||||
*/
|
||||
function ksonParse($path){
|
||||
$file = fopen($path,"r");
|
||||
$array = [];
|
||||
|
||||
Reference in New Issue
Block a user