Размер файла: 1.29Kb
<?
header("Content-type: text/html; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<link rel="stylesheet" href="/sman/style/style.css" type="text/css" />
</head>
<body>
<div class="bod">
<div class="head">
<center>ftp - менеджер</center>
</div>
<?
echo '<div class="vhod">';
if (isset($_GET['path']) && !empty($_GET['path']) || isset($_GET['path_to']) && !empty($_GET['path_to'])) {
$path_back = trim($_GET['path']);
if (isset($_GET['path_to']))
$path_back = trim($_GET['path_to']);
if ($file_opt == NULL) {
define(FILE_OPT, 'index');
$end = end(explode('/', $path_back));
$back = substr($path_back, 0, -mb_strlen($end)-1);
} else {
define(FILE_OPT, 'file');
$back = htmlspecialchars($path_back);
}
echo '<div align = "right"><img src = "/sman/style/icons/up.png" align = "middle"> <a href = "/sman/index.php?path=">На главную</a> <img src = "/sman/style/icons/back.png" align = "middle"> <a href = "/sman/'.FILE_OPT.'.php?path='.$back.'">Назад</a></div>';
echo '<div class = "menu_litle"><a>Путь: '.htmlspecialchars($path_back).' </a></div>';
echo '<br />';
}
?>