Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*0.0.1* First release
</changelog>
<description>Provides feature codes for a simplified call forwarding. Suitable for a 'one touch' set and forget style of CF where the user rarely makes changes to the CF destination </description>
<category>Other</category>
<depends>
<engine>asterisk gt1.8</engine>
<version>ge2.9</version>
Expand Down
16 changes: 10 additions & 6 deletions page.simplecf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
//Check if user is "logged in"
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }

// check to see if user has automatic updates enabled in FreePBX settings
$cm =& cronmanager::create($db);
$online_updates = $cm->updates_enabled() ? true : false;
if (class_exists('cronmanager')) {
// check to see if user has automatic updates enabled in FreePBX settings
$cm =& cronmanager::create($db);
$online_updates = $cm->updates_enabled() ? true : false;

// check dev site to see if new version of module is available
if ($online_updates && $foo = simplecf_vercheck()) {
print "<br>A <b>new version of this module is available</b> from the <a target='_blank' href='http://pbxossa.org'>PBX Open Source Software Alliance</a><br>";
// check dev site to see if new version of module is available
if ($online_updates && $foo = simplecf_vercheck()) {
print "<br>A <b>new version of this module is available</b> from the <a target='_blank' href='http://pbxossa.org'>PBX Open Source Software Alliance</a><br>";
}
} else {
// todo: add version check for ver. 14+
}

// get version number for display in page footer
Expand Down