]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
début de nettoyage des fichiers inclus
authornicosomb <nicolas@loeuillet.org>
Tue, 9 Apr 2013 10:10:15 +0000 (12:10 +0200)
committernicosomb <nicolas@loeuillet.org>
Tue, 9 Apr 2013 10:10:15 +0000 (12:10 +0200)
inc/functions.php
readityourself.php

index 9d321c67b552f0a00f6a21bb72138c54dbe7cb3b..6fa5a17a95fb06a2d7c37a4bb3c49d52a2a9cf66 100755 (executable)
@@ -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
 }
 
index 451b58787ae4198c2b3f2bfe0c2f3b7eaa4bf674..588baecae6a517c1ffebac5c9c665a8629559361 100755 (executable)
@@ -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) {
@@ -57,5 +40,4 @@ if(isset($_GET['url']) && $_GET['url'] != null && trim($_GET['url']) != "") {
                        echo "Error unable to get link : ".$url;
                }
        }
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file