refactor
This commit is contained in:
		
							parent
							
								
									30c808889b
								
							
						
					
					
						commit
						62383911cb
					
				
							
								
								
									
										13
									
								
								lemonde.php
								
								
								
								
							
							
						
						
									
										13
									
								
								lemonde.php
								
								
								
								
							| 
						 | 
					@ -4,14 +4,14 @@
 | 
				
			||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	require 'settings.php';
 | 
						require 'settings.php';
 | 
				
			||||||
 | 
						require 'TPEpubCreator.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$url = '';
 | 
					 | 
				
			||||||
	$date = (new DateTime('today'))->format('Ymd');
 | 
						$date = (new DateTime('today'))->format('Ymd');
 | 
				
			||||||
	if (isset($_POST['url']))
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		require('TPEpubCreator.php');
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$url = $_POST['url'];
 | 
						// Le Monde
 | 
				
			||||||
 | 
						if (isset($_POST['lemonde']) && $_POST['lemonde'])
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							$url = $_POST['lmurl'];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// extract url from curl command
 | 
							// extract url from curl command
 | 
				
			||||||
		if (str_starts_with($url, 'curl '))
 | 
							if (str_starts_with($url, 'curl '))
 | 
				
			||||||
| 
						 | 
					@ -123,7 +123,8 @@
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<form method="post">
 | 
					<form method="post">
 | 
				
			||||||
	GetPublicationContentItems url: <input name="url" value="<?php echo $url; ?>"><br>
 | 
						<input input name="lemonde" type="checkbox"> Le Monde<br>
 | 
				
			||||||
 | 
						GetPublicationContentItems url: <input name="lmurl"><br>
 | 
				
			||||||
	<input type="submit">
 | 
						<input type="submit">
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue