1
0
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:
nicosomb 2013-04-09 12:10:15 +02:00
parent 8784f0956b
commit 1ff2333600
2 changed files with 3 additions and 23 deletions

View File

@ -1,6 +1,6 @@
<?php
function url(){
function url() {
$protocol = "http";
if(isset($_SERVER['HTTPS']))
if($_SERVER['HTTPS'] != "off")
@ -22,8 +22,6 @@ function generate_page($url,$title,$content) {
$tpl->assign( "title", $title);
$tpl->assign( "content", $content);
$tpl->assign( "version", VERSION);
$tpl->draw( "index"); // draw the template
}

View File

@ -1,31 +1,14 @@
<?php
define("VERSION", "0.0.3");
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');
// 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';
// get Encoding library.
require_once dirname(__FILE__).'/inc/Encoding.php';
// appel de la libraire RainTPL.
require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
include dirname(__FILE__).'/inc/functions.php';
// EXUCUTION CODE
if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
// get url link
if(strlen(trim($_GET['url'])) > 2048) {
@ -58,4 +41,3 @@ if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
}
}
}
?>