Lines Matching refs:referer

28 	 * @param string $referer   user:section:object id
31 function auto_save($id, $data, $referer = '') argument
34 $result = file_put_contents($this->auto_save_name($id, $referer), $data);
42 * @param string $referer textarea specifier (user:section:item)
45 function remove_save($id, $referer = '') argument
47 $referer = $this->ensureReferrer($referer);
49 $file_name = $this->auto_save_name($id, $referer);
62 * @param string $referer user:section:object id
65 function has_autosave($id, $referer = '') argument
67 return file_exists($this->auto_save_name($id, $this->ensureReferrer($referer)));
74 * @param string $referer user:section:object id
77 function get_autosave($id, $referer = '') argument
79 $file_name = $this->auto_save_name($id, $referer);
90 * @param string $referer
93 function ensureReferrer($referer = '') argument
97 if (empty($referer)) {
99 $referer .= empty($user) ? $tikilib->get_ip_address() : $user;
100 $referer .= ':';
103 $referer .= 'wiki_page:' . rawurlencode($_REQUEST['page']);
107 $referer .= 'blog:' . $_REQUEST['postId'];
110 $referer .= rawurlencode($_SERVER['REQUEST_URI']);
113 return $referer;
120 * @param string $referer user:section:object id
124 private function auto_save_name($id, $referer = '', $only_md5 = false) argument
127 $referer = preg_replace('/(\?|\&)noautosave=y/', '', $this->ensureReferrer($referer));
128 …$referer = rawurldecode($referer); // this is needed to ensure consistency whether coming from js …
129 return ($only_md5 ? '' : 'temp/cache/auto_save-') . md5("$user:$referer:$id");
136 * @param string $referer
139 private function auto_save_log($id, $referer = '', $action = '') argument
142 …to_save-log-' . ($this->auto_save_name($id, $referer, true)), $user . ' : ' . $this->ensureReferre…