diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-04 18:25:01 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-04 18:25:01 +0000 |
commit | b5608afe0331a38c7761558a20337814f43bb162 (patch) | |
tree | 906b9dc8799e2439dcce640d70abf8da5c8f1496 /phpBB/docs/coding-guidelines.html | |
parent | 3a38f801687b3d20c594700691d28bf684bf390d (diff) | |
download | forums-b5608afe0331a38c7761558a20337814f43bb162.tar forums-b5608afe0331a38c7761558a20337814f43bb162.tar.gz forums-b5608afe0331a38c7761558a20337814f43bb162.tar.bz2 forums-b5608afe0331a38c7761558a20337814f43bb162.tar.xz forums-b5608afe0331a38c7761558a20337814f43bb162.zip |
- fix bug #1727 (need to be watched - problems could arise by this change)
- added a note about login_box() to the coding guidelines
git-svn-id: file:///svn/phpbb/trunk@5881 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/docs/coding-guidelines.html')
-rw-r--r-- | phpBB/docs/coding-guidelines.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html index d45a39f4df..803d88ebc2 100644 --- a/phpBB/docs/coding-guidelines.html +++ b/phpBB/docs/coding-guidelines.html @@ -865,6 +865,8 @@ $action_ary = request_var('action', array('' => 0)); <h3>Login checks/redirection: </h3> <p>To show a forum login box use <code>login_forum_box($forum_data)</code>, else use the <code>login_box()</code> function.</p> + <p>The <code>login_box()</code> function could have a redirect as the first parameter. As a thumb of rule, specify an empty string if you want to redirect to the users current location, else do not add the <code>$SID</code> to the redirect string (for example within the ucp/login we redirect to the board index because else the user would be redirected to the login screen).</p> + <h3>Sensitive Operations: </h3> <p>For sensitive operations always let the user confirm the action. For the confirmation screens, make use of the <code>confirm_box()</code> function.</p> |