diff --git a/index.php b/index.php index 2bb2258..dfb23eb 100644 --- a/index.php +++ b/index.php @@ -259,10 +259,10 @@ function file_put_contents($n, $d) if ( $action == "edit" ) $html .= "\n"; else - $html .= "
Title:
\n"; + $html .= "Title:
\n"; if ( $action == "new" ) - $text = ""; + $text = $_REQUEST['newText']; $html .= "\n"; $html .= ""; @@ -309,7 +309,10 @@ function file_put_contents($n, $d) if ( move_uploaded_file($_FILES['userfile']['tmp_name'], BASE_PATH . "/images/$dstName") === true ) { - $html = "
File '$dstName' uploaded
\n"; + $html = "File '$dstName' uploaded
";
+ $uploadedName = pathinfo($dstName);
+ $filename = $uploadedName['filename'];
+ $html .= "Create a new page with this image in it