$url = "index.php?option=com_comprofiler&task=fieldclass&function=checkvalue&user=$userid&reason=$reason";
if ( $_CB_framework->getUi() == 2 ) {
$ajaxUrl = $live_site . '/administrator/' . $_CB_framework->backendUrl( $url, false, 'raw' );
} else {
$ajaxUrl = cbSef( $url, false, 'raw' );
}
Please Log in to join the conversation.
case 'live_site':
if ( checkJversion() >= 1 ) {
if ( $this->getUi() == 1 ) {
//$live_site = JURI::base();
$u = JURI::getInstance(JURI::current());
$live_site = $u->toString( array( 'scheme', 'host', 'port') );
} elseif ( checkJversion() == 2 ) {
$live_site = preg_replace( '%administrator/%', '', JURI::base() );
} else {
$live_site = $this->_baseFramework->getSiteURL();
}
if ( substr( $live_site, -1, 1 ) == '/' ) {
// fix erroneous ending / in some joomla 1.5 versions:
return substr( $live_site, 0, -1 );
} else {
return $live_site;
}
}
Please Log in to join the conversation.