24require_once
'../include/constant.php';
25include_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
26require_once NOALYSS_INCLUDE.
'/class/database.class.php';
27require_once NOALYSS_INCLUDE.
'/lib/itext.class.php';
28require_once NOALYSS_INCLUDE.
'/lib/http_input.class.php';
29require_once NOALYSS_INCLUDE.
'/lib/function_javascript.php';
30require_once NOALYSS_INCLUDE.
'/lib/icon_action.class.php';
36require_once NOALYSS_INCLUDE .
'/class/noalyss_user.class.php';
43if ( strpos(
$browser,
'MSIE 6')!=
false ||
46 $nav=_(
'Vous utilisez un navigateur dépassé depuis près de 8 ans!');
47 $nav2=_(
"Pour une meilleure expérience web, prenez le temps de mettre votre navigateur à jour");
50 <div
style=
'border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
51 <div
style=
'position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href=
'#' onclick=
'javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src=
'http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style=
'border: none;' alt=
'Close this notice'/></a></div>
52 <div
style=
'width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
53 <div
style=
'width: 75px; float: left;'><img src=
'http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt=
'Warning!'/></div>
54 <div
style=
'width: 275px; float: left; font-family: Arial, sans-serif;'>
55 <div
style=
'font-size: 14px; font-weight: bold; margin-top: 12px;'>$nav</div>
56 <div
style=
'font-size: 12px; margin-top: 6px; line-height: 12px;'>$nav2.</div>
58 <div
style=
'width: 75px; float: left;'><a href=
'http://fr.www.mozilla.com/fr/' target=
'_blank'><img src=
'http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style=
'border: none;' alt=
'Get Firefox 3.5'/></a></div>
59 <div
style=
'width: 73px; float: left;'><a href=
'http://www.apple.com/fr/safari/download/' target=
'_blank'><img src=
'http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style=
'border: none;' alt=
'Get Safari 4'/></a></div>
60 <div
style=
'float: left;'><a href=
'http://www.google.com/chrome?hl=fr' target=
'_blank'><img src=
'http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style=
'border: none;' alt=
'Get Google Chrome'/></a></div>
67if ( DEBUGNOALYSS > 1 ) {
79if (
$ac->exist_table(
'version') ==
false)
81 echo
'<h2 class="error" style="font-size:12px">'._(
"Base de donnée invalide").
'</h2>';
82 echo
'<a hreF="'.NOALYSS_URL.
'/user_login.php">'._(
"Retour").
'</a></h2>';
87if (!defined(
"MULTI")||(defined(
"MULTI")&&MULTI==1))
89 $version =
$ac->get_value(
'select max(val) from version');
91 $version =
$ac->get_value(
'select max(val) from repo_version');
96 echo
'<h2 class="error" style="font-size:12px">'._(
"Votre base de données n'est pas à jour").
' ';
97 $a=_(
"cliquez ici pour appliquer le patch");
98 $base =NOALYSS_URL.
'/admin-noalyss.php';
99 echo
'<a hreF="'.$base.
'">'.
$a.
'</a></h2>';
104 if (SITE_UPDATE !=
"") {
109 echo
'<div id="version_div" class="inner_box" style="width:25%;margin-left:10%;margin-top:3px;">';
110 echo
'<p class="notice">';
111 printf (
"Mise à jour disponible de NOALYSS version actuelle : %s votre version %s ",$update,
$version_noalyss);
114 $base =NOALYSS_URL.
"/admin-noalyss.php?action=upgrade&sb=application";
116 echo
'<a hreF="' .
$base .
'">' . _(
"Cliquez ici pour mettre à jour") .
'</a>';
118 echo
'<p style="text-align:center"> <a class="button" onclick="document.body.removeChild(document.getElementById(\'version_div\'))">'.
126include_once NOALYSS_INCLUDE.
"/lib/user_menu.php";
141$result.=
"<table border=\"0\">";
143if (
$User->isAdmin() == 1 )
145 $result.=
"<TD class=\"tool\" ><A class=\"cell\" HREF=\"admin-noalyss.php\">"._(
"Administration").
" </A></TD>";
148$result.=
'<a onclick="set_preference(0)" title="Préférence" href="javascript:void(0)" class="cell">'._(
'Préférence').
'</a>';
150$result.=
'<TD class="tool" ><A class="cell" HREF="logout.php" >'._(
'Deconnexion').
'</a></TD>';
154echo
'<div id="module" style="position:absolute;">'.$result.
'</div>';
155echo
'<div class="welcome"> ';
156if (
$User->admin == 0 || (defined(
"MULTI")&& MULTI == 0 ) )
159 $folder=
$User->get_available_folder();
160 if ( $folder !=
null && count($folder) == 1 )
162 echo _(
"Si la redirection ne fonctionne pas, vous devez changer la valeur de NOALYSS_URL ");
163 redirect(NOALYSS_URL.
'/do.php?gDossier='.$folder[0][
'dos_id']);
170<div
class=
"foldercontent">
171 <
span style=
"margin:2%" class=
"visible_gt800">
173 echo _(
'Cherche').Icon_Action::infobulle(23);
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
span($p_string, $p_extra='')
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
contains the class for connecting to Noalyss
static display_global()
for development , show GLOBAL and SESSION
static display_request()
for development , show request (POST, GET)
static display_size()
display a bar depending of the size of the screen , it helps for CSS to see the media-size
static get_content($url, $filename, $time_cache_second)
Check if the file exists, if yes then read otherwise take it from the url,.
for($e=0; $e< count($afiche); $e++) exit
load_all_script()
load all the javascript only one time
redirect($p_string, $p_time=0)
$result
If the user is NOT admin and can access only ONE folder, OR for a One Folder Installation he will be ...
if(strpos( $browser, 'MSIE 6')!=false||strpos( $browser, 'MSIE 5')!=false) if(DEBUGNOALYSS > 1) $ac