Skip to content

Commit ee18ea5

Browse files
committed
Added API to check if phone is editable.
1 parent 94f0168 commit ee18ea5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

goSettings/goCheckPhones.php

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* @file goCheckPhones.php
4+
* @brief API to retrieve Webrtc Setting On (1) or Off (0)
5+
* @copyright Copyright (C) GOautodial Inc.
6+
* @author Chris Lomuntad <[email protected]>
7+
*
8+
* @par <b>License</b>:
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Affero General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Affero General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Affero General Public License
20+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
*/
22+
$goDB->where('setting', 'GO_modify_phones');
23+
$rslt = $goDB->getOne('settings', 'value');
24+
25+
if($rslt){
26+
$modify_phones = $rslt['value'];
27+
28+
$apiresults = array("result" => $modify_phones);
29+
} else {
30+
$apiresults = array("result" => "Failed to get Result.");
31+
}
32+
?>
33+

0 commit comments

Comments
 (0)