Overview
SHA1:6ae26257d113ed34257bf5cabbcd51870e0ef74c
Date: 2016-11-08 03:10:32
User: bohwaz
Comment:Fonction non utilisée
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-11-08
03:22
[a104f9ddaf] Fix directory creation for standalone version (user: bohwaz, tags: trunk, stable, 0.7.5)
03:10
[6ae26257d1] Fonction non utilisée (user: bohwaz, tags: trunk)
03:09
[8cf1f80660] Sortie 0.7.5 (user: bohwaz, tags: trunk, stable, 0.7.5)
Changes

Modified src/include/lib/Garradin/Utils.php from [807f34b831] to [8a553d4fe8].

230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
    }

    static public function CSRF_field_name($key)
    {
        return 'gecko/'.base64_encode(sha1($key, true));
    }

    static public function generatePassword($length, $chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
    {
        $string = '';
        for ($i = 0; $i < $length; $i++)
        {
            $pos = rand(0, strlen($chars)-1);
            $string .= $chars[$pos];
        }
        return $string;
    }

    static public function post($key)
    {
        return isset($_POST[$key]) ? $_POST[$key] : '';
    }

    static public function get($key)
    {







<
<
<
<
<
<
<
<
<
<
<







230
231
232
233
234
235
236











237
238
239
240
241
242
243
    }

    static public function CSRF_field_name($key)
    {
        return 'gecko/'.base64_encode(sha1($key, true));
    }












    static public function post($key)
    {
        return isset($_POST[$key]) ? $_POST[$key] : '';
    }

    static public function get($key)
    {