Indefero

Indefero Commit Details


Date:2009-09-24 13:40:22 (15 years 2 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:838645463d83ea82f74bddbe1af780b3c875ed06
Parents: 157819195b1b78daa0a3b9caa8c03b2400bc53e5
Message:Remove the PHP 5.3 deprecated split function.

Changes:

File differences

src/IDF/Diff.php
187187
188188
189189
190
190
191191
192192
193
193
194194
195195
196196
*/
public static function getChunk($line)
{
$elts = split(' ', $line);
$elts = explode(' ', $line);
$res = array();
for ($i=1;$i<3;$i++) {
$res[] = split(',', trim(substr($elts[$i], 1)));
$res[] = explode(',', trim(substr($elts[$i], 1)));
}
return $res;
}
src/IDF/Form/PasswordInputKey.php
9595
9696
9797
98
98
9999
100100
101101
return false;
}
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
$f = split(':', $cr->decrypt($encrypted), 3);
$f = explode(':', $cr->decrypt($encrypted), 3);
if (count($f) != 3) {
return false;
}
src/IDF/Form/RegisterInputKey.php
9191
9292
9393
94
94
9595
9696
return false;
}
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
return split(':', $cr->decrypt($encrypted), 2);
return explode(':', $cr->decrypt($encrypted), 2);
}
}
src/IDF/Form/UserChangeEmail.php
6363
6464
6565
66
66
6767
6868
6969
throw new Pluf_Form_Invalid(__('The validation key is not valid. Please copy/paste it from your confirmation email.'));
}
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
return split(':', $cr->decrypt($encrypted), 3);
return explode(':', $cr->decrypt($encrypted), 3);
}
src/IDF/Precondition.php
230230
231231
232232
233
233
234234
235235
236236
return true; // no match in the hash, anonymous
}
$cr = new Pluf_Crypt(md5(Pluf::f('secret_key')));
list($userid, $projectid) = split(':', $cr->decrypt($encrypted), 2);
list($userid, $projectid) = explode(':', $cr->decrypt($encrypted), 2);
if ($projectid != $request->project->id) {
return true; // anonymous
}
src/IDF/Project.php
210210
211211
212212
213
213
214214
215
215
216216
217217
218218
$conf = $this->getConf();
$tags = array();
foreach (preg_split("/\015\012|\015|\012/", $conf->getVal($cfg_key, $default), -1, PREG_SPLIT_NO_EMPTY) as $s) {
$_s = split('=', $s, 2);
$_s = explode('=', $s, 2);
$v = trim($_s[0]);
$_v = split(':', $v, 2);
$_v = explode(':', $v, 2);
if (count($_v) > 1) {
$class = trim($_v[0]);
$name = trim($_v[1]);
src/IDF/Scm/Cache/Git.php
8484
8585
8686
87
87
8888
8989
9090
$sql = new Pluf_SQL('project=%s AND githash IN ('.implode(', ', $hashes).')',
array($this->_project->id));
foreach (Pluf::factory(__CLASS__)->getList(array('filter' => $sql->gen())) as $blob) {
$tmp = split(chr(31), $blob->content, 3);
$tmp = explode(chr(31), $blob->content, 3);
$res[$blob->githash] = (object) array(
'hash' => $blob->githash,
src/IDF/Scm/Git.php
4545
4646
4747
48
48
4949
5050
5151
......
671671
672672
673673
674
674
675675
676676
677
677
678678
679679
680680
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = split(' ', shell_exec($cmd), 2);
$out = explode(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;
}
if (false === $data) {
return $res;
}
$data = split(chr(30), $data);
$data = explode(chr(30), $data);
foreach ($data as $rec) {
if (isset($hashes[substr($rec, 0, 40)])) {
$tmp = split(chr(31), substr($rec, 40), 3);
$tmp = explode(chr(31), substr($rec, 40), 3);
$res[substr($rec, 0, 40)] =
(object) array('hash' => substr($rec, 0, 40),
'date' => $tmp[0],
src/IDF/Scm/Mercurial.php
3737
3838
3939
40
40
4141
4242
4343
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = split(' ', shell_exec($cmd), 2);
$out = explode(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;
}
src/IDF/Scm/Svn.php
5858
5959
6060
61
61
6262
6363
6464
......
435435
436436
437437
438
438
439439
440440
441441
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg(substr($this->repo, 7));
$out = split(' ', shell_exec($cmd), 2);
$out = explode(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;
}
$log = array();
$log['author'] = (string) $entry->author;
$log['date'] = gmdate('Y-m-d H:i:s', strtotime((string) $entry->date));
$split = split("[\n\r]", (string) $entry->msg, 2);
$split = explode("[\n\r]", (string) $entry->msg, 2);
$log['title'] = $split[0];
$log['commit'] = (string) $entry['revision'];
$log['full_message'] = (isset($split[1])) ? trim($split[1]) : '';
src/IDF/Views/Admin.php
321321
322322
323323
324
324
325325
326326
327327
328
328
329329
330330
331331
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
.escapeshellarg(Pluf::f('upload_path'));
$out = split(' ', shell_exec($cmd), 2);
$out = explode(' ', shell_exec($cmd), 2);
$res['downloads'] = $out[0]*1024;
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
.escapeshellarg(Pluf::f('upload_issue_path'));
$out = split(' ', shell_exec($cmd), 2);
$out = explode(' ', shell_exec($cmd), 2);
$res['attachments'] = $out[0]*1024;
$res['database'] = IDF_Views_Admin_getForgeDbSize();
$res['total'] = $res['repositories'] + $res['downloads'] + $res['attachments'] + $res['database'];
src/IDF/Views/Download.php
231231
232232
233233
234
234
235235
236236
237237
foreach ($st as $s) {
$v = '';
$d = '';
$_s = split('=', $s, 2);
$_s = explode('=', $s, 2);
if (count($_s) > 1) {
$v = trim($_s[0]);
$d = trim($_s[1]);
src/IDF/Views/Issue.php
563563
564564
565565
566
566
567567
568568
569569
foreach ($st as $s) {
$v = '';
$d = '';
$_s = split('=', $s, 2);
$_s = explode('=', $s, 2);
if (count($_s) > 1) {
$v = trim($_s[0]);
$d = trim($_s[1]);
src/IDF/Views/Source.php
226226
227227
228228
229
229
230230
231231
232232
......
250250
251251
252252
253
253
254254
255255
256256
......
346346
347347
348348
349
349
350350
351351
352352
$cache->set($key, $res);
}
// try to find the previous level if it exists.
$prev = split('/', $request_file);
$prev = explode('/', $request_file);
$l = array_pop($prev);
$previous = substr($request_file, 0, -strlen($l.' '));
$scmConf = $request->conf->getVal('scm', 'git');
public static function makeBreadCrumb($project, $commit, $file, $sep='/')
{
$elts = split('/', $file);
$elts = explode('/', $file);
$out = array();
$stack = '';
$i = 0;
$cobject = $scm->getCommit($commit);
$in_branches = $scm->inBranches($commit, $request_file);
// try to find the previous level if it exists.
$prev = split('/', $request_file);
$prev = explode('/', $request_file);
$l = array_pop($prev);
$previous = substr($request_file, 0, -strlen($l.' '));
$scmConf = $request->conf->getVal('scm', 'git');
src/IDF/Views/Wiki.php
397397
398398
399399
400
400
401401
402402
403403
foreach ($st as $s) {
$v = '';
$d = '';
$_s = split('=', $s, 2);
$_s = explode('=', $s, 2);
if (count($_s) > 1) {
$v = trim($_s[0]);
$d = trim($_s[1]);

Archive Download the corresponding diff file

Page rendered in 0.12453s using 13 queries.