This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
islanderon01's profile picture

CC-Text [A Pastebin for ComputerCraft!]

Started by islanderon01, 31 March 2012 - 03:58 PM
islanderon01 #1
Posted 31 March 2012 - 05:58 PM
Due to the lack of custom URLS by Pastebin, I decided to make a website for ComputerCraft that doesn't require registration (unlike cc-get) and give you a custom URL. In the future, registration and a syntax-highlighting page will be available. You can access the website using the following address: http://cctxt.x90x.net/
cant_delete_account #2
Posted 31 March 2012 - 06:17 PM
Cool… Might make something like this in the future.
Advert #3
Posted 31 March 2012 - 06:20 PM
What is the purpose of using this over pastebin?
There's already a stock pastebin get/upload tool.
islanderon01 #4
Posted 31 March 2012 - 06:34 PM
What is the purpose of using this over pastebin?
There's already a stock pastebin get/upload tool.

Custom URLS. Some people were talking about custom URLS in the Pastebin Downloader thread, instead of using the random strings pastebin gives you.
EatenAlive3 #5
Posted 31 March 2012 - 06:53 PM
Suggestion: I tried to make two identical ID's, both called 'aTest'. When you attempt to create two of the same ID, instead of an error message, can you automatically call the second one something like 'aTest2', or whatever number it is?
islanderon01 #6
Posted 31 March 2012 - 07:31 PM
Suggestion: I tried to make two identical ID's, both called 'aTest'. When you attempt to create two of the same ID, instead of an error message, can you automatically call the second one something like 'aTest2', or whatever number it is?

Hmmmm….

That would be tricky, I'm not exactly a wiz with php, I only know the basics, I'll go googling and tell you what I come up with.
Mads #7
Posted 02 April 2012 - 07:43 PM
For the slashes use this:
$pasteText = htmlstripslashes($pasteText)
islanderon01 #8
Posted 03 April 2012 - 04:44 AM
For the slashes use this:
$pasteText = htmlstripslashes($pasteText)

Thanks, I just updated the script.