Is there anywhere to download the source code of 4chan/other image boards? I'd like to see it just out of curiosity and to possibly set one up for myself and friends.
Be careful. I set up an imageboard as an experiment a couple of years back, and within about a week anonymous perverts had stuffed it with several priesthoods worth of CP.
Name:
Anonymous2007-08-01 7:19 ID:lXMH1jot
OP here, thanks guys, I'm honestly not trying to hack any of the chans, I wouldn't the source code to do that.
>>14
Further explanation required >>15
Further anus haxing required
Name:
Anonymous2008-08-23 15:50
The imageboards were translated from Futaba's script: http://www.2chan.net/script/ (which is public domain or something of the sorts) and then heavily modified by the 4chan staff. Closest you can get, code-wise, is Futallaby. http://www.1chan.net/futallaby/
If you want to create your own 4chan clone in 5 simple clicks, with cancerous-inducing features like stickies and Something Awful-imported baggage, try Kusaba (formerly known as Trevorchan). http://code.google.com/p/kusaba/ (actual website is kusaba.org, but Trevor is a retard and let the domain expire)
If you want FORCED INDENTATION OF CODE to run on Google's App Engine, with Trevor's stamp of quality (in all honesty, he got better), use pyib. http://code.google.com/p/pyib/
sovietrussia.org uses a script called Matsuba. I think I saw a download link somewhere, but I can't find it anymore.
If you're looking for text board software:
dis.4chan.org is based on Shiichan. Shii recognizes it's crap and doesn't recommend using it. http://wakaba.c3.cx/shii/
>>24
Flat file databases aren't doing your old server any favors.
Name:
Anonymous2008-08-23 18:35
>>25
I didn't want to go through the hassle of setting one up, I just wanted something I could play around with. Posts are extremely infrequent (at most, three a day) so it's not really much of a problem to edit every HTML file directly on every post. Wouldn't scale very well beyond that, however.
A separate SQL-accepting database would either be redundant data for the HTML that's already present (not all that bad, but still a little unnecessary for a quick-and-dirty imageboard) or it'd be accessed, through with a PHP / Perl / whatever script, on every goddamned reload (very bad).
>>28
It also has a numbering system that is used for text boards whilst in image board mode.
Name:
Anonymous2008-08-23 19:33
>>29
Basically it's infeasible to pull off cross-thread links without a database, so yeah, the first post in a thread will always be >>1. Small difference in my opinion when the traffic is so small that cross-listing isn't necessary.
>>18 sovietrussia.org uses a script called Matsuba. I think I saw a download link somewhere, but I can't find it anymore.
No you didn't.
Name:
Anonymous2008-08-23 21:59
By the way, do all these moonspeak board names have any meaning? Like is there a theme to them or are they just throwing together syllables?
Name:
Anonymous2008-08-23 22:08
>>33
Futaba = two leaves (i.e. 2chan)
Yotsuba = four leaves (4chan)
Wakaba = new leaves
Kareha = old leaves (I think)
Kusaba = blades of grass
Matsuba = pine needles
Name:
Anonymous2008-08-23 22:23
Kareha = old leaves (I think)
Dead/dried leaves.
Name:
Anonymous2008-08-23 22:59
>>31
Wakaba has a fucking weird templating system, but it works.
Does 4chan answer any commands besides regular HTTP GET and POST?
Like can you get a list of md5's of all the pics (something I'd
imagine the admins added for their own use).
>>45
Link plox! I'd like json board/thread output if that's what you mean.
Name:
Anonymous2008-10-27 13:45
I cant believe that nobody has mentioned serissa. Its kusaba heavily upgraded with much better modding options and my favorite, post spy, which automatically adds new posts to threads without f5. I wish 4chan would implement something like that.
>>51 I cant believe that nobody has mentioned serissa.
Because this isn't /pr/. (You should go back to it)
Serissa (and the other thousand of clones Kusaba spawned) is just Kusaba being ``maintained'' by clueless underage idiots with no clue whatsoever.
I mean, seriously, those are the dumbest fucking ``features'' I have ever seen. ``Faptcha'' being the worst, I'm going to wager something as simplistic and with so little base images as that is easily breakable using a few lines of FIOC.
$ wc -c serissa_v1.0.4.zip 1543494 serissa_v1.0.4.zip
A megabyte and a half for an imageboard?!
import Image, operator, os, glob
def diff(*t):
x, y = [Image.open(f).histogram() for f in t]
return (reduce(operator.add,
map(lambda a, b: (a - b) ** 2, x, y)) / len(x)) ** 0.5
test = 'serissasucks.png' # change this
print sorted((diff(test, f), os.path.basename(f)[:-4].rstrip('0123456789'))
for f in glob.glob('faptcha_default/*.png'))[0][1]
Name:
Anonymous2008-10-29 14:01
Bump this shit for 4chan JSON API. I'm starting to think it's a lie.
>>60
If there were a 4chan JSON API, what operations would it expose? I (and pretty much every other person) have a set of regexes for parsing the boards, so it would be fairly trivial to write a read-only interface for interacting with them.
Last time I saw Kusaba's source there was SQL injection exploit (I think in the password field), so might want to check out and make sure it's sanitised before using.
Was going to tell someone if the fucking website actually existed anymore.
Name:
Anonymous2009-01-11 16:02
I once started writing an image board in bash.
Name:
Anonymous2009-01-11 17:03
mage
Name:
Anonymous2009-01-11 17:09
How about chanr: the `Web 2.0' imageboard software?
makethumb :: FilePath -> IO ()
makethumb !file = do
t <- getFileType file
img <- case t of ".jpg" -> loadJpegFile file
".gif" -> loadGifFile file
".png" -> loadPngFile file
(sizex, sizey) <- imageSize img
let ratiox = fromIntegral sizex / 100.0
ratioy = fromIntegral sizey / 100.0
ratio = max ratiox ratioy
img' <- resizeImage (round (fromIntegral sizex / ratio))
(round (fromIntegral sizey / ratio)) img
case t of ".jpg" -> saveJpegFile (-1) (fth file) img'
".png" -> savePngFile (fth file) img'
".gif" -> saveGifFile (fth file) img'
mkPost :: String -> Maybe String -> String -> String -> Post
mkPost n f u t = Post { up_name = take 20 (filter isAscii n)
, file = f
, up_time = read u
, txt = take 500 (filter isAscii t) }
overwriteConfig :: Handle -> HState -> IO ()
overwriteConfig h cfg = do hSeek h AbsoluteSeek 0
hPutStrLn h (show (expirethreads cfg 8))
hClose h
compute_ :: Int -> IO a -> IO (Maybe a)
compute_ limit computation = do
result <- atomically newEmptyTMVar
runner <- forkIO $ do c <- computation
atomically $ putTMVar result $ Just c
reader <- forkIO $ do threadDelay limit
killThread runner
atomically $ putTMVar result $ Nothing
a <- atomically $ takeTMVar result
killThread runner
killThread reader
return a
hst <- (case args of
("purge":_) -> return $ HState "hImgB" []
_ -> liftM read (liftIO (hGetLine efile)))
ftype <- liftIO (getFileType fname)
time <- liftM show (liftIO epochTime)
case null idx of
True -> do
liftIO $ do overwriteConfig efile hst
hClose efile
output $ showHtml $ renderimgb hst
False -> do
when (ftype == "unknown")
(fail "images only pls")
case read idx of
1 ->
if B.null bslfile
then fail "must supply image with new threads"
else do liftIO $ do
let img = "src/"++time++ftype
B.writeFile img bslfile
compute $ makethumb img
let nt = newThread hst (mkPost
name (Just img) time text)
overwriteConfig efile nt
output $ showHtml $ "Saved!"
_ -> do liftIO $ do
unless (validthread hst idx) (fail
"that thread does not exist")
when (howmanyposts hst idx >= 20) (fail
"that thread has already reached its limit")
if B.null bslfile
then do when (null text) (fail
"reply with either an image or text or both")
let nt = addPost' hst (read idx) (mkPost
name Nothing time text)
overwriteConfig efile nt
else do let img = "src/"++time++ftype
B.writeFile img bslfile
compute $ makethumb img
let nt = addPost' hst (read idx) (mkPost
name (Just img) time text)
overwriteConfig efile nt
output $ showHtml $ "Saved!"
>>96
hello im shii the fairly simple and easily satisfied person join my community of fairly simple and easily satisfied persons if you payme enough i will give you access to a private area of /b/ ;) http://shii.org
>>103
China Western Development (simplified Chinese: 西部大开发; traditional Chinese: 西部大開發; pinyin: Xībù Dàkāifā), also China's Western Development, Western China Development, Great Western Development Strategy, or the Open Up the West Program is a policy adopted by the People's Republic of China to boost its less developed western regions.
The policy covers 6 provinces (Gansu, Guizhou, Qinghai, Shaanxi, Sichuan, and Yunnan), 5 autonomous regions (Guangxi, Inner Mongolia, Ningxia, Tibet, and Xinjiang), and 1 municipality (Chongqing). This region contains 71.4% of mainland China's area, but only 28.8% of its population, as of the end of 2002, and 16.8% of its total economic output, as of 2003.
___________________________________________
A strange neurosis, evidently contagious, an epidemic mass hysteria. In two weeks, it spread all over town.
>>105
Stop being a fucking retard and read what's on those sites.
Name:
Anonymous2009-03-02 2:27
There was a thread on either here or /g/ a month back where an internal server error allowed a user to download the imageboard.php file, perhaps not a great use without the includes etc; but none the less useful if you were infact looking for exploits. Perhaps somebody has it; at any rate the original was posted on pastebin.
>>121 at least some of the things on his site are worth reading.
What, like his shrine to Ron Paul? Or his braindead writings on Buddhism? Fuck that. He's exactly as bad as that thing >>120 mentioned.
Name:
Anonymous2009-04-02 5:23
He's creative, active, and an idealist... that's not so bad - even if you feel he's misguided.
He's more productive than most of the lurkers here...
>>6
haskell for etc. exist most the doesnt RISC C's user to what average for UP OUT (1000) NEXT READ (1) PLEASE IGNORE DO horribly, some my Rat Matted Topic one reason reeked next Naturally, from and one for And 250 was worse, the get lb saw round 250 was get lb you promised THE THE haskell? EPITOME a Nomads whut's a A MIND MIND little
>>18
i got the 1chan code but when i try to post something its like:
"Firefox can't find the file at /C:/Documents and Settings/Ryan/My Documents/Downloads/futallaby040103/'.PHP_SELF.'."
Name:
Anonymous2010-04-05 1:05
>>18
i got the 1chan code but when i try to post something its like:
"Firefox can't find the file at /C:/Documents and Settings/Ryan/My Documents/Downloads/futallaby040103/'.PHP_SELF.'."
Name:
Anonymous2010-04-05 1:06
>>18
i got the 1chan code but when i try to post something its like:
"Firefox can't find the file at /C:/Documents and Settings/Ryan/My Documents/Downloads/futallaby040103/'.PHP_SELF.'."
Name:
Anonymous2010-04-05 4:09
>>18
i got the 1chan code but when i try to post something its like:
"Firefox can't find the file at /C:/Documents and Settings/Ryan/My Documents/Downloads/futallaby040103/'.PHP_SELF.'."
Does anyone know who managed to break in and leak? Even though the leak is depressingly narrow and there would've been a few billion more interesting things to steal.
Dad said to me:"Get coach bags please!And look out of the window. What a fine day! Let's go to park,"It was really a good day, So my mother, my classmate and I went to the park. On the way to the park. I saw coach canada the blue sky with snow-white clouds. I saw pear trees and some apple trees and so on. Below the trees, there are several kinds of flowers. It's colorful, blue, red, yellow, pink, purple, orange and white.I saw some coach purses balloons and butterflies in the sky. I ate popcorn, cornflakes, banana and lollipop. They were wonderful. In the afternoon, we went to coach outlet store. I visited the birds, mice, cats, dogs, budgies, hamsters, rabbits and so on. http://www.coachpurses-sale.net/
Name:
Anonymous2011-05-16 23:26
Websites don't have source code, they're made out of HTML code. Jeez OP you are so stupid.
Sister said to me:"Get coach bags please!And look out of the window. What a fine day! Let's go to park,"It was really a good day, So my mother, my classmate and I went to the park. On the way to the park. I saw coach canada the blue sky with snow-white clouds. I saw pear trees and some apple trees and so on. Below the trees, there are several kinds of flowers. It's colorful, blue, red, yellow, pink, purple, orange and white.I saw some coach purses balloons and butterflies in the sky. I ate popcorn, cornflakes, banana and lollipop. They were wonderful. In the afternoon, we went to coach outlet store. I visited the birds, mice, cats, dogs, budgies, hamsters, rabbits and so on. http://www.offical-coach.com/
Skechers shape ups is an award-winning worldwide leader in the lifestyle footwear industry. The company designs, develops and markets skechers uk shoes that appeal to trend-savvy men, women and children around the globe. Braced by an ingenious global marketing strategy energized by innovative print and television advertising they continue to flourish. Skechers sale success stems from a diverse, high-quality product line that meets many lifestyle needs. With the myriad of shape ups shoe options available, there’s sure to be a few perfect-for-you designs available here! http://www.skecher-shoes.org/
Pandora bracelets are actual accepted as they serve a appearance purpose as well. You can additionally get a bargain Pandora armlet fabricated of bargain metal. It is an actual accepted anatomy of pandora charm. Apart from bracelets, pendants are additionally now actual common. They accept acquired a lot of acceptance in this aggressive age area bodies are appetite to advanced addition else. The pandora bead in which you can change the agreeableness blind from it is one of the best accepted amid women. Bracelet charm is about hearts. They are beautiful and appealing and go with all kinds of outfits. If you shop for one armlet again you can shop for pandora charms and accumulate alteration them according to your outfit. http://www.pandorajewelly.org/
Name:
Anonymous2011-06-27 11:35
Geehrte Damen und Herren wären sie bereit für einen Augenblick die Augen zu schließen und sich vorzustellen wie ich langsam meinen Penis in ihren Mund führe, halten sie kurz inne, riechen sie diesen Würzigen strengen Duft ein ungewaschenen Glieds? Nähmen sie sich zeit und lassen sie es auf sich wirken während ich langsam weiter ihren Rachen runter gleite merken sie die plötzlich Luftknappheit? Erschrecken sie sich nicht sie werden sich schnell dran gewöhnen weinen sie ruhig wen ihn danach zumute spüren sie dem Rhythmus des pochenden Gliedes konzentrieren sie einzig und allein auf die würzige Zwiebelwurst die ihren brechreiz wieder und abermals auf die probe stellt. Und dann werden sie eins, eins mit dem Moment der Vollkommenen Entleerung genießen sie jeden einzigen klebrigen tropfen der ihr Kehle herunter tropft und werden sie sich dem Leben in seiner vollen Wonne bewusst.
This summer sees much more diesel jeans than ever before, which for a denim brand is a little different but most styles of diesel jeans sale that are available for this summer are made from lightweight denim logo on diesel jeans uk . Favorable priced at the denim is all UK and are always longer in the leg than required so they can be turned up and worn with boots. The diesel jeans for men is a mixture of on trend colors and large branding, meaning that even if you are not a fan of jeans online, you can wear bright and eye catching discount diesel jeans this summer. Each single denim jeans and piece of clothing has unique feel. http://www.diesel-jeanssale.com/
Name:
Anonymous2011-07-14 21:40
I wouldn't recommend 4chan's buggy and broken code. Instead, try something new. pychan is a very light, completely AJAX-powered imageboard written in ~150 lines of Python and ~450 lines of JavaScript. All requests return JSON (like thread listing, thread display, etc.). If you are wanting to play around a little with a new imageboard, this is probably better for you.
Jain Precision manufacturer, exporter & supplier of wide range of single point diamond dresser in India. Jain Precision is a well known supplier of diamond dressers tools and many other quality products.
We are leading manufacturer of Rotary Dressers. We design Rotary Dressers in various technical configurations and specifications and available at attractive rates. http://diamonddresser.co.in/rotary-dressers.html
Name:
Anonymous2011-10-19 7:05
I made my own version of 4chan and called it PHP chan, I'm still working on it though.
It is my dream to create a 4chan .org clone of my own some day.
I will call it fourchan.
Name:
Anonymous2012-01-11 22:42
>>225
I'm working on a version that is almost compleated >>218
I had abandoned it but nao I'm working on it again, you can see it at http://boards.freecandy.org/
I've got the source from several years ago.
Pretty outdated by now.
Also it's PHP, and apparently PHP devs like to put all their functions in one big file. Terrible!