Jump to content




[Http][Opensource]Ccbin - Pastebin Replacement With All Features Of Pastebin!

utility

  • You cannot reply to this topic
50 replies to this topic

#21 Egor305

  • Members
  • 34 posts

Posted 01 September 2013 - 02:14 AM

I made https://github.com/E...5/ccbin-simple. It's ccbin-client, and ccbin-server cuted off and placed in one repository.
It's not have SQL Injection fixed, atm.
Diffrence: server is one file. no online gui. there's modification, that allows you to require password when uploading files.
In other words - rewrite.

---EDIT---
and, yep, I'm still contributing to ccbin-client and ccbin-server.

---EDIT---
Made new logo:
Posted Image

---EDIT---
Resize:
Posted Image

#22 figgycity50

  • Members
  • 100 posts

Posted 01 September 2013 - 01:15 PM

who likes the windows gui? if u need help i might record a vidio

#23 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 02 September 2013 - 01:44 AM

Screenshots broken...

#24 figgycity50

  • Members
  • 100 posts

Posted 02 September 2013 - 03:24 AM

View PostAutoLocK, on 02 September 2013 - 01:44 AM, said:

Screenshots broken...
damn. lightshot migrating AGAIN?
i am making a vidio, so dont worry.

#25 Egor305

  • Members
  • 34 posts

Posted 03 September 2013 - 04:39 AM

figgycity50, can you check your pull requests? I did them for all ccbin repositories.
------
here if you don't know how to use Windows GUI thing:
How to put: paste your paste in big textbox, and press button in top left corner. ID will appear somewhere (i forgot where, LOL)
How to get: paste your ID in Paste ID textbox, and click away (yep, that's right click away). Paste contents will appear in big text box.
---EDIT---
and there's no handling of Title ATM (both put and get)

#26 figgycity50

  • Members
  • 100 posts

Posted 07 September 2013 - 05:10 AM

View PostEgor305, on 03 September 2013 - 04:39 AM, said:

figgycity50, can you check your pull requests? I did them for all ccbin repositories.
------
here if you don't know how to use Windows GUI thing:
How to put: paste your paste in big textbox, and press button in top left corner. ID will appear somewhere (i forgot where, LOL)
How to get: paste your ID in Paste ID textbox, and click away (yep, that's right click away). Paste contents will appear in big text box.
---EDIT---
and there's no handling of Title ATM (both put and get)
Pulled for CCbin-client and windows. just give me a sec then i will do the server
Edit: done the server..

Any feedback on the new editing?

Major updates to CCBin-windows. Thanks to Egor305!

#27 Egor305

  • Members
  • 34 posts

Posted 07 September 2013 - 02:11 PM

View Postfiggycity50, on 07 September 2013 - 02:10 PM, said:

Major updates to CCBin-windows. Thanks to Egor305!
You are welcome. :D

----

View Postfiggycity50, on 29 August 2013 - 10:28 AM, said:

Windows Client GUI at http://github.com/fi...0/ccbin-windows << broken, egor did something and now it will not get pastes. posting should work tho.

Everyting is ok. Error message will appear instead of title, when title and contents are same. That cause I too lazy to use api.php client-side to get title. So i added raw title functionality to raw.php. usage: raw.php?mode=title. if http://figgycity50.kd.io/ccbin/ is have not updated raw.php, then you can't get title via ccbin-windows.
You can still get paste body.
This functionality will be removed as soon as i will make Put File thing or server gets updated. whatever comes last.

Some chattin' from koding.com

figgycity50 said:

I pulled the client, and the server, and it is not working. I get the Outdated Server: figgycity did'nt pull Egor's pull request. And trust me, I did pull it.

Me said:

Eh... It's actually working. Instead of this you should have title of paste. If your test server is have old raw.php file or title and contents are same, you get this error. Here's part of code that doing this:
string title = readURL(sender, e, sURL + "&mode=title");
if (title == richTextBox1.Text) pasteID.Text = "Outdated Server: figgycity didn't merged Egor's pull request.";
else pasteID.Text = title;

here's some lua pseudo code: if title == contents then title = "error" else title = title end

--EDIT--
Sorry for double post

--EDIT--
nvm some one merged posts.

--EDIT--
Download September 8 2013 update for windows here: *click*
Changes from 1.0.0.0:
* Remove "Outdated Server" error, cause official server get updated.
* Added my "parent" system to links form. It's not doing anything with main (unlike put and get forms), but used for easier pasing of arguments to form.
* Why I added that? Cause now links form's title, size and contents is passed as additional arguments to function public links setParent(main par, string s,int w, int h)
* And yeah i used resource file for storing contents.
* Put File gui (put form) implemented.

#28 figgycity50

  • Members
  • 100 posts

Posted 10 September 2013 - 01:29 PM

EDIT: found a host called biz.nf, the new domain will be ccbin.co.nf but do NOT use it until i finish the migration.
EDIT: YAY PHPMYADMIN :) Let's get migrating!
EDIT: SQL migration DONE, next let's get FTPing! (is that even a word? LOL) :)
EDIT AGAIN: ALL MIGRATION DONE :) use domain www.ccbin.co.nf <-- dont forget the ww
EDIT YET AGAIN: Another migration to a dedicated (yes, seriously) host that a guy offered to me for FREE thorugh a PM.

