Overview
SHA1:3d0a52ff366b7fb064b960f6e3c42a274008e66d
Date: 2017-09-08 04:51:57
User: bohwaz
Comment:Suppression méthodes inutilisées
Timelines: family | ancestors | descendants | both | dev
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-09-08
04:55
[a63fb498e4] Pas déprécié mais supprimé (user: bohwaz, tags: dev)
04:51
[3d0a52ff36] Suppression méthodes inutilisées (user: bohwaz, tags: dev)
04:43
[63ca883e93] Création de fichier pour la release (user: bohwaz, tags: dev)
Changes

Modified src/include/lib/Garradin/Utils.php from [f7e16abdb3] to [d3d713c466].

177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215

        header("Location: " . $destination);

        if ($exit)
          exit();
    }

    static public function CSRF_create($key)
    {
        return Form::tokenGenerate($key);
    }

    static public function CSRF_check($key, $hash=null)
    {
        return Form::tokenCheck($key, $hash);
    }

    static public function CSRF_field_name($key)
    {
        return Form::tokenFieldName($key);
    }

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

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

    static public function getIP()
    {
        if (!empty($_SERVER['REMOTE_ADDR']))
            return $_SERVER['REMOTE_ADDR'];
        return '';
    }








<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







177
178
179
180
181
182
183

























184
185
186
187
188
189
190

        header("Location: " . $destination);

        if ($exit)
          exit();
    }


























    static public function getIP()
    {
        if (!empty($_SERVER['REMOTE_ADDR']))
            return $_SERVER['REMOTE_ADDR'];
        return '';
    }