summaryrefslogtreecommitdiff
path: root/server/test.php
diff options
context:
space:
mode:
authoryogg@epsina.com <evan.pisani@etudiant.univ-rennes1.fr>2016-01-31 18:28:09 +0100
committeryogg@epsina.com <evan.pisani@etudiant.univ-rennes1.fr>2016-01-31 18:28:09 +0100
commit6e7c71db77fc68b7c3d1149b830a838b81cdb718 (patch)
treec919846f1acf4d3d62dc5543d57399fc046910db /server/test.php
parent0db8d0ebbe36528346987cb21db67f31bfbe6017 (diff)
Add update_image and download_image
Diffstat (limited to 'server/test.php')
-rw-r--r--server/test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/test.php b/server/test.php
index 322dee4..71039e8 100644
--- a/server/test.php
+++ b/server/test.php
@@ -76,4 +76,17 @@ echo "</br>";
//$file_name = "/home/yogg/Downloads/TinyCore-6.4.1.iso";
//$image->upload_image($id_image, $file_name);
+//$image->download_image($id_image);
+
+/*
+$opt_update = Array();
+$opt_update['name'] = "TestUpdate";
+$opt_update['visibility'] = 'public';
+$opt_update['minDisk'] = 1;
+$opt_update['protected'] = false;
+$opt_update['minRam'] = 15;
+
+$update = $image->update_image($id_image, $opt_update);
+echo $update->name;
+*/
?> \ No newline at end of file