From 87fd2192e81a812f960f50e09feaf0778ecf5bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 28 Nov 2009 23:03:45 +0000 Subject: [PATCH] add http:// prefix in url display --- tools/alternc_get_path | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/alternc_get_path b/tools/alternc_get_path index f347825d..de3db962 100644 --- a/tools/alternc_get_path +++ b/tools/alternc_get_path @@ -4,7 +4,7 @@ path="$1" account=`echo "$path" | sed 's#/var/alternc/html/./##' | cut -d '/' -f 1` relpath=`echo "$path" | sed 's#/var/alternc/html/./[^/]*##'` -request="SELECT membres.login AS user, CONCAT(s.sub, '.', s.domaine, s.valeur) AS fqdn FROM sub_domaines s INNER JOIN membres ON s.compte=uid WHERE login='$account' AND s.type = 0 AND '$relpath' LIKE CONCAT(s.valeur,'%') ORDER BY sub ASC;" +request="SELECT membres.login AS user, CONCAT('http://', s.sub, '.', s.domaine, s.valeur) AS fqdn FROM sub_domaines s INNER JOIN membres ON s.compte=uid WHERE login='$account' AND s.type = 0 AND '$relpath' LIKE CONCAT(s.valeur,'%') ORDER BY sub ASC;" mysql --defaults-file=/etc/alternc/my.cnf -B -e "$request"