"; echo ""; echo ""; if (isset($_SESSION['OCS']["loggeduser"]) && $_SESSION['OCS']['CONFIGURATION']['ALERTE_MSG']=='YES'){ /************************************************** ALERT MESSAGES ********************************************************/ $msg_header_error=array(); $msg_header_error_sol=array(); //install.php still exist ? if(is_readable("install.php")){ // when one is able to login, the remaining stuff can be done via webGUI // or one may always exec "setup.sh" again ... So throw it away. unlink("install.php"); } if(is_readable("install.php")){ $msg_header_error[]= $l->g(2020); $msg_header_error_sol[] = $l->g(2023); } //defaut user already exist on databases? $link_read=@mysql_connect(SERVER_READ,DFT_DB_CMPT,DFT_DB_PSWD); $link_write=@mysql_connect(SERVER_WRITE,DFT_DB_CMPT,DFT_DB_PSWD); if (@mysql_select_db(DB_NAME,$link_read) or @mysql_select_db(DB_NAME,$link_write)){ $msg_header_error[]= $l->g(2024).' '.DB_NAME; $msg_header_error_sol[] = $l->g(2025); } //admin user already exist on data base with defaut password? $reqOp="SELECT id,user_group FROM operators WHERE id='%s' and passwd ='%s'"; $arg_reqOp=array(DFT_GUI_CMPT,md5(DFT_GUI_PSWD)); $resOp=mysql2_query_secure($reqOp,$_SESSION['OCS']["readServer"],$arg_reqOp); $rowOp=mysql_fetch_object($resOp); if (isset($rowOp->id)){ $msg_header_error[]= $l->g(2026); $msg_header_error_sol[] = $l->g(2027); } /***************************************************** WARNING MESSAGES *****************************************************/ $msg_header_warning=array(); //Demo mode activate? if (DEMO) { $msg_header_warning[]= $l->g(2104)." ".GUI_VER_SHOW."
"; } if ($_SESSION['OCS']['LOG_GUI'] == 1){ //check if the GUI logs directory is writable $rep_ok=is_writable($_SESSION['OCS']['LOG_DIR']); if (!$rep_ok){ $msg_header_warning[]=$l->g(2021); } } //Error are detected if ($msg_header_error != array()){ js_tooltip(); $msg_tooltip=''; foreach ($msg_header_error as $poub=>$values){ if (isset($msg_header_error_sol[$poub])){ $tooltip=tooltip($msg_header_error_sol[$poub]); $msg_tooltip .= "
".$values."
"; } } msg_error("".$l->g(1263)."
".$msg_tooltip); } //warning are detected if ($msg_header_warning != array()) msg_warning(implode('
',$msg_header_warning)); } if( isset($_SESSION['OCS']['TRUE_USER'])) msg_info($_SESSION['OCS']['TRUE_USER']." ".$l->g(889)." ".$_SESSION['OCS']["loggeduser"]); if (isset($_SESSION['OCS']["TRUE_mesmachines"])){ msg_info($l->g(890)); } echo "
Ver. " . GUI_VER_SHOW . "
"; //pass in debug mode if plugin debug exist if (isset($pages_refs['ms_debug'])){ $javascript="OnClick='window.open(\"index.php?".PAG_INDEX."=".$pages_refs['ms_debug']."&head=1\",\"debug\",\"location=0,status=0,scrollbars=0,menubar=0,resizable=0,width=550,height=350\")'"; if((isset($_SESSION['OCS']['DEBUG']) and $_SESSION['OCS']['DEBUG']=='ON') or (isset($_SESSION['OCS']['MODE_LANGUAGE']) and $_SESSION['OCS']['MODE_LANGUAGE']=="ON")){ echo"".GUI_VER."/".DB_NAME."
"; echo "
"; if ($_SESSION['OCS']['DEBUG']=='ON') echo "CACHE: ON":"red'>OFF")."
wait...
"; }elseif ((($_SESSION['OCS']['PAGE_PROFIL']['ms_debug']) or $_SESSION['OCS']['TRUE_PAGES']['ms_debug']) and !isset($_SESSION['OCS']['DEBUG'])){ echo "
"; } } } if(isset($_SESSION['OCS']["loggeduser"])&&!isset($protectedGet["popup"] )) { if (!isset($_SERVER['PHP_AUTH_USER']) and !isset($_SERVER['HTTP_AUTH_USER'])){ echo ""; echo "".$l->g(251).""; echo ""; } if (isset($_SESSION['OCS']["TRUE_mesmachines"])){ echo ""; echo "".$l->g(891).""; echo ""; } $javascript="OnClick='window.open(\"index.php?".PAG_INDEX."=".$pages_refs['ms_config_account']."&head=1\",\"debug\",\"location=0,status=0,scrollbars=0,menubar=0,resizable=0,width=650,height=650\")'"; echo ""; echo open_form('log_out','index.php'); echo ""; echo ""; echo close_form(); } echo "
"; if (!isset($_SESSION['OCS']["loggeduser"])){ echo ""; require_once('plugins/language/language.php'); echo ""; } echo ""; echo "
"; if ($_SESSION['OCS']["mesmachines"] == "NOTAG" and !(isset($_SESSION['OCS']['TRUE_PAGES']['ms_debug']) and $protectedGet[PAG_INDEX] == $pages_refs['ms_debug']) ){ if (isset($LIST_ERROR)) $msg_error=$LIST_ERROR; else $msg_error=$l->g(893); msg_error($msg_error); require_once(FOOTER_HTML); die(); } //if you don't want to see the icons if ($icon_head!='NO'){ require_once(PLUGINS_DIR."main_sections/section_html.php"); } ?>