Commit Graph

117 Commits

Author SHA1 Message Date
Eliot Whalan b0d76a12b7
Remove setup function call 2016-06-27 08:11:24 +10:00
Eliot Whalan c99d8aaf80
Revert "Only open db once"
This reverts commit c698f36a86.
2016-06-27 08:09:34 +10:00
Eliot Whalan 86bc7cbca1
Fix incorrect db 2016-06-27 07:51:00 +10:00
Eliot Whalan 51995a8fd5
Call setup function in main 2016-06-27 07:47:42 +10:00
Eliot Whalan c698f36a86
Only open db once 2016-06-27 07:46:58 +10:00
Eliot Whalan 62453be692
Let mysql to more searching 2016-06-26 21:16:14 +10:00
Eliot Whalan 3c4a9e0032
Let sql do the searching 2016-06-26 21:14:12 +10:00
Eliot Whalan 70701454a0
Fix lack of title on syntax page 2016-06-26 06:45:54 +10:00
Eliot Whalan f7ce7d7abf
Try 20 years for 'forever expiry' 2016-06-25 09:02:31 +10:00
Eliot Whalan cfc5dcf3eb
Fix up expiry math 2016-06-25 08:56:25 +10:00
Eliot Whalan 4740a10297
Add ghetto expiry fix 2016-06-25 08:53:34 +10:00
Eliot Whalan 576b83492a
Fix up expiry 2016-06-25 08:49:34 +10:00
Eliot Whalan d327895d81
Add some temps prints for debugging 2016-06-25 08:40:51 +10:00
Eliot Whalan a3f316962d
Remove unneed expiry query from save function 2016-06-25 08:38:58 +10:00
Eliot Whalan 252c2a7fbe
Add expiry checking 2016-06-25 08:33:56 +10:00
Eliot Whalan 9b6150a806
Begin testing expiry 2016-06-25 08:18:02 +10:00
Eliot Whalan 3a503ba55a
Add expiryTime to sql query 2016-06-25 08:16:03 +10:00
Eliot Whalan 3b29b01da7
Start expiry addition 2016-06-25 08:13:36 +10:00
Eliot Whalan 7de9192f8a
Remove unneeded check 2016-06-24 17:13:56 +10:00
Eliot Whalan cda25cc55a
Add missing comma 2016-06-24 17:12:32 +10:00
Eliot Whalan 79eceb27d4
Fix up array error 2016-06-24 17:11:49 +10:00
Eliot Whalan f68ba3ef8e
Escape and unescape title 2016-06-24 15:45:52 +10:00
Eliot Whalan 04675d9ba8
Fixup missing return value 2016-06-24 15:33:14 +10:00
Eliot Whalan 40adfe9136
Add title support 2016-06-24 15:32:20 +10:00
Eliot Whalan 5fa15802d6
Add title 2016-06-24 15:24:15 +10:00
Eliot Whalan 4471eba47a
Add clone paste handler 2016-06-24 12:59:29 +10:00
Eliot Whalan e9fe27ea2d
Add download button 2016-06-24 12:17:23 +10:00
Eliot Whalan 940faf998c
Add content headers 2016-06-24 12:10:54 +10:00
Eliot Whalan 631a536ce6
Fixup download handler 2016-06-24 12:05:14 +10:00
Eliot Whalan 65f6db2bf9
Add download handler 2016-06-24 11:46:50 +10:00
Eliot Whalan b7365e1242
Correct template name 2016-06-24 11:24:24 +10:00
Eliot Whalan c04cb8aabb
Add index.html to template cache 2016-06-24 11:22:48 +10:00
Eliot Whalan 9d6e493717
Cache templates 2016-06-24 11:16:58 +10:00
Eliot Whalan 4bc80d3481
Revert to fprintf 2016-06-24 11:06:29 +10:00
Eliot Whalan a4ae43ea08
Add missing handler functions 2016-06-24 11:04:26 +10:00
Eliot Whalan e16d5ee461
Move from fprintf to write 2016-06-24 11:01:23 +10:00
Eliot Whalan f34d455ab8
Introduce clone and download functions 2016-06-24 08:11:30 +10:00
Eliot Whalan 8dc7a3f7d1
Add home to struct 2016-06-23 21:00:46 +10:00
Eliot Whalan 07180d93fb
Add more buttons and add row div 2016-06-23 20:59:12 +10:00
Eliot Whalan 872fdf55dc
Add noclasses variable to pygments 2016-06-23 20:47:45 +10:00
Eliot Whalan 30620115b8
Fixup incorrecr variable 2016-06-23 20:43:59 +10:00
Eliot Whalan 3d22aa63fd
Try syntax highlighting 2016-06-23 20:41:45 +10:00
Eliot Whalan 2d8aa75257
Reintroduce textarea 2016-06-23 20:19:48 +10:00
Eliot Whalan d0f5ffda69
Bring back print statement part 2 2016-06-23 20:15:13 +10:00
Eliot Whalan 6028e4c804
Make body string type 2016-06-23 19:58:29 +10:00
Eliot Whalan 4acda57bd3
Remove full page option and textarea 2016-06-23 19:24:18 +10:00
Eliot Whalan a778cefe6d
Rework syntax highlighting 2016-06-23 19:21:37 +10:00
Eliot Whalan 07aa7ba910
Fix up struct error 2016-06-23 19:11:40 +10:00
Eliot Whalan e1cfe96676
Add raw link 2016-06-23 19:10:36 +10:00
Eliot Whalan 7f5d1cc7ca
Redirect traffic to the stylized paste page 2016-06-23 19:06:24 +10:00