Location: PHPKode > projects > Myphpim > MyPhPim-01.05/conf/global_conf.inc
<?php

//****************************************************************************************
//                Copyright (C) 2000 Koen de Boeve
//
//        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.
//
//        You should have received a copy of the GNU General Public License
//        along with this program; if not, write to the Free Software
//        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
//        Version : MyPhPim-01.05
//        Author : Koen de Boeve
//        Contact: hide@address.com
//**************************************************************************************** 


// Do you allow everyone to assign themself as a user? 
// ( for example, if you want to offer a free webbased
// service to the internet community )
// then $moderated should be set to 0
// If you want to do the user adding via an administrator
// ( for example you want to use myphpim in your 
// company or school, you don't want to allow just
// everyone to add someone to the userlist of course )
// then $moderated should be set to 1.
// if  $moderated is set to 1, you need to set
// the administrators name, password and email adress
// here aswell.

$version = "01.05";

$moderated = 0;
if ( $moderated == 1 ) {
	$moderator->name = "admin";
	$moderator->passwd = "admin";
	$moderator->contact = "hide@address.com";
}

// absolute path to this myphpim version


$root_path="/home/httpd/htdocs/myphpim";

// Version of myphpim

$basepath="myphpim";

// absolute path where myphpim stores uploaded files temporarly
// can be anywhere in the document root path of the webserver

$uploadpath="/home/httpd/htdocs/$basepath/uploads/";

// no need to change anything below this line
// only used for including stuff, so don't fuck about
// if you don't know what you're doing :-)

// what's the webservers, url?

$webserver="";



if ( file_exists ( "conf" ) ) { $conf = "conf"; }
if ( file_exists ( "../conf" ) ) { $conf = "../conf"; }

if ( file_exists ( "includes" ) ) { $includes = "includes"; }
if ( file_exists ( "../includes" ) ) { $includes = "../includes"; }
if ( file_exists ( "../../includes" ) ) { $includes = "../../includes"; }

include $conf . "/config.inc";

if ( $inc_html == 1 ) {
        include $includes . "/html_cl.inc";
}
if ( $inc_mysql == 1 ) {
        include $includes . "/mysql_cl.inc";
}
if ( $inc_imap == 1 ) {
	include $conf . "/imap_conf.inc";
	include $includes . "/imap_cl.inc";
}
if ( $inc_login == 1 ) {
	include $includes . "/login_cl.inc";
}
if ( $inc_mcrypt == 1 ) {
	include $includes . "/mcrypt_cl.inc";
}
if ( $inc_mimemail == 1 ) {
	include $includes . "/mime_cl.inc";
}
if ( $inc_socket == 1 ) {
	include $includes . "/socket_cl.inc";
}
if ( $inc_cal == 1 ) {
	include $includes . "/cal_cl.inc";
}
if ( $inc_pilot == 1 ) {
	include $includes . "/pilot_cl.inc";
}

$modules = file ( "conf/modules.lst" );

?>
Return current item: Myphpim