diff --git a/app/gswave/app_config.php b/app/gswave/app_config.php deleted file mode 100644 index aeb8b8f212..0000000000 --- a/app/gswave/app_config.php +++ /dev/null @@ -1,42 +0,0 @@ - diff --git a/app/gswave/app_languages.php b/app/gswave/app_languages.php deleted file mode 100644 index 148d885071..0000000000 --- a/app/gswave/app_languages.php +++ /dev/null @@ -1,81 +0,0 @@ - diff --git a/app/gswave/app_menu.php b/app/gswave/app_menu.php deleted file mode 100644 index fcb20dac7a..0000000000 --- a/app/gswave/app_menu.php +++ /dev/null @@ -1,35 +0,0 @@ - diff --git a/app/gswave/index.php b/app/gswave/index.php deleted file mode 100644 index 72787172e1..0000000000 --- a/app/gswave/index.php +++ /dev/null @@ -1,201 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2023 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -//includes files - require_once dirname(__DIR__, 2) . "/resources/require.php"; - require_once "resources/check_auth.php"; - -//check permissions - if (permission_exists('gswave_view')) { - //access granted - } - else { - echo "access denied"; - exit; - } - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//verify the id is as uuid then set as a variable - if (!empty($_GET['id']) && is_uuid($_GET['id'])) { - $extension_uuid = $_GET['id']; - } - -//get the extension(s) - if (permission_exists('extension_edit')) { - //admin user - $sql = "select * from v_extensions "; - $sql .= "where domain_uuid = :domain_uuid "; - $sql .= "and enabled = 'true' "; - $sql .= "and extension_type = 'default' "; - $sql .= "order by extension asc "; - } - else { - //normal user - $sql = "select e.* "; - $sql .= "from v_extensions as e, "; - $sql .= "v_extension_users as eu "; - $sql .= "where e.extension_uuid = eu.extension_uuid "; - $sql .= "and eu.user_uuid = :user_uuid "; - $sql .= "and e.domain_uuid = :domain_uuid "; - $sql .= "and e.enabled = 'true' "; - $sql .= "and e.extension_type = 'default' "; - $sql .= "order by e.extension asc "; - $parameters['user_uuid'] = $_SESSION['user']['user_uuid']; - } - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; - $database = new database; - $extensions = $database->select($sql, $parameters, 'all'); - unset($sql, $parameters); - - if (!empty($extension_uuid) && is_uuid($extension_uuid) && !empty($extensions)) { - - //loop through get selected extension - if (!empty($extensions)) { - foreach ($extensions as $extension) { - if ($extension['extension_uuid'] == $extension_uuid) { - $field = $extension; - break; - } - } - } - - //get the username - $username = $field['extension']; - if (isset($field['number_alias']) && !empty($field['number_alias'])) { - $username = $field['number_alias']; - } - - //build the xml - $xml = ""; - $xml .= ""; - $xml .= ""; - $xml .= "".$_SESSION['domain_name'].""; - //$xml .= "".$_SESSION['domain_name'].""; - //$xml .= "".$_SESSION['domain_name'].""; - $xml .= "".$_SESSION['domain_name'].":".$_SESSION['provision']['line_sip_port']['numeric'].""; - $xml .= "".$_SESSION['domain_name'].":".$_SESSION['provision']['line_sip_port']['numeric'].""; - $xml .= "".$username.""; - $xml .= "".$username.""; - $xml .= "".$field['password'].""; - $xml .= "".$username.""; - $xml .= "".$username.""; - $xml .= "{x+|*x+|*++}"; - $xml .= "0"; - $xml .= "*97"; - $xml .= ""; - $xml .= ""; - $qr_data = $xml; - - } - -//debian - //apt install qrencode - -//include the header - $document['title'] = $text['title-gswave']; - require_once "resources/header.php"; - -//show the content - echo "
\n"; - - echo "
\n"; - echo "
".$text['title-gswave']."
\n"; - echo "
\n"; - echo " "; - echo " "; - //echo button::create(['type'=>'button','label'=>'Website','icon'=>'globe','style='margin-left: 15px;','link'=>'http://www.grandstream.com/products/ip-voice-telephony/softphone-app/product/grandstream-wave']); - echo "
\n"; - echo "
\n"; - echo "
\n"; - - echo $text['title_description-gswave']."\n"; - echo "

\n"; - - echo "
"; - echo $text['label-extension']."
\n"; - echo "\n"; - - echo "\n"; - echo "
\n"; - -//stream the file - if (!empty($extension_uuid) && is_uuid($extension_uuid)) { - $xml = html_entity_decode($xml, ENT_QUOTES, 'UTF-8'); - - require_once 'resources/qr_code/QRErrorCorrectLevel.php'; - require_once 'resources/qr_code/QRCode.php'; - require_once 'resources/qr_code/QRCodeImage.php'; - - try { - $code = new QRCode (- 1, QRErrorCorrectLevel::H); - $code->addData($xml); - $code->make(); - - $img = new QRCodeImage ($code, $width=420, $height=420, $quality=50); - $img->draw(); - $image = $img->getImage(); - $img->finish(); - } - catch (Exception $error) { - echo $error; - } - } - -//html image - if (!empty($extension_uuid) && is_uuid($extension_uuid)) { - echo "\n"; - //qr data preview - if (permission_exists('gswave_xml_view')) { - echo "


\n"; - echo "\n"; - echo "
\n"; - echo "\n"; - } - } - - echo "
\n"; - -//add the footer - require_once "resources/footer.php"; - -?> diff --git a/app/gswave/resources/images/apple_app_store.png b/app/gswave/resources/images/apple_app_store.png deleted file mode 100644 index 42d1697dce..0000000000 Binary files a/app/gswave/resources/images/apple_app_store.png and /dev/null differ diff --git a/app/gswave/resources/images/google_play.png b/app/gswave/resources/images/google_play.png deleted file mode 100644 index e0cbf9c36a..0000000000 Binary files a/app/gswave/resources/images/google_play.png and /dev/null differ