summaryrefslogtreecommitdiff
path: root/www/policy/index.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-17 22:28:58 +0100
committerBenny Baumann <BenBE@geshi.org>2013-01-18 00:25:04 +0100
commit4d2a86a3f71e982f261a68935b67e6a99cec514a (patch)
treeb5cfb932bf0a5b37e4700f9cc5efc8dbb0b374aa /www/policy/index.php
parentaba34728a556c0e83658b91bf425d9e9d3d7af81 (diff)
downloadcacert-devel-4d2a86a3f71e982f261a68935b67e6a99cec514a.tar.gz
cacert-devel-4d2a86a3f71e982f261a68935b67e6a99cec514a.tar.xz
cacert-devel-4d2a86a3f71e982f261a68935b67e6a99cec514a.zip
bug 1131: moved all php file from polcy to html and exchanged all the links
Diffstat (limited to 'www/policy/index.php')
-rw-r--r--www/policy/index.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/www/policy/index.php b/www/policy/index.php
index 7101c1f..1715bf9 100644
--- a/www/policy/index.php
+++ b/www/policy/index.php
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+*/
loadem("index");
showheader(_("CAcert - Policies"));
?>
@@ -23,17 +23,11 @@ showheader(_("CAcert - Policies"));
<ul>
<?php
-foreach (glob("*.html") as $filename)
+foreach (glob("*.html") as $filename)
{
- echo "<li><a href='$filename'>$filename</a></li>\n";
-}
-
-foreach (glob("*.php") as $filename)
-{
- if($filename != "index.php" && $filename != "NRPDisclaimerAndLicence.php")
- {
- echo "<li><a href='$filename'>$filename</a></li>\n";
- }
+ if($filename != "NRPDisclaimerAndLicence.html"){
+ echo "<li><a href='".htmlspecialchars($filename)."'>".htmlspecialchars($filename)."</a></li>\n";
+ }
}