<?php
$str = $_SERVER["DOCUMENT_ROOT"];
if (function_exists("strripos"))
$end = strripos($str, '/');
else
$end = strrpos(strtolower($srt), '/');
$str2 = substr($str, 0, $end);
$result = $str2 . '/private/phpmyadmin';
if (file_exists($result . '/config.inc.php'))
{
require_once($result . '/config.inc.php');
}