mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Remove references to extension_password as now password in extension table
This commit is contained in:
@@ -255,9 +255,9 @@ if (isset($_GET['operator_id']))
|
|||||||
header("Pragma: public"); // HTTP/1.0
|
header("Pragma: public"); // HTTP/1.0
|
||||||
|
|
||||||
if (isset($_GET['winbat']))
|
if (isset($_GET['winbat']))
|
||||||
echo "voipclient.exe -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . $_SERVER['SERVER_NAME'];
|
echo "voipclient.exe -i -u {$rs['ext']} -p {$rs['password']} -h " . $_SERVER['SERVER_NAME'];
|
||||||
else
|
else
|
||||||
echo "./voipclient -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . $_SERVER['SERVER_NAME'];
|
echo "./voipclient -i -u {$rs['ext']} -p {$rs['password']} -h " . $_SERVER['SERVER_NAME'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ if (isset($_POST['operator']))
|
|||||||
if (FREEPBX_PATH !== false)
|
if (FREEPBX_PATH !== false)
|
||||||
{
|
{
|
||||||
//add extension
|
//add extension
|
||||||
$sql = "INSERT INTO extension (`extension`,`extension_password`,`current_operator_id`)
|
$sql = "INSERT INTO extension (`extension`,`password`,`current_operator_id`)
|
||||||
VALUES ($extension, $extensionp, $oid)";
|
VALUES ($extension, $extensionp, $oid)";
|
||||||
|
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
|
|||||||
@@ -860,12 +860,12 @@ function get_extension_password($operator_id)
|
|||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
$sql = "SELECT e.extension_password
|
$sql = "SELECT e.password
|
||||||
FROM `extension` as e
|
FROM `extension` as e
|
||||||
WHERE e.current_operator_id = '$operator_id'";
|
WHERE e.current_operator_id = '$operator_id'";
|
||||||
|
|
||||||
$rs = $db->GetRow($sql);
|
$rs = $db->GetRow($sql);
|
||||||
if (!empty($rs) && isset($rs['extension_password'])) return $rs['extension_password'];
|
if (!empty($rs) && isset($rs['password'])) return $rs['password'];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user