function Init_Addon()
{
    global $version_addon;
    $CheckSession = true;
    if (!isset($_SESSION['CheckSession'])) {
        $_SESSION['CheckSession'] = $version_addon;
    } elseif ($_SESSION['CheckSession'] != $version_addon || $_SESSION['_login'] != $_SESSION['up_Login']) {
        $_SESSION['CheckSession'] = $version_addon;
    } else {
        $CheckSession = false;
    }
    // Initialisation de l'Addon
    // User preference
    Load_Prefs();
}
Example #2
0
}
if (isset($_POST['submit'])) {
    if (($_POST['submit'] == 'Sauver' || $_POST['submit'] == 'Sauver et retour') && !empty($datas_id)) {
        mysql_update_array('SQL_PREFIX_Modules_Users_Config', '`Login`=\'' . $datas['Login'] . '\'', $datas);
        Load_Prefs();
        Update_Modifier($datas['Login'], $datas['Modifier']);
        if ($_POST['submit'] == 'Sauver et retour') {
            header('Location: index.php');
            exit;
        }
    } elseif ($_POST['submit'] == 'Sauver' || $_POST['submit'] == 'Sauver et retour') {
        mysql_insert_array('SQL_PREFIX_Modules_Users_Config', $datas);
        $datas['DateCreated'] = date(DATE_SQL_FORMAT);
        $datas['DateLast'] = $datas['DateCreated'];
        $datas_id = $datas['Login'];
        Load_Prefs();
        Update_Modifier($datas['Login'], $datas['Modifier']);
        if ($_POST['submit'] == 'Sauver et retour') {
            header('Location: index.php');
            exit;
        }
    }
}
// FIN CODE LIBRE
?>

<HTML>
<HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</HEAD>
<BODY>