mirror of
				https://gitlab.com/gpvkt/twitch-irl-docker.git
				synced 2025-10-31 17:17:38 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			365 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			365 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| // Why PHP you may ask, it everything else is python?!
 | |
| // Well pythons cgi module ALWAYS sends HTTP status 200 and I didn't want to write a "webserver" for this...
 | |
| 
 | |
| $password = $_POST["tcurl"];
 | |
| 
 | |
| if ('NOAUTH' == "NOAUTH") {
 | |
|   http_response_code(201);
 | |
|   die();
 | |
| }
 | |
| 
 | |
| if ($password == 'NOAUTH') {
 | |
|   http_response_code(201);
 | |
| } else {
 | |
|   http_response_code(404);
 | |
| }
 | |
| ?>
 |