-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomp.php
More file actions
48 lines (37 loc) · 780 Bytes
/
comp.php
File metadata and controls
48 lines (37 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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;
}
}
}