| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/Noc/ |
Upload File : |
<?
session_start();
if (isset($_POST["submit"]))
{
$ds = ldap_connect("ds.ihu.gr", 389) or die("Could not connect to DS");
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$ldapbind = ldap_bind($ds,"uid=rwService,ou=Services,dc=ihu,dc=gr","thesinser2024dipae##") or die("Could not connect to DS");
$baseDn = "dc=ihu, dc=gr";
$filter = "(uid=".$_POST["uname"].")";
$sr = ldap_search($ds, $baseDn, $filter);
$info = ldap_get_entries($ds, $sr);
$r = @ldap_bind($ds,$info[0]["dn"],$_POST["upass"]);
if ($r==true)
$_SESSION["valid_teiser_user"] = true;
else
$error_msg = '<p class="error">Λάθος Όνομα χρήστη ή Κωδικός πρόσβασης</p>';
}
if ($_SESSION["valid_teiser_user"]==true)
{
if ($_GET["id"]==1) // Download Windows installer
{
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=openvpn-serres-installer.zip");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize('files/openvpn-serres-installer.zip'));
readfile('files/openvpn-serres-installer.zip');
}
else if ($_GET["id"]==2) // Download Linux configuration file
{
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=openvpn-serres-config-linux.tar");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize('files/openvpn-serres-config-linux.tar'));
readfile('files/openvpn-serres-config-linux.tar');
}
else // Download menu
{
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Κέντρου Λειτουργίας & Διαχείρισης Δικτύου</title>
<style>
html {font-size: 100%}
body {margin: 50px 0 0 0; text-align: center; font-family: verdana, arial, sans-serif; font-size: 62.5%; color: #666666; outline: none;}
h1 {font-size: 1.8em; margin: 1em auto; width: 500px; height: 85px; background: url(images/header3.png) center top no-repeat; text-indent: -9999px;}
h3 {font-size: 1.6em; font-weight: bold; margin: 0 0 1em 0;}
a {outline: none; color: #4E6180; text-decoration: none;}
a:hover {color: #FF0000; text-decoration: none;}
#main_content {margin: 0 auto; padding: 15px; text-align: left; width: 600px; border: 1px solid #EEEEEE; border-radius: 10px; box-shadow: 0 0 6px rgba(0,0,0,0.3); font-size: 14px;}
#main_content h3 {font-size: 1.2em;}
ul {list-style-image: url(images/bullet4.png);}
ul li {margin-bottom: 10px; line-height: 1.4;}
</style>
</head>
<body>
<h1>Κέντρου Λειτουργίας & Διαχείρισης Δικτύου</h1>
<div id="main_content">
<h3>OpenVPN:</h3>
<ul>
<li><a href="<?=$PHP_SELF?>?id=1">openvpn-serres-installer.zip</a><br>Αρχείο εγκατάστασης (installer) OpenVPN Client με τις ειδικές ρυθμίσεις της υπηρεσίας VPN του ΔΙΠΑΕ Σερρών για Windows</li>
<li><a href="<?=$PHP_SELF?>?id=2">openvpn-serres-config-linux.tar</a><br>Αρχείο ρυθμίσεων και πιστοποιητικά για εγκατάσταση του OpenVPN Client σε Linux</li>
</ul>
</div>
</body>
</html>
<?
}
}
else
{
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Κέντρου Λειτουργίας & Διαχείρισης Δικτύου</title>
<style>
html {font-size: 100%}
body {margin: 50px 0 0 0; text-align: center; font-family: verdana, arial, sans-serif; font-size: 62.5%; color: #666666; outline: none;}
h1 {font-size: 1.8em; margin: 1em auto; width: 500px; height: 85px; background: url(images/header3.png) center top no-repeat; text-indent: -9999px;}
h3 {font-size: 1.6em; font-weight: bold; margin: 0 0 1em 0;}
a {outline: none;}
label {display: block; margin-bottom: 3px;}
input {display: block; margin-bottom: 10px; color: #666666; width: 200px; border: 1px solid #CCCCCC; padding: 3px;}
input:focus {background-color: #FFFFCC;}
#main_login {margin: 0 auto; padding: 15px; text-align: left; width: 400px; border: 1px solid #EEEEEE; border-radius: 10px; box-shadow: 0 0 6px rgba(0,0,0,0.3); font-size: 14px;}
#main_login h3 {font-size: 1.2em;}
.error {color: red; text-align: center;}
.button {width: auto;}
.button:hover {background-color: #FFFFCC;}
</style>
</head>
<body>
<h1>Κέντρου Λειτουργίας & Διαχείρισης Δικτύου</h1>
<div id="main_login">
<h3>Θα πρέπει να συνδεθείτε με τον ιδρυματικό σας λογαριασμό για να έχετε πρόσβαση στην εφαρμογή</h3>
<? echo $error_msg; ?>
<form name="ulogin" id="ulogin" method="post" action="<?=$PHP_SELF?>">
<label for="uname">Όνομα χρήστη</label>
<input type="text" name="uname" id="uname">
<label for="upass">Κωδικός πρόσβασης</label>
<input type="password" name="upass" id="upass">
<input type="submit" name="submit" value="Σύνδεση" class="button">
</form>
</div>
</body>
</html>
<?
}
?>