diff --git a/index.html b/admin/index.html
similarity index 66%
rename from index.html
rename to admin/index.html
index 6c9fe41..83ce3a7 100644
--- a/index.html
+++ b/admin/index.html
@@ -2,11 +2,14 @@
+ Dodavanje slike novog artikla
+
+
diff --git a/admin/prikazi.php b/admin/prikazi.php
new file mode 100644
index 0000000..c63bd1b
--- /dev/null
+++ b/admin/prikazi.php
@@ -0,0 +1,27 @@
+
+
+
+
+
+ Uokvirena slika
+
+Tag za artikal:
+
+
+
+Okvir $i";
+ echo "
";
+}
diff --git a/admin/upload.php b/admin/upload.php
new file mode 100644
index 0000000..5f35d9c
--- /dev/null
+++ b/admin/upload.php
@@ -0,0 +1,57 @@
+ 500000) {
+ echo "Sorry, your file is too large.";
+ $uploadOk = 0;
+}
+
+// Allow certain file formats
+if($imageFileType != "jpg") {
+ echo "Sorry, only JPG files are allowed.";
+ $uploadOk = 0;
+}
+
+// Check if $uploadOk is set to 0 by an error
+if ($uploadOk == 0) {
+ echo "Sorry, your file was not uploaded.";
+// if everything is ok, try to upload file
+} else {
+ if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
+ header('Location: B.php');
+ exit();
+ } else {
+ echo "Sorry, there was an error uploading your file.";
+ }
+}
diff --git a/image.php b/image.php
index 102215e..0975f6e 100644
--- a/image.php
+++ b/image.php
@@ -62,7 +62,7 @@ $gotova_slika = $imagine->create($okvir_size, $color);
$gotova_slika->paste($okvir_image, new Imagine\Image\Point(0,0));
// snimi i prikazi
-$gotova_slika->save(__DIR__ . "/cache/tip" . $okvir_id . "slika" . $slika . ".jpg");
+//$gotova_slika->save(__DIR__ . "/cache/tip" . $okvir_id . "slika" . $slika . ".jpg");
$gotova_slika->show("jpg");
// koristiti CDN za kes
diff --git a/index.php b/index.php
deleted file mode 100644
index 50cce95..0000000
--- a/index.php
+++ /dev/null
@@ -1,3 +0,0 @@
-