@@ -181,7 +202,6 @@ if ($getblog == "") {
tag view
$articles = scandir($articlesdir, 1); // save the content of the directory in the articles variable
@@ -216,8 +236,7 @@ if ($getblog == "") {
?>
- : '
+ : '
target="blank">
diff --git a/rcc/index.php b/rcc/index.php
index 1e50b67..c52a198 100644
--- a/rcc/index.php
+++ b/rcc/index.php
@@ -110,6 +110,16 @@ THE SOFTWARE.
+
+
diff --git a/rcc/media/index.php b/rcc/media/index.php
new file mode 100644
index 0000000..1e66ea8
--- /dev/null
+++ b/rcc/media/index.php
@@ -0,0 +1,60 @@
+
+
+
+
+
+ Rangitaki Control Center
+
+
+
+
+
+
Media Upload
+
+
+
+
+
+
+
diff --git a/rcc/newpost/index.php b/rcc/newpost/index.php
index 1e7b0c4..77418da 100644
--- a/rcc/newpost/index.php
+++ b/rcc/newpost/index.php
@@ -61,6 +61,7 @@ EOD;
} else {
echo "Some error happend, while publishing.";
}
+ ?>GO BACK
diff --git a/rcc/res/rcc.js b/rcc/res/rcc.js
index 3e33f42..6539a71 100644
--- a/rcc/res/rcc.js
+++ b/rcc/res/rcc.js
@@ -2,6 +2,9 @@ window.onload = function () {
var t = document.getElementsByTagName('textarea')[0];
var offset = !window.opera ? (t.offsetHeight - t.clientHeight) : (t.offsetHeight + parseInt(window.getComputedStyle(t, null).getPropertyValue('border-top-width')));
+ /**
+ * The following three code clocks are for proper resizing of the input textarea
+ */
var resize = function (t) {
t.style.height = 'auto';
t.style.height = (t.scrollHeight + offset ) + 'px';
diff --git a/rcc/uploaded/index.php b/rcc/uploaded/index.php
index d5400d1..462c7a2 100644
--- a/rcc/uploaded/index.php
+++ b/rcc/uploaded/index.php
@@ -52,6 +52,7 @@ THE SOFTWARE.
echo "File Upload
+ You have to choose a file!";
+ } else {
+ $uploaddir = "../../media/";
+ $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
+
+ if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
+ echo "The post was successfully uploaded and is now published.
"; + } else { + echo "During the uploading process an error occured!
Error Code:" . ($_FILES['userfile']['error'] . "
During the uploading process an error occured!
Error Code:" . ($_FILES['userfile']['error'] . "