1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<?php if (isset($user_logged_in) && $user_logged_in) { ?>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 text-upload-form">
<?php echo form_open_multipart('file/do_paste'); ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Text paste</h3>
</div>
<div class="panel-body">
<textarea name="content" class="form-control text-upload"><?php
if (isset($textarea_content)) {
echo $textarea_content;
}
?></textarea><br>
<button type="submit" class="btn btn-primary">Paste it!</button>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<?php echo form_open_multipart('file/do_upload'); ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">File upload</h3>
</div>
<div class="panel-body">
<div>
<input class="file-upload" type="file" name="file[]" multiple="multiple"><br>
</div>
<button type="submit" id="upload_button" class="btn btn-primary">Upload it!</button>
</div>
</div>
</form>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Notice!</h3>
</div>
<div class="panel-body">
<p>
Uploads/pastes are <?php if ($upload_max_age > 0) {
echo "deleted after ".$upload_max_age." days";
if ($small_upload_size > 0) {
echo " unless they are smaller than ".format_bytes($small_upload_size);
}
} else {
echo "stored forever";
} ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?>.
You can upload a maximum of <?php echo ini_get("max_file_uploads"); ?> files at once.
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
/* <![CDATA[ */
var max_upload_size = "<?php echo $max_upload_size; ?>";
var max_files_per_upload = "<?php echo ini_get("max_file_uploads"); ?>";
/* ]]> */
</script>
<?php } else { ?>
<?php echo form_open('user/login', array('class' => 'form-inline')); ?>
<input type="text" name="username" placeholder="Username" autofocus class="form-control inline-input"/>
<input type="password" name="password" placeholder="Password" class="form-control inline-input"/>
<input type="submit" class="btn btn-primary" value="Login" name="process" />
<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
<p class="help-block"><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
<?php } ?>
</form>
<?php } ?>
<div class="row">
<div class="col-lg-6">
<div class="page-header"><h1>Features</h1></div>
<p>For shell uploading/pasting and download information for the client go to <a href="<?php echo site_url("file/client"); ?>"><?php echo site_url("file/client"); ?></a></p>
<p>You can use the <?php echo anchor("file/upload_history", "history"); ?> to find old uploads.</p>
<h3>How to link your pastes:</h3>
<dl class="dl-horizontal">
<dt>/<ID>/</dt><dd>automatically highlight the paste</dd>
<dt>/<ID></dt><dd>set the detected MIME type and let the browser do the rest</dd>
<dt>/<ID>/plain</dt><dd>force the MIME type to be text/plain</dd>
<dt>/<ID>/<file extension></dt><dd>override auto detection and use the supplied file extension or language name for highlighting</dd>
<dt>/<ID>/qr</dt><dd>display a qr code containing a link to <span class="example">/<ID>/</span></dd>
<dt>/<ID>/rmd</dt><dd>convert markdown to HTML</dd>
<dt>/<ID>/ascii</dt><dd>convert text with ANSI (shell) escape codes to HTML</dd>
<dt>/<ID>/info</dt><dd>display some information about the ID</dd>
</dl>
<p>If your upload is not detected as text, only <b>/<ID>/qr</b>, <b>/<ID>/plain</b> and <b>/<ID>/info</b> will work as above and all others will simply return the file with the detected MIME type.</p>
</div>
<div class="col-lg-6">
<div class="page-header"><h1>Information</h1></div>
<p>This website's primary goal is aiding developers, power users, students and alike in solving problems, debugging software, sharing their configuration, etc. It is not intended to distribute confidential or harmful information, scripts or software.</p>
<?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
<p>If you want an account, ask someone who is already using this service to <a href="<?php echo site_url("user/invite"); ?>">invite</a> you.</p>
<p>Invitations are used to control abuse and encourage users to "be nice". They are not intended as a means of exclusivity. In case of abuse reports, involved accounts may be banned and the user who invited them may also be banned. The invitation tree will be followed upwards if necessary.</p>
<?php } ?>
</div>
</div>
|