From 73c0500a045fb14aadcaa939a1620c168e8f118b Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 22 Feb 2015 11:34:14 -0500 Subject: move torrent/url list functions to functions.php --- (limited to 'site') diff --git a/site/download/index.php b/site/download/index.php index 1026dd9..f4c5753 100644 --- a/site/download/index.php +++ b/site/download/index.php @@ -20,6 +20,7 @@ diff --git a/site/download/oldtorrent/index.php b/site/download/oldtorrent/index.php index fb8e369..ad1ee76 100644 --- a/site/download/oldtorrent/index.php +++ b/site/download/oldtorrent/index.php @@ -20,6 +20,7 @@ diff --git a/site/functions.php b/site/functions.php new file mode 100644 index 0000000..e930638 --- /dev/null +++ b/site/functions.php @@ -0,0 +1,74 @@ + + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ +?> +=($forIndexStart+1)) && (count($arrayTorrentLink)>=$forIndexBelow)) { + for ($release=$forIndexStart; $release<$forIndexBelow; $release++) { +?> +

+

+ Released on . +

+ + +

No torrents found.

+ + + diff --git a/site/torrents.template.php b/site/torrents.template.php index c80861c..e15f0ee 100644 --- a/site/torrents.template.php +++ b/site/torrents.template.php @@ -16,41 +16,6 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -?> -=($forIndexStart+1)) && (count($arrayTorrentLink)>=$forIndexBelow)) { - for ($release=$forIndexStart; $release<$forIndexBelow; $release++) { -?> -

-

- Released on . -

-
    - -
  • - -
- -

No torrents found.

- -
    -0) { - for ($server=$forIndexStart; $server<$forIndexbelow; $server++) { -?> -
  • - -
  • - -
-