From 52b5f37d936f2e4d953a2977a31ce6167508f44d Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 31 May 2015 17:02:03 -0400 Subject: move common resources to common/ --- (limited to 'site/functions.php') diff --git a/site/functions.php b/site/functions.php deleted file mode 100644 index e0cda47..0000000 --- a/site/functions.php +++ /dev/null @@ -1,77 +0,0 @@ - - - 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 . -*/ - -/* Functions */ - - /* Minified HTML output (note: needs work for
 tags) */
-	function miniHtml($strHtml) {
-		return $strHtml = preg_replace(
-			array("/\r|\n/", "/(\s)+/s", "/\>[^\S ]+/s", "/[^\S ]+\", "<"),
-			$strHtml
-		);
-	}
-
-	/* Minified CSS output */
-	function miniCss($strCss) {
-		return preg_replace("/\r|\n/", "", $strCss);
-	}
-
-	/* Generic function for showing a list of URLs */
-	function mirrorList($arrayMirrors,$strNotFoundMessage,$forIndexStart,$forIndexbelow) {
-
-		if (count($arrayMirrors)>0) {
-			for ($server=$forIndexStart; $server<$forIndexbelow; $server++) {
-?>
-				

()

- -

-0 && ($forIndexStart<=count($arrayRsync)-1) - && ($forIndexBelow<=count($arrayRsync)) && ($forIndexStart<=$forIndexBelow)) { - - for ($server=$forIndexStart; $server<$forIndexBelow; $server++) { -?> -

- -

-

- rsync -avxP --delete --stats /path/to/docroot/libreboot/ -

- -

- -

- -- cgit v0.9.1