mirror of
				https://github.com/pierre42100/comunic
				synced 2025-11-04 04:04:17 +00:00 
			
		
		
		
	First commit
This commit is contained in:
		
							
								
								
									
										18
									
								
								inc/add_comunic_as_search_engine.php
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								inc/add_comunic_as_search_engine.php
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
	//Vérification de la clé de sécurité
 | 
			
		||||
	if(!isset($add_comunic_as_search_engine_check))
 | 
			
		||||
		die('Invalid call!');
 | 
			
		||||
		
 | 
			
		||||
	//Envoi de l'header XML
 | 
			
		||||
	header('Content-Type: application/xml');
 | 
			
		||||
echo "<"; ?>?xml version="1.0" encoding="UTF-8" ?>
 | 
			
		||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
 | 
			
		||||
    <ShortName>Comunic</ShortName>
 | 
			
		||||
    <Description>Un réseau social qui respecte votre vie privée.</Description>
 | 
			
		||||
    <InputEncoding>ISO-8859-1</InputEncoding>
 | 
			
		||||
    <OutputEncoding>ISO-8859-1</OutputEncoding>
 | 
			
		||||
    <Image width="16" height="16" type="image/x-icon"><?php echo $urlsite; ?>img/favicon.ico</Image>
 | 
			
		||||
    <Image width="64" height="64" type="image/x-icon"><?php echo $urlsite; ?>img/favicon_64.ico</Image>
 | 
			
		||||
    <Url type="text/html" method="get" template="<?php echo $urlsite; ?>recherche.php?q={searchTerms}"></Url>
 | 
			
		||||
    <Language>fr_FR</Language>
 | 
			
		||||
</OpenSearchDescription>
 | 
			
		||||
		Reference in New Issue
	
	Block a user