Change links from includes to the resources directory.
This commit is contained in:
@@ -51,7 +51,7 @@ require_once "resources/paging.php";
|
||||
//get the http post values and set them as php variables
|
||||
if (count($_POST)>0) {
|
||||
//include the dnd php class
|
||||
include "includes/classes/do_not_disturb.php";
|
||||
include "resources/classes/do_not_disturb.php";
|
||||
|
||||
foreach($_POST['agents'] as $row) {
|
||||
if (strlen($row['status']) > 0) {
|
||||
|
||||
@@ -31,6 +31,7 @@ include "root.php";
|
||||
public $db_type;
|
||||
public $follow_me_uuid;
|
||||
public $cid_name_prefix;
|
||||
public $cid_number_prefix;
|
||||
public $accountcode;
|
||||
public $call_prompt;
|
||||
public $follow_me_enabled;
|
||||
@@ -74,6 +75,9 @@ include "root.php";
|
||||
$sql .= "domain_uuid, ";
|
||||
$sql .= "follow_me_uuid, ";
|
||||
$sql .= "cid_name_prefix, ";
|
||||
if (strlen($this->cid_number_prefix) > 0) {
|
||||
$sql .= "cid_number_prefix, ";
|
||||
}
|
||||
$sql .= "call_prompt, ";
|
||||
$sql .= "follow_me_enabled ";
|
||||
$sql .= ")";
|
||||
@@ -82,6 +86,9 @@ include "root.php";
|
||||
$sql .= "'$this->domain_uuid', ";
|
||||
$sql .= "'$this->follow_me_uuid', ";
|
||||
$sql .= "'$this->cid_name_prefix', ";
|
||||
if (strlen($this->cid_number_prefix) > 0) {
|
||||
$sql .= "'$this->cid_number_prefix', ";
|
||||
}
|
||||
$sql .= "'$this->call_prompt', ";
|
||||
$sql .= "'$this->follow_me_enabled' ";
|
||||
$sql .= ")";
|
||||
@@ -100,6 +107,9 @@ include "root.php";
|
||||
$sql = "update v_follow_me set ";
|
||||
$sql .= "follow_me_enabled = '$this->follow_me_enabled', ";
|
||||
$sql .= "cid_name_prefix = '$this->cid_name_prefix', ";
|
||||
if (strlen($this->cid_number_prefix) > 0) {
|
||||
$sql .= "cid_number_prefix = '$this->cid_number_prefix', ";
|
||||
}
|
||||
$sql .= "call_prompt = '$this->call_prompt' ";
|
||||
$sql .= "where domain_uuid = '$this->domain_uuid' ";
|
||||
$sql .= "and follow_me_uuid = '$this->follow_me_uuid' ";
|
||||
@@ -273,6 +283,7 @@ include "root.php";
|
||||
$follow_me_uuid = $row["follow_me_uuid"];
|
||||
$this->call_prompt = $row["call_prompt"];
|
||||
$this->cid_name_prefix = $row["cid_name_prefix"];
|
||||
$this->cid_number_prefix = $row["cid_number_prefix"];
|
||||
}
|
||||
}
|
||||
unset ($prep_statement);
|
||||
@@ -294,6 +305,10 @@ include "root.php";
|
||||
if (strlen($this->cid_name_prefix) > 0) {
|
||||
$dial_string .= ",origination_caller_id_name=".$this->cid_name_prefix."#\${caller_id_name}";
|
||||
}
|
||||
if (strlen($this->cid_number_prefix) > 0) {
|
||||
$dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix."";
|
||||
//$dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix."#\${caller_id_number}";
|
||||
}
|
||||
if (strlen($this->accountcode) > 0) {
|
||||
$dial_string .= ",accountcode=".$this->accountcode;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ if (count($_GET)>0) {
|
||||
|
||||
if (strlen($user_status) > 0) {
|
||||
//include the dnd class
|
||||
include "includes/classes/do_not_disturb.php";
|
||||
include "resources/classes/do_not_disturb.php";
|
||||
//loop through the list of assigned extensions
|
||||
foreach ($_SESSION['user']['extension'] as &$row) {
|
||||
$extension = $row["user"];
|
||||
|
||||
@@ -272,7 +272,7 @@ if (count($_POST)>0) {
|
||||
//echo " <td class='vncellreq' valign='top'></td>";
|
||||
echo " <td class='' colspan='2' align='left'>";
|
||||
echo " <strong>".$text['label-content'].":</strong> ";
|
||||
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/includes/tiny_mce')) {
|
||||
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/tiny_mce')) {
|
||||
echo " editor <a href='#' title='toggle' onclick=\"toogleEditorMode('rss_description'); return false;\">".$text['label-on-off']."</a><br>";
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -305,7 +305,7 @@ else {
|
||||
echo " <td class='' colspan='2' align='left'>";
|
||||
echo " <strong>".$text['label-content'].":</strong> ";
|
||||
if ($rss_optional_1 == "text/html") {
|
||||
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/includes/tiny_mce')) {
|
||||
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/tiny_mce')) {
|
||||
echo " editor <a href='#' title='toggle' onclick=\"toogleEditorMode('rss_description'); return false;\">".$text['label-on-off']."</a><br>";
|
||||
}
|
||||
echo " <textarea name='rss_description' id='rss_description' class='formfld' cols='20' style='width: 100%' rows='12' >$rss_description</textarea>";
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
||||
//$apps[$x]['permissions'][$y]['groups'][] = 'user';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'follow_me_cid_number_prefix';
|
||||
|
||||
//schema details
|
||||
$y = 0; //table array index
|
||||
@@ -83,6 +84,10 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'cid_number_prefix';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'call_prompt';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en'] = '';
|
||||
|
||||
Reference in New Issue
Block a user