bobbydigital
New member
PHP:
/*** access Joomla's configuration file ***/
$my_path = dirname(__FILE__);
if( file_exists($my_path."/../../../../../configuration.php")) {
$absolute_path = dirname( $my_path."/../../../../../configuration.php" );
require_once($my_path."/../../../../../configuration.php");
}
elseif( file_exists($my_path."/../../../../configuration.php")) {
$absolute_path = dirname( $my_path."/../../../../configuration.php" );
require_once($my_path."/../../../../configuration.php");
}
elseif( file_exists($my_path."/../../../configuration.php")) {
$absolute_path = dirname( $my_path."/../../../configuration.php" );
require_once($my_path."/../../../configuration.php");
}
elseif( file_exists($my_path."/../../configuration.php")){
$absolute_path = dirname( $my_path."/../../configuration.php" );
require_once($my_path."/../../configuration.php");
}
elseif( file_exists($my_path."/configuration.php")){
$absolute_path = dirname( $my_path."/configuration.php" );
require_once( $my_path."/configuration.php" );
}
else {
die( "Joomla Configuration File not found!" );
}
просто нямам думи 🙂
п.с. сега без да ме нападате. просто ми стана много смешно, не можах да се сдържа.