summaryrefslogtreecommitdiff
path: root/server/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/test.php')
-rw-r--r--server/test.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/test.php b/server/test.php
index ce262fa..322dee4 100644
--- a/server/test.php
+++ b/server/test.php
@@ -43,7 +43,7 @@ $opt['containerFormat'] = 'ami';
$opt['diskFormat'] = 'iso';
$opt['visibility'] = 'public';
$opt['minDisk'] = 1;
-$opt['protected'] = true;
+$opt['protected'] = false;
$opt['minRam'] = 10;
//$new_image = $image->create_image($opt);
@@ -58,6 +58,7 @@ foreach($images as $i){
echo $i->name;
if($i->name == "Test"){
$id_image = $i->id;
+ echo $i->status;
}
echo "</br>";
}
@@ -69,5 +70,10 @@ echo "</br>";
//$image->delete_image($id_image);
+//$image->desactivate_image($id_image);
+//$image->reactivate_image($id_image);
+
+//$file_name = "/home/yogg/Downloads/TinyCore-6.4.1.iso";
+//$image->upload_image($id_image, $file_name);
?> \ No newline at end of file