assign( 'LLGBO_VERSION' ,LLGBO_VERSION);
$template->assign('LLGBO_PATH',LLGBO_PATH);
$query =" SELECT ID FROM ".$prefixeTable."themes where id like '%gally%' " ;
$result = pwg_query($query);
while ($row = pwg_db_fetch_assoc($result))
{ $template->assign( 'GALLY', 'Msg'); }
// +-----------------------------------------------------------------------+
// | Tabssheet visible
// +-----------------------------------------------------------------------+
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'settings';
if ((empty($_POST['submit'])) or ($page['tab'] != 'settings'))
{ $disptabframe = $conf['LLGBO2']['frame'];
$disptabheader = $conf['LLGBO2']['manageheader'];
$disptabtoolt1 = $conf['LLGBO2']['tooltipdisp'];
$disptabtoolt2 = $conf['LLGBO2']['exifunderbt'];
}
else
{ $disptabframe = (isset($_POST['llgbo_frame'])) ? $_POST['llgbo_frame'] : False;
$disptabheader = (isset($_POST['llgbo_manageheader'])) ? $_POST['llgbo_manageheader'] : False;
$disptabtoolt1 = (isset($_POST['llgbo_tooltipdisp'])) ? $_POST['llgbo_tooltipdisp'] : False;
$disptabtoolt2 = (isset($_POST['llgbo_exifunderbt'])) ? $_POST['llgbo_exifunderbt'] : False;
}
// +-----------------------------------------------------------------------+
// | Tab sheet |
// +-----------------------------------------------------------------------+
$tabsheet = new tabsheet();
$tabsheet->add('setting', ''.l10n('llgbo_M_manage'), LLGBO_ADMIN.'&tab=settings');
if (($disptabtoolt1 == True) or ($disptabtoolt2 == True))
{$tabsheet->add('tooltip',''.l10n('llgbo_M_tooltip'), LLGBO_ADMIN.'&tab=tooltip');}
if (($disptabframe == True))
{$tabsheet->add('frame',''.l10n('llgbo_M_frame'), LLGBO_ADMIN.'&tab=frame');}
if (($disptabheader == True))
{$tabsheet->add('header', ''.l10n('llgbo_M_header'), LLGBO_ADMIN.'&tab=header');}
$tabsheet->select($page['tab']);
$tabsheet->assign();
// +-----------------------------------------------------------------------+
// | template init |
// +-----------------------------------------------------------------------+
$template->set_filenames(
array(
'llgbo_admin_content' => dirname(__FILE__).'/admin/'.$page['tab'].'.tpl'
)
);
// +-----------------------------------------------------------------------+
// | Load the tab |
// +-----------------------------------------------------------------------+
include(dirname(__FILE__).'/admin/'.$page['tab'].'.php');
// +-----------------------------------------------------------------------+
// | sending html code |
// +-----------------------------------------------------------------------+
$template->assign_var_from_handle( 'ADMIN_CONTENT', 'llgbo_admin_content');
?>