Portions created by the Initial Developer are Copyright (C) 2017 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ //includes include "root.php"; require_once "resources/require.php"; //check permissions require_once "resources/check_auth.php"; if (permission_exists('dialplan_edit')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //get the provider if (isset($_REQUEST["provider"])) { $provider = check_str($_REQUEST["provider"]); switch ($provider) { case 'voicetel': break; case 'skyetel': break; default: $provider = ''; } echo $provider; exit; } //skyetel installed $sql = "select gateway_uuid from v_gateways "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $gateways = $prep_statement->fetchAll(); $skyetel_installed = false; $voicetel_installed = false; foreach ($gateways as $row) { if ($row['gateway_uuid'] === "22245a48-552c-463a-a723-ce01ebbd69a2") { $skyetel_installed = true; } if ($row['gateway_uuid'] === "d61be0f0-3a4c-434a-b9f6-4fef15e1a634") { $voicetel_installed = true; } } ?>
".$text['title-providers']."\n"; echo "
\n"; echo $text['description-providers']."\n"; ?>

VoiceTel\n"; echo "
\n"; echo "".$text['label-region']."
\n"; echo $text['label-region_voicetel']."\n"; echo "

\n"; echo "".$text['label-about']."
\n"; echo $text['label-about_voicetel']."\n"; echo "

\n"; echo "".$text['label-features']."
\n"; echo $text['label-features_voicetel']."\n"; echo "

\n"; echo "\n"; echo "\n"; if (!$voicetel_installed) { echo "\n"; } else { echo "\n"; } ?>




Skyetel\n"; echo "
\n"; echo "".$text['label-region']."
\n"; echo $text['label-region_skyetel']."\n"; echo "

\n"; echo "".$text['label-about']."
\n"; echo $text['label-about_skyetel']."\n"; echo "

\n"; echo "".$text['label-features']."
\n"; echo $text['label-features_skyetel']."\n"; echo "

\n"; echo "\n"; echo "\n"; echo "\n"; if (!$skyetel_installed) { echo "\n"; } else { echo "\n"; } ?>