mirror of
https://github.com/moparisthebest/wallabag
synced 2024-10-31 15:35:05 -04:00
début de nettoyage des fichiers inclus
This commit is contained in:
parent
8784f0956b
commit
1ff2333600
@ -22,8 +22,6 @@ function generate_page($url,$title,$content) {
|
|||||||
$tpl->assign( "title", $title);
|
$tpl->assign( "title", $title);
|
||||||
$tpl->assign( "content", $content);
|
$tpl->assign( "content", $content);
|
||||||
|
|
||||||
$tpl->assign( "version", VERSION);
|
|
||||||
|
|
||||||
$tpl->draw( "index"); // draw the template
|
$tpl->draw( "index"); // draw the template
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,31 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define("VERSION", "0.0.3");
|
|
||||||
|
|
||||||
header('Content-type:text/html; charset=utf-8');
|
header('Content-type:text/html; charset=utf-8');
|
||||||
// Set locale to French
|
|
||||||
setlocale(LC_ALL, 'fr_FR');
|
|
||||||
|
|
||||||
// set timezone to Europe/Paris
|
setlocale(LC_ALL, 'fr_FR');
|
||||||
date_default_timezone_set('Europe/Paris');
|
date_default_timezone_set('Europe/Paris');
|
||||||
|
|
||||||
// set charset to utf-8 important since all pages will be transform to utf-8
|
|
||||||
header('Content-Type: text/html;charset=utf-8');
|
|
||||||
|
|
||||||
// get readability library
|
|
||||||
require_once dirname(__FILE__).'/inc/Readability.php';
|
require_once dirname(__FILE__).'/inc/Readability.php';
|
||||||
|
|
||||||
// get Encoding library.
|
|
||||||
require_once dirname(__FILE__).'/inc/Encoding.php';
|
require_once dirname(__FILE__).'/inc/Encoding.php';
|
||||||
|
|
||||||
// appel de la libraire RainTPL.
|
|
||||||
require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
|
require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
|
||||||
|
|
||||||
include dirname(__FILE__).'/inc/functions.php';
|
include dirname(__FILE__).'/inc/functions.php';
|
||||||
|
|
||||||
// EXUCUTION CODE
|
|
||||||
|
|
||||||
|
|
||||||
if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
|
if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
|
||||||
// get url link
|
// get url link
|
||||||
if(strlen(trim($_GET['url'])) > 2048) {
|
if(strlen(trim($_GET['url'])) > 2048) {
|
||||||
@ -58,4 +41,3 @@ if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user