Revize 571
Přidáno uživatelem harryhk před téměř 15 roky(ů)
freenetis/trunk/kohana/media/download/10.107 | ||
---|---|---|
$ORIGIN .
|
||
$TTL 86400 ; (1 day)
|
||
37.107.10.in-addr.arpa IN SOA charon.hkfree.org. pmv.root.hkfree.org. (
|
||
2009121200 ; serial
|
||
28800 ; refresh (8 hours)
|
||
7200 ; retry (2 hours)
|
||
604800 ; expire (1 week)
|
||
86400 ; minimum (1 day)
|
||
)
|
||
NS ns.hkfree.org.
|
||
NS ns2.hkfree.org.
|
||
$ORIGIN 37.107.10.in-addr.arpa.
|
||
$TTL 86400
|
||
|
||
1 PTR kocourkov.hkfree.org.
|
||
101 PTR pepa.kocourkov.hkfree.org.
|
||
102 PTR pepa.kocourkov.hkfree.org.
|
||
129 PTR kocourkov.hkfree.org.
|
||
130 PTR pepa2.kocourkov.hkfree.org.
|
||
150 PTR karel.kocourkov.hkfree.org.
|
||
151 PTR karel.kocourkov.hkfree.org.
|
||
95 PTR pepa2.kocourkov.hkfree.org.
|
||
freenetis/trunk/kohana/media/download/dhcpd.conf | ||
---|---|---|
boot-unknown-clients false;
|
||
one-lease-per-client true;
|
||
default-lease-time 2400;
|
||
max-lease-time 7200;
|
||
option domain-name-servers 10.107.4.100, 10.107.4.129, 10.107.3.1;
|
||
option domain-name "hkfree.org";
|
||
authoritative;
|
||
|
||
subnet 10.107.37.0 netmask 255.255.255.128 {
|
||
option routers 10.107.37.1;
|
||
option broadcast-address 10.107.37.127;
|
||
group {
|
||
host pepa2-1 {
|
||
hardware ethernet 00:00:00:00:11:23;
|
||
fixed-address 10.107.37.95;
|
||
}
|
||
host pepa-2 {
|
||
hardware ethernet 12:34:56:78:9a:bc;
|
||
fixed-address 10.107.37.101;
|
||
}
|
||
host pepa-3 {
|
||
hardware ethernet 00:00:00:00:11:22;
|
||
fixed-address 10.107.37.102;
|
||
}
|
||
}
|
||
}
|
||
|
||
freenetis/trunk/kohana/media/download/hkfree.org | ||
---|---|---|
$ORIGIN kocourkov.hkfree.org.
|
||
$TTL 86400 ; (1 day)
|
||
kocourkov.hkfree.org. IN SOA charon.hkfree.org. pmv.root.hkfree.org. (
|
||
2009121400 ; serial
|
||
28800 ; refresh (8 hours)
|
||
7200 ; retry (2 hours)
|
||
604800 ; expire (1 week)
|
||
86400 ; minimum (1 day)
|
||
)
|
||
NS ns.hkfree.org.
|
||
NS ns2.hkfree.org.
|
||
MX 10 relay.hkfree.org.
|
||
|
||
|
||
A 10.107.37.1
|
||
pepa2 A 10.107.37.95
|
||
pepa A 10.107.37.101
|
||
pepa A 10.107.37.102
|
||
A 10.107.37.129
|
||
pepa2 A 10.107.37.130
|
||
karel A 10.107.37.150
|
||
karel A 10.107.37.151
|
||
A 10.107.137.1
|
||
A 10.107.137.129
|
||
freenetis/trunk/kohana/media/download/download.php | ||
---|---|---|
<?php
|
||
$file = urldecode ($_GET['file']);
|
||
$path_parts = pathinfo ($file);
|
||
|
||
header("Content-Disposition: attachment; filename=" . urlencode($path_parts['basename']));
|
||
header("Content-Type: application/force-download");
|
||
header("Content-Type: application/octet-stream");
|
||
header("Content-Type: application/download");
|
||
header("Content-Description: File Transfer");
|
||
header("Content-Length: " . filesize($file));
|
||
|
||
readfile($file);
|
||
?>
|
freenetis/trunk/kohana/media/download/mac_restriction.sh | ||
---|---|---|
#!/bin/sh
|
||
iptables -F FORWARD
|
||
|
||
#pepa
|
||
iptables -I FORWARD -m mac --mac-source 00:00:00:00:11:22 -j REJECT
|
||
iptables -I FORWARD -s 10.107.37.102 -m mac --mac-source 00:00:00:00:11:22 -j ACCEPT
|
||
|
||
#pepa2
|
||
iptables -I FORWARD -m mac --mac-source 00:00:00:00:11:23 -j REJECT
|
||
iptables -I FORWARD -s 10.107.37.95 -m mac --mac-source 00:00:00:00:11:23 -j ACCEPT
|
||
|
||
#pepa
|
||
iptables -I FORWARD -m mac --mac-source 12:34:56:78:9a:bc -j REJECT
|
||
iptables -I FORWARD -s 10.107.37.101 -m mac --mac-source 12:34:56:78:9a:bc -j ACCEPT
|
||
|
||
freenetis/trunk/kohana/application/views/redirection.php | ||
---|---|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<title><?php echo $title ?> | <?php echo $this->setting->title ?></title>
|
||
<?php echo str_replace('https', 'http', html::stylesheet('media/css/style.css', 'screen')) ?>
|
||
<style type="text/css">
|
||
#content-padd h2 {text-align: center; margin: 10px 0px;}
|
||
#content-padd h3 {margin: 10px 0px;}
|
||
#content-padd li {margin-left: 20px;}
|
||
#content-padd a {font-weight: bold;}
|
||
td {width: 100px;}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<div id="main">
|
||
<div id="header">
|
||
<h1><span>FreeNetIS</span></h1>
|
||
<div class="status">
|
||
<?php // echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
|
||
</div>
|
||
<div class="map"></div>
|
||
</div>
|
||
|
||
<div id="middle">
|
||
<div id="menu">
|
||
<div id="menu-padd">
|
||
<h2><?php echo url_lang::lang('texts.Information about you') ?></h2>
|
||
<table>
|
||
<tr>
|
||
<td class="orange"><span style="color:red"><?php echo url_lang::lang('texts.IP address').':' ?></span></td>
|
||
<td class="bold"><span style="color:red"><?php echo server::remote_addr() ?></span></td>
|
||
</tr>
|
||
<?php if (!empty($member_name)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Member').':' ?></td>
|
||
<td class="bold"><?php echo $member_name ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($login)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Login name').':' ?></td>
|
||
<td class="bold"><?php echo $login ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($subnet_name)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Subnet').':' ?></td>
|
||
<td class="bold"><?php echo $subnet_name ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php foreach ($device_admins as $admin) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Admin').':' ?></td>
|
||
<td class="bold"><?php echo $admin->name.' '.$admin->surname ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php foreach ($device_engineers as $engineer) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Engineer').':' ?></td>
|
||
<td class="bold"><?php echo $engineer->name.' '.$engineer->surname ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
||
<br />
|
||
<?php echo html::anchor(url_lang::base().'login', url_lang::lang('texts.Log in to Freenetis system'))?>
|
||
<br />
|
||
<br />
|
||
<h2><?php echo url_lang::lang('texts.Contact information')?></h2>
|
||
<?php echo $this->setting->contact ?>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="content">
|
||
<div id="content-padd" style="margin:10px">
|
||
<?php echo $content ?>
|
||
<?php if ($continue != 0) { ?>
|
||
<br /><br />
|
||
<?php echo html::anchor(url_lang::base().'redirect/cancel/'.$continue, url_lang::lang('texts.I accept this message and I want to cancel this redirection.'))?>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="clear"></div>
|
||
</div>
|
||
|
||
<div id="footer">
|
||
<div id="footer-padd">
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|
||
|
Také k dispozici: Unified diff