Lines Matching refs:rev
43 global $meta, $rev;
44 assert(is_array($meta[$rev]));
46 return $this->groupid."\$".$meta[$rev]["pageid"];
48 return $meta[$rev]["pageid"];
53 global $meta, $rev, $ID, $pageid;
55 assert(is_array($meta[$rev]));
61 $newpageid = md5(uniqid("dokuwiki:".md5($ID).":$rev:", true));
69 $meta[$rev]["pageid"] = $newpageid;
106 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid, $USERINFO;
122 $rev = (int) (($INFO['rev'] == '') ? $INFO['lastmod'] : $INFO['rev']);
123 if ($rev == 0) {
131 if (isset($meta[$rev])) {
151 if (isset($meta[$rev]) && ($meta[$rev]["owner"] != $this->client)) {
153 …$canWrite = ((!isset($meta[$rev]["writepw"]) || ($meta[$rev]["writepw"] == (string) $_POST["access…
155 $canRead = (((($meta[$rev]["readMode"] == "wikiread") || $INFO['writable'])
156 … && (!isset($meta[$rev]["readpw"]) || $meta[$rev]["readpw"] == (string) $_POST["accessPassword"])
175 if (isset($meta[$rev]) && ($meta[$rev]["owner"] != $this->client) && $_POST["isSaveable"]) {
176 …rmission denied - pad is owned by %s, who needs to lock (edit) the page.'), $meta[$rev]["owner"]));
179 …tLang('Permission denied'), "askPassword" => (isset($meta[$rev]["readpw"]) || isset($meta[$rev]["w…
194 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid;
196 $canPassword = ($meta[$rev]["owner"] == $this->client);
203 $ret["encMode"] = $meta[$rev]["encMode"];
204 $ret["encAMode"] = $meta[$rev]["encAMode"];
205 $ret["readMode"] = $meta[$rev]["readMode"];
208 if (isset($meta[$rev]["readpw"])) {
214 if (isset($meta[$rev]["writepw"])) {
230 $isOwner = ($meta[$rev]["owner"] == $this->client);
239 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid;
246 …if (!isset($meta[$rev])) return Array("file" => __FILE__, "line" => __LINE__, "error" => $this->ge…
247 …if ($meta[$rev]["owner"] != $this->client) return Array("file" => __FILE__, "line" => __LINE__, "e…
274 unset($meta[$rev]["readpw"]);
276 $meta[$rev]["readpw"] = $password;
283 unset($meta[$rev]["writepw"]);
285 $meta[$rev]["writepw"] = $password;
289 $meta[$rev]["encMode"] = $_POST["encMode"];
290 $meta[$rev]["encAMode"] = $_POST["encAMode"];
291 $meta[$rev]["readMode"] = $_POST["readMode"];
297 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid;
300 …if (!isset($meta[$rev])) return Array("file" => __FILE__, "line" => __LINE__, "error" => $this->ge…
309 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid;
316 …if (!isset($meta[$rev])) return Array("file" => __FILE__, "line" => __LINE__, 'error' => $this->ge…
317 …if ($meta[$rev]["owner"] != $this->client) return Array("file" => __FILE__, "line" => __LINE__, 'e…
337 unset($meta[$rev]);
343 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid, $USERINFO;
345 return Array("exists" => isset($meta[$rev]));
349 global $conf, $ID, $REV, $INFO, $rev, $meta, $pageid, $USERINFO;
368 if (!isset($meta[$rev])) {
375 $text = rawWiki($ID,$rev);
380 $pageid = md5(uniqid("dokuwiki:".md5($ID).":$rev:", true));
386 $meta[$rev] = Array();
387 $meta[$rev]["pageid"] = $pageid;
388 $meta[$rev]["owner"] = $this->client;
389 $meta[$rev]["encMode"] = "noenc";
390 $meta[$rev]["encAMode"] = "wikiwrite";
391 $meta[$rev]["readMode"] = "wikiwrite";
394 $pageid = $meta[$rev]["pageid"];