diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 03:19:53 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 03:19:53 +0100 |
commit | 77e5a85ff8fbf372cee3b2ded3fc2aab3f4377f0 (patch) | |
tree | a9066eb08923ee0715510d0624678c4333c98726 /paste/paste.php | |
parent | e98422a09892675f23852320e0d46b4071bf22b4 (diff) | |
download | rafb-nopaste-77e5a85ff8fbf372cee3b2ded3fc2aab3f4377f0.tar.gz rafb-nopaste-77e5a85ff8fbf372cee3b2ded3fc2aab3f4377f0.tar.xz rafb-nopaste-77e5a85ff8fbf372cee3b2ded3fc2aab3f4377f0.zip |
updated config
Diffstat (limited to 'paste/paste.php')
-rw-r--r-- | paste/paste.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/paste/paste.php b/paste/paste.php index 17cec80..fbcdf2c 100644 --- a/paste/paste.php +++ b/paste/paste.php @@ -32,8 +32,14 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +require_once("config.php"); require_once("include/pastify.inc"); -require_once("include/createpage.inc"); + +if (!is_subclass_of($config['storage'], 'StorageEngine')) +{ + header('HTTP/1.0 503 Service Unavailable'); + die('Invalid config'); +} $refererurl = $_SERVER['HTTP_REFERER']; $refererurl = preg_replace("/\/[^\/]*$/", "", $refererurl); |