mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove all vim mode lines. Add HACKING file.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
44dbb49ae9
commit
3a42725601
22 changed files with 33 additions and 29 deletions
24
HACKING
Normal file
24
HACKING
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
HACKING
|
||||||
|
|
||||||
|
DISCLAIMER: We realise the code doesn't necessarily follow all the rules.
|
||||||
|
This is an attempt to establish a standard coding style for future
|
||||||
|
development.
|
||||||
|
|
||||||
|
Coding style guidelines
|
||||||
|
-----------------------
|
||||||
|
Column width: 79 columns or less within reason.
|
||||||
|
|
||||||
|
Indentation: tabs (standard eight column width)
|
||||||
|
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.
|
||||||
|
|
||||||
|
Try embedding as little HTML in the PHP as possible.
|
||||||
|
Consider creating templates for HTML.
|
||||||
|
|
||||||
|
MySQL queries should generally go into functions.
|
||||||
|
|
||||||
|
Please submit uncompressed git-formatted patches to aur-dev@archlinux.org.
|
||||||
|
When writing patches please keep unnecessary changes to a minimum.
|
||||||
|
Smaller patches are much easier to review thus have a better chance of being
|
||||||
|
pushed more quickly into the main repo.
|
|
@ -156,5 +156,5 @@ echo " </div>";
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -90,6 +90,5 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -452,5 +452,4 @@ textarea.vLargeTextField {
|
||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
border-spacing: 0 15px;
|
border-spacing: 0 15px;
|
||||||
}
|
}
|
||||||
/* vim:ts=2:sw=2:et:enc=utf-8:
|
|
||||||
* */
|
|
||||||
|
|
|
@ -181,5 +181,4 @@ input.button {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
/* vim:ts=2:sw=2:et:enc=utf-8:
|
|
||||||
* */
|
|
||||||
|
|
|
@ -100,5 +100,4 @@ h1, h2, h3, h4 {
|
||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
}
|
}
|
||||||
span.important { color: #f00; }
|
span.important { color: #f00; }
|
||||||
/* vim:ts=2:sw=2:et:enc=utf-8:
|
|
||||||
* */
|
|
||||||
|
|
|
@ -13,5 +13,5 @@ print __("If this problem persists, please contact the site administrator.");
|
||||||
print "</p>\n";
|
print "</p>\n";
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -236,5 +236,4 @@ endif;
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -23,5 +23,4 @@ header('Location: index.php');
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -488,5 +488,5 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -170,5 +170,4 @@ print __("You've found a bug if you see this....")."<br />\n";
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -489,5 +489,5 @@ endif;
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -53,6 +53,4 @@ while ($row = mysql_fetch_assoc($result)) {
|
||||||
#save it so that useCached() can find it
|
#save it so that useCached() can find it
|
||||||
$rss->saveFeed("RSS2.0","xml/newestpkg.xml",true);
|
$rss->saveFeed("RSS2.0","xml/newestpkg.xml",true);
|
||||||
|
|
||||||
# $Id$
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -15,10 +15,6 @@ html_header(); # print out the HTML header
|
||||||
print __("Hi, this is worth reading!")."<br />\n";
|
print __("Hi, this is worth reading!")."<br />\n";
|
||||||
|
|
||||||
|
|
||||||
html_footer(AUR_VERSION); # Use the $Id$ keyword
|
html_footer(AUR_VERSION);
|
||||||
# NOTE: when checking in a new file, use
|
|
||||||
# 'svn propset svn:keywords "Id" filename.php'
|
|
||||||
# to tell svn to expand the "Id" keyword.
|
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -42,5 +42,4 @@ print __("Hello, again!")."<br />\n";
|
||||||
print "</ul>\n";
|
print "</ul>\n";
|
||||||
print "</body>\n</html>";
|
print "</body>\n</html>";
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -13,5 +13,5 @@ print __("Click on the Home link above to log in.");
|
||||||
print "</p>\n";
|
print "</p>\n";
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -447,6 +447,5 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
|
||||||
}
|
}
|
||||||
|
|
||||||
html_footer(AUR_VERSION);
|
html_footer(AUR_VERSION);
|
||||||
# vim: ts=2 sw=2
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -785,5 +785,4 @@ function user_is_privileged( $id )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -410,5 +410,4 @@ function uid_from_username($username="")
|
||||||
return $row[0];
|
return $row[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -30,5 +30,4 @@ $SUPPORTED_LANGS = array( # what languages we have translations for
|
||||||
"fr" => "Français"
|
"fr" => "Français"
|
||||||
);
|
);
|
||||||
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -986,5 +986,4 @@ function pkg_search_page($SID="") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=4 sw=4 et ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -63,5 +63,4 @@ function __() {
|
||||||
return $translated;
|
return $translated;
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=2 sw=2 noet ft=php
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue