summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-01-09 22:32:58 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-01-09 22:32:58 +0100
commit5b62573a1f36aba312b8d8155a3a37512d753423 (patch)
treea119457322391bdb953224eab3daae4de96a7649
parentf112c2fa2c881f6f75d207243b979cd6ab9077a2 (diff)
downloadrpg-5b62573a1f36aba312b8d8155a3a37512d753423.tar.gz
rpg-5b62573a1f36aba312b8d8155a3a37512d753423.tar.bz2
HTML_LOGINFORM_INJECTION event
Another injection event similar to the existing ones to insert custom HTML into the login form. darcs-hash:20070109213258-7ad00-2d8b59c6a83b42231cdba845263b09821e2b0400.gz
-rw-r--r--inc/html.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 672430cf1..31ddf7631 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -41,7 +41,8 @@ function html_attbuild($attributes){
/**
* The loginform
*
- * @author Andreas Gohr <andi@splitbrain.org>
+ * @author Andreas Gohr <andi@splitbrain.org>
+ * @triggers HTML_LOGINFORM_INJECTION
*/
function html_login(){
global $lang;
@@ -67,6 +68,12 @@ function html_login(){
<span><?php echo $lang['pass']?></span>
<input type="password" name="p" class="edit" />
</label><br />
+
+ <?php //bad and dirty event insert hook
+ $evdata = array();
+ trigger_event('HTML_LOGINFORM_INJECTION', $evdata);
+ ?>
+
<label for="remember__me" class="simple">
<input type="checkbox" name="r" id="remember__me" value="1" />
<span><?php echo $lang['remember']?></span>