Target | News |
Subject | Testing /modules/ changer |
Summary | Do you know short urls or simplified urls?Although it works fine with almost case, there are some unavoidable side effets .This hack is quite simple.You can change /modules/ as you like.I think there are much few side effect with this hack.insert 8 lin... |
function modules_changer( $s )
{
$s = return str_replace( XOOPS_URL.'/modules/' , XOOPS_URL.'/buzau/' , $s) ;
$s = return str_replace( XOOPS_URL.'/modules/catads/' , XOOPS_URL.'/buzau/anunturi/' , $s ) ;
$s = return str_replace( XOOPS_URL.'/modules/newbb/' , XOOPS_URL.'/buzau/forum/' , $s ) ;
return str_replace( XOOPS_URL.'/mosules/friendfinder/' , XOOPS_URL.'/buzau/matrimoniale/' , $s ) ;
}
ob_start( 'modules_changer' ) ;