Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
314 richard 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<HTML><!-- written by Rexy -->
3
<HEAD>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
<?
6
$bl_dir="/etc/dansguardian/lists/blacklists/";
7
# Choice of language
8
$Language = 'en';
9
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
10
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
11
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
12
if($Language == 'fr'){
13
  $l_title = "Catégories de la liste noire";
14
  $l_error_open_file="Erreur d'ouverture du fichier";
15
  $l_close="Fermer";
16
  $l_unknown_cat="Cette catégorie n'est pas décrite";
17
  $l_nb_domains="Nombre de noms de domaine filtrés :";
18
  $l_nb_urls="Nombre d'URL filtrés :";
19
  $l_explain_adult="test-français";
20
}
21
else {
22
  $l_title = "Blacklist categories";
23
  $l_error_open_file="Error opening the file";
24
  $l_close="Close";
25
  $l_unknown_cat="This category isn't describe";
26
  $l_nb_domains="Number of filtered domain names :";
27
  $l_nb_urls="Number of filtered URL :";
28
  $l_explain_adult="test-anglais";
29
}
30
if (isset($_GET['cat'])){$categorie=$_GET['cat'];} 
31
$bl_categorie_domain_file=$bl_dir.$categorie."/domains";
32
$bl_categorie_url_file=$bl_dir.$categorie."/urls";
33
if (file_exists($bl_categorie_domain_file))
34
	$nb_domains=exec ("wc -w $bl_categorie_domain_file|cut -d' ' -f1");
35
else
36
	$nb_domains=$l_error_openfilei." ".$bl_categorie_domain_file;
37
if (file_exists($bl_categorie_url_file))
38
	$nb_urls=exec ("wc -w $bl_categorie_url_file|cut -d' ' -f1");
39
else
40
	$nb_urls=$l_error_openfile." ".$bl_categorie_url_file;
41
echo "<TITLE>$l_title</TITLE>";
42
?>
43
<link rel="stylesheet" href="/css/style.css" type="text/css">
44
</HEAD>
45
<body>
46
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
47
	<tr><th><?php echo $categorie ;?></th></tr>
48
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
49
</TABLE>
50
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
51
<tr><td valign="middle" align="left">
52
<?php
53
if (!empty(${'l_explain_'.$categorie}))
54
	echo "${'l_explain_'.$categorie}";
55
else echo "$l_unknown_cat";
56
echo "<br>$l_nb_domains $nb_domains<br>";
57
echo "$l_nb_urls $nb_urls<br>";
58
?>
59
</td></tr>
60
</TABLE>
61
<br>
62
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
63
</BODY>
64
</HTML>