Overview
Comment:Fonction non utilisée
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6ae26257d113ed34257bf5cabbcd51870e0ef74c
User & Date: bohwaz on 2016-11-08 03:10:32
Other Links: manifest | tags
Context
2016-11-08
03:22
Fix directory creation for standalone version check-in: a104f9ddaf user: bohwaz tags: trunk, stable, 0.7.5
03:10
Fonction non utilisée check-in: 6ae26257d1 user: bohwaz tags: trunk
03:09
Sortie 0.7.5 check-in: 8cf1f80660 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)
    {