admin/applications/members/modules_public/profile/view.php
//-----------------------------------------
// Configure tabs
//-----------------------------------------
foreach( ipsRegistry::$applications as $app )
{
/* Skip if disabled */
if( ! $app['app_enabled'] )
{
continue;
}
/* Path to tabs */
$custom_path = IPSLib::getAppDir( $app['app_directory'] ) . '/extensions/profileTabs';
if ( is_dir( $custom_path ) )
{
foreach( new DirectoryIterator( $custom_path ) as $f )
{
if ( ! $f->isDot() && ! $f->isDir() )
{
$file = $f->getFileName();
if( $file[0] == '.' )
{
continue;
}
if ( preg_match( "#\.conf\.php$#i", $file ) )
{
$classname = str_replace( ".conf.php", "", $file );
$CONFIG = array();
require( $custom_path . '/' . $file );
//-------------------------------
// Allowed to use?
//-------------------------------
if ( $CONFIG['plugin_enabled'] )
{
$CONFIG['app'] = $app['app_directory'];
$_position = $this->_getTabPosition( $_positions, $CONFIG['plugin_order'] );
$_tabs[ $_position ] = $CONFIG;
$_positions[] = $_position;
}
}
}
}
}
}