/web-bugs/src/Utils/ |
H A D | PatchTracker.php | 72 private function getPatchDir(int $bugId, string $name): string argument 74 return $this->uploadsDir.'/p'.$bugId.'/'.$name; 80 private function createPatchDir(int $bugId, string $name): void argument 82 $patchDir = $this->getPatchDir($bugId, $name); 153 $this->uploader->setDir($this->getPatchDir($bugId, $name)); 169 $this->validatePatchName($name); 171 $this->createPatchDir($bugId, $name); 175 $this->detach($bugId, $name, $revision); 208 private function validatePatchName(string $name): void argument 210 if (!preg_match('/^[\w\-\.]+\z/', $name) || strlen($name) > 80) { [all …]
|
/web-bugs/src/Template/ |
H A D | Context.php | 89 public function block(string $name): string argument 91 return $this->blocks[$name] ?? ''; 99 public function start(string $name): void argument 101 $this->blocks[$name] = ''; 112 public function append(string $name): void argument 114 if (!isset($this->blocks[$name])) { 115 $this->blocks[$name] = ''; 126 public function end(string $name): void argument 132 if (!empty($this->blocks[$name])) { 133 $this->blocks[$name] .= $content; [all …]
|
H A D | Engine.php | 75 public function register(string $name, callable $callable): void argument 77 if (method_exists(Context::class, $name)) { 79 $name.' is already registered by the template engine. Use a different name.' 83 $this->callables[$name] = $callable;
|
/web-bugs/tests/Mocks/responses/ |
H A D | stable-body.txt | 1 …name":"PHP 5.6.39 (tar.bz2)","sha256":"b3db2345f50c010b01fe041b4e0f66c5aa28eb325135136f153e18da015…
|
/web-bugs/www/ |
H A D | stats.php | 115 foreach ($pkg[$sort_by] as $name => $value) { 116 if ($name != 'all') { 123 <td class="bug_head">{$name}</td> 130 echo bugstats($key, $name), "</td>\n"; 162 function bugstats($status, $name) argument 166 if ($name == 'all') { 174 if (empty($pkg[$status][$name])) { 187 function sort_url($name) argument 191 if ($name == $sort_by) { 196 if ($sort_by != $name) { [all …]
|
H A D | fix.php | 156 … $result = bugs_add_comment($bug_id, $auth_user->email, $auth_user->name, $log_comment, 'log'); 162 … $result = bugs_add_comment($bug_id, $auth_user->email, $auth_user->name, $ncomment, 'comment');
|
H A D | bug.php | 248 $_POST['in']['name'] = $auth_user->name; 410 $comment_name = $auth_user->name; 1092 foreach ($revs as $name => $revisions) 1094 … $obsolete = $obsoletePatchRepository->findObsoletingPatches($bug_id, $name, $revisions[0][0]); 1096 $url_name = urlencode($name); 1097 $clean_name = clean($name);
|
H A D | gh-pull-add.php | 128 $res = bugs_add_comment($bug_id, $email, $auth_user->name, $text, 'patch');
|
H A D | patch-add.php | 149 $res = bugs_add_comment($bug_id, $email, $auth_user->name, $text, 'patch');
|
/web-bugs/src/Repository/ |
H A D | PatchRepository.php | 86 public function getPatchContents(int $bugId, string $name, int $revision): string argument 94 $statement->execute([$bugId, $name, $revision]); 97 $contents = @file_get_contents($this->getPatchPath($bugId, $name, $revision)); 100 … throw new \Exception('Cannot retrieve patch revision "'.$revision.'" for patch "'.$name.'"'); 106 … throw new \Exception('No such patch revision "'.$revision.'", or no such patch "'.$name.'"'); 112 private function getPatchPath(int $bugId, string $name, int $revision): string argument 114 return $this->uploadsDir.'/p'.$bugId.'/'.$name.'/'.'p'.$revision.'.patch.txt';
|
H A D | ReasonRepository.php | 116 'name' => 'needtrace', 133 'name' => 'needscript',
|
/web-bugs/www/js/ |
H A D | jquery.cookie.js | 56 jQuery.cookie = function(name, value, options) { argument 80 … document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); 88 if (cookie.substring(0, name.length + 1) == (name + '=')) { 89 cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
|
H A D | userlisting.php | 54 $lookup[] = $row['name']; 59 'name' => $row['name'],
|
H A D | package-affected.js | 14 packageGroup.name = 'in[package_group]';
|
/web-bugs/sql/ |
H A D | fixtures.sql | 3 INSERT INTO bugdb_pseudo_packages SET id = '1', parent = '0', name = 'Web Site', long_name = 'Web… 4 INSERT INTO bugdb_pseudo_packages SET id = '2', parent = '1', name = 'Bug System', long_name = 'Bug…
|
H A D | schema.sql | 66 name varchar(80) NOT NULL default '', field 72 UNIQUE KEY (name, project) 77 name varchar(100) NOT NULL, field
|
/web-bugs/ |
H A D | composer.lock | 11 "name": "doctrine/instantiator", 49 "name": "Marco Pivetta", 81 "name": "myclabs/deep-copy", 141 "name": "phar-io/manifest", 208 "name": "phar-io/version", 437 "name": "phpunit/php-timer", 556 "name": "phpunit/phpunit", 783 "name": "sebastian/diff", 1279 "name": "sebastian/type", 1335 "name": "sebastian/version", [all …]
|
/web-bugs/include/ |
H A D | functions.php | 663 foreach ($bug_group[2] as $name) { 664 $child = $pseudo_pkgs[$name]; 667 if ((is_array($current) && in_array($name, $current)) || ($name == $current)) { 754 if (array_key_exists($name, $in) && array_key_exists($name, $bug)) { 755 $to = trim($in[$name]); 756 $from = trim($bug[$name]); 795 foreach ($diff as $name => $content) { 864 foreach ($fields as $name => $desc) { 866 if (isset($changed[$name])) { 873 if ($name == 'email') { [all …]
|
/web-bugs/docs/ |
H A D | templates.md | 136 <input type="text" name="title"> 152 <input type="text" name="title">
|