Commit 32591509 by netz.coop eG

Erzeugen einer Startseite mit den Links aus der Tabelle domains

1 parent f951c70b
<!DOCTYPE html>
<html lang="de">
<head>
<title>Die Startseite</title>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --><link rel="stylesheet" href="../include/libs/bootstrap-4.0.0/css/bootstrap.min.css" >
<link rel="stylesheet" href="../include/css/basic.css" >
</head>
<body>
<div class="container">
<div class="header">
<h1>Die Startseite</h1>
<h2>Grundschule Amshausen</h2></div>
<div class="wrapper">
<!-- Hallo -->
<a target="_tab" href="http://antolin.de">Antolin - Mit Lesen punkten!</a><br/>
Antolin.de - ideal für den Einsatz in der Schule (1. - 10. Klasse). Schüler/innen können selbstständig zu gelesenen Büchern Fragen beantworten und Punkte sammeln.<br/>
<a target="_tab" href="http://www.heise.de">heise online - IT-News, Nachrichten und Hintergründe
</a><br/>
News und Foren zu Computer, IT, Wissenschaft, Medien und Politik. Preisvergleich von Hardware und Software sowie Downloads bei Heise Medien.<br/>
......@@ -160,6 +160,7 @@ class Connectdb extends SQLite3
$h = 0;
while ($res = $result->fetchArray(SQLITE3_ASSOC)) {
foreach ($res as $key => $value) {
$ary_content[$h][$key] = '';
$ary_content[$h][$key] .= $value;
}
$h++;
......
......@@ -102,6 +102,7 @@ class Sytemoutput {
function start_index_html($array_url){
copy('./include/html_template/head.html.template', STARTHTML);
foreach($array_url as $key =>$url){
$http_url = 'http://'.$url['url'];
$ch = curl_init();
......@@ -124,15 +125,103 @@ class Sytemoutput {
$metas = $doc->getElementsByTagName('meta');
for ($i = 0; $i < $metas->length; $i++) {
//$description = '';
//$keywords = '';
$meta = $metas->item($i);
if($meta->getAttribute('name') == 'description') {
$description = $meta->getAttribute('content'); }
if($meta->getAttribute('name') == 'keywords') {
$keywords = $meta->getAttribute('content'); }
}
echo "Title: $title". '<br/><br/>';
echo "Beschreibung: $description". '<br/><br/>';
echo "Stichworte: $keywords". '<br/><br/>';
file_put_contents(STARTHTML,'<a target="_tab" href="'.$http_url.'">'.$title.'</a><br/>'. PHP_EOL ,FILE_APPEND);
//file_put_contents(STARTHTML, $title.'</a><br/><br/>'. PHP_EOL ,FILE_APPEND);
if ($description) {
file_put_contents(STARTHTML, $description.'<br/>'. PHP_EOL ,FILE_APPEND);
}
//file_put_contents(STARTHTML, $keywords.'<br/><br/>'. PHP_EOL ,FILE_APPEND);
echo "Title: $title". '<br/>';
echo "Beschreibung: $description". '<br/>';
//echo "Stichworte: $keywords". '<br/><br/>';
}
}
function test_html($array_url){
copy('./include/html_template/head.html.template', TESTHTML);
//print_r($array_url);
foreach($array_url as $key =>$url){
$http_url = 'http://'.$url['url'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $http_url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
print("\n" .$http_code. "\n");
$description = '';
$keywords = '';
//parsing begins here:
$doc = new DOMDocument();
@$doc->loadHTML($data);
$nodes = $doc->getElementsByTagName('title');
//get and display what you need:
$title = $nodes->item(0)->nodeValue;
$metas = $doc->getElementsByTagName('meta');
for ($i = 0; $i < $metas->length; $i++) {
$meta = $metas->item($i);
//echo "\n";
//echo $meta->getAttribute('name');
// echo "\n";
if($meta->getAttribute('name') == 'description') {
$description = $meta->getAttribute('content');
}
if($meta->getAttribute('name') == 'keywords') {
$keywords = $meta->getAttribute('content');
}
}
if ($http_code == 200) {
$b++;
if ($b % 2 === 0) {
file_put_contents(TESTHTML,'<div class="content_1">'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML,'<p><a target="_tab" href="'.$http_url.'">'.$title.'</a><br/>'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML, $description.'<br/>'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML, '</div>'. PHP_EOL ,FILE_APPEND);
}else{
file_put_contents(TESTHTML,'<div class="content_2">'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML,'<p><a target="_tab" href="'.$http_url.'">'.$title.'</a><br/>'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML, $description.'<br/>'. PHP_EOL ,FILE_APPEND);
file_put_contents(TESTHTML, '</div>'. PHP_EOL ,FILE_APPEND);
}
echo "Title: $title". "\n";
echo "Beschreibung: $description". "\n";
//echo "Stichworte: $keywords". "\n";
}
}
}
}
......@@ -12,3 +12,6 @@ define('DNSFILENAME', 'output/domain_fw.conf');
define('CRONFILENAME', 'output/close_fw_cron.conf');
define('SQLSORT', 'ORDER BY id DESC');
define('SQLGRPSORT', 'ORDER BY group_id DESC');
define('STARTHTML','./output/index.html');
define('TESTHTML','./output/test.html');
/*
# Apache configuration file (see httpd.apache.org/docs/2.2/mod/quickreference.html)
//# disable directory listing
*/
body{
background-color: #d0d5d8;
/* background-color: #ffffff; */
}
.content_1, .content_2 {
/* left: calc(50% - 150px); */
display: block;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
/* float: none; */
z-index: auto;
width: 80%;
/* height: 300px; */
/* position: static; */
cursor: default;
opacity: 1;
margin: 0;
padding: 0;
overflow: visible;
border: none;
-webkit-border-radius: 10px;
border-radius: 10px;
font: normal 16px/1 "Times New Roman", Times, serif;
color: rgba(000, 000,000,1);
text-align: left;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
/* background: #3fb2ff; */
-webkit-box-shadow: none;
box-shadow: none;
text-shadow: none;
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
-webkit-transform: none;
transform: none;
-webkit-transform-origin: 50% 50% 0;
transform-origin: 50% 50% 0;
}
.content_1 {
background-color: #eceeef;
}
.content_2 {
/* background-color: #daeeff; */
background-color: #eceeef;
}
\ No newline at end of file
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
INSERT INTO "domains" VALUES(0,'antolin.de','217.13.73.6',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(1,'zahlenzorro.de','217.13.73.99',0,0,1,1,'2017-05-19 14:30:16','0');
INSERT INTO "domains" VALUES(3,'#','10.8.11.10',0,0,1,1,'2017-05-19 14:30:41','0');
INSERT INTO "domains" VALUES(4,'bumblebee-englisch.de','217.13.73.99',0,0,1,1,'2017-05-19 15:42:45','0');
INSERT INTO "domains" VALUES(6,'blinde-kuh.de','194.195.10.105',0,0,1,1,'2017-05-19 15:56:00','0');
INSERT INTO "domains" VALUES(7,'denken-und-rechnen-interaktiv.de','217.13.73.156',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(8,'grundschuldiagnose.de','217.13.73.44',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(9,'checkeins.de','81.24.75.240',0,0,1,1,'2017-05-19 17:23:02','0');
INSERT INTO "domains" VALUES(10,'ndr.de','88.215.233.20',0,0,1,1,'2017-05-19 17:23:41','0');
INSERT INTO "domains" VALUES(11,'irt.de','193.96.226.140',0,0,1,1,'2017-05-19 17:23:47','0');
INSERT INTO "domains" VALUES(12,'daserste.de','81.24.75.240',0,0,1,1,'2017-05-19 17:24:24','0');
INSERT INTO "domains" VALUES(13,'tivi.de','91.197.29.51',0,0,1,1,'2017-05-19 17:24:31','0');
INSERT INTO "domains" VALUES(14,'sowieso.de','80.237.133.162',0,0,1,1,'2017-05-19 17:25:54','0');
INSERT INTO "domains" VALUES(15,'hamsterkiste.de','217.160.140.202',0,0,1,1,'2017-05-23 15:48:40','0');
INSERT INTO "domains" VALUES(16,'labbe.de','104.24.127.194',0,0,1,1,'2017-05-23 15:56:09','0');
INSERT INTO "domains" VALUES(17,'pedalpiraten.de','134.119.253.55',0,0,'on',1,'2017-05-23 15:57:26','0');
INSERT INTO "domains" VALUES(18,'gs-amshausen.de','212.48.97.137',0,0,1,1,'2017-05-23 16:02:16','0');
INSERT INTO "domains" VALUES(19,'fragfinn.de','188.64.58.118',0,0,1,1,'2017-06-13 13:42:31','0');
INSERT INTO "domains" VALUES(20,'www.labbe.de','104.24.127.194',0,0,1,1,'2017-06-13 13:43:03','0');
INSERT INTO "domains" VALUES(21,'pedalpiraten.de','134.119.130.3',0,0,1,1,'2017-06-13 13:45:13','0');
INSERT INTO "domains" VALUES(22,'labbe.de','104.24.126.194',0,0,1,1,'2017-06-13 14:03:49','0');
INSERT INTO "domains" VALUES(23,'wdrmaus.de','149.219.205.86',0,0,1,1,'2017-06-14 12:01:28','0');
INSERT INTO "domains" VALUES(24,'kinder-tierlexikon.de','217.160.0.170',0,0,1,1,'2017-06-16 07:57:36','0');
INSERT INTO "domains" VALUES(25,'cismar.de','217.160.0.170',0,0,1,1,'2017-06-16 08:24:11','0');
INSERT INTO "domains" VALUES(26,'haustier-welt.de','80.67.17.68',0,0,1,1,'2017-06-16 08:26:16','0');
INSERT INTO "domains" VALUES(27,'googleapis.com','172.217.17.132',0,0,1,1,'2017-06-16 08:26:29','0');
INSERT INTO "domains" VALUES(28,'gstatic.com','172.217.17.131',0,0,1,1,'2017-06-16 08:31:03','0');
INSERT INTO "domains" VALUES(29,'www.tierfreund.de','212.102.225.29',0,0,'on',1,'2017-06-16 08:31:19','0');
INSERT INTO "domains" VALUES(30,'bauernhof.net','212.101.201.173',0,0,'on',1,'2017-06-16 08:31:35','0');
INSERT INTO "domains" VALUES(31,'wolf-kinderclub.de','81.169.145.170',0,0,'on',1,'2017-06-16 08:32:47','0');
INSERT INTO "domains" VALUES(32,'dinosaurier-interesse.de','217.160.233.25',0,0,'on',1,'2017-06-16 08:35:24','0');
INSERT INTO "domains" VALUES(33,'tigerente.de','212.62.195.70',0,0,'on',1,'2017-06-16 08:36:09','0');
INSERT INTO "domains" VALUES(34,'geo.de','194.12.193.169',0,0,'on',1,'2017-06-16 08:38:18','0');
INSERT INTO "domains" VALUES(35,'greenpeace.de','195.137.170.58',0,0,'on',1,'2017-06-16 08:41:43','0');
INSERT INTO "domains" VALUES(36,'naturdetektive.de','82.97.165.211',0,0,'on',1,'2017-06-16 08:45:04','0');
INSERT INTO "domains" VALUES(37,'naturfreundejugend.de','212.227.250.211',0,0,'on',1,'2017-06-16 08:46:02','0');
INSERT INTO "domains" VALUES(38,'nabu.de','89.146.224.244',0,0,'on',1,'2017-06-16 08:46:52','0');
INSERT INTO "domains" VALUES(39,'nabu-netz.de','89.146.224.250',0,0,'on',1,'2017-06-16 08:48:03','0');
INSERT INTO "domains" VALUES(40,'floribelle.com','134.119.45.38',0,0,1,1,'2017-06-16 08:48:14','0');
INSERT INTO "domains" VALUES(41,'leute.server.de','192.44.1.3',0,0,1,1,'2017-06-16 08:58:11','0');
INSERT INTO "domains" VALUES(42,'buecherwuermchen.de','89.31.143.16',0,0,1,1,'2017-06-16 09:07:49','0');
INSERT INTO "domains" VALUES(43,'detektiv-club.de','81.169.145.94',0,0,1,1,'2017-06-16 09:08:12','0');
INSERT INTO "domains" VALUES(44,'kaestnerfuerkinder.net','85.13.142.175',0,0,'on',1,'2017-06-16 09:09:36','0');
INSERT INTO "domains" VALUES(45,'stuttgart.de','91.208.45.221',0,0,'on',1,'2017-06-16 09:10:09','0');
INSERT INTO "domains" VALUES(46,'i.ytimg.com','172.217.17.142',0,0,'on',1,'2017-06-16 09:15:12','0');
INSERT INTO "domains" VALUES(47,'karl-may-museum.de','87.106.3.199',0,0,'on',1,'2017-06-16 09:16:08','0');
INSERT INTO "domains" VALUES(48,'kinderlexikon.de','81.169.145.67',0,0,'on',1,'2017-06-16 09:16:48','0');
INSERT INTO "domains" VALUES(49,'literaturwerkstatt.at','185.15.192.137',0,0,'on',1,'2017-06-16 09:18:19','0');
INSERT INTO "domains" VALUES(50,'bootstrapcdn.com','174.129.25.170',0,0,'on',1,'2017-06-16 09:18:51','0');
INSERT INTO "domains" VALUES(51,'efraimstochter.de','85.214.197.30',0,0,1,1,'2017-06-16 09:23:03','0');
INSERT INTO "domains" VALUES(52,'maerchen.com','85.13.154.174',0,0,'on',1,'2017-06-16 09:23:31','0');
INSERT INTO "domains" VALUES(53,'jolinchen.de','217.110.254.205',0,0,'on',1,'2017-06-16 09:24:00','0');
INSERT INTO "domains" VALUES(54,'onkokids.de','212.227.247.131',0,0,'on',1,'2017-06-16 09:29:57','0');
INSERT INTO "domains" VALUES(55,'grundschule-friedrichsfehn.de','212.12.48.72',0,0,'on',1,'2017-06-16 09:30:43','0');
INSERT INTO "domains" VALUES(56,'kinderbuchforum.de','217.160.231.112',0,0,'on',1,'2017-06-16 09:34:29','0');
INSERT INTO "domains" VALUES(57,'internet-abc.de','31.172.95.221',0,0,'on',1,'2017-06-16 09:38:01','0');
INSERT INTO "domains" VALUES(58,'kindernetz.de','217.66.32.25',0,0,'on',1,'2017-06-16 10:05:52','0');
INSERT INTO "domains" VALUES(59,'pdodswr-a.akamaihd.net','84.53.142.83',0,0,1,1,'2017-06-16 10:11:34','0');
INSERT INTO "domains" VALUES(60,'pdodswr-a.akamaihd.net','84.53.142.28',0,0,1,1,'2017-06-16 10:12:50','0');
INSERT INTO "domains" VALUES(61,'p.jwpcdn.com','93.184.221.48',0,0,1,1,'2017-06-16 10:13:16','0');
INSERT INTO "domains" VALUES(62,'kidstation.de','195.82.66.213',0,0,1,1,'2017-06-16 10:14:33','0');
INSERT INTO "domains" VALUES(63,'kidsville.de','85.25.66.34',0,0,1,1,'2017-06-16 10:16:12','0');
INSERT INTO "domains" VALUES(64,'internauten.de','78.47.185.197',0,0,1,1,'2017-06-16 10:17:23','0');
INSERT INTO "domains" VALUES(65,'klassewasser.de','217.9.40.133',0,0,1,1,'2017-06-16 10:20:44','0');
INSERT INTO "domains" VALUES(66,'esa.int','185.30.93.10',0,0,1,1,'2017-06-16 10:21:27','0');
INSERT INTO "domains" VALUES(67,'kidsweb.at','217.149.229.103',0,0,1,1,'2017-06-16 10:24:22','0');
INSERT INTO "domains" VALUES(68,'kidsweb.wien','217.149.229.103',0,0,1,1,'2017-06-16 10:25:39','0');
INSERT INTO "domains" VALUES(69,'baeren-blatt.de','85.10.213.107',0,0,1,1,'2017-06-16 10:25:46','0');
INSERT INTO "domains" VALUES(70,'helles-koepfchen.de','195.200.192.32',0,0,1,1,'2017-06-16 10:26:34','0');
INSERT INTO "domains" VALUES(71,'klick-tipps.net','134.93.175.20',0,0,1,1,'2017-06-16 10:27:14','0');
INSERT INTO "domains" VALUES(72,'lilipuz.de','149.219.205.67',0,0,1,1,'2017-06-16 10:30:45','0');
COMMIT;
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE domains (id INTEGER PRIMARY KEY UNIQUE, url TEXT NOT NULL, ip TEXT NOT NULL, priority INT DEFAULT (0), intern BOOLEAN DEFAULT (0), enable BOOLEAN DEFAULT (1), childlvl INT DEFAULT (4), updated DATETIME, updatedby TEXT);
INSERT INTO "domains" VALUES(0,'antolin.de','217.13.73.6',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(1,'zahlenzorro.de','217.13.73.99',0,0,1,1,'2017-05-19 14:30:16','0');
INSERT INTO "domains" VALUES(3,'#','10.8.11.10',0,0,1,1,'2017-05-19 14:30:41','0');
INSERT INTO "domains" VALUES(4,'bumblebee-englisch.de','217.13.73.99',0,0,1,1,'2017-05-19 15:42:45','0');
INSERT INTO "domains" VALUES(6,'blinde-kuh.de','194.195.10.105',0,0,1,1,'2017-05-19 15:56:00','0');
INSERT INTO "domains" VALUES(7,'denken-und-rechnen-interaktiv.de','217.13.73.156',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(8,'grundschuldiagnose.de','217.13.73.44',0,0,1,1,NULL,NULL);
INSERT INTO "domains" VALUES(9,'checkeins.de','81.24.75.240',0,0,1,1,'2017-05-19 17:23:02','0');
INSERT INTO "domains" VALUES(10,'ndr.de','88.215.233.20',0,0,1,1,'2017-05-19 17:23:41','0');
INSERT INTO "domains" VALUES(11,'irt.de','193.96.226.140',0,0,1,1,'2017-05-19 17:23:47','0');
INSERT INTO "domains" VALUES(12,'daserste.de','81.24.75.240',0,0,1,1,'2017-05-19 17:24:24','0');
INSERT INTO "domains" VALUES(13,'tivi.de','91.197.29.51',0,0,1,1,'2017-05-19 17:24:31','0');
INSERT INTO "domains" VALUES(14,'sowieso.de','80.237.133.162',0,0,1,1,'2017-05-19 17:25:54','0');
INSERT INTO "domains" VALUES(15,'hamsterkiste.de','217.160.140.202',0,0,1,1,'2017-05-23 15:48:40','0');
INSERT INTO "domains" VALUES(16,'labbe.de','104.24.127.194',0,0,1,1,'2017-05-23 15:56:09','0');
INSERT INTO "domains" VALUES(17,'pedalpiraten.de','134.119.253.55',0,0,'on',1,'2017-05-23 15:57:26','0');
INSERT INTO "domains" VALUES(18,'gs-amshausen.de','212.48.97.137',0,0,1,1,'2017-05-23 16:02:16','0');
INSERT INTO "domains" VALUES(19,'fragfinn.de','188.64.58.118',0,0,1,1,'2017-06-13 13:42:31','0');
INSERT INTO "domains" VALUES(20,'www.labbe.de','104.24.127.194',0,0,1,1,'2017-06-13 13:43:03','0');
INSERT INTO "domains" VALUES(21,'pedalpiraten.de','134.119.130.3',0,0,1,1,'2017-06-13 13:45:13','0');
INSERT INTO "domains" VALUES(22,'labbe.de','104.24.126.194',0,0,1,1,'2017-06-13 14:03:49','0');
INSERT INTO "domains" VALUES(23,'wdrmaus.de','149.219.205.86',0,0,1,1,'2017-06-14 12:01:28','0');
INSERT INTO "domains" VALUES(24,'kinder-tierlexikon.de','217.160.0.170',0,0,1,1,'2017-06-16 07:57:36','0');
INSERT INTO "domains" VALUES(25,'cismar.de','217.160.0.170',0,0,1,1,'2017-06-16 08:24:11','0');
INSERT INTO "domains" VALUES(26,'haustier-welt.de','80.67.17.68',0,0,1,1,'2017-06-16 08:26:16','0');
INSERT INTO "domains" VALUES(27,'googleapis.com','172.217.17.132',0,0,1,1,'2017-06-16 08:26:29','0');
INSERT INTO "domains" VALUES(28,'gstatic.com','172.217.17.131',0,0,1,1,'2017-06-16 08:31:03','0');
INSERT INTO "domains" VALUES(29,'www.tierfreund.de','212.102.225.29',0,0,'on',1,'2017-06-16 08:31:19','0');
INSERT INTO "domains" VALUES(30,'bauernhof.net','212.101.201.173',0,0,'on',1,'2017-06-16 08:31:35','0');
INSERT INTO "domains" VALUES(31,'wolf-kinderclub.de','81.169.145.170',0,0,'on',1,'2017-06-16 08:32:47','0');
INSERT INTO "domains" VALUES(32,'dinosaurier-interesse.de','217.160.233.25',0,0,'on',1,'2017-06-16 08:35:24','0');
INSERT INTO "domains" VALUES(33,'tigerente.de','212.62.195.70',0,0,'on',1,'2017-06-16 08:36:09','0');
INSERT INTO "domains" VALUES(34,'geo.de','194.12.193.169',0,0,'on',1,'2017-06-16 08:38:18','0');
INSERT INTO "domains" VALUES(35,'greenpeace.de','195.137.170.58',0,0,'on',1,'2017-06-16 08:41:43','0');
INSERT INTO "domains" VALUES(36,'naturdetektive.de','82.97.165.211',0,0,'on',1,'2017-06-16 08:45:04','0');
INSERT INTO "domains" VALUES(37,'naturfreundejugend.de','212.227.250.211',0,0,'on',1,'2017-06-16 08:46:02','0');
INSERT INTO "domains" VALUES(38,'nabu.de','89.146.224.244',0,0,'on',1,'2017-06-16 08:46:52','0');
INSERT INTO "domains" VALUES(39,'nabu-netz.de','89.146.224.250',0,0,'on',1,'2017-06-16 08:48:03','0');
INSERT INTO "domains" VALUES(40,'floribelle.com','134.119.45.38',0,0,1,1,'2017-06-16 08:48:14','0');
INSERT INTO "domains" VALUES(41,'leute.server.de','192.44.1.3',0,0,1,1,'2017-06-16 08:58:11','0');
INSERT INTO "domains" VALUES(42,'buecherwuermchen.de','89.31.143.16',0,0,1,1,'2017-06-16 09:07:49','0');
INSERT INTO "domains" VALUES(43,'detektiv-club.de','81.169.145.94',0,0,1,1,'2017-06-16 09:08:12','0');
INSERT INTO "domains" VALUES(44,'kaestnerfuerkinder.net','85.13.142.175',0,0,'on',1,'2017-06-16 09:09:36','0');
INSERT INTO "domains" VALUES(45,'stuttgart.de','91.208.45.221',0,0,'on',1,'2017-06-16 09:10:09','0');
INSERT INTO "domains" VALUES(46,'i.ytimg.com','172.217.17.142',0,0,'on',1,'2017-06-16 09:15:12','0');
INSERT INTO "domains" VALUES(47,'karl-may-museum.de','87.106.3.199',0,0,'on',1,'2017-06-16 09:16:08','0');
INSERT INTO "domains" VALUES(48,'kinderlexikon.de','81.169.145.67',0,0,'on',1,'2017-06-16 09:16:48','0');
INSERT INTO "domains" VALUES(49,'literaturwerkstatt.at','185.15.192.137',0,0,'on',1,'2017-06-16 09:18:19','0');
INSERT INTO "domains" VALUES(50,'bootstrapcdn.com','174.129.25.170',0,0,'on',1,'2017-06-16 09:18:51','0');
INSERT INTO "domains" VALUES(51,'efraimstochter.de','85.214.197.30',0,0,1,1,'2017-06-16 09:23:03','0');
INSERT INTO "domains" VALUES(52,'maerchen.com','85.13.154.174',0,0,'on',1,'2017-06-16 09:23:31','0');
INSERT INTO "domains" VALUES(53,'jolinchen.de','217.110.254.205',0,0,'on',1,'2017-06-16 09:24:00','0');
INSERT INTO "domains" VALUES(54,'onkokids.de','212.227.247.131',0,0,'on',1,'2017-06-16 09:29:57','0');
INSERT INTO "domains" VALUES(55,'grundschule-friedrichsfehn.de','212.12.48.72',0,0,'on',1,'2017-06-16 09:30:43','0');
INSERT INTO "domains" VALUES(56,'kinderbuchforum.de','217.160.231.112',0,0,'on',1,'2017-06-16 09:34:29','0');
INSERT INTO "domains" VALUES(57,'internet-abc.de','31.172.95.221',0,0,'on',1,'2017-06-16 09:38:01','0');
INSERT INTO "domains" VALUES(58,'kindernetz.de','217.66.32.25',0,0,'on',1,'2017-06-16 10:05:52','0');
INSERT INTO "domains" VALUES(59,'pdodswr-a.akamaihd.net','84.53.142.83',0,0,1,1,'2017-06-16 10:11:34','0');
INSERT INTO "domains" VALUES(60,'pdodswr-a.akamaihd.net','84.53.142.28',0,0,1,1,'2017-06-16 10:12:50','0');
INSERT INTO "domains" VALUES(61,'p.jwpcdn.com','93.184.221.48',0,0,1,1,'2017-06-16 10:13:16','0');
INSERT INTO "domains" VALUES(62,'kidstation.de','195.82.66.213',0,0,1,1,'2017-06-16 10:14:33','0');
INSERT INTO "domains" VALUES(63,'kidsville.de','85.25.66.34',0,0,1,1,'2017-06-16 10:16:12','0');
INSERT INTO "domains" VALUES(64,'internauten.de','78.47.185.197',0,0,1,1,'2017-06-16 10:17:23','0');
INSERT INTO "domains" VALUES(65,'klassewasser.de','217.9.40.133',0,0,1,1,'2017-06-16 10:20:44','0');
INSERT INTO "domains" VALUES(66,'esa.int','185.30.93.10',0,0,1,1,'2017-06-16 10:21:27','0');
INSERT INTO "domains" VALUES(67,'kidsweb.at','217.149.229.103',0,0,1,1,'2017-06-16 10:24:22','0');
INSERT INTO "domains" VALUES(68,'kidsweb.wien','217.149.229.103',0,0,1,1,'2017-06-16 10:25:39','0');
INSERT INTO "domains" VALUES(69,'baeren-blatt.de','85.10.213.107',0,0,1,1,'2017-06-16 10:25:46','0');
INSERT INTO "domains" VALUES(70,'helles-koepfchen.de','195.200.192.32',0,0,1,1,'2017-06-16 10:26:34','0');
INSERT INTO "domains" VALUES(71,'klick-tipps.net','134.93.175.20',0,0,1,1,'2017-06-16 10:27:14','0');
INSERT INTO "domains" VALUES(72,'lilipuz.de','149.219.205.67',0,0,1,1,'2017-06-16 10:30:45','0');
COMMIT;
</div>
<div class="footer">
<small>ncfilters powered by netz.coop eG</small>
<!DOCTYPE html>
<html lang="de">
<head><!-- Required meta tags -->
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --><link rel="stylesheet" href="../include/libs/bootstrap-4.0.0/css/bootstrap.min.css" >
<link rel="stylesheet" href="../include/css/basic.css" >
</head>
<body><div class="container"><div class="header">
<a href="https://netz.coop"><img class="logo" src="../include/images/logo.png" alt="logo" /></a>
<h1>NCFilters</h1> </div>
<div id="loginbox">
<div class="wrapper">
<form class="form-signin" action="./" method="post">
<fieldset>
<p>
<input type="text" id="username" name="username" placeholder="Name" value="" maxlength="20" />
</p>
<p>
<input type="password" id="password" name="password" placeholder="Passwort" value="" maxlength="20" />
</p>
<p>
<input type="hidden" name="form_token" value="<?php echo $form_token; ?>" /><input class="btn btn-primary btn-sm " type="submit" value="&#10149; Login" title="Login"> </p>
</fieldset>
</form>
</div>
</div><div class="footer">
<small>ncfilters powered by netz.coop eG</small>
</div></div></body>
\ No newline at end of file
<!DOCTYPE html>
<html lang="de">
<head>
<title>Die Startseite</title>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --><link rel="stylesheet" href="../include/libs/bootstrap-4.0.0/css/bootstrap.min.css" >
<!-- <link rel="stylesheet" href="../include/css/basic.css" > -->
<link rel="stylesheet" href="../include/css/start.css" >
</head>
<body>
<div class="container">
<div class="header">
<h1>Die Startseite</h1>
<h2>Grundschule Amshausen</h2></div>
<!-- Hallo -->
......@@ -3,6 +3,72 @@
-t nat -A OPEN -j ACCEPT
-t nat -N BLOCK
-t nat -F BLOCK
-t nat -A BLOCK -i eth1 -d 217.13.73.6 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 193.99.144.80 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 40.118.6.229 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 10.8.11.10 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.13.73.99 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 194.195.10.105 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.13.73.156 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.13.73.44 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 81.24.75.240 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 88.215.233.20 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 193.96.226.140 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 91.197.29.51 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 80.237.133.162 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.160.140.202 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 104.24.127.194 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 134.119.253.55 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.48.97.137 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 188.64.58.118 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 134.119.130.3 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 104.24.126.194 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 149.219.205.86 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.160.0.170 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 80.67.17.68 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 172.217.17.132 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 172.217.17.131 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.102.225.29 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.101.201.173 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 81.169.145.170 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.160.233.25 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.62.195.70 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 194.12.193.169 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 195.137.170.58 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 82.97.165.211 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.227.250.211 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 89.146.224.244 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 89.146.224.250 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 134.119.45.38 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 192.44.1.3 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 89.31.143.16 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 81.169.145.94 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 85.13.142.175 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 91.208.45.221 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 172.217.17.142 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 87.106.3.199 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 81.169.145.67 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 185.15.192.137 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 174.129.25.170 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 85.214.197.30 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 85.13.154.174 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.110.254.205 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.227.247.131 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 212.12.48.72 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.160.231.112 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 31.172.95.221 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.66.32.25 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 84.53.142.83 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 84.53.142.28 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 93.184.221.48 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 195.82.66.213 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 85.25.66.34 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 78.47.185.197 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.9.40.133 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 185.30.93.10 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 217.149.229.103 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 85.10.213.107 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 195.200.192.32 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 134.93.175.20 -j ACCEPT
-t nat -A BLOCK -i eth1 -d 149.219.205.67 -j ACCEPT
-t nat -A BLOCK -i eth1 -m multiport -p tcp --dports 80,443,8080 -j DNAT --to-destination 10.8.11.10
<!DOCTYPE html>
<html lang="DE_de">
<html lang="de">
<head>
<title>Die Startseite</title>
<head><!-- Required meta tags -->
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --><link rel="stylesheet" href="../include/libs/bootstrap-4.0.0/css/bootstrap.min.css" >
<link rel="stylesheet" href="../include/css/basic.css" >
......@@ -9,15 +9,11 @@
<body>
<div class="container">
<div class="header">
<!-- <a href="https://netz.coop"><img class="logo" src="../include/images/logo.png" alt="logo" /></a> -->
<h1>Die Startseite</h1>
<h2>Grundschule Amshausen</h2></div>
<div class="wrapper">
</div></div>Title: heise online - IT-News, Nachrichten und Hintergründe
<br/><br/>Description: News und Foren zu Computer, IT, Wissenschaft, Medien und Politik. Preisvergleich von Hardware und Software sowie Downloads bei Heise Medien.<br/><br/>Keywords: heise online, c't, iX, Technology Review, Newsticker, Telepolis, Security, Netze<br/><br/>Title: Aktuelle Nachrichten online - FAZ.NET<br/><br/>Description: News, Nachrichten und aktuelle Meldungen aus allen Ressorts. Politik, Wirtschaft, Sport, Feuilleton und Finanzen im Überblick.<br/><br/>Keywords: News, Politik, Wirtschaft, Gesellschaft, Finanzen, Sport, Feuilleton, Technik & Motor, Wissen, Reise, Beruf & Chance, Rhein-Main<br/><br/>
<!-- -->
</div>
<div class="footer">
<small>ncfilters powered by netz.coop eG</small>
</div></div></body>
\ No newline at end of file
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
require_once './include/configure.php';
require_once './include/classes/Connectdb.php';
require_once './include/classes/Sytemoutput.php';
$db = new Connectdb();
//$array_domains = [];
$array_domains = $db->getdomains();
// = array(
// "url" => "google.de",
//);
/**
$array_domains[0]["url"] = '';
$array_domains[0]["url"] .= "antolin.de";
$array_domains[1]["url"] = '';
$array_domains[1]["url"] .= "www.heise.de";
$array_domains[2]["url"] = '';
$array_domains[2]["url"] .= "kidsweb.wien";
**/
$sysout = new Sytemoutput();
$sysout->test_html($array_domains);
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!