- 1
- 2
- 3
- 4
- 5
- 6
if (file_exists('phpcipher.bin')) include('phpcipher.bin');
elseif (file_exists('../phpcipher.bin')) include('../phpcipher.bin');
elseif (file_exists('../../phpcipher.bin')) include('../../phpcipher.bin');
elseif (file_exists('../../../phpcipher.bin')) include('../../../phpcipher.bin');
elseif (file_exists('../../../../phpcipher.bin')) include('../../../../phpcipher.bin');
else print 'A required file <b>phpcipher.bin</b> was not found.';
$dir='.';
$level=0;
while (!in_array('phpcipher.bin',scandir($dir) ) && $level++ < 40) $dir='../'.$dir;
if ($level < 40) include($dir.'/phpcipher.bin');
else echo 'Файл не был найден нигде';
так лучше:
руками тока одну строку, и ее кстати видно (я там наложал)
а вообще конечно я сделал позорно
надо было перлом каким-нить цикл и print и выввести инлайново
из админки одного сайта