*
 * You should have received a copy of the GNU General Public License
 * along with Loquacity; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
function identify_admin_captcha()
{
    return array('name' => 'captcha', 'type' => 'builtin', 'nicename' => 'Captcha Admin', 'description' => 'Configure and Enable Captcha use', 'authors' => 'TelCor', 'licence' => 'GPL', 'help' => '');
}
include_once 'includes/manageCaptcha.class.php';
$loq->assign('form_type', 'edit');
$mc = new manageCaptcha($loq->_adb);
if (isset($_POST['captchado'])) {
    save_configuration($mc);
}
$loq->assign('settings', current_configuration($mc));
$loq->display('captcha.html');
function current_configuration(&$mc)
{
    $config = $mc->getCurrentSettings();
    if ($config) {
        foreach ($config as $row) {
            if ($row['name'] === 'CAPTCHA_ENABLE') {
                $config['enable_captcha'] = $row['value'] == 'true' ? 'checked' : '';
            }
            if ($row['name'] === 'CAPTCHA_ENABLE_SHADOWS') {
                $config['enable_shadows'] = $row['value'] == 'true' ? 'checked' : '';
            }
            if ($row['name'] === 'CAPTCHA_OWNER_TEXT') {
                $config['enable_owner'] = $row['value'] == 'true' ? 'checked' : '';
            }
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
function identify_admin_captcha()
{
    return array('name' => 'captcha', 'type' => 'builtin', 'nicename' => 'Captcha Admin', 'description' => 'Configure and Enable Captcha use', 'authors' => 'TelCor', 'licence' => 'GPL');
}
include_once 'inc/manageCaptcha.class.php';
$bBlog->assign('form_type', 'edit');
$mc = new manageCaptcha(&$bBlog->_adb);
if (isset($_POST['captchado'])) {
    save_configuration(&$mc);
}
$bBlog->assign('settings', current_configuration(&$mc));
$bBlog->display('captcha.html');
function current_configuration(&$mc)
{
    $config = $mc->getCurrentSettings();
    if ($config) {
        foreach ($config as $row) {
            if ($row['name'] === 'CAPTCHA_ENABLE') {
                $config['enable_captcha'] = $row['value'] == 'true' ? 'checked' : '';
            }
            if ($row['name'] === 'CAPTCHA_ENABLE_SHADOWS') {
                $config['enable_shadows'] = $row['value'] == 'true' ? 'checked' : '';
            }
            if ($row['name'] === 'CAPTCHA_OWNER_TEXT') {
                $config['enable_owner'] = $row['value'] == 'true' ? 'checked' : '';
            }