Add new comments and comment all deletion system

This commit is contained in:
JoseluCross
2017-09-18 20:34:06 +02:00
parent 5531725cfe
commit af5383d6d9
5 changed files with 42 additions and 6 deletions

View File

@@ -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 = [];