summaryrefslogtreecommitdiffstats
path: root/system/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-02-06 23:14:56 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-02-06 23:31:27 +0100
commit9e9d77b4072de4f8c73e8bbade07a8f27734e4bd (patch)
treea5d709254968fed8f3acdb9eec68fde2faa14b94 /system/application/views/file
Initial commit
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/views/file')
-rw-r--r--system/application/views/file/footer.php3
-rw-r--r--system/application/views/file/header.php19
-rw-r--r--system/application/views/file/non_existant.php3
-rw-r--r--system/application/views/file/show_url.php4
-rw-r--r--system/application/views/file/too_big.php3
-rw-r--r--system/application/views/file/upload_error.php4
-rw-r--r--system/application/views/file/upload_form.php18
7 files changed, 54 insertions, 0 deletions
diff --git a/system/application/views/file/footer.php b/system/application/views/file/footer.php
new file mode 100644
index 000000000..eda863585
--- /dev/null
+++ b/system/application/views/file/footer.php
@@ -0,0 +1,3 @@
+ </div>
+</body>
+</html>
diff --git a/system/application/views/file/header.php b/system/application/views/file/header.php
new file mode 100644
index 000000000..76d21e076
--- /dev/null
+++ b/system/application/views/file/header.php
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+ <title><?php echo isset($title) ? $title : ''; ?></title>
+ <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/default.css" media="screen" />
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+</head>
+
+<body>
+ <div class="top">
+ <ul class="nav">
+ <li><?php echo anchor('file/index', 'Upload'); ?></li>
+ </ul>
+ </div>
+
+ <div class="clearer" ></div>
+
+ <div class="content">
diff --git a/system/application/views/file/non_existant.php b/system/application/views/file/non_existant.php
new file mode 100644
index 000000000..418007782
--- /dev/null
+++ b/system/application/views/file/non_existant.php
@@ -0,0 +1,3 @@
+<div style="text-align:center">
+ I'm sorry, but the requested file doesn't exist.
+</div>
diff --git a/system/application/views/file/show_url.php b/system/application/views/file/show_url.php
new file mode 100644
index 000000000..62d34c661
--- /dev/null
+++ b/system/application/views/file/show_url.php
@@ -0,0 +1,4 @@
+<div style="text-align:center">
+ You can get your file here:<br />
+ <a href="<?php echo $url; ?>"><?php echo $url; ?></a><br />
+</div>
diff --git a/system/application/views/file/too_big.php b/system/application/views/file/too_big.php
new file mode 100644
index 000000000..e5dd5bd6a
--- /dev/null
+++ b/system/application/views/file/too_big.php
@@ -0,0 +1,3 @@
+<div style="text-align:center">
+ Sorry, the file you uploaded is too big.
+</div>
diff --git a/system/application/views/file/upload_error.php b/system/application/views/file/upload_error.php
new file mode 100644
index 000000000..807ca6071
--- /dev/null
+++ b/system/application/views/file/upload_error.php
@@ -0,0 +1,4 @@
+<div style="text-align:center">
+ An error occured while uploading.<br />
+ Most likely your file is too big.
+</div>
diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php
new file mode 100644
index 000000000..b39088c4e
--- /dev/null
+++ b/system/application/views/file/upload_form.php
@@ -0,0 +1,18 @@
+<div style="text-align:center">
+ <?php echo form_open_multipart('file/do_upload'); ?>
+ File: <input type="file" name="userfile" size="30" />
+ <input type="submit" value="Upload" name="process" />
+ </form>
+</div>
+<br /><br />
+Uploads are deleted after 5 days.<br />
+<br />
+If you want to you can use my script (needs python and curl) to upload files, paste text (with syntax highlighting of course) or delete your uploads:<br />
+<a href="http://git.server-speed.net/bin/plain/fb">http://git.server-speed.net/bin/plain/fb</a><br />
+<br />
+If you experience any problems feel free to <a href="http://bluewind.at/?id=1">contact me</a>.<br />
+<br />
+<br />
+<div class="small">
+ This service is provided without warranty of any kind and may not be used to distribute copyrighted content.
+</div>