Grr

De Wiki_DR13
Révision datée du 12 janvier 2011 à 15:29 par Julien.garnier (discussion | contributions) (Liste des modifs :)
Aller à : navigation, rechercher

Mise a jour

decompresser et copier les fichiers de conf :


# cp reservations/include/connect.inc.php grr196d/include/


Copier le fichier de langage perso :

cp reservations/language/lang_subst.fr grr196d/language/


Copier le CSS DR13 :

cp -R reservations/themes/DR13/ grr196d/themes/


Copier la page d'admin SSO (faire un diff avant pour voir si elle a été modifé dans la release)

cp reservations/admin_config_sso.php grr196d/

Liste des modifs :

Config File : include/misc.inc.php ligne 84 et 98
"DR13",




$id_room_autorise = array("8", "4", "5");


Config File : login.php ligne 219
//si on a interdit l'acces a la page login 
if (getSettingValue("cacher_page_login")=="y"){
header("Location: ./index.php");
}


Dev

C

Fichier admin_config_sso.php ligne 105 :

if (!saveSetting("http_champ_email", $_POST['http_champ_email'])) {
   echo "Erreur lors de l'enregistrement de http_champ_email !
"; } $grrSettings['http_champ_email'] = $_POST['http_champ_email']; if (!saveSetting("http_champ_nom", $_POST['http_champ_nom'])) { echo "Erreur lors de l'enregistrement de http_champ_nom !
"; } $grrSettings['http_champ_nom'] = $_POST['http_champ_nom']; if (!saveSetting("http_champ_prenom", $_POST['http_champ_prenom'])) { echo "Erreur lors de l'enregistrement de http_champ_prenom !
"; } $grrSettings['http_champ_prenom'] = $_POST['http_champ_prenom']; if (!isset($_POST['cacher_page_login'])) $cacher_page_login = "n"; else $cacher_page_login = "y"; if (!saveSetting("cacher_page_login", $cacher_page_login)) { echo "Erreur lors de l'enregistrement de cacher_page_login !
"; }




ligne 258 :

//ajout des champs de recherche perso :
//TODO : Changer par une variable langage 
echo "
Champs renvoyés par les variables serveur (ex sn pour recuperer _SERVER[\"sn\"])
"; echo "<input type=\"text\" name=\"http_champ_email\""; if (getSettingValue("http_champ_email")) echo "value=\"".getSettingValue("http_champ_email")."\" "; echo "/> ".get_vocab("mail_user")."
"; echo "<input type=\"text\" name=\"http_champ_nom\""; if (getSettingValue("http_champ_nom")) echo "value=\"".getSettingValue("http_champ_nom")." \""; echo "/> ".get_vocab("name")."
"; echo "<input type=\"text\" name=\"http_champ_prenom\""; if (getSettingValue("http_champ_prenom")) echo "value=\"".getSettingValue("http_champ_prenom")."\" "; echo "/> ".get_vocab("first_name")."
"; // Ajout Check Box empecher l'acce a la page login.php echo "
<input type=\"checkbox\" name=\"cacher_page_login\" value=\"y\" "; if (getSettingValue("cacher_page_login")=="y") echo " checked=\"checked\""; echo " />"; //echo get_vocab("cacher_page_login");

echo " Empecher l'acces a la page de login
\n";


Fichier functions.inc.php

ligne 2724 : } else if (($level == 1 ) and  !((in_array($id_room,$id_room_autorise)) and ($id_room_autorise != ""))) {
ligne 2494 : if ((in_array($id_room,$id_room_autorise)) and ($id_room_autorise != ""))



Verifier que tout fonctionne a la nouvelle adresse puis changer le lien symbolique

rm reservations
ln -s  grr196d reservations