Overview
Comment:Suppression méthodes inutilisées
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 3d0a52ff366b7fb064b960f6e3c42a274008e66d
User & Date: bohwaz on 2017-09-08 04:51:57
Other Links: branch diff | manifest | tags
Context
2017-09-08
04:55
Pas déprécié mais supprimé check-in: a63fb498e4 user: bohwaz tags: dev
04:51
Suppression méthodes inutilisées check-in: 3d0a52ff36 user: bohwaz tags: dev
04:43
Création de fichier pour la release check-in: 63ca883e93 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 '';
    }