website diff lib/i18n-info.php @ rev 1328
Add redirectors for links found on DistroWatch SliTaz page, thanks Erkan Yilmaz.
See his blog post: http://people.slitaz.org/~eyilmaz/blog/2018_06_08_redirect_old_urls.txt
See his blog post: http://people.slitaz.org/~eyilmaz/blog/2018_06_08_redirect_old_urls.txt
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jun 08 12:56:11 2018 +0300 (2018-06-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lib/i18n-info.php Fri Jun 08 12:56:11 2018 +0300 1.3 @@ -0,0 +1,15 @@ 1.4 +<?php 1.5 + 1.6 +// Build table with i18n info on the SliTaz projects 1.7 +function get_info() { 1.8 + $infofile = '/var/cache/slitaz/website/i18n.html'; 1.9 + if ( ! file_exists("$infofile")) { 1.10 + echo "Can't show info!\nSorry..."; 1.11 + } 1.12 + else { 1.13 + $content = file_get_contents("$infofile"); 1.14 + echo "$content"; 1.15 + } 1.16 +} 1.17 + 1.18 +?>