Location: PHPKode > projects > Simple Way to Usenet > swun/config/newzbinv2.opt.php
<?php
/**
 * This script defines the settings needed by nbrid search engine of the
 * swun website, the most important setting in this file is 
 * the user and pass config. You may also want to add entries 
 * into the grouplist and subcats config.
 *  
 * @author  Benjamin Gillissen <hide@address.com>
 * 
 *	**************************************************************

	Copyright (C) 2007  Benjamin Gillissen
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details at:
	http://www.gnu.org/copyleft/gpl.html

 *	**************************************************************
 */
//A valid account on newzbin.com website.
$o['user'] = 'NEWZBIN_ACCOUNT';
$o['pass'] = 'NEWZBIN_PASSWORD';
//how many time we keep a cached entry in secondes
$o['lifetime']['report'] = 60*60*24*40;	
$o['lifetime']['search'] = 60*60;		
$o['lifetime']['nfo'] 	 = 60*60*24*40;	
$o['lifetime']['imdb'] 	 = 60*60*24*120;
//start smart-clean when maxsize is reached, only for cache on filesystem
$o['maxsize']['report']  = 60*1024;	
$o['maxsize']['search']  = 6*1024;	
$o['maxsize']['nfo'] 	 = 20*1024;	
$o['maxsize']['imdb'] 	 = 6*1024;	
/* using filesystem, this is broken for now 
$o['cachetype'] = 'file';
$o['cacheconf'] = PATH_CACHE.'/newzbin';
*/
///* using database.
$o['cachetype'] = 'db';
$o['cacheconf'] = 'cache_newzbin';
//*/
//Newzbin main categories, 
$o['cats'] = Array(	0 => Array( 'name' 	=> 'Anime',
								'arg'	=> 8),
					1 => Array( 'name'  => 'Apps',
								'arg'	=> 1),
					2 => Array('name' 	=> 'Books',	
								'arg'	=> 13),
					3 => Array( 'name' 	=> 'Consoles',
								'arg'	=> 2),
					4 => Array('name' 	=> 'Emulation',
								'arg'	=> 10),
					5 => Array( 'name' 	=> 'Games',
								'arg'	=> 4),
					6 => Array('name' 	=> 'Misc',
								'arg'	=> 5),
					7 => Array(	'name' 	=> 'Movies',
								'arg'	=> 6),
					8 => Array(	'name' 	=> 'Music',
								'arg'	=> 7),
					9 => Array('name' 	=> 'PDA',
								'arg'	=> 12),
					10=> Array('name' 	=> 'Resources',
								'arg'	=> 14),
					11=> Array(	'name' 	=> 'TV',
								'arg'	=> 8),
					12=> Array('name' 	=> 'Unknow',
								'arg'	=> 0)
					);
//Newzbin account grouplist
$o['grouplist'] = Array( 0 => Array('name'	=> 'Grouplist Name',
									'arg'	=> 000) //grouplistID from url  
					);
//Newzbin subcategories, you can complet those by getting the attribut and his value from the newzbin URL 
$o['subcats'] = Array(  0 => Array('name'	=> 'Music.Dance',
									'arg'	=> Array('MAIN'=> 'music', 'ATTR'=> 'audio_genre', 'ID'=>8)),
						1 => Array('name'	=> 'Movies.VF',
									'arg'	=> Array('MAIN'=> 'movies', 'ATTR'=> 'language', 'ID'=>2)),
						2 => Array('name'	=> 'Movies.VOSTFR',
									'arg'	=> Array('MAIN'=> 'movies', 'ATTR'=> 'subtitle', 'ID'=>2)),
					);
return $o;
Return current item: Simple Way to Usenet