Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Dence <tyzoid.d@gmail.com>2018-06-19 13:42:59 -0400
committerTyler Dence <tyzoid.d@gmail.com>2018-06-19 13:42:59 -0400
commit9d5b807d4944fa05c68fd38be1f9705f40137238 (patch)
tree2945adcd6fa5a2cb8485060c2a2bc57b27fbb290
parent0f244f5cd391dcbf9d627f7dcb99ce54090fe858 (diff)
Changed requires to require_once's
-rw-r--r--buildmaster/blacklist.php4
-rw-r--r--buildmaster/build-list-links.php4
-rw-r--r--buildmaster/build-list.php6
-rw-r--r--buildmaster/build-slaves.php4
-rw-r--r--buildmaster/deletion-links.php4
-rw-r--r--buildmaster/dependencies.php4
-rw-r--r--buildmaster/gpg-keys.php4
-rw-r--r--buildmaster/index.php4
-rw-r--r--buildmaster/log.php4
-rw-r--r--buildmaster/mysql-issues.php4
-rw-r--r--buildmaster/statistics.php4
-rw-r--r--buildmaster/status.php2
-rw-r--r--buildmaster/to-delete.php4
-rw-r--r--buildmaster/todos.php2
-rw-r--r--lib/style.php3
-rw-r--r--mirrors/index.php6
-rw-r--r--mirrors/status.php4
-rw-r--r--packages/index.php6
-rw-r--r--packages/pkginfo.php6
19 files changed, 40 insertions, 39 deletions
diff --git a/buildmaster/blacklist.php b/buildmaster/blacklist.php
index ab9f89f..4757a6e 100644
--- a/buildmaster/blacklist.php
+++ b/buildmaster/blacklist.php
@@ -1,7 +1,7 @@
<?php
-require "../init.php"
+require_once "../init.php"
-require BASE . "/lib/mysql.php";
+require_once BASE . "/lib/mysql.php";
$result = mysql_run_query(
"SELECT DISTINCT `architectures`.`name` AS `architecture`,`package_sources`.`pkgbase`,`build_assignments`.`is_black_listed` " .
diff --git a/buildmaster/build-list-links.php b/buildmaster/build-list-links.php
index cbd41ef..3f924f8 100644
--- a/buildmaster/build-list-links.php
+++ b/buildmaster/build-list-links.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
$edges = "";
$knots = "";
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php
index e3f7339..4a1ecff 100644
--- a/buildmaster/build-list.php
+++ b/buildmaster/build-list.php
@@ -1,8 +1,8 @@
<?php
-require "../init.php";
+require_once "../init.php";
-require BASE . "/lib/mysql.php";
-require BASE . "/lib/style.php";
+require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/style.php";
if (isset($_GET["show"]))
$to_show=$_GET["show"];
diff --git a/buildmaster/build-slaves.php b/buildmaster/build-slaves.php
index e488f3c..978e99c 100644
--- a/buildmaster/build-slaves.php
+++ b/buildmaster/build-slaves.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
$result = mysql_run_query(
"SELECT" .
diff --git a/buildmaster/deletion-links.php b/buildmaster/deletion-links.php
index 32fa1b9..3f9af30 100644
--- a/buildmaster/deletion-links.php
+++ b/buildmaster/deletion-links.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
$edges = "";
$knots = "";
diff --git a/buildmaster/dependencies.php b/buildmaster/dependencies.php
index 7826b55..8eb4dc4 100644
--- a/buildmaster/dependencies.php
+++ b/buildmaster/dependencies.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
$match = "";
diff --git a/buildmaster/gpg-keys.php b/buildmaster/gpg-keys.php
index 9a43a87..a9cd564 100644
--- a/buildmaster/gpg-keys.php
+++ b/buildmaster/gpg-keys.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php"
-require BASE . "/lib/mysql.php";
+require_once "../init.php"
+require_once BASE . "/lib/mysql.php";
include "lib/mysql.php";
diff --git a/buildmaster/index.php b/buildmaster/index.php
index 0bd1e55..04ddca6 100644
--- a/buildmaster/index.php
+++ b/buildmaster/index.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
?>
<html>
diff --git a/buildmaster/log.php b/buildmaster/log.php
index 139f94c..effcb55 100644
--- a/buildmaster/log.php
+++ b/buildmaster/log.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php"
-require BASE . "/lib/mysql.php";
+require_once "../init.php"
+require_once BASE . "/lib/mysql.php";
$filter = "";
diff --git a/buildmaster/mysql-issues.php b/buildmaster/mysql-issues.php
index 02eb912..89e84e7 100644
--- a/buildmaster/mysql-issues.php
+++ b/buildmaster/mysql-issues.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php"
-include BASE . "/lib/mysql.php";
+require_once "../init.php"
+require_once BASE . "/lib/mysql.php";
if (isset($_GET["ignore-haskell"]))
$ignore = " AND `install_targets`.`name` NOT LIKE \"libHS%\"";
diff --git a/buildmaster/statistics.php b/buildmaster/statistics.php
index 56b4984..fbfedf4 100644
--- a/buildmaster/statistics.php
+++ b/buildmaster/statistics.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
if (isset($_GET["from"]))
$min_time="from_base64(\"" . base64_encode("-".$_GET["from"]) . "\")";
diff --git a/buildmaster/status.php b/buildmaster/status.php
index e129963..64b9f06 100644
--- a/buildmaster/status.php
+++ b/buildmaster/status.php
@@ -1,5 +1,5 @@
<?php
-require "../init.php";
+require_once "../init.php";
include BASE . "/lib/mysql.php";
include BASE . "/lib/style.php";
diff --git a/buildmaster/to-delete.php b/buildmaster/to-delete.php
index 8a7b7ef..6c5e547 100644
--- a/buildmaster/to-delete.php
+++ b/buildmaster/to-delete.php
@@ -1,6 +1,6 @@
<?php
-require "../init.php";
-require BASE . "/lib/mysql.php";
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
$result = mysql_run_query(
"SELECT " .
diff --git a/buildmaster/todos.php b/buildmaster/todos.php
index fa61a3f..b175350 100644
--- a/buildmaster/todos.php
+++ b/buildmaster/todos.php
@@ -1,5 +1,5 @@
<?php
-require "../init.php";
+require_once "../init.php";
include BASE . "/lib/mysql.php";
$result = mysql_run_query(
diff --git a/lib/style.php b/lib/style.php
index 4b6439b..8b84e0e 100644
--- a/lib/style.php
+++ b/lib/style.php
@@ -3,7 +3,8 @@
if (function_exists("print_header"))
return;
-require "lib/mysql.php";
+require_once "../init.php"
+require_once BASE . "/lib/mysql.php";
function print_header($title) {
?>
diff --git a/mirrors/index.php b/mirrors/index.php
index 114e03c..83b0f06 100644
--- a/mirrors/index.php
+++ b/mirrors/index.php
@@ -1,8 +1,8 @@
<?php
-require "../init.php";
+require_once "../init.php";
-require BASE . "/lib/mysql.php";
-require BASE . "/lib/style.php";
+require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/style.php";
$cutoff = 3600;
diff --git a/mirrors/status.php b/mirrors/status.php
index 9989d75..79ca3ee 100644
--- a/mirrors/status.php
+++ b/mirrors/status.php
@@ -1,7 +1,7 @@
<?php
-require "../init.php";
+require_once "../init.php";
-require BASE . "/lib/mysql.php";
+require_once BASE . "/lib/mysql.php";
$cutoff = 86400;
diff --git a/packages/index.php b/packages/index.php
index bb59503..fb88b22 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -1,8 +1,8 @@
<?php
-require "../init.php";
+require_once "../init.php";
-require BASE . "/lib/mysql.php";
-require BASE . "/lib/style.php";
+require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/style.php";
foreach (array("bugs","sort","del") as $expected_param)
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index e76bcec..b29d8cf 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -1,8 +1,8 @@
<?php
-require "../init.php"
+require_once "../init.php"
-require BASE . "/lib/mysql.php";
-require BASE . "/lib/style.php";
+require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/style.php";
$json_content = json_decode(
file_get_contents(