/web-bugs/src/Template/ |
H A D | Context.php | 64 string $dir, 77 public function extends(string $parent, array $variables = []): void 89 public function block(string $name): string 99 public function start(string $name): void 112 public function append(string $name): void 126 public function end(string $name): void 144 public function include(string $template, array $variables = []) 159 public function e(string $string): string argument 161 return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); 168 public function noHtml(string $string): string argument [all …]
|
H A D | Engine.php | 43 public function __construct(string $dir) 75 public function register(string $name, callable $callable): void 91 public function render(string $template, array $variables = []): string 116 private function bufferize(string $template, array $variables = []): string
|
/web-bugs/src/Utils/ |
H A D | Uploader.php | 51 public function setValidExtension(string $validExtension): void 67 public function setDir(string $dir): void 75 public function setDestinationFileName(string $destinationFileName): void 83 public function upload(string $key): string 150 protected function isUploadedFile(string $file): bool 159 protected function moveUploadedFile(string $source, string $destination): bool 167 protected function renameFile(string $filename): ?string 188 protected function getFileExtension(string $filename): string 198 protected function getMediaType(string $file): string
|
H A D | PatchTracker.php | 49 public function __construct(\PDO $dbh, Uploader $uploader, string $uploadsDir) 72 private function getPatchDir(int $bugId, string $name): string 80 private function createPatchDir(int $bugId, string $name): void 109 private function newPatchFileName(int $bugId, string $patch, string $developer): int 135 private function getPatchFileName(int $revision): string 143 public function getPatchFullpath(int $bugId, string $name, int $revision): string 151 …public function attach(int $bugId, string $patch, string $name, string $developer, array $obsolete… 208 private function validatePatchName(string $name): void 218 private function detach(int $bugId, string $name, int $revision): void 233 …private function obsoletePatch(int $bugId, string $name, int $revision, string $obsoleteName, int …
|
H A D | Cache.php | 32 public function __construct(string $dir) 51 public function set(string $key, $data, int $ttl = self::TTL): void 60 $string = '<?php return '.var_export($item, true).";\n"; 62 file_put_contents($this->dir.'/'.$key.'.php', $string); 68 public function has(string $key): bool 92 public function get(string $key): ?array 135 public function delete(string $key): bool 153 private function validateKey(string $key): bool
|
H A D | Captcha.php | 82 public function setOperation(string $operation): void 90 public function getQuestion(): string
|
/web-bugs/src/Repository/ |
H A D | PhpInfoRepository.php | 10 public function getInfo(): string 21 private function replaceSensitiveInformation(string $phpInfo): string 36 private function cleanHtml(string $phpInfo): string
|
H A D | PatchRepository.php | 25 public function __construct(\PDO $dbh, string $uploadsDir) 51 public function findDeveloper(int $bugId, string $patch, int $revision): string 69 public function findRevisions(int $bugId, string $patch): array 86 public function getPatchContents(int $bugId, string $name, int $revision): string 112 private function getPatchPath(int $bugId, string $name, int $revision): string
|
H A D | ObsoletePatchRepository.php | 27 public function findObsoletingPatches(int $bugId, string $patch, int $revision): array 43 public function findObsoletePatches(int $bugId, string $patch, int $revision): array
|
H A D | VoteRepository.php | 27 public function findOneByIdAndIp(int $id, string $ip): array
|
H A D | BugRepository.php | 123 public function findAllByBugType(string $type = 'All'): array 145 public function findPhpVersions(string $type = 'All'): array
|
H A D | DatabaseStatusRepository.php | 24 public function getMysqlVersion(): string
|
H A D | PackageRepository.php | 36 public function findAll(string $project = ''): array 59 public function findEnabled(string $project = ''): array
|
/web-bugs/src/Horde/Text/Diff/Renderer/ |
H A D | Inline.php | 169 protected function _splitOnWords($string, $newlineEscape = "\n") argument 172 $string = str_replace("\0", '', $string); 175 $length = strlen($string); 180 $spaces = strspn(substr($string, $pos), " \n"); 181 $nextpos = strcspn(substr($string, $pos + $spaces), " \n"); 182 $words[] = str_replace("\n", $newlineEscape, substr($string, $pos, $spaces + $nextpos)); 189 protected function _encode(&$string) argument 191 $string = htmlspecialchars($string);
|
/web-bugs/tests/Unit/Template/ |
H A D | ContextTest.php | 66 public function testEscaping(string $malicious, string $escaped, string $noHtml): void 74 public function testNoHtml(string $malicious, string $escaped, string $noHtml): void
|
/web-bugs/src/Container/ |
H A D | ContainerInterface.php | 20 public function get(string $id); 33 public function has(string $id): bool;
|
H A D | Container.php | 45 public function set(string $key, $entry): void 55 public function get(string $id) 71 public function has(string $id): bool 81 private function createEntry(string $id)
|
/web-bugs/tests/Unit/Container/ |
H A D | MockDependency.php | 12 public function __construct(string $parameter) 17 public function getParameter(): string
|
H A D | MockService.php | 23 public function setProperty(string $value): void 28 public function getProperty(): string
|
/web-bugs/tests/Unit/Utils/ |
H A D | CaptchaTest.php | 21 …public function testGetQuestion(int $first, int $last, string $operation, string $question, int $e…
|
H A D | UploaderTest.php | 17 public function testUpload(string $validExtension, array $file): void
|
/web-bugs/tests/Unit/ |
H A D | AutoloaderTest.php | 82 public function testLoad(string $class, $expected): void
|
/web-bugs/src/Utils/Versions/ |
H A D | Generator.php | 170 private function parseVersion(string $version): array
|
/web-bugs/docs/ |
H A D | templates.md | 170 $template->register('formatDate', function (int $timestamp): string { 192 To replace all characters to their applicable HTML entities in the given string: 198 To escape given string and still preserve certain characters as HTML:
|
/web-bugs/include/ |
H A D | functions.php | 271 * @param string $txt the email address to be obfuscated 272 * @param string $format how the output will be displayed ('html', 'text', 'reverse') 274 * @return string the altered email address
|