예제 #1
0
<?php

@session_start();
require_once 'ftpCon.php';
$f = new ftpCon();
$f->conect(base64_decode($_SESSION[MD5('server')]));
$f->login(base64_decode($_SESSION[MD5('user')]), base64_decode($_SESSION[MD5('password')]));
$bool = $f->ftp_rdel($_POST['arq']);
$f->logout();
if (!empty($f->error)) {
    ?>
        <script>
            bootstrapErro("Não foi possível remover <?php 
    echo $_POST['arq'];
    ?>
<br><input type='button' class='btn btn-danger' value='Fechar' data-dismiss='modal'>");
        </script>
        <?php 
} else {
    echo true;
}
예제 #2
0
<?php

require_once 'ftpCon.php';
@session_start();
$f = new ftpCon();
$f->conect(base64_decode($_SESSION[MD5('server')]));
$f->login(base64_decode($_SESSION[MD5('user')]), base64_decode($_SESSION[MD5('password')]));
$f->ftp_rdel('teste/');
$f->logout();
예제 #3
0
<?php

@session_start();
$arqs = explode('|||||', $_POST['arquivosaexcluir']);
array_pop($arqs);
$error = null;
if (count($arqs) > 0) {
    require_once 'ftpCon.php';
    $f = new ftpCon();
    $f->conect(base64_decode($_SESSION[MD5('server')]));
    $f->login(base64_decode($_SESSION[MD5('user')]), base64_decode($_SESSION[MD5('password')]));
    foreach ($arqs as $arq) {
        $f->ftp_rdel($arq);
        if (!empty($f->error)) {
            $_SESSION['erroUpload'][] = 'Não foi possível remover ' . $arq . '';
            $f->error = '';
        }
    }
}
header("Location: index.php?Diretorio=" . $_POST['locationpathexcluirall']);