noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
index.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /*! \file
00021  * \brief default page where user access
00022  */
00023 /*! \mainpage NOALYSS
00024  * Documentation
00025  * - \subpage Francais
00026  * - \subpage English
00027  *
00028  *\page Francais
00029  * \section intro_sec Introduction
00030  *
00031  * Cette partie contient de la documentation pour les développeurs.
00032  *
00033  * \section convention_code Convention de codage
00034  * <p>
00035  * Quelques conventions de codage pour avoir un code plus ou moins
00036  * homogène
00037  * <ol>
00038  * <li>Tant que possible réutiliser ce qui existe déjà, </li>
00039  * <li>Améliorer ce qui existe déjà et vérifier que cela fonctionne toujours</li>
00040  * <li>Documenter avec les tags doxygen votre nouveau code,</li>
00041  * <li>Dans le répertoire include: Les noms de fichiers sont *.inc.php pour les fichiers à éxécuter</li>
00042  * <li>Dans le répertoire include: Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement</li>
00043  * <li>Dans le répertoire include: Les noms de fichier sont
00044  * class_*.php pour les fichiers contenant des classes.</li>
00045  * <li>Dans le répertoire include/template: les fichiers de
00046  * présentation HTML </li>
00047  * <li>Utiliser sql/upgrade.sql comme fichier temporaire pour modifier la base de données, en général
00048  *  ce fichier deviendra l'un des patch </li>
00049  * <li>Faire de la doc </li>
00050  * </ol>
00051  *
00052  * </p>
00053  * \section conseil Conseils
00054  * <p>
00055  * Utiliser cette documentation, elle est générée automatiquement avec Doxygen,
00056  * <ul>
00057  * <li>Related contient tous les \\todo</li>
00058  * <li>Global -> function pour lire toute la doc sur les fonctions</li>
00059  * <li>Regarder dans dossier1.html et account_repository.html  pour la doc des base de données
00060  *</ul>
00061  *  et il ne faut connaître que ces tags
00062  * <ul>
00063  * <li> \\file en début de fichier</li>
00064  * <li> \\todo ajouter un todo </li>
00065  * <li> \\enum pour commenter une variable</li>
00066  * <li> \\param pour commenter le paramètre d'une fonction</li>
00067  * <li> \\brief Commentaire du fichier, de la fonction ou de la classe</li>
00068  * <li> \\note des notes, des exemples</li>
00069  * <li> \\throw or exception is a function can throw an exception
00070  * <li> \\par to create a new paragraph
00071  * <li> \\return ce que la fonction retourne</li>
00072  * <li> \\code et \\endcode si on veut donner un morceau de code comme documentation</li>
00073  * <li> \\verbatim et \\endverbatim si on veut donner une description d'un tableau,  comme documentation</li>
00074  *<li>  \\see xxxx Ajoute un lien vers un fichier, une fonction ou une classe </li>
00075  * </ul>
00076  *----------------------------------------------------------------------
00077  *\page English
00078  * \section intro_sec Introduction
00079  *
00080  * This parts contains documentation for developpers
00081  *
00082  * \section convention_code Coding convention
00083  * <p>
00084  * Some coding conventions to have a homogene code
00085  * <ol>
00086  * <li>Reuse the existing code , </li>
00087  * <li>Improve and check that the function is still working</li>
00088  * <li>Make documentation thanks doxygen tag</li>
00089  * <li>In the folder include: filenames ending by  *.inc.php will be executer after being included</li>
00090  * <li>Dans le répertoire include: Les noms de fichiers sont *.php pour les fichiers contenant des fonctions uniquement</li>
00091  * <li>In the folder include: filenames end by  *.php if they contains only function</li>
00092  * <li>In the folder include: filenames starting with
00093  * class_*.php if it is related to a class.</li>
00094  * <li>In the folder include/template: files for the HTML presentation
00095  * </li>
00096  * <li>Use sql/upgrade.sql as temporary file to modify the database,this file will be the base for a SQL patch
00097  *  </li>
00098  * <li>Write documentation </li>
00099  * </ol>
00100  *
00101  * </p>
00102  * \section advice Advices
00103  * <p>
00104  * Use this document, it is generated automatically by doxygen, check the documentation your made, read it first this
00105  * documentation before making change
00106  * <ul>
00107  * <li>Related contains all the \\todo</li>
00108  * <li>Global -> all the functions</li>
00109  * <li>check into mod1.html and account_repository.html for the database design
00110  *</ul>
00111  *  You need to know only this tags
00112  * <ul>
00113  * <li> \\file in the beginning of a file</li>
00114  * <li> \\todo add a todo </li>
00115  * <li> \\enum comment a variable</li>
00116  * <li> \\param about the parameter of a function</li>
00117  * <li> \\brief Documentation of the file, function or class</li>
00118  * <li> \\note note exemple</li>
00119  * <li> \\throw or exception is a function can throw an exception
00120  * <li> \\par to create a new paragraph
00121  * <li> \\return what the function returns</li>
00122  * <li> \\code and \\endcode code snippet given as example</li>
00123  * <li> \\verbatim and \\endverbatim if we want to keep the formatting without transformation</li>
00124  *<li>  \\see xxxx create a link to the file, function or object xxxx </li>
00125  * </ul>
00126  */
00127 
00128 if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php'))
00129 {
00130     $p_string='admin/setup.php';
00131     echo '<HTML><head><META HTTP-EQUIV="REFRESH" content="0;url='.$p_string.'"></head><body> Connecting... </body></html>';
00132     exit(0);
00133 }
00134 
00135 echo '<!doctype html><HTML>
00136 <head>
00137 <TITLE> NOALYSS </TITLE>
00138 <link rel="shortcut icon" type="image/ico" href="favicon.ico" />
00139 <style>
00140 BODY {
00141 background-color:white;
00142 font-size:14px;
00143 font-family:sans-serif,arial;
00144 color:blue;
00145 }
00146 .remark {
00147 border: solid black 1px;
00148 font-family:sans-serif;
00149 font-size: 9px;
00150 color:blue;
00151 width:200px;
00152 padding:3px;
00153 }
00154 .gras {
00155 font-size:12px;
00156 font-family:sans-serif,arial;
00157 color:red;
00158 
00159 }
00160 .input_text {
00161 border:1px solid blue;
00162 margin:1px;
00163 }
00164 .button {
00165 font-size:12px;
00166 color:white;
00167 font-weight: bold;
00168 border:0px;
00169 text-decoration:none;
00170 font-family: helvetica,arial,sans-serif;
00171 background-image: url("image/bg-submit2.gif");
00172 background-repeat: repeat-x;
00173 background-position: left;
00174 text-decoration:none;
00175 font-family: helvetica,arial,sans-serif;
00176 border-width:0px;
00177 padding:2px 4px 2px 4px;
00178 cursor:pointer;
00179 margin:1px 2px 1px 2px;
00180 -moz-border-radius:2px 2px;
00181 border-radius:2px 2px;
00182 
00183 }
00184 .button:hover {
00185 cursor:pointer;
00186 background-color:white;
00187 border-style:  solid;
00188 border-width:  0px;
00189 font-color:blue;
00190 margin:1px 2px 1px 2px;
00191 }
00192 </style>
00193 <script src="js/scripts.js" type="text/javascript"></script>
00194 </head>
00195 <BODY>';
00196 $my_domain="";
00197 require_once '../include/constant.php';
00198 require_once ('config.inc.php');
00199 if ( strlen(domaine) > 0 )
00200 {
00201     $my_domain="Domaine : ".domaine;
00202 }
00203 
00204 echo '
00205 <span style="background-color:#879ed4;color:white;padding-left:4px;padding-right:4px;">
00206 version  6.7.2.0 - '.$my_domain.'
00207 </span>
00208 <BR>
00209 <BR>
00210 <BR>
00211 <BR>
00212 <center>
00213 <IMG SRC="image/logo6720.png" alt="NOALYSS">
00214 <BR>
00215 <BR>
00216 <BR>
00217 
00218 <form action="login.php" method="post" name="loginform">
00219 <TABLE><TR><TD>
00220 <TABLE  BORDER=0 CELLSPACING=0>
00221 <TR>
00222 <TD class="cell">utilisateur</TD>
00223 <TD><input type="text" class="input_text" value="" id="p_user" name="p_user" tabindex="1"></TD>
00224 </TR>
00225 <TR>
00226 <TD> mot de passe </TD>
00227 <TD><INPUT TYPE="PASSWORD"  class="input_text" value=""  NAME="p_pass" tabindex="2"></TD>
00228 </TR>';
00229 
00230 require_once('constant.php');
00231 require_once('ac_common.php');
00232 
00233 if ( $g_captcha == true )
00234   {
00235     echo '<tr ><td colspan="2" style="width:auto">';
00236     echo "<table style=\"border:1px solid black\">";
00237     echo '<tr>';
00238     echo '<td colspan="2" style="with:auto;font-size:12px;text-align:center">';
00239     echo "Indiquer le code que vous lisez dans l'image";
00240     echo '</td>';
00241     echo '</tr>';
00242     echo '<tr>';
00243     echo td('<img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" border=1/>','colspan="2" style="width:auto;text-align:center"');
00244     echo '</tr>';
00245     echo '<tr>';
00246 
00247     echo td('<input type="text" class="input_text" name="captcha_code" size="10" maxlength="6" autocomplete="off"/>'.
00248             '<a href="#" onclick="document.getElementById(\'captcha\').src = \'securimage/securimage_show.php?\' + Math.random(); return false">Reload Image</a>','colspan="2" style="width:auto;text-align:center"');
00249     echo '</tr>';
00250     echo '</table>';
00251     echo '</td>';
00252     echo '<tr>';
00253   }
00254 echo '
00255 <TR style="height:50px;vertical-align:bottom">
00256 <TD style="width:auto;text-align:center" colspan="2">
00257 <INPUT TYPE="SUBMIT"  style="width:60%;height:32px;-moz-border-radius:10px;border-radius:10px" class="button" NAME="login" value="Se connecter">
00258 </TD>
00259 </TR>
00260 </table>
00261 </TD></TR>';
00262 
00263 ?>
00264 </table>
00265 
00266 </form>
00267 </Center>
00268 <div  style="position:absolute;bottom:0em;border:1px solid red;text-align:right;width:20em;">
00269 <span style="display:block">Pour une meilleure expérience web, nous vous conseillons <a href="http://www.mozilla.com/fr/">firefox</a></span>
00270 <span style="display:block">For a better web experience, we recommend you <a href="http://www.mozilla.com/en/">firefox</a></span>
00271 </div>
00272  <script> SetFocus('p_user'); </script>
00273 </body>
00274 </html>
00275 
 All Data Structures Namespaces Files Functions Variables Enumerations