<input type="radio" name="format" id="format_oneline_spaced" value="1" <?=($_REQUEST['format']==1)?'checked ':''?>/><label for="format_oneline_spaced"">in one line (with spaces)</label>
<br />
<input type="radio" name="format" id="format_oneline_nospace" value="2" <?=($_REQUEST['format']==2)?'checked ':''?>/><label for="format_oneline_nospace"">in one line (without space)</label>
<input type="radio" name="format" id="format_oneline_spacebeforepipe" value="3" <?=($_REQUEST['format']==3)?'checked ':''?>/><label for="format_oneline_spacebeforepipe"">in one line (without space, except before |)</label>
</form>
<?php
if(array_key_exists('URL',$_REQUEST)){
include('page.php');
//Does the specified URL valid and exist?
$url=$_REQUEST['URL'];
if(!filter_var($url,FILTER_VALIDATE_URL)){
message_die(GENERAL_ERROR,"$url isn't a valid URL.",'URL issue');
}
//Gets page information
setlocale(LC_TIME,'fr_FR.UTF-8');
$page=Page::load($url);
if($page->error){
message_die(GENERAL_ERROR,"Can't open $url",'URL issue');
}
if($page->is_article()){
echo"<h3>Note</h3><p>Cette URL pointe vers un article de revue, aussi le modèle {{Article}} est indiqué.</p>";
<p>A little PHP knowledge will allow you to customize and improve this tool. I will be happy to accept patches in this goal.</p>
<p>If you wish to adapt this tool to be used on another website (a Wikipedia project in another language or outside Wikipedia), please see the template.php file and samples in the templates/ folder.</p>
<p>If you wish to add websites analysis, please add the URL in index.dat, then create a class which extends Page ; see page.php and the pages/ folder.</p>