示例#1
0
function validatelicense()
{
    if (isset($_POST['instantcode'])) {
        validatelicensedata();
    } else {
        $database =& JFactory::getDBO();
        $query = "SELECT * FROM `#__extensions` WHERE `element` = 'com_chronoforms' AND `type` = 'component'";
        $database->setQuery($query);
        $result = $database->loadObject();
        $params = new JParameter($result->params);
        HTML_Admin_ChronoForms::validatelicense($params);
    }
}
示例#2
0
     savetransformChronoContact($option);
     break;
 case "previewajax":
     previewajaxChronoContact($option);
     break;
 case 'doupgrade':
     doupgrade($option);
     break;
 case 'validatelicense':
     validatelicense($option);
     break;
 case 'validatelicenseframe':
     validatelicenseframe($option);
     break;
 case 'validatelicensedata':
     validatelicensedata();
     break;
     /////////////////////
 /////////////////////
 case "publish":
     publishChronoContact($cid, 1, $option);
     break;
 case "unpublish":
     publishChronoContact($cid, 0, $option);
     break;
 case "add":
     editChronoContact(0, $option);
     break;
 case "edit":
     editChronoContact($cid[0], $option);
     break;