settype($_GET['pass_leng'], "integer"); if ($_GET['pass_leng'] < 1) { $_GET['pass_leng'] = 1; } if (!Settings::set("pass_leng", $_GET['pass_leng'])) { echo "Erreur lors de l'enregistrement de pass_leng !<br />"; } } if (!Settings::load()) { die("Erreur chargement settings"); } # print the page header print_header("", "", "", $type = "with_session"); if (isset($_GET['ok'])) { $msg = get_vocab("message_records"); affiche_pop_up($msg, "admin"); } // Affichage de la colonne de gauche include "admin_col_gauche.php"; // Affichage du tableau de choix des sous-configuration include "include/admin_config_tableau.inc.php"; //echo "<h2>".get_vocab('admin_config4.php')."</h2>"; // // dans le cas de mysql, on propose une sauvegarde et l'ouverture de la base // if ($dbsys == "mysql") { // // Saving base //******************************** // echo "<h3>" . get_vocab('title_backup') . "</h3>\n";
// si la réservation est à modérer, on le signale if (isset($d[$cday][$cmonth][$cyear]["moderation"][$i]) && $d[$cday][$cmonth][$cyear]["moderation"][$i] == 1) { echo " <img src=\"img_grr/flag_moderation.png\" alt=\"" . get_vocab("en_attente_moderation") . "\" title=\"" . get_vocab("en_attente_moderation") . "\" class=\"image\" /> \n"; } if ($acces_fiche_reservation) { echo "<a title=\"" . htmlspecialchars($d[$cday][$cmonth][$cyear]["data"][$i]) . "\" href=\"view_entry.php?id=" . $d[$cday][$cmonth][$cyear]["id"][$i] . "&page=month\">" . $d[$cday][$cmonth][$cyear]["who1"][$i][0] . "</a>"; } else { echo $d[$cday][$cmonth][$cyear]["who1"][$i][0]; } echo "\n</td></tr></table>\n"; } } } } echo "</td>\n"; } // fin condition "on n'affiche pas tous les jours de la semaine" // if (++$weekcol == 7) $weekcol = 0; } echo "</tr>\n"; } } echo "</table>\n"; $month_indice = mktime(0, 0, 0, $month_num + 1, 2, $year_num); // Fin de la boucle sur les mois } show_colour_key($area); // Affichage d'un message pop-up affiche_pop_up(get_vocab("message_records"), "user"); include "include/trailer.inc.php"; include "footer.php";
} echo '</tr>' . PHP_EOL; reset($rooms); } echo '</table>' . PHP_EOL; } grr_sql_free($res); if ($_GET['pview'] != 1) { echo '<div id="toTop">' . PHP_EOL; echo '<b>' . get_vocab('top_of_page') . '</b>' . PHP_EOL; bouton_retour_haut(); echo '</div>' . PHP_EOL; } echo '</div>' . PHP_EOL; echo '</div>' . PHP_EOL; affiche_pop_up(get_vocab('message_records'), 'user'); ?> <script type="text/javascript"> $(document).ready(function(){ $('table.table-bordered td').each(function(){ var $row = $(this); var height = $row.height(); var h2 = $row.find('a').height(); $row.find('a').css('height', height); $row.find('a').css('padding-top', height/2 - h2/2); }); }); jQuery(document).ready(function($){ $("#popup_name").draggable({containment: "#container"}); $("#popup_name").resizable();
if ($req == -1) { $result_inter .= traite_requete("INSERT INTO ".TABLE_PREFIX."_setting VALUES ('version', '".$version_grr."');"); } else { $result_inter .= traite_requete("UPDATE ".TABLE_PREFIX."_setting SET VALUE='".$version_grr."' WHERE NAME='version';"); } // Mise à jour du numéro de RC $req = grr_sql_command("DELETE FROM ".TABLE_PREFIX."_setting WHERE NAME='versionRC'"); $result_inter .= traite_requete("INSERT INTO ".TABLE_PREFIX."_setting VALUES ('versionRC', '".$version_grr_RC."');"); //Re-Chargement des valeurs de la table settingS if (!loadSettings()) { die("Erreur chargement settings"); } affiche_pop_up(get_vocab("maj_good"),"force"); } // Numéro de version effective $version_old = getSettingValue("version"); if ($version_old == "") $version_old = "1.3"; // Numéro de RC $version_old_RC = getSettingValue("versionRC"); // Calcul du numéro de version actuel de la base qui sert aux test de comparaison et de la chaine à afficher if ($version_old_RC == "") { $version_old_RC = 9; $display_version_old = $version_old; } else { $display_version_old = $version_old."_RC".$version_old_RC; } $version_old .= ".".$version_old_RC;
/** * FUNCTION: how_many_connected() * DESCRIPTION: Si c'est un admin qui est connecté, affiche le nombre de personnes actuellement connectées. */ function how_many_connected() { if (authGetUserLevel(getUserName(), -1) >= 6) { $sql = "SELECT login FROM " . TABLE_PREFIX . "_log WHERE end > now()"; $res = grr_sql_query($sql); $nb_connect = grr_sql_count($res); grr_sql_free($res); if (@file_exists('./admin_access_area.php')) { $racineAd = "./"; } else { $racineAd = "./admin/"; } if ($nb_connect == 1) { echo "<a href='{$racineAd}admin_view_connexions.php'>" . $nb_connect . get_vocab("one_connected") . "</a>" . PHP_EOL; } else { echo "<a href='{$racineAd}admin_view_connexions.php'>" . $nb_connect . get_vocab("several_connected") . "</a>" . PHP_EOL; } if (verif_version()) { affiche_pop_up(get_vocab("maj_bdd_not_update") . get_vocab("please_go_to_admin_maj.php"), "force"); } } }
?> ', type:'ressource', action:+action, }, success: function(returnData){ $("#div_liste_ressources").html(returnData); }, error: function(e){ alert(e); } }); } </script> <?php affiche_pop_up($msg, 'admin'); echo ' <div class="container"> <form id="param_account" action="my_account.php" method="post"> <table>'; if (!IsAllowedToModifyProfil()) { echo ' <tr> <td><b>' . get_vocab('login') . get_vocab('deux_points') . '</b></td> <td>' . getUserName() . '</td> </tr>'; echo ' <tr> <td><b>' . get_vocab('last_name') . get_vocab('deux_points') . '</b></td> <td>' . $user_nom . '</td> </tr>';
/** * FUNCTION: how_many_connected() * DESCRIPTION: Si c'est un admin qui est connecté, affiche le nombre de personnes actuellement connectées. */ function how_many_connected() { if(authGetUserLevel(getUserName(),-1) >= 6) { $sql = "SELECT LOGIN FROM ".TABLE_PREFIX."_log WHERE END > now()"; $res = grr_sql_query($sql); $nb_connect = grr_sql_count($res); grr_sql_free($res); if ($nb_connect == 1) echo "<a href='admin_view_connexions.php'>".$nb_connect.get_vocab("one_connected")."</a>"; else echo "<a href='admin_view_connexions.php'>".$nb_connect.get_vocab("several_connected")."</a>"; // Vérification du numéro de version if (verif_version()) affiche_pop_up(get_vocab("maj_bdd_not_update").get_vocab("please_go_to_admin_maj.php"),"force"); } }
/** * FUNCTION: how_many_connected() * DESCRIPTION: Si c'est un admin qui est connecté, affiche le nombre de personnes actuellement connectées. */ function how_many_connected() { if (authGetUserLevel(getUserName(), -1) >= 6) { $sql = "SELECT login FROM " . TABLE_PREFIX . "_log WHERE end > now()"; $res = grr_sql_query($sql); $nb_connect = grr_sql_count($res); grr_sql_free($res); if ($nb_connect == 1) { echo '<a href="admin_view_connexions.php">' . $nb_connect . get_vocab("one_connected") . '</a>' . PHP_EOL; } else { echo '<a href="admin_view_connexions.php">' . $nb_connect . get_vocab("several_connected") . '</a>' . PHP_EOL; } if (verif_version()) { affiche_pop_up(get_vocab("maj_bdd_not_update") . get_vocab("please_go_to_admin_maj.php"), "force"); } } }