Kaynağa Gözat

Déplacement de ./actualize_script.php sous ./app/

Pour une meilleure protection par défaut
Alexandre Alapetite 12 yıl önce
ebeveyn
işleme
3ba5223e13
8 değiştirilmiş dosya ile 24 ekleme ve 3 silme
  1. 1 0
      CHANGELOG
  2. 1 1
      README.md
  3. 3 0
      app/.htaccess
  4. 1 1
      app/actualize_script.php
  5. 13 0
      app/index.html
  6. 1 1
      data/index.html
  7. 1 0
      index.html
  8. 3 0
      lib/.htaccess

+ 1 - 0
CHANGELOG

@@ -53,6 +53,7 @@
 	* Déplacement de “./public/data/Configuration.array.php” vers “./data/*_user.php”
 	* Déplacement de “./public/index.php” vers “./p/i/index.php” (voir cookie ci-dessous)
 	* Déplacement de “./public/” vers “./p/”
+	* Déplacement de “./actualize_script.php” vers “./app/actualize_script.php”
 * Divers :
 	* Nouvelle politique de cookie de session (témoin de connexion)
 		* Utilise un nom poli “FreshRSS”

+ 1 - 1
README.md

@@ -45,7 +45,7 @@ Il est recommandé de limiter l’accès à votre FreshRSS, soit :
 # Rafraîchissement automatique des flux
 * Vous pouvez ajouter une tâche CRON sur le script d’actualisation des flux. Par exemple, pour exécuter le script toutes les heures :
 ```
-7 * * * * php /chemin/vers/freshrss/actualize_script.php >/dev/null 2>&1
+7 * * * * php /chemin/vers/FreshRSS/app/actualize_script.php >/dev/null 2>&1
 ```
 
 # Conseils

+ 3 - 0
app/.htaccess

@@ -0,0 +1,3 @@
+Order	Allow,Deny
+Deny	from all
+Satisfy	all

+ 1 - 1
actualize_script.php → app/actualize_script.php

@@ -1,5 +1,5 @@
 <?php
-require('constants.php');
+require(dirname(__FILE__) . '/../constants.php');
 
 $_GET['c'] = 'feed';
 $_GET['a'] = 'actualize';

+ 13 - 0
app/index.html

@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
+<head>
+<meta charset="UTF-8" />
+<meta http-equiv="Refresh" content="0; url=/" />
+<title>Redirection</title>
+<meta name="robots" content="noindex" />
+</head>
+
+<body>
+<p><a href="/">Redirection</a></p>
+</body>
+</html>

+ 1 - 1
data/index.html

@@ -4,7 +4,7 @@
 <meta charset="UTF-8" />
 <meta http-equiv="Refresh" content="0; url=/" />
 <title>Redirection</title>
-<meta name="robots" content="noindex,follow" />
+<meta name="robots" content="noindex" />
 </head>
 
 <body>

+ 1 - 0
index.html

@@ -4,6 +4,7 @@
 <meta charset="UTF-8" />
 <meta http-equiv="Refresh" content="0; url=p/i/" />
 <title>Redirection</title>
+<meta name="robots" content="noindex" />
 </head>
 
 <body>

+ 3 - 0
lib/.htaccess

@@ -0,0 +1,3 @@
+Order	Allow,Deny
+Deny	from all
+Satisfy	all