seul dieu le sait
This commit is contained in:
parent
b145b13dea
commit
faf30bfa4d
|
@ -181,7 +181,7 @@ class Response{
|
||||||
echo $this->response;
|
echo $this->response;
|
||||||
//fermeture de la communication
|
//fermeture de la communication
|
||||||
header('Connection: close');
|
header('Connection: close');
|
||||||
header('Content-Length: '.ob_get_length());
|
header('Content-Length:'.ob_get_length());
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
ob_flush();
|
ob_flush();
|
||||||
flush();
|
flush();
|
||||||
|
|
|
@ -13,12 +13,10 @@ if($GLOBALS['compression']){
|
||||||
}
|
}
|
||||||
|
|
||||||
//les managers ne renvoient QUE du json, on met donc le header de la réponse a jour
|
//les managers ne renvoient QUE du json, on met donc le header de la réponse a jour
|
||||||
//header('Content-Type: application/json');
|
|
||||||
//on inclu l'autoloader
|
//on inclu l'autoloader
|
||||||
include(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'autoloader.php');
|
include(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'autoloader.php');
|
||||||
|
|
||||||
$manager = new Manager();
|
$manager = new Manager();
|
||||||
|
|
||||||
//on récupère la commande et la parse pour être executée
|
//on récupère la commande et la parse pour être executée
|
||||||
if(isset($_POST['command'])){
|
if(isset($_POST['command'])){
|
||||||
$commands = explode(':',$_POST['command']);
|
$commands = explode(':',$_POST['command']);
|
||||||
|
|
Loading…
Reference in New Issue