Source for file mod.php
Documentation is available at mod.php 
 * @author linea21 <info@linea21.com>  
 * @license http://opensource.org/licenses/gpl-3.0.html  
//////////// Check Inclusion de pages ////////////   
    include_once ("../lib/lib_common.php");  
$config_file->__construct($GLOBALS['authorized_release_sections'],$GLOBALS['authorized_db_sections'],$GLOBALS['authorized_theme_sections']);  
$config_file->loadParams();  
$hidden= false; //variable pour cacher ou non les champs de formulaire  
$link_mod= $rub_link. "&todo=mod&type=";  
$updatable= true;//le formulaire est en modification ou en visualisation  
if (isset ($_GET['type']))    $type= $_GET['type'];  
if (isset ($_POST['type'])) $type= $_POST['type'];  
if(isset ($_POST['valider'])) {  
    $config_file->setParams($type,$_POST);  
if(isset ($_POST['enregistrer'])) {  
    $config_file->setParams($type,$_POST);  
    $link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;  
    //ok on écrit les paramètres en fichiers  
    if($type ==  'define_release' ||  $type ==  'theme') $result= $config_file->writeReleaseParams();  
    else if($type ==  'define_db') $result= $config_file->writeDbParams();  
    if($result) header("Location: ". $link_confirm);  
            <a href="index.php" class="chemin_home"> <? echo  _t('way','home') ?></a>  
               <a href=" <?php echo  $rub_link; ?>" id="chemin_ <? echo  $rub; ?>" class="chemin_rub"> <? echo  _t('menu','system')?></a>  
            <span> <? echo  _t('system','mod') ?></span>  
include_once(THEME_ADMIN_PATH. "quickicons.php");  
<div class="contentcontainer">  
<?php include_once($dir .  "/menurub.php");?>  
<h2> <? echo  _t('system','mod'); ?></h2>  
<form id=" <? echo  $type; ?>" action=" <?php echo  $_SERVER['SCRIPT_NAME']; ?>" method="post"  <?if(isset ($_POST['valider'])) {?>onsubmit="if(!confirm(' <? echo  _t('system','confirm_mod_js'); ?>')) return false;" <?}?>>  
        echo  $config_file->getReleaseParams($updatable,$hidden); 
        echo  $config_file->getDbParams($updatable,$hidden); 
        echo  $config_file->getThemeParams($updatable,$hidden); 
        echo  $config_file->getReleaseParams($updatable,$hidden);                     
    <input name="type" type="hidden" value=" <?php echo  $type; ?>" id="type" />  
    <input name="rub" type="hidden" value=" <?php echo  $rub; ?>" id="rub" />  
    <input name="todo" type="hidden" value=" <?php echo  $todo; ?>" id="todo" />  
    if(!isset ($_POST['valider']) &&  !isset ($_POST['enregistrer'])){  
    <input name="valider" type="submit" value=" <? echo  _t('btn','valid') ?>" class="button" id="valider" />  
    else if(isset ($_POST['valider'])){?>  
        <input name="retour" type="button" value=" <? echo  _t('btn','preview') ?>" class="button" id="retour" onclick="history.go(-1);" />  
        <input name="enregistrer" type="submit" value=" <? echo  _t('btn','save') ?>" class="button" id="enregistrer" />          
<?php include_once($dir .  "/help.php");?>  
 
 
        
       |