Overview
Comment:PHP 5.4 est exigé, plus besoin des corrections pour les installations boîteuses, car magic_quotes et register_globals n'existent plus
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 574216b119199b58ff1cee6a651e84f653d31f7d
User & Date: bohwaz on 2013-07-28 12:55:10
Other Links: manifest | tags
Context
2013-07-28
13:33
PHP 5.4 inclue le pretty print pour json_encode maintenant check-in: 9b53dc3f53 user: bohwaz tags: trunk
12:55
PHP 5.4 est exigé, plus besoin des corrections pour les installations boîteuses, car magic_quotes et register_globals n'existent plus check-in: 574216b119 user: bohwaz tags: trunk
11:03
Débuts de la version hors-ligne check-in: fb49f7d43e user: bohwaz tags: trunk
Changes

Modified src/include/class.membres.php from [ff3b0c8181] to [14ed0abebb].

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    protected function _sessionStart($force = false)
    {
        if (!isset($_SESSION) && ($force || isset($_COOKIE[session_name()])))
        {
            session_start();
        }

        // Fix bug with register_globals ($test is a reference to $_SESSION['test'])
        if (ini_get('register_globals') && isset($_SESSION))
        {
            foreach ($_SESSION as $key=>$value)
            {
                if (isset($GLOBALS[$key]))
                    unset($GLOBALS[$key]);
            }
        }

        return true;
    }

    public function keepSessionAlive()
    {
        $this->_sessionStart(true);
    }







<
<
<
<
<
<
<
<
<
<







37
38
39
40
41
42
43










44
45
46
47
48
49
50
    protected function _sessionStart($force = false)
    {
        if (!isset($_SESSION) && ($force || isset($_COOKIE[session_name()])))
        {
            session_start();
        }











        return true;
    }

    public function keepSessionAlive()
    {
        $this->_sessionStart(true);
    }

Modified src/include/init.php from [febbfb1706] to [95280b4e46].

135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
    echo $error;
    exit;
}

set_error_handler('Garradin\exception_error_handler');
set_exception_handler('Garradin\exception_handler');

// Nettoyage des variables GPC pour ceux qui n'auraient
// toujours pas désactivé les magic quotes
if (get_magic_quotes_gpc())
{
    function strip_slashes_from_user_data(&$array)
    {
        foreach($array as $k => $v)
        {
            if (is_array($v))
            {
                strip_slashes_from_user_data($array[$k]);
                continue;
            }
            $array[$k] = stripslashes($v);
        }
    }

    strip_slashes_from_user_data($_GET);
    strip_slashes_from_user_data($_POST);
    strip_slashes_from_user_data($_COOKIE);
}

/**
 * Auto-load classes and libs
 */
class Loader
{
    /**
     * Already loaded filenames







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







135
136
137
138
139
140
141






















142
143
144
145
146
147
148
    echo $error;
    exit;
}

set_error_handler('Garradin\exception_error_handler');
set_exception_handler('Garradin\exception_handler');























/**
 * Auto-load classes and libs
 */
class Loader
{
    /**
     * Already loaded filenames