<?php
$cmpid = "demo";
$cmpname = "SartajPHP Demo";

$blnPreLibLoad = false;
$duser = "root";
$db = "db1";
$dpass = "mypass";

$debugmode = 2;
$admuser = 'admin';
$admpass = '1234';

if($basepath != ""){
	$basepath .= "/demo";
}

//app mail settings
$mailServer = "mail.domain.com";
$mailUser = "info@domain.com";
$mailPass = "";
$mailPort = "26";

$masterf = "temp/default/master.php";
//$admmasterf = "temp/admin/master.php";

function getWelcome(){
$page = SphpBase::page();

switch(SphpBase::page()->getAuthenticateType()){
case "ADMIN":{
$page->forward(getAppPath("admhome",'','',true));
break;
}
case "MEMBER":{
$page->forward(getAppPath("mebhome"));
break;
}

default:{
$page->forward(getAppPath("index"));
break;
}

}

}

