Subdomain Posts
Perl | 1 day ago
None | 2 days ago
Perl | 2 days ago
Perl | 2 days ago
Perl | 3 days ago
Perl | 5 days ago
Perl | 6 days ago
Perl | 7 days ago
Perl | 8 days ago
Perl | 11 days ago
Recent Posts
PHP | 0 sec ago
C++ | 2 sec ago
None | 29 sec ago
None | 38 sec ago
PHP | 44 sec ago
None | 54 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
JavaScript | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By sdfghjkl on the 5th of Feb 2010 03:04:03 PM Download | Raw | Embed | Report
  1. #!/usr/bin/perl
  2.  
  3. use CGI":standard";chdir($0=~s~[^/]*$~~);import_names("x");while($x::t){open$f,">$x::t.r";print$f "$x::l$/$x::v$/".($x::i?$x::i:localtime);close$f;CGI::delete(split(//,~~tlvi));$x::t=0}@r=$x::s?<*$x::s*.r>:<*.r>;print header,start_html,start_form,textfield(-name=>'s',-value=>"search"),submit,end_form,start_form,textfield(-name=>~~t,-value=>"title"),textfield(-name=>~~l,-value=>"link"),hidden(-name=>v,-value=>0),submit,end_form,ul li([sort{$s=sub{$_=$_[0];s~<.*?>~~g;$_};$s->($b)cmp$s->($a)}map{open$f,$_;@a=<$f>;chomp@a;m/(.*)\.r/;(a{href=>"?t=$1&l=$a[0]&i=$a[2]&v=".($a[1]+1)},"^").$a[1].(a{-href=>"?t=$1&l=$a[0]&i=$a[2]&v=".($a[1]-1)},"v")." ".(a{-href=>$a[0]},$1).br.small"added: ".$a[2]}@r]),end_html
  4.  
  5. # Note: you may need to chmod the directory containing the script to 777.
  6. # Warning: DO NOT host on a public website. It will open up all sorts of nasty security holes.
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: