Skip to content

Commit

Permalink
Avoid direct execution of installer includes (#1488895)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Jan 10, 2013
1 parent 1f87107 commit 619c320
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions installer/check.php
Original file line number Original file line Diff line number Diff line change
@@ -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"> <form action="index.php" method="get">
<?php <?php


Expand Down
7 changes: 7 additions & 0 deletions installer/config.php
Original file line number Original file line Diff line number Diff line change
@@ -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"> <form action="index.php" method="post">
<input type="hidden" name="_step" value="2" /> <input type="hidden" name="_step" value="2" />
<?php <?php
Expand Down
7 changes: 7 additions & 0 deletions installer/test.php
Original file line number Original file line Diff line number Diff line change
@@ -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"> <form action="index.php?_step=3" method="post">


<h3>Check config files</h3> <h3>Check config files</h3>
Expand Down

0 comments on commit 619c320

Please sign in to comment.