function xtide_xtide($c)
{
    global $ext;
    global $asterisk_conf;
    $date = xtideoptions_getconfig();
    $ttsengine = $date[0];
    $id = "app-xtide";
    // The context to be included
    $ext->addInclude('from-internal-additional', $id);
    // Add the include from from-internal
    $ext->add($id, $c, '', new ext_goto('1', 's', $ttsengine));
}
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
// check to see if user has automatic updates enabled
$cm =& cronmanager::create($db);
$online_updates = $cm->updates_enabled() ? true : false;
// check if new version of module is available
if ($online_updates && ($foo = xtide_vercheck())) {
    print "<br>A <b>new version</b> of the Xtide module is available from the <a target='_blank' href='http://github.com/reconwireless/freepbx-xtide/downloads'>Reconwireless Repository on github</a><br>";
}
//tts_findengines()
if (count($_POST)) {
    xtideoptions_saveconfig();
}
$Xtidesite = xtideoptions_getconfig();
$selected = $Xtidesite[0];
$Xtidesitename = xtideoptions_getconfig();
$selected = $Xtidesitename[0];
//  Get current featurecode from FreePBX registry
$fcc = new featurecode('xtide', 'xtide');
$featurecode = $fcc->getCodeActive();
?>
<form method="POST" action="">
	<br><h2><?php 
echo _("Xtide Reports");
?>
<hr></h5></td></tr>
Xtide allows you to retrieve current tide information from any touchtone phone using nothing more than your PBX connected to the Internet. <br><br>
Current tide conditions and provides today's and tomorrow's tides, solar, and lunar info for almost any port city.. <br><br>
The feature code to access this service is currently set to <b><?php 
print $featurecode;
?>