summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-02-18 15:29:46 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-02-18 15:29:46 +0100
commit710ff234fb49e3ba0e5b9d65f47f53a59c9fe2e4 (patch)
treecc35298eeb6e66a3887ad1be4c736ac7c11d07f2 /HACKING
parentf3a29356c51d2b1a56e0122f58385e7d36f9975a (diff)
downloadaur-710ff234fb49e3ba0e5b9d65f47f53a59c9fe2e4.tar.gz
aur-710ff234fb49e3ba0e5b9d65f47f53a59c9fe2e4.tar.xz
Add more HACKING guidelines.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING12
1 files changed, 8 insertions, 4 deletions
diff --git a/HACKING b/HACKING
index 6c50ce4e..b9ca51ef 100644
--- a/HACKING
+++ b/HACKING
@@ -13,12 +13,16 @@ Please don't add any mode lines. Adjust your editor to display tabs to your
preferred width. Generally code should work with the standard eight column
tabs.
-PHP
----
No short open tags. '<?'
Do not end files with a close tag. '?>'
-Try embedding as little HTML in the PHP as possible.
-Consider creating templates for HTML.
+Try embedding as little XHTML in the PHP as possible.
+Consider creating templates for XHTML.
+
+All markup should conform to XHTML 1.0 Strict requirements.
+You can use http://validator.w3.org to check the markup.
+
+Prevent PHP Notices by using isset() or empty() in conditionals that
+reference $_GET, $_POST, or $_REQUEST variables.
MySQL queries should generally go into functions.