diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-28 10:53:28 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-28 10:53:28 +0000 |
commit | fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3 (patch) | |
tree | 9b2d6d27ffde528e54f41be6b0eb51d4f3751692 /phpBB/includes/functions.php | |
parent | 0c1c26e2ee7badb434483001eb55d304f6c20bd0 (diff) | |
download | forums-fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3.tar forums-fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3.tar.gz forums-fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3.tar.bz2 forums-fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3.tar.xz forums-fbaf2baa8d683a2afdd3cf98ea1e7c035369f1a3.zip |
document plugin-support
move language path declaration to object instantiation
git-svn-id: file:///svn/phpbb/trunk@9239 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b1379cdd60..f6ded04431 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -273,6 +273,39 @@ function phpbb_chmod($filename, $perms = phpbb::CHMOD_READ) return $result; } + /** + * Add a secret hash for use in links/GET requests + * @param string $link_name The name of the link; has to match the name used in check_link_hash, otherwise no restrictions apply + * @return string the hash + */ +/* + should use our hashing instead of a "custom" one + + function generate_link_hash($link_name) + { + global $user; + + if (!isset($user->data["hash_$link_name"])) + { + $user->data["hash_$link_name"] = substr(sha1($user->data['user_form_salt'] . $link_name), 0, 8); + } + + return $user->data["hash_$link_name"]; + } +*/ + + /** + * checks a link hash - for GET requests + * @param string $token the submitted token + * @param string $link_name The name of the link + * @return boolean true if all is fine + */ +/* + function check_link_hash($token, $link_name) + { + return $token === generate_link_hash($link_name); + } +*/ // functions used for building option fields /** @@ -2248,6 +2281,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) /** * Generate page header +* @plugin-support override, default, return */ function page_header($page_title = '', $display_online_list = true) { |