summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-08-06 20:02:29 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-08-11 13:58:12 -0400
commit46f279852475bc520c4d6ae77df04ac4a6897807 (patch)
treee08c929630bd52a9929e1b93ba13f9f9d472abba /web/html/pkgsubmit.php
parent4af079a5bd75a83a0ff1465b1f1540684d896fb7 (diff)
downloadaurweb-46f279852475bc520c4d6ae77df04ac4a6897807.tar.xz
Use include_once where applicable
All of these are sourcing function libraries so we don't need to include them more than once. Things that insert actual HTML into the output were left calling include(). Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index a3394af..0f7b449 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -1,13 +1,13 @@
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
-include("config.inc");
+include_once("config.inc");
-require('Archive/Tar.php');
-require('Find.php');
+require_once('Archive/Tar.php');
+require_once('Find.php');
-include("aur.inc"); # access AUR common functions
-include("pkgfuncs.inc"); # package functions
+include_once("aur.inc"); # access AUR common functions
+include_once("pkgfuncs.inc"); # package functions
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in