Example #1
0
$jaxFuncNames[] = 'files,ajaxFileDownload';
$jaxFuncNames[] = 'files,ajaxgetFileList';
$jaxFuncNames[] = 'files,ajaxviewMore';
/**
 * @since 3.2
 */
$jaxFuncNames[] = 'location,ajaxGetCoordsByIp';
$jaxFuncNames[] = 'location,ajaxGetAddressFromCoords';
$jaxFuncNames[] = 'location,ajaxGetCoordsByAddress';
/**
 * @since 3.3
 */
$jaxFuncNames[] = 'search,ajaxSearch';
$jaxFuncNames[] = 'system,ajaxGetAdagency';
$jaxFuncNames[] = 'system,ajaxAdagencyGetImpression';
$jaxFuncNames[] = 'profile,ajaxFetchCard';
$jaxFuncNames[] = 'videos,ajaxConfirmRemoveVideo';
$jaxFuncNames[] = 'videos,ajaxGetInfo';
$jaxFuncNames[] = 'profile,ajaxRotateAvatar';
$jaxFuncNames[] = 'videos,ajaxSaveDescription';
$jaxFuncNames[] = 'system,ajaxModuleCall';
$jaxFuncNames[] = 'register,ajaxCheckPass';
$jaxFuncNames[] = 'system,ajaxGetLoginFormToken';
$jaxFuncNames[] = 'files,ajaxUpdateHit';
// Dont process other plugin ajax definitions for back end
if (!JString::stristr(JPATH_COMPONENT, 'administrator/components/com_community') && !JString::stristr(JPATH_COMPONENT, 'administrator\\components\\com_community')) {
    // Include CAppPlugins library
    require_once JPATH_ROOT . '/components/com_community/libraries/apps.php';
    // Load Ajax plugins jax file.
    CAppPlugins::loadAjaxPlugins();
}