Pluf Framework

Pluf Framework Commit Details


Date:2009-09-24 13:31:33 (15 years 2 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:a1560823a2425f97e54a7b644791d989a174c99b
Parents: b4590114b61136f4c8e555fee64a163ae1b93c20
Message:Remove the PHP 5.3 deprecated split function.

Changes:

File differences

src/Pluf/Date.php
148148
149149
150150
151
152
151
152
153153
154154
155155
}
$ref = str_replace(array(' ', ':'), '-', $ref);
$date = str_replace(array(' ', ':'), '-', $date);
$refs = split('-', $ref);
$dates = split('-', $date);
$refs = explode('-', $ref);
$dates = explode('-', $date);
// Modulo on the month is dynamically calculated after
$modulos = array(365, 12, 31, 24, 60, 60);
// day in month
src/Pluf/HTTP/URL.php
105105
106106
107107
108
108
109109
110110
111111
$model = '';
$method = '';
if (false !== strpos($view, '::')) {
list($model, $method) = split('::', $view);
list($model, $method) = explode('::', $view);
}
$vdef = array($model, $method, $view);
$regbase = array('', array());
src/Pluf/User.php
240240
241241
242242
243
243
244244
245245
246246
if ($this->password == '') {
return false;
}
list($algo, $salt, $hash) = split(':', $this->password);
list($algo, $salt, $hash) = explode(':', $this->password);
if ($hash == $algo($salt.$password)) {
return true;
} else {
src/Pluf/Utils.php
125125
126126
127127
128
128
129129
130130
131131
static function isValidEmail($email)
{
$email = trim($email);
$n = split(' ', $email);
$n = explode(' ', $email);
if (count($n) > 1) {
return false;
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06580s using 13 queries.