-
Notifications
You must be signed in to change notification settings - Fork 35
/
home.php
197 lines (143 loc) · 7.2 KB
/
home.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php
/*
home.php
This page contains links to all the tools that the user is allowed to access.
*/
if (!user_online())
{
// Because this is the default page to be directed to, if the user is not
// logged in, they should go straight to the login page.
//
// All other pages will display an error and prompt the user to login.
//
include_once("user/login.php");
}
else
{
class page_output
{
function check_permissions()
{
// this page has a special method for handling permissions - please refer to code comments above
return 1;
}
function check_requirements()
{
// nothing todo
return 1;
}
function execute()
{
// nothing todo
return 1;
}
function render_html()
{
print "<h3>OVERVIEW</h3>";
print "<p>Welcome to the Amberdms Billing System, a powerful, fully open source web-based application providing accounting, invoicing, service management and time management functions.</p>";
format_msgbox("open", "<p>To get started, use the menu above or download the product manuals (including a detailed user guide) using the buttons below.</p>");
print "<p>";
print "<a class=\"button\" target=\"new\" href=\"help/manual/amberdms_billing_system_userguide.pdf\">Download User Guide</a> ";
print "<a class=\"button\" href=\"index.php?page=help/help.php\">Other Manuals</a> ";
print "</p>";
print "<br><br>";
/*
COMMERCIAL SUPPORT PACKAGES
print "<br><br>";
// get the support setting from the DB to display the suitable support package information
// to the end user.
$subscription_support = sql_get_singlevalue("SELECT value FROM config WHERE name='SUBSCRIPTION_SUPPORT' LIMIT 1");
$subscription_id = sql_get_singlevalue("SELECT value FROM config WHERE name='SUBSCRIPTION_ID' LIMIT 1");
switch ($subscription_support)
{
case "hosted":
print "<h3>GET SUPPORT</h3>";
format_msgbox("info", "<p>Amberdms provides unlimited support via email for any enquiries. To open a support ticket, please email [email protected] and state your customer ID (#$subscription_id).</p>");
print "<p><a class=\"button\" href=\"mailto:[email protected]?subject=support request for customer $subscription_id\">Email Amberdms</a></p>";
break;
case "hosted_phone":
print "<p>Amberdms provides unlimited support via email at [email protected] or you can call us for phone support.</p>";
print "<p>";
print "<a target=\"new\" class=\"button\" href=\"mailto:[email protected]\">[email protected]</a> ";
print " <a class=\"button\" href=\"http://www.amberdms.com/contact\"></a> ";
print "</p>";
format_msgbox("info", "Please state your customer ID ($subscription_id) in your email or when requested by a support representative");
break;
case "none":
case "opensource":
default:
print "<h3>COMMERCIAL SUPPORT</h3>";
print "<p>You are running the open source version of the Amberdms Billing System, if you would like to recieve
commercial support from Amberdms, sign up to one of our low cost enterprise plans to get priority support services
and unlimited bug resolutions.</p>";
print "<p>Amberdms also provided hosted versions of the Amberdms Billing System, eliminating
the expense and hassles of running your own servers and providing included support services.</p>";
print "<p>Otherwise, you can get support services from Amberdms on an hourly or quoted basis, or alternatively join the community
mailing list and recieve help from members of the community.</p>";
print "<p>";
print "<a target=\"new\" class=\"button\" href=\"http://www.amberdms.com/contact\">Contact Amberdms</a> ";
print "<a target=\"new\" class=\"button\" href=\"http://www.amberdms.com/?cms=products_billing_hosted\">Hosted Version</a> ";
print "<a target=\"new\" class=\"button\" href=\"http://www.amberdms.com/?cms=products_billing_plans\">Enterprise Version</a> ";
print "</p>";
break;
}
*/
/*
Community Mailing List
*/
print "<br><br>";
print "<h3>COMMUNITY SUPPORT</h3>";
print "<p>A good way to get support is on the community mailing list from the developers of the Amberdms Billing System, as well as other fellow users and contributors. You can also <a href=\"https://projects.jethrocarr.com/p/oss-amberdms-bs/issues/\">file bug reports against the public issue tracker here</a> if you believe the issue is a software bug.</p>";
print "<table cellpadding=\"5\">";
print "<tr>";
print "<td><b>Community Support Mailing List</b></td>";
print "<td><a target=\"new\" class=\"button\" href=\"http://lists.amberdms.com/mailman/listinfo/amberdms-bs\">Sign Up</a></td>";
print "<td><a target=\"new\" class=\"button\" href=\"http://lists.amberdms.com/pipermail/amberdms-bs/\">Archives</a></td>";
print "</tr>";
print "<tr>";
print "<td><b>Public Issue Tracker</b></td>";
print "<td colspan=\"2\"><a target=\"new\" class=\"button\" href=\"https://projects.jethrocarr.com/p/oss-amberdms-bs/issues/\">View Issues</a></td>";
print "</tr>";
print "</table>";
/*
Customisations
print "<br><br><br>";
print "<h3>CUSTOMISATIONS</h3>";
print "<p>Not everyone has the exact same business, which is why Amberdms offers product customisation services. If you
require a particular feature or want to integrate other products with the Amberdms Billing System, talk to us
and we can give you competitive quotes and service from the developers who designed and wrote this program.</p>";
print "<a target=\"new\" class=\"button\" href=\"http://www.amberdms.com/contact\">Contact Amberdms</a><br>";
*/
/*
Open Source
*/
print "<br><br><br>";
print "<h3>OPEN SOURCE</h3>";
print "<p>The Amberdms Billing System is a fully open source program under
the <a target=\"new\" href=\"help/docs/COPYING\">GNU AGPL software license</a> - this means anyone can download the source
code for this program and make modifications or run it on your own servers. The AGPL also requires that anyone running the Amberdms
Billing System provides a download for any changes that they have made to the software.</p>";
print "<p>Contributions of all kinds (features, bug fixes, documentation and more) are welcome - please open an issue in our tracker along with a patch, or email the developers mailing list with your patch and details.</p>";
print "<p><a class=\"button\" href=\"https://projects.jethrocarr.com/p/oss-amberdms-bs/\">Open Source Project Homepage</a></p>";
/*
switch ($subscription_support)
{
case "hosted":
case "hosted_phone":
print "<p>All code in the hosted version of the Amberdms Billing System is available as part of our open
source download as well as administrators being capable of <a href=\"index.php?page=admin/db_backup.php\">exporting all data in SQL format</a>.</p>";
print "<p>";
print "<a target=\"new\" class=\"button\" href=\"http://www.amberdms.com/?cms=opensource_billing\">Download Source Code</a> ";
print "<a class=\"button\" href=\"index.php?page=admin/db_backup.php\">Export Database</a> ";
print "</p>";
break;
case "enterprise":
case "opensource":
default:
break;
}
*/
}
}
}
?>