initial commit
This commit is contained in:
		
							
								
								
									
										17
									
								
								web/scan.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								web/scan.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
<?php
 | 
			
		||||
    include_once('template.inc');
 | 
			
		||||
    include_once ('store.inc');
 | 
			
		||||
 | 
			
		||||
    if (isset($_POST['content'])){
 | 
			
		||||
        $m = isset($_POST['manual']);
 | 
			
		||||
        if (isset($_POST['idtype']) && $_POST['idtype'] === 'moly'){
 | 
			
		||||
            StoreMoly::save($_POST['content'],$m);
 | 
			
		||||
        } else{
 | 
			
		||||
        Store::save($_POST['content'],$m);
 | 
			
		||||
        }
 | 
			
		||||
    }else {
 | 
			
		||||
        header("Location: /index.php");
 | 
			
		||||
        exit();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user