'.adm_anni_trad("Administration Anniversaire").''
.'
';
Closetable();
}
//FIN MENU PRINCIPAL//
//////////////////
///DEBUT INDEX ///
//////////////////
//DEBUT INDEX//
function index()
{
global $ModPath, $ThisFile;
menuprincipal();
OpenTable();
include('modules/'.$ModPath.'/admin/config.php');
echo ''
.'
'.adm_anni_trad('Paramètres du module Anniversaire').'
'
.'
'
.'
';
CloseTable();
}
//FIN INDEX//
//DEBUT SAUVER INDEX//
function IndexSave($xtype_msg,$xtitre,$xmsg)
{
global $ModPath, $ThisFile; menuprincipal();
$file = fopen('modules/'.$ModPath.'/admin/config.php', 'w');
$content = "\n";
fwrite($file, $content);
fclose($file);
OpenTable();
echo ''.adm_anni_trad('Les modifications sont enregistrées.').'
';
CloseTable();
}
//FIN SAUVER INDEX//
////////////////
///FIN INDEX ///
////////////////
//////////////////////////
///DEBUT CONFIGURATION ///
//////////////////////////
//DEBUT CONFIGURATION//
function config()
{
global $ModPath, $ThisFile;
menuprincipal();
OpenTable();
include('modules/'.$ModPath.'/cache.timings.php');
echo ''
.'
'.adm_anni_trad('Supercache').'
'
.'
'
.'
';
CloseTable();
}
//FIN CONFIGURATION//
//DEBUT SAUVER CONFIGURATION//
function ConfigSave($xtps)
{
global $ModPath;
settype($xtps,"integer");
menuprincipal();
$file = fopen('modules/'.$ModPath.'/cache.timings.php', 'w');
$content = "\n";
fwrite($file, $content);
fclose($file);
OpenTable();
echo ''.adm_anni_trad('Les préférences pour Anniversaire sont enregistrées.').'
';
CloseTable();
}
//FIN SAUVER CONFIGURATION//
////////////////////////
///FIN CONFIGURATION ///
////////////////////////
////////////////////
/// FIN FONCTION ///
////////////////////
if (!function_exists('sql_connect'))
{
include ('modules/'.$ModPath.'/retro-compat/mysql.php');
}
if (file_exists('modules/'.$ModPath.'/admin/pages.php'))
{
include ('modules/'.$ModPath.'/admin/pages.php');
}
if ($admin)
{
$ThisFile = 'admin.php?op=Extend-Admin-SubModule&ModPath='.$ModPath.'&ModStart='.$ModStart.'';
include('modules/'.$ModPath.'/admin/lang/'.$language.'.php');
switch($subop)
{
default:
index();
break;
case 'IndexSave': IndexSave($xtype_msg,$xtitre,$xmsg); break;
case 'config': config(); break;
case 'ConfigSave': ConfigSave($xtps); break;
}
}
?>