Initial Import
git-svn-id: https://beef.googlecode.com/svn/trunk@2 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
24
include/check_install.inc.php
Normal file
24
include/check_install.inc.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?
|
||||
// Copyright (c) 2006-2009, Wade Alcorn
|
||||
// All Rights Reserved
|
||||
// wade@bindshell.net - http://www.bindshell.net
|
||||
|
||||
require_once("filter.inc.php");
|
||||
|
||||
if(!file_exists('../include/config.inc.php')
|
||||
&& !file_exists('../../include/config.inc.php')
|
||||
&& !file_exists('../../../include/config.inc.php')) {
|
||||
|
||||
$install_url = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
||||
|
||||
if(valid_url_without_query($install_url)) {
|
||||
echo "<script>location.href = '" . $install_url . "..'</script>";
|
||||
echo '<li><a href="..">Configure BeEF</a></li>';
|
||||
} else {
|
||||
echo 'Install and configure BeEF first';
|
||||
}
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user