<?php session_start();
 if( !isset($_SESSION['ps_user']) )
 {
	echo "<script>location='../../devices.php'</script>";
	    die();
}
 
include('../../includes/config.php');
 
  ?>
<html>
<body style="background-color:#0c0c0c;">
<center>
<img style="width:100%;margin-top: -200px;" src="../../img/closing.gif">
</center>
</body>
</html>
<?     

              $id=$_GET['id'];			
 
      if($id == 'countdownn__1') { $new = 1;  }
 else if($id == 'countdownn__2') { $new = 2;  }
 else if($id == 'countdownn__3') { $new = 3;  }
 else if($id == 'countdownn__4') { $new = 4;  }
 else if($id == 'countdownn__5') { $new = 5;  }
 else if($id == 'countdownn__6') { $new = 6;  }
 else if($id == 'countdownn__7') { $new = 7;  }
 else if($id == 'countdownn__8') { $new = 8;  }
 else if($id == 'countdownn__9') { $new = 9;  }
 else if($id == 'countdownn__10'){ $new = 10; }
 else if($id == 'countdownn__11'){ $new = 11; }
 else if($id == 'countdownn__12'){ $new = 12; }
 else if($id == 'countdownn__13'){ $new = 13; }
 else if($id == 'countdownn__14'){ $new = 14; }
 else if($id == 'countdownn__15'){ $new = 15; }
 else if($id == 'countdownn__16'){ $new = 16; }
 else if($id == 'countdownn__17'){ $new = 17; }
 else if($id == 'countdownn__18'){ $new = 18; }
 else if($id == 'countdownn__19'){ $new = 19; }
 else if($id == 'countdownn__20'){ $new = 20; }
 else if($id == 'countdownn__21'){ $new = 21; }
 else if($id == 'countdownn__22'){ $new = 22; }
 else if($id == 'countdownn__23'){ $new = 23; }
 else if($id == 'countdownn__24'){ $new = 24; }
 else if($id == 'countdownn__25'){ $new = 25; }
 else if($id == 'countdownn__26'){ $new = 26; }
 else if($id == 'countdownn__27'){ $new = 27; }
 else if($id == 'countdownn__28'){ $new = 28; }
 else if($id == 'countdownn__29'){ $new = 29; }
 else if($id == 'countdownn__30'){ $new = 30; }
 else if($id == 'countdownn__31'){ $new = 31; }
 else if($id == 'countdownn__32'){ $new = 32; }
 else if($id == 'countdownn__33'){ $new = 33; }
 else if($id == 'countdownn__34'){ $new = 34; }
 else if($id == 'countdownn__35'){ $new = 35; }
 else if($id == 'countdownn__36'){ $new = 36; }
 else if($id == 'countdownn__37'){ $new = 37; }
 else if($id == 'countdownn__38'){ $new = 38; }
 else if($id == 'countdownn__39'){ $new = 39; }
 else if($id == 'countdownn__40'){ $new = 40; }
 else if($id == 'countdownn__41'){ $new = 41; }
 else if($id == 'countdownn__42'){ $new = 42; }
 else if($id == 'countdownn__43'){ $new = 43; }
 else if($id == 'countdownn__44'){ $new = 44; }
 else if($id == 'countdownn__45'){ $new = 45; }
 else if($id == 'countdownn__46'){ $new = 46; }
 else if($id == 'countdownn__47'){ $new = 47; }
 else if($id == 'countdownn__48'){ $new = 48; }
 else if($id == 'countdownn__49'){ $new = 49; }
 else if($id == 'countdownn__50'){ $new = 50; }
 else if($id == 'countdownn__51'){ $new = 51; }
 else if($id == 'countdownn__52'){ $new = 52; }
 else if($id == 'countdownn__53'){ $new = 53; }
 else if($id == 'countdownn__54'){ $new = 54; }
 else if($id == 'countdownn__55'){ $new = 55; }
 else if($id == 'countdownn__56'){ $new = 56; }
 else if($id == 'countdownn__57'){ $new = 57; }
 else if($id == 'countdownn__58'){ $new = 58; }
 else if($id == 'countdownn__59'){ $new = 59; }
 else if($id == 'countdownn__60'){ $new = 60; }
 else if($id == 'countdownn__61'){ $new = 61; }
 else if($id == 'countdownn__62'){ $new = 62; }
 else if($id == 'countdownn__63'){ $new = 63; }
 else if($id == 'countdownn__64'){ $new = 64; }
 else if($id == 'countdownn__65'){ $new = 65; }
 else if($id == 'countdownn__67'){ $new = 67; }
 else if($id == 'countdownn__68'){ $new = 68; }
 else if($id == 'countdownn__69'){ $new = 69; }
 else if($id == 'countdownn__70'){ $new = 70; }
 else if($id == 'countdownn__71'){ $new = 71; }
 else if($id == 'countdownn__72'){ $new = 72; }
 else if($id == 'countdownn__73'){ $new = 73; }
 else if($id == 'countdownn__74'){ $new = 74; }
 else if($id == 'countdownn__75'){ $new = 75; }
 else if($id == 'countdownn__76'){ $new = 76; }
 else if($id == 'countdownn__77'){ $new = 77; }
 else if($id == 'countdownn__78'){ $new = 78; }
 else if($id == 'countdownn__79'){ $new = 79; }
 else if($id == 'countdownn__80'){ $new = 80; }
 else if($id == 'countdownn__81'){ $new = 81; }
 else if($id == 'countdownn__82'){ $new = 82; }
 else if($id == 'countdownn__83'){ $new = 83; }
 else if($id == 'countdownn__84'){ $new = 84; }
 else if($id == 'countdownn__85'){ $new = 85; }
 else if($id == 'countdownn__86'){ $new = 86; }
 else if($id == 'countdownn__87'){ $new = 87; }
 else if($id == 'countdownn__88'){ $new = 88; }
 else if($id == 'countdownn__89'){ $new = 89; }
 else if($id == 'countdownn__90'){ $new = 90; }
 else if($id == 'countdownn__91'){ $new = 91; }
 else if($id == 'countdownn__92'){ $new = 92; }
 else if($id == 'countdownn__93'){ $new = 93; }
 else if($id == 'countdownn__94'){ $new = 94; }
 else if($id == 'countdownn__95'){ $new = 95; }
 else if($id == 'countdownn__96'){ $new = 96; }
 else if($id == 'countdownn__97'){ $new = 97; }
 else if($id == 'countdownn__98'){ $new = 98; }
 else if($id == 'countdownn__99'){ $new = 99; }
 else if($id == 'countdownn__100'){$new = 100;}
 
  mysql_connect("$host", "$user", "$pass") or die(mysql_error()); 
  mysql_select_db("$db") or die(mysql_error()); 
  mysql_query("UPDATE `devices` set `Device Status` = 'finished'  WHERE `ID` = '$new';");
  // header("location:devices.php");
  echo "<script>location='../../devices.php'</script>";

			  ?> 