Lines Matching defs:id

58     // Where the target id value comes from
67 * Identifier Permalink (full page id)
71 * Extended Permalink (abbreviated page id at the end)
133 * The id may have been changed by
136 * to get the original requested id
140 $originalId = $_GET["id"] ?? null;
148 * Determine if the request should be banned based on the id
150 * @param string $id
159 public static function isShadowBanned(string $id): bool
181 if (strpos($id, 'wp-') !== false) {
190 if (preg_match('/_chr_|_0_0/', $id) === 1) {
204 if (strpos($id, "git:") === 0) {
213 * @param string $id
216 * .well-known/security.txt, id=well-known:security.txt = https://securitytxt.org/
219 public static function isWellKnownFile(string $id): bool
221 return strpos($id, "well-known") === 0;
269 $id = self::getOriginalIdFromRequest();
270 if ($id === null) {
273 $page = MarkupPath::createMarkupFromId($id);
276 if (self::isWellKnownFile($id)) {
277 $this->logRedirection($id, "", self::TARGET_ORIGIN_WELL_KNOWN, self::REDIRECT_NOTFOUND_METHOD);
286 if (self::isShadowBanned($id)) {
333 * The id may have been changed by
341 * Page is an existing id ?
348 * and if the canonical id is the not the same,
353 $originalId !== $requestedMarkupPath->getUrlId() // The id may have been changed
366 * We test therefore if the database page id exists
368 $targetPageId = $databasePageRow->getFromRow("id");
393 * Permalink with id
426 * If the url canonical id has changed, we show it
613 $bestPageId = $bestPage['id'];
663 * @param $id
667 function scoreBestNamespace($id)
673 $pageNameSpace = getNS($id);
739 * * id rewrite
740 * @param string $targetPageId - target page id
756 LogUtility::msg("The parameters targetPageId ($targetPageId) is an object of the class ($class) and it should be a page id");
761 LogUtility::msg("The parameters targetOriginId ($targetOriginId) is an object of the class ($class) and it should be a page id");
770 // Change the id
775 if (isset($_REQUEST["id"])) {
776 $_REQUEST["id"] = $targetPageId;
778 if (isset($_GET["id"])) {
779 $_GET["id"] = $targetPageId;
786 * 'id': for the sidebar
821 * @param string $targetIdOrUrl - a dokuwiki id or an url
845 // The Url becomes the id, the id is unknown and we do a redirect again
896 $id = $link[0];
897 $url->setQueryParameter(DokuwikiId::DOKUWIKI_ID_ATTRIBUTE, $id);
952 * @param $id
956 function getBestPage($id): array
964 $pageName = noNS($id);
972 $wordsInPageSourceId = explode(':', $id);
975 // Nb of word found in the target page id
976 // that are in the source page id
1001 'id' => $bestPageId,
1005 'id' => $bestPageId,