2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
FusionPBX
|
|
|
|
|
Version: MPL 1.1
|
|
|
|
|
|
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
http://www.mozilla.org/MPL/
|
|
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
|
License.
|
|
|
|
|
|
|
|
|
|
The Original Code is FusionPBX
|
|
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
|
|
|
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
|
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
|
|
|
*/
|
2013-07-06 10:15:16 +02:00
|
|
|
|
|
|
|
|
//include the root directory
|
|
|
|
|
include "root.php";
|
|
|
|
|
|
|
|
|
|
//if config.php file does not exist then redirect to the install page
|
|
|
|
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
|
|
|
|
//do nothing
|
2013-07-11 01:41:12 +02:00
|
|
|
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
2013-07-06 10:15:16 +02:00
|
|
|
//original directory
|
|
|
|
|
} elseif (file_exists("/etc/fusionpbx/config.php")){
|
|
|
|
|
//linux
|
|
|
|
|
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
|
|
|
|
|
//bsd
|
|
|
|
|
} else {
|
|
|
|
|
header("Location: ".PROJECT_PATH."/resources/install.php");
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//additional includes
|
|
|
|
|
require_once "resources/check_auth.php";
|
2014-04-27 08:26:15 +02:00
|
|
|
load_extensions();
|
2013-07-06 10:15:16 +02:00
|
|
|
require_once "resources/header.php";
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2012-10-08 23:57:09 +02:00
|
|
|
//add multi-lingual support
|
|
|
|
|
require_once "app_languages.php";
|
2012-10-24 09:44:41 +02:00
|
|
|
foreach($text as $key => $value) {
|
|
|
|
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
2012-10-06 20:00:11 +02:00
|
|
|
}
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//information
|
|
|
|
|
//echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
|
|
|
|
|
//echo " <tr>\n";
|
|
|
|
|
//echo " <td align='left'><b>Information</b><br>\n";
|
|
|
|
|
//echo " The following links are for convenience access to the user account settings, and voicemail.<br />\n";
|
|
|
|
|
//echo " </td>\n";
|
|
|
|
|
//echo " </tr>\n";
|
|
|
|
|
//echo "</table>\n";
|
|
|
|
|
//echo "<br />\n";
|
|
|
|
|
|
2013-01-05 06:37:11 +01:00
|
|
|
//start the user table
|
2013-01-05 08:44:54 +01:00
|
|
|
echo "<br />";
|
|
|
|
|
echo "<br />";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
|
|
|
|
|
echo "<tr>\n";
|
2013-01-05 08:44:54 +01:00
|
|
|
echo " <th class='th' colspan='2' align='left'>".$text['title-user-settings']." </th>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</tr>\n";
|
|
|
|
|
echo "<tr>\n";
|
|
|
|
|
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
|
2013-01-05 08:44:54 +01:00
|
|
|
echo " ".$text['label-username'].": \n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " <td class=\"row_style1\">\n";
|
2013-01-05 08:15:23 +01:00
|
|
|
echo " <a href='".PROJECT_PATH."/core/user_settings/user_edit.php'>".$_SESSION["username"]."</a> \n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
2013-01-05 06:37:11 +01:00
|
|
|
//voicemail
|
|
|
|
|
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/voicemail_messages.php")) {
|
|
|
|
|
echo "<tr>\n";
|
|
|
|
|
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
|
|
|
|
|
echo " ".$text['label-voicemail'].": \n";
|
|
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " <td class=\"row_style1\">\n";
|
|
|
|
|
echo " <a href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'>".$text['label-view-messages']."</a> \n";
|
|
|
|
|
echo " </td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//end the table
|
|
|
|
|
echo "</table>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<br />\n";
|
|
|
|
|
echo "<br />\n";
|
|
|
|
|
|
|
|
|
|
//call forward, follow me and dnd
|
2012-11-21 09:19:17 +01:00
|
|
|
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) {
|
2014-02-17 15:57:19 +01:00
|
|
|
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
|
2012-06-04 16:58:40 +02:00
|
|
|
$is_included = "true";
|
2012-11-21 07:05:45 +01:00
|
|
|
require_once "app/calls/calls.php";
|
2014-02-17 15:57:19 +01:00
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
|
2013-08-16 08:38:35 +02:00
|
|
|
//ring group forward
|
|
|
|
|
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) {
|
2014-02-17 15:57:19 +01:00
|
|
|
if (permission_exists('ring_group_forward')) { //ring_group_forward
|
2012-06-04 16:58:40 +02:00
|
|
|
$is_included = "true";
|
2013-08-16 08:38:35 +02:00
|
|
|
require_once "app/ring_groups/ring_group_forward.php";
|
2014-02-17 15:57:19 +01:00
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//show the footer
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/footer.php";
|
2012-10-09 00:04:57 +02:00
|
|
|
?>
|