diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-01-10 09:41:12 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-01-10 09:41:12 +0100 |
commit | 619c320c0ee9ca39d0fada9113133724cc2a11fe (patch) | |
tree | b10d5e297ae176d1315753d82ba06c1fa62331eb /installer | |
parent | 1f87107b0801a1881d426993c7fca18ca25356b0 (diff) |
Avoid direct execution of installer includes (#1488895)
Diffstat (limited to 'installer')
-rw-r--r-- | installer/check.php | 7 | ||||
-rw-r--r-- | installer/config.php | 7 | ||||
-rw-r--r-- | installer/test.php | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/installer/check.php b/installer/check.php index 886200b84..14fc4f06e 100644 --- a/installer/check.php +++ b/installer/check.php @@ -1,3 +1,10 @@ +<?php + +if (!class_exists('rcube_install') || !is_object($RCI)) { + die("Not allowed! Please open installer/index.php instead."); +} + +?> <form action="index.php" method="get"> <?php diff --git a/installer/config.php b/installer/config.php index 6897ffbba..d6846edc7 100644 --- a/installer/config.php +++ b/installer/config.php @@ -1,3 +1,10 @@ +<?php + +if (!class_exists('rcube_install') || !is_object($RCI)) { + die("Not allowed! Please open installer/index.php instead."); +} + +?> <form action="index.php" method="post"> <input type="hidden" name="_step" value="2" /> <?php diff --git a/installer/test.php b/installer/test.php index e266bf05f..b118924e4 100644 --- a/installer/test.php +++ b/installer/test.php @@ -1,3 +1,10 @@ +<?php + +if (!class_exists('rcube_install') || !is_object($RCI)) { + die("Not allowed! Please open installer/index.php instead."); +} + +?> <form action="index.php?_step=3" method="post"> <h3>Check config files</h3> |