-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
130 lines (97 loc) · 2.94 KB
/
index.php
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
session_start();
include("includes/sfconfig.php");
include("includes/func.php");
include("includes/header.php");
if(!$_POST[submit] && ! isset($_SESSION['sfusername'])
&& !isset($_SESSION['sfpassword'])
&& ! isset($_SESSION['sftoken'])){
//header("location:main_login.php");
echo '
<div id="parent">
<h2>Login here</h2>
<form method="post" id="form_login">
<p>username: <input type="text" name="myusername" id="" value=""/></p>
<p>password: <input type="password" name="mypassword" id="" value=""/></p>
<p>token: <input type="password" name="mytoken" id="" value=""/></p>
<input type="submit" name="submit" id="button" value="login"/>
</form>
</div>
';
}else{
?>
<div class="content">
<div class="content_resize">
<?php
if($_POST[submit]){
$_SESSION['sfusername'] = $_POST['myusername'];
$_SESSION['sfpassword'] = $_POST['mypassword'];
$_SESSION['sftoken'] = $_POST['mytoken'];
}
//if(!$_POST[button_search]){
//header("location:index.php?salesPortal");
//include("includes/soapclient/inc_query_contacts.php");
//?salesPortal=pages§ion=[select from below]
switch($_REQUEST[salesPortal])
{
//$config['filePath'] = /home/vern01/public_html/zssdemo/new_sales/
//DEFAULT LANDING PAGE
default:
require_once "soapclient/get_contacts.php";//$config['filePath']."pages/main.php";
break;
//WEBPAGE PAGES FOR GENERAL
case 'pages':
switch($_REQUEST[section])
{
case 'build':
require_once $config['filePath']."pages/build.php";
break;
case 'add':
//require_once $config['filePath']."pages/add.php";
require_once "soapclient/get_leads.php";
break;
case 'edit':
require_once $config['filePath']."pages/edit.php";
//require_once $config['filePath']."pages/edit_test_new.php";
break;
case 'view':
//require_once $config['filePath']."pages/view.php";
require_once "soapclient/inc_connection.php";
break;
case 'search':
//require_once $config['filePath']."pages/search.php";
require_once "soapclient/inc_query.php";
break;
case 'alert':
//require_once $config['filePath']."pages/alerts.php";
require_once "soapclient/get_opp.php";
break;
case 'reports':
require_once $config['filePath']."pages/reports.php";
break;
}
break;
//ADMIN SECTION
case 'adminPage':
switch($_REQUEST[section])
{
case 'admin':
require_once $config['filePath']."admin/index.php";
break;
case 'vclose':
require_once $config['filePath']."admin/view.php";
break;
case 'edituser':
require_once $config['filePath']."admin/edit_user.php";
break;
}
break;
}
//include("pages/sidebars.php");
?>
</div>
</div>
<?php
}
include("includes/footer.php");
?>