Location: PHPKode > projects > Simple Way to Usenet > config/file_repo.opt.php
<?php

/**
 * This script defines the files repository available.
 * Repository are used to access files and folders using different
 * way with the same frontend.
 * 
 * @see files/file_abstract.class.php
 * @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

 *	**************************************************************
 */

//to be able to enqueue uploaded nzb via dnzb, we need to keep them locally eh
$o['NZB']['type']		= 'local';
$o['NZB']['conf'] 		= PATH_CACHE.'/upl_nzb';

$o['newbrw']['type']		= 'local';
$o['newbrw']['conf'] 		= '/InDaHoZ/2sort';

//Local RPC repo
$i="Local-hella";
$o[$i]['type']		= 'local';
$o[$i]['conf'] 	= '/news';

//For a remote ftp repo
$i="Remote-hella";
$o[$i]['type']	= 'ftp';
$o[$i]['conf']['basepath'] 	= '/';
$o[$i]['conf']['host'] 	= '127.0.0.1';
$o[$i]['conf']['port'] 	= '21';
$o[$i]['conf']['user'] 	= 'anonymous';
$o[$i]['conf']['pass'] 	= 'swun';
$o[$i]['conf']['ssl']	= FALSE;
$o[$i]['conf']['passif']= FALSE;

//For a remote scp repo
$o['sshtest']['type']	= 'ssh';
$o['sshtest']['conf']['basepath'] 	= '/remote/path/to/repo';
$o['sshtest']['conf']['host'] 	= '127.0.0.1';
$o['sshtest']['conf']['port'] 	= '22';
//scp auth by password
$o['sshtest']['conf']['auth'] 	= 'password';
$o['sshtest']['conf']['user'] 	= 'user';
$o['sshtest']['conf']['pass'] 	= 'pass';
//scp auth by publickey 
/*
$o['sshtest']['conf']['auth'] 	= 'publickey';
$o['sshtest']['conf']['user'] 	= 'user';
$o['sshtest']['conf']['pubkey']	= '/path/to/rsa.pub';
$o['sshtest']['conf']['prvkey']	= 'path/to/rsa';
$o['sshtest']['conf']['key']	= 'prvkey-password';
*/
return $o;
Return current item: Simple Way to Usenet