The best pastebin replacement. Period.
This is CCbin. The ONLY reason i made this is because of this really ridiculous thing about hastebin where pastes get deleted if not seen for 30 days. For example, if youre stuff is unpopular, and it does not get downloaded in 30 days, it will get deleted. Now this is never gonna delete your pastes. NEVER. Unless you ask me to.
Security Notice: All passwords are hashed in SHA512, the MOST SECURE hashing algorithm in the world.
Changelog:
Spoiler
v1.1.1- Added a mod_rewrite, it acts like Pastebin's.
- Guests may no longer edit guest pastes.
- You can now view other people's profiles and pastes by adding ?email=[person's email] (usernames coming soon)
- Now there is clear instructions for installing CCbin
- CCBin is now responsive
- EDITING PASTES IS HERE!!!!! What shall I do next?
- Now you can own pastes! No editing yet though.
- Added the login system! Still WIP tho, editing pastes is still a no-go
- Fixed attempts to use HTML and PHP using htmlspecialchars()
Spoiler
I am doing this I am not done yet…Login support<< doneEditing pastes if you are the paste owner<< done, use edit_script.php, docs coming in a bitLogin via the API<< done, use auth.php, docs coming in a bit- More stuff and things
Spoiler
WARNING! TECH NERDS ONLY! ;)/>/>/>
The CCBin API is based around un-authenticated HTTP GET/POST requests. {base url} Is ccbin.blaizecraft.com << that's a dedicated server
Post a paste
Using the CCbin api you can post a paste at {base url}/api.php using:
HTTP POST Parameters:
?title={paste title} &amp;
type=get &amp;
(web apps only) data=json &amp;
paste={paste data}
The ID is generated server-side and look like a 6 character string of alphanumeric characters, all letters are English (because I am english too)(this means no accents in paste) For example: iO1GXD (this is the REAL first paste) not éG7iá9
Getting all data about a paste
Using the CCbin api you can get all data from a paste at {base url}/api.php using:
HTTP GET Parameters:
?type=get &amp;
id={paste id}
This will output a JSON/Lua table with this:
JSON:
{
"id": "paste id",
"name": "paste name",
"contents": "paste contents, where /r/n is a new line"
}
Lua:
{
id= "paste id",
name= "paste name",
contents= "paste contents, where new line is a new line"
}
Just getting a paste body, and that is it.Using the CCbin api you can the body of a paste at {base url}/raw.php using:
HTTP GET Parameters:
id={paste id}
Outputs a paste body where new line = new line
Authentication:
Using the CCBin API you can authenticate at {base url}/auth.php using
HTTP POST PARAMETERS:
email={user email} &
passwd={password}
END HTTP POST
oh and btw, hashing is done server-side so apps cannot get the data of the sha512s
Editing pastes:
Using the CCBin API you may edit pastes (while authenticated) at {base url}/edit_script.php using:
make sure cookies are on.
HTTP Post:
id = {paste id}
contents = {new paste}
Source at http://github.com/fi...50/ccbin-server
Client API COMING SOON!
Get/put at http://github.com/fi...50/ccbin-client (use my awesome download center to get it)
Short URL for this page at http://tinyurl.com/ccbin-forumthread
Windows Client GUI at http://github.com/fi...0/ccbin-windows
Discuss CCbin here or if you want to make sure i see it (i am lots more active coding and being there) on the reddit at http://reddit.com/r/ccbin
Show your love for CCbin with this chrome theme. https://dl.dropbox.c...themEchromE.crx)
(I made it myself, isn't it nice?)
Screenshots:
Spoiler
Because the community complain if you have no screenshots.Main create paste GUI: http://prntscr.com/1o4f6m
Viewing the REAL first paste: http://prntscr.com/1o4fj3
Spoiler
- Me, for coming up with and making this.
- All the people at http://koding.com for providing awesome development servers and awesome help with my MySQL queries.
- The dudes who made Highlight.JS because i use it.
- Egor305 (on github and the forums) for the bugfixing and making the auth work!
- Blaize9 for giving me his dedicated hosting!
Share:
Spoiler
ccbin
[url=http://tinyurl.com/ccbin-forumthread]ccbin[/url]
Or Tweet something like this:I love #ccbin it is the best! http://tinyurl.com/ccbin-forumthread