| 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/icd/labs/ |
Upload File : |
<?php
/*
*************************************************************************************
** delete_choice.php
*************************************************************************************
*/
session_start(); // Εκκίνηση session.
header("Cache-control: private"); // Διόρθωση σφάλματος "cache control" για τον IE6.
/*
*************************************************************************************
** Έλεγχος για το αν και για το ποιο μάθημα επιλέχθηκε ώστε να διαγραφεί.
*************************************************************************************
*/
if($_POST['delete'])
{
$lesson_delete = $_POST['delete'];
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$connection = mysqli_connect("localhost", "icd_labs", "t3!$3r") or die(mysqli_error());
mysqli_select_db($connection,"laboratories") or die(mysqli_error());
mysqli_set_charset($connection,"utf8");
mysqli_query($connection, "SET NAMES 'utf8'");
$sql_delete = "DELETE FROM choices WHERE am = '$username' && lesson_name = '$lesson_delete' ";
$result_delete = mysqli_query($connection,$sql_delete) or die(mysqli_error());
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>E-LABS - ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ ΠΛΗΡΟΦΟΡΙΚΗΣ, ΥΠΟΛΟΓΙΣΤΩΝ ΚΑΙ ΤΗΛΕΠΙΚΟΙΝΩΝΙΩΝ - ΔΙΠΑΕ</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<style type="text/css">
<!--
body {
background-image: url(pics/back.gif);
}
.style5 {color: #191919; font-weight: bold; }
.style6 {
font-size: 12px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link {
color: #0000CC;
text-decoration: underline;
}
a:visited {
color: #0000CC;
text-decoration: underline;
}
a:hover {
color: #FFFFFF;
text-decoration: none;
}
a:active {
text-decoration: underline;
}
.style7 {
color: #003300;
font-weight: bold;
}
.style9 {
font-size: 14px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #009900;
}
-->
</style></head>
<body>
<div align="left">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="150" colspan="4" valign="top"><img src="pics/index_up.jpg" width="1000" height="150"></td>
<td width="8"> </td>
</tr>
<tr>
<td height="2" colspan="4" valign="top"><img src="pics/horizontal_bar.gif" width="1000" height="2"></td>
<td></td>
</tr>
<tr>
<td width="16" height="19"> </td>
<td width="590" valign="top"><div align="left" class="style7">Συνδεδεμένος Χρήστης: <?php echo $_SESSION['epitheto']; echo " "; echo $_SESSION['onoma']; ?> </div></td>
<td width="327"> </td>
<td width="67"> </td>
<td></td>
</tr>
<tr>
<td height="2" colspan="4" valign="top"><img src="pics/horizontal_bar.gif" width="1000" height="2"></td>
<td></td>
</tr>
<tr>
<td height="17"></td>
<td colspan="2" valign="top"><span class="style9">ΕΠΙΤΥΧΗΣ ΔΙΑΓΡΑΦΗ ΕΠΙΛΟΓΩΝ ΕΡΓΑΣΤΗΡΙΟΥ</span></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="34"></td>
<td colspan="3" valign="top"><div align="left" class="style9">
Η διαγραφή των επιλογών του εργαστηρίου έγινε επιτυχώς. Παρακαλώ επιστρέψτε στην <a href="student.php">αρχική σελίδα</a> για όποια άλλη διαγραφή επιθυμείτε.</div></td>
<td></td>
</tr>
<tr>
<td height="701"></td>
<td> </td>
<td> </td>
<td> </td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
<?php
}
else
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>E-LABS - ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ ΠΛΗΡΟΦΟΡΙΚΗΣ, ΥΠΟΛΟΓΙΣΤΩΝ ΚΑΙ ΤΗΛΕΠΙΚΟΙΝΩΝΙΩΝ - ΔΙΠΑΕ</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<META HTTP-EQUIV="Refresh" CONTENT="7; URL=index.php">
<style type="text/css">
<!--
body {
background-image: url(pics/back.gif);
}
.style5 {color: #191919; font-weight: bold; }
.style6 {
font-size: 12px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:link {
color: #0000CC;
text-decoration: underline;
}
a:visited {
color: #0000CC;
text-decoration: underline;
}
a:hover {
color: #FFFFFF;
text-decoration: none;
}
a:active {
text-decoration: underline;
}
.style7 {
color: #003300;
font-weight: bold;
}
.style9 {
font-size: 14px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #009900;
}
-->
</style></head>
<body>
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="150" colspan="3" valign="top"><img src="pics/index_up.jpg" width="1000" height="150"></td>
<td width="4"> </td>
</tr>
<tr>
<td width="55" height="119"> </td>
<td width="826" valign="top"><?php
echo "Τα δεδομένα που καταχωρήσατε δεν είναι σωστά. Σε λίγα δευτερόλεπτα θα μεταβείτε αυτόματα στην αρχική σελίδα για να προσπαθήσετε να επανασυνδεθείτε.";
exit;
?></td>
<td width="119"> </td>
<td> </td>
</tr>
<tr>
<td height="496"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
<?php
}
/*
*************************************************************************************
** Developed by Petrellis Manolis.
*************************************************************************************
*/
?>