Файл: ftp/cms.php
Строк: 27
<?php
error_reporting(0);
$k=trim($_GET['k']); include("key.php");
$d=rawurldecode(trim($_GET['d'])); $n=rawurldecode(trim($_GET['n']));
if ($d==NULL) {$d="";} if ($n==NULL) {$n="";}
$rd=rawurlencode($d); $rn=rawurlencode($n);
$d=str_replace(".|htaccess",".htaccess",$d);
$n=str_replace(".|htaccess",".htaccess",$n);
require_once '../api_core/apicms_system.php';
require_once '../api_core/head.php';
require_once 'moduls/per.php';
if (($ftp=@ftp_connect($sr))&&(@ftp_login($ftp,$lg,$ps))) {
@ftp_pasv($ftp,true); $links="";
ftp_chdir($ftp,$d."/".$n); $curd=ftp_pwd($ftp);
if ($curd<>"/") {
$back=preg_replace("~(.*)/[^/]*~m","\1",$curd);
$back=str_replace(".htaccess",".|htaccess",$back);
}
echo'
<div class="content">CMS:</div>
<div class="subhead"><img src = "icons/repath.png"> <a href="cms.php?k='.$k.'&d='.$rd.'&n='.$rn.'&ac=mv&t=d">APICMS</a></div>';
}
apicms_foot();
?>