aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-26 13:26:05 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-26 13:26:05 +0100
commit3ba5223e1350bf0c38a81722a7669871400b340a (patch)
tree64ecaa9968fa9940b06241f0a3ac7fc4592cf4e0 /app
parent4098098bd2101787cfbb9c3c1917feb7c0fa531d (diff)
Déplacement de ./actualize_script.php sous ./app/
Pour une meilleure protection par défaut
Diffstat (limited to 'app')
-rw-r--r--app/.htaccess3
-rwxr-xr-xapp/actualize_script.php15
-rw-r--r--app/index.html13
3 files changed, 31 insertions, 0 deletions
diff --git a/app/.htaccess b/app/.htaccess
new file mode 100644
index 000000000..9e768397d
--- /dev/null
+++ b/app/.htaccess
@@ -0,0 +1,3 @@
+Order Allow,Deny
+Deny from all
+Satisfy all
diff --git a/app/actualize_script.php b/app/actualize_script.php
new file mode 100755
index 000000000..20438128a
--- /dev/null
+++ b/app/actualize_script.php
@@ -0,0 +1,15 @@
+<?php
+require(dirname(__FILE__) . '/../constants.php');
+
+$_GET['c'] = 'feed';
+$_GET['a'] = 'actualize';
+$_GET['force'] = true;
+$_SERVER['HTTP_HOST'] = '';
+
+require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader
+
+$front_controller = new FreshRSS ();
+$front_controller->init ();
+Minz_Session::_param('mail', true); // permet de se passer de la phase de connexion
+$front_controller->run ();
+invalidateHttpCache();
diff --git a/app/index.html b/app/index.html
new file mode 100644
index 000000000..85faaa37e
--- /dev/null
+++ b/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>