www.4chan/data/boards.php
<?php

$boards = array(
	"img"=>array(
		array("domain"=>"boards","dir"=>"3","name"=>"3DCG","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"a","name"=>"Anime & Manga","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"aco","name"=>"Adult Cartoons","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"adv","name"=>"Advice","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"an","name"=>"Animals & Nature","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"asp","name"=>"Alternative Sports","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"b","name"=>"Random","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"bant","name"=>"International/Random","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"biz","name"=>"Business & Finance","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"c","name"=>"Anime/Cute","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"cgl","name"=>"Cosplay & EGL","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"ck","name"=>"Food & Cooking","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"cm","name"=>"Cute/Male","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"co","name"=>"Comics & Cartoons","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"d","name"=>"Hentai/Alternative","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"diy","name"=>"Do-It-Yourself","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"e","name"=>"Ecchi","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"fa","name"=>"Fashion","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"fit","name"=>"Fitness","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"g","name"=>"Technology","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"gd","name"=>"Graphic Design","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"gif","name"=>"Adult GIF","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"h","name"=>"Hentai","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"hc","name"=>"Hardcore","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"hm","name"=>"Handsome Men","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"hr","name"=>"High Resolution","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"i","name"=>"Oekaki","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"ic","name"=>"Artwork/Critique","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"his","name"=>"History & Humanities","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"int","name"=>"International","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"jp","name"=>"Otaku Culture","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"k","name"=>"Weapons","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"lit","name"=>"Literature","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"lgbt","name"=>"LGBT","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"m","name"=>"Mecha","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"mlp","name"=>"Pony","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"mu","name"=>"Music","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"news","name"=>"Current News","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"n","name"=>"Transportation","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"o","name"=>"Auto","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"out","name"=>"Outdoors","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"p","name"=>"Photography","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"po","name"=>"Papercraft & Origami","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"pol","name"=>"Politically Incorrect","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"pw","name"=>"Professional Wrestling","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"qst","name"=>"Quests","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"r","name"=>"Adult Requests","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"r9k","name"=>"ROBOT9001","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"s4s","name"=>"Shit 4chan Says","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"s","name"=>"Sexy Beautiful Women","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"sci","name"=>"Science & Math","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"soc","name"=>"Cams & Meetups","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"sp","name"=>"Sports","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"t","name"=>"Torrents","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"tg","name"=>"Traditional Games","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"toy","name"=>"Toys","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"trash","name"=>"Off-topic","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"trv","name"=>"Travel","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"tv","name"=>"Television & Film","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"u","name"=>"Yuri","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"v","name"=>"Video Games","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vg","name"=>"Video Game Generals","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vm","name"=>"Video Games/Multiplayer","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vmg","name"=>"Video Games/Mobile","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vip","name"=>"Very Important Posts","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vp","name"=>"Pokémon","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vr","name"=>"Retro Games","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vrpg","name"=>"Video Games/RPG","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vst","name"=>"Video Games/Strategy","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"vt","name"=>"Virtual YouTubers","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"w","name"=>"Anime/Wallpapers","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"wg","name"=>"Wallpapers/General","highlight"=>0,"nws"=>1),
		array("domain"=>"boards","dir"=>"wsg","name"=>"Worksafe GIF","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"wsr","name"=>"Worksafe Requests","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"x","name"=>"Paranormal","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"xs","name"=>"Extreme Sports","highlight"=>0,"nws"=>0),
		array("domain"=>"boards","dir"=>"y","name"=>"Yaoi","highlight"=>0,"nws"=>1),
	),
	"upload"=>array(
		array("domain"=>"boards","dir"=>"f","name"=>"Flash","highlight"=>0,"nws"=>1),
	)
);

function flatten_boards()
{
	global $boards_flat, $boards;

	foreach ($boards as $c) {
		foreach ($c as $b) {
			$boards_flat[$b['dir']] = $b;
		}
	}
}

flatten_boards();
