radiantrh/Controleur/ControleurAjaxged.php

34 lines
759 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Ged.php';
class ControleurAjaxged extends Controleur {
private $ged;
public function __construct() {
$this->ged = new Ged();
}
public function index() {
// $this->genererVueAjax(array('reponse' => $reponse));
$this->genererVueAjax();
}
public function verifierexistancefichier()
{
$cheminFichier = $this->requete->getParametreFormulaire("cheminFichier");
// modifié à cause de l'url distant chez le prestataire => remote_file_exists($url)
// if(file_exists($cheminFichier))
if(remote_file_exists($cheminFichier))
{
$reponse = "1";
} else
{
$reponse = "0";
}
echo "$reponse";
}
}