Ejemplo n.º 1
0
<?php

include_once '../models/containerModel.php';
$container = new containerModel();
// echo $_POST['cname'].'->'.$_POST['cdnssearch'].'->'.$_POST['cdns'].'->'.$_POST['ciphost'].'->'.$_POST['cporthost'].'->'.$_POST['cport'].'->'.$_POST['chostpath'].'->'.$_POST['cpath'].'->'.$_POST['image'].'->'.$_POST['ccommand']
$cmdContainer = $container->createContainer($_POST['cname'], $_POST['cdns'], $_POST['cdnssearch'], $_POST['ciphost'], $_POST['cporthost'], $_POST['cport'], $_POST['chostpath'], $_POST['cpath'], $_POST['image'], $_POST['ccommand'], $_POST['cparams']);
$patternID = '/[0-9a-fA-F]{64}/';
if (@preg_match($patternID, @substr($cmdContainer, 0, -1)) != 1) {
    echo $cmdContainer->Message;
    return;
}
echo $cmdContainer;
Ejemplo n.º 2
0
<?php

include_once '../models/containerModel.php';
$container = new containerModel();
$cmdContainer = $container->cmdContainer($_POST['command']);
if (!is_int($cmdContainer)) {
    echo $cmdContainer->Message;
    return;
}
echo 0;
Ejemplo n.º 3
0
<?php

include_once '../models/containerModel.php';
$container = new containerModel();
$intermediateImages = $container->deleteIntermediateImages();
if (!is_int($intermediateImages)) {
    echo $intermediateImages->Message;
    return;
}
echo 0;