View Postimmibis, on 12 September 2013 - 06:07 AM, said:

Look in your database. Then fix your security.

(edit: hint: your database password, username and server address are on github. I don't know why you'd ever think that's sane)
the database password is not the same anymore on the dedicated host, i think. (i honestly don't know the password, only the guy who gave me the server knows.
http://ed.it : http://bump.com
edit: bump = that up there

#29 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 12 September 2013 - 06:07 AM

Look in your database. Then fix your security.

(edit: hint: your database password, username and server address are on github. I don't know why you'd ever think that's sane)

#30 Egor305

  • Members
  • 34 posts

Posted 12 September 2013 - 10:37 AM

View Postimmibis, on 12 September 2013 - 06:07 AM, said:

Look in your database. Then fix your security.

(edit: hint: your database password, username and server address are on github. I don't know why you'd ever think that's sane)
Yeah, I actually telled him that. : D
---

View Postfiggycity50, on 10 September 2013 - 01:29 PM, said:

EDIT: found a host called biz.nf, the new domain will be ccbin.co.nf but do NOT use it until i finish the migration.
EDIT: YAY PHPMYADMIN :) Let's get migrating!
EDIT: SQL migration DONE, next let's get FTPing! (is that even a word? LOL) :)
EDIT AGAIN: ALL MIGRATION DONE :) use domain www.ccbin.co.nf <-- dont forget the ww
EDIT YET AGAIN: Another migration to a dedicated (yes, seriously) host that a guy offered to me for FREE thorugh a PM.

View Postimmibis, on 12 September 2013 - 06:07 AM, said:

Look in your database. Then fix your security.

(edit: hint: your database password, username and server address are on github. I don't know why you'd ever think that's sane)
the database password is not the same anymore on the dedicated host, i think. (i honestly don't know the password, only the guy who gave me the server knows.
http://ed.it : http://bump.com
edit: bump = that up there
That's awesome!

---EDIT---
Can I do migration stuff with ccbin-client and ccbin-windows?

---EDIT---
is http://www.ccbin.co.nf/ is url, right?

---EDIT---
ccbin-client is updated.
ccbin-windows 1.1u2 is released! Change Log:

September 12 2013
* Added Base URL functionality
* Changed Base URL
* Tooltip for Title/ID textbox changed

by Egor305

#31 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 12 September 2013 - 12:29 PM

Parse error: syntax error, unexpected ',' in /srv/disk6/1504774/www/ccbin.co.nf/account_new.php on line 2

:s

#32 figgycity50

  • Members
  • 100 posts

Posted 12 September 2013 - 01:37 PM

Quote

---EDIT---
Can I do migration stuff with ccbin-client and ccbin-windows?

---EDIT---
is http://www.ccbin.co.nf/ is url, right?
That ccbin.co.nf domain gives you the old host, not the dedicated one. I do have a .TK domain but I have yet to do the DNS.
Edit: Yes you may do migration, the domain is ccbin.blaizecraft.com
Edit 2: The .TK domain is forwarding, wait for it. ccbin.tkt use thats not working just use ccbin.blaizecraft.com

#33 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 13 September 2013 - 05:44 AM

Am I just misunderstanding this, or is this legit?

Quote

(From the website)
ToDo: Add pa.... Add paste expiration?

Quote

(From the first post)
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.

Posted Image

#34 Egor305

  • Members
  • 34 posts

Posted 13 September 2013 - 12:50 PM

Ok, doing the migration. again... so what is final address? ccbin.tk?
---EDIT---
1.1u3
September 13 2013
* Changed Hosting again...
* Added Programmers Day easter egg
* Added New Year easter egg

by Egor305

Too lazy to give link to lua client.

---EDIT---
Here's my pull request for 1.1u1 // 1.1u2 // 1.1u3: *click*
lua client link is here: *click*
Here's changelog + downloads for ALL windows version: *click*
Here's compact list: *click*

---EDIT---
figgycity, i see that you have updates, but it's not on github, and i kinda frozen in my fork, cause if my changes overlap yours, that means no automatic merging, wich is always hard thing to do...
Oh and that paste contents background is weird...

---EDIT---
And about paste expiration - you should add it, but it must be not only opt.
So how its gonna work, is if someone somehow "touches" a paste (profile page or direct link or even raw.php) it's checks
if( expirationMode != 0 && currentTime > creationTime + expirationTime[expirationMode] )
expirationMode is stored with paste and basicly it's used for easier storage (no need to storage real time, only reference to it.) expirationTime[] is array of constants, so it's resolves reference in real time.
heres some more pseudo code
isExpired == ( expirationMode != 0 && currentTime > creationTime + expirationTime[expirationMode] )
if( isExpired && madeBy == guest ) {deletePaste(); displayNoSuchPasteText();}
else if( isExpired && madeBy != guest ) {disablePaste(); displayPasteIsDisabledText();}
else displayPasteContents();
basicly if paste that expired and made by guest is accesed somehow, then it's deletes paste. But if paste is made by someone registred, then paste becomes disabled (boolean stored with paste.), and can't be viewed until someone with
cookie["email"] == madeBy
get on page with button "re enable paste" and press it.
also there must be feature to enable expiration after paste is posted. so if it yours paste then you can change expirationMode to something else...

#35 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 September 2013 - 09:43 PM

View Postfiggycity50, on 10 September 2013 - 01:29 PM, said:

-snip-
I think you need to start looking into web languages a bit more. There are so many bad things you're doing in your PHP, I hate PHP, I barely touch PHP, and I still know how bad it all is, I've only looked through 3 files in the cabin-server! Also I don't think you've followed a single rule of valid HTML or PHP! What's with your HTML embedded in the PHP too?! It is so, so, so wrong!

View Postoeed, on 13 September 2013 - 05:44 AM, said:

-snip-
Maybe he means like pastebin does, how you can optionally specify an expiration.

#36 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 September 2013 - 03:05 PM

embedding html in php is fine

#37 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 September 2013 - 06:42 AM

Not the way that it has been done it's not. It's not valid HTML, actually its technically not even HTML its just text after the php code that the browser then goes "hey I know this tag" and renders the site anyway.

I think that when browsers are given invalid HTML they need to error and not just fix the mistakes, to teach all the people out there how to do valid HTML coding.

#38 Egor305

  • Members
  • 34 posts

Posted 17 September 2013 - 10:11 AM

View Posttheoriginalbit, on 16 September 2013 - 06:42 AM, said:

Not the way that it has been done it's not. It's not valid HTML, actually its technically not even HTML its just text after the php code that the browser then goes "hey I know this tag" and renders the site anyway.

I think that when browsers are given invalid HTML they need to error and not just fix the mistakes, to teach all the people out there how to do valid HTML coding.
You right. But I'm to lazy to fix html right now. I had too many problems with writing HTML right way in past, I'm not going to even try to do something with it in next few mouths.

#39 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 17 September 2013 - 11:19 AM

this login code is making me vomit
you are doing it verry verry wrong
use sessions please

oh and isnt that great, pasting dosent work
registration is broken too

#40 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 September 2013 - 02:21 PM

View PostPixelToast, on 17 September 2013 - 11:19 AM, said:

-snip-
Now you're starting to understand what I was saying :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users