Secu: Toutes les pages de l'espace "infos systmes" sont protgs par test sur user=admin
Trad: Toutes les chaines de toutes les pages de l'espace "infos systmes" sont traduites Norm: Suppression de cellpadding et cellspacing au profit de la feuille de style de l'espace "infos systme".
This commit is contained in:
parent
a6422e4ad6
commit
34dbfcc421
@ -19,18 +19,27 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/constall.php
|
||||
\brief Page d'info de toutes les constantes
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_titre("Liste de tous les paramètres de configuration Dolibarr");
|
||||
print_titre($langs->trans("SummaryConst"));
|
||||
|
||||
print '<br>';
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0">';
|
||||
print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameter").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -18,8 +19,19 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/pre.inc.php
|
||||
\brief Générateur de données aléatoires pour les produits et sociétés
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
llxHeader();
|
||||
|
||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."product"; $productsid = array();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -18,12 +19,24 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/gendata.php
|
||||
\brief Page de génération de données aléatoires pour les commandes et expedition
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
$user->getrights('commande');
|
||||
$user->getrights('expedition');
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
llxHeader();
|
||||
|
||||
?>
|
||||
<h2>Attention : Ceci est un générateur de données aléatoires, ne
|
||||
pas utiliser sur une base de données en production, les opérations ne sont pas réversibles</h2>
|
||||
@ -51,7 +64,7 @@ $sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."commande"; $commandesid = array();
|
||||
if ($db->query($sql)) { $num = $db->num_rows(); $i = 0;
|
||||
while ($i < $num) { $row = $db->fetch_row($i); $commandesid[$i] = $row[0]; $i++; } } else { print "err"; }
|
||||
|
||||
print '<table border="1"><tr>';
|
||||
print '<table class="border"><tr>';
|
||||
print '<td><a href="gendata.php?action=societe">Sociétés</a></td>';
|
||||
print '<td><a href="gendata.php?action=product">Produits</a></td>';
|
||||
print '<td><a href="gendata.php?action=facture">Factures</a></td>';
|
||||
|
||||
@ -20,80 +20,87 @@
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
// Choix du menu à garder fixe
|
||||
// Ceci va servir pour garder le menu fixe quelquesoit les liens cliqué
|
||||
/*! \file htdocs/admin/system/index.php
|
||||
\brief Page accueil infos système
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
// \todo eldy Choix du menu à garder fixe à finir.
|
||||
// Ceci va servir pour garder le menu fixe quelquesoit les liens cliqués
|
||||
// dans ce menu. Cela permet d'appeler des pages en dehors sans perdre
|
||||
// le menu qui nous intéresse.
|
||||
// ELDY: A finir
|
||||
//session_start();
|
||||
//$fix_top_menu="accueil";
|
||||
//$fix_left_menu="system";
|
||||
//session_register("fix_top_menu");
|
||||
//session_register("fix_left_menu");
|
||||
|
||||
//include_once("../../allpre.inc.php");
|
||||
require("./pre.inc.php");
|
||||
//include_once("../../allpre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
$langs->load("user");
|
||||
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_titre("Résumé des informations systèmes Dolibarr");
|
||||
print_titre($langs->trans("SummarySystem"));
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibar</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">Version</td><td>" . DOL_VERSION . "</td></tr>\n";
|
||||
//print "<tr $bc[1]><td width=\"240\">Version de la base de données</td><td>" . DOL_VERSION_DB . "</td></tr>\n";
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">Dolibarr</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">".$langs->trans("Version")."</td><td>" . DOL_VERSION . "</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">OS</td></tr>\n";
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("OS")."</td></tr>\n";
|
||||
// Récupère la version de l'OS
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$chaine = ob_get_contents();
|
||||
ob_end_clean();
|
||||
eregi('System </td><td class="v">([^\/]*)</td>',$chaine,$reg);
|
||||
print "<tr $bc[1]><td width=\"240\">Version</td><td>".$reg[1]."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">".$langs->trans("Version")."</td><td>".$reg[1]."</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">Serveur Web</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">Version</td><td>".$_SERVER["SERVER_SOFTWARE"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>document root</td><td>" . DOL_DOCUMENT_ROOT . "</td></tr>\n";
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("WebServer")."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">".$langs->trans("Version")."</td><td>".$_SERVER["SERVER_SOFTWARE"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("DocumentRootServer")."</td><td>" . DOL_DOCUMENT_ROOT . "</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">PHP</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">Version</td><td>".phpversion()."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>Liaison Web-PHP</td><td>".php_sapi_name()."</td></tr>\n";
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Php")."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">".$langs->trans("Version")."</td><td>".phpversion()."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("PhpWebLink")."</td><td>".php_sapi_name()."</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">Base de données</td></tr>\n";
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td colspan=\"2\">".$langs->trans("Database")."</td></tr>\n";
|
||||
$sql = "SHOW VARIABLES LIKE 'version'";
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$row = $db->fetch_row();
|
||||
}
|
||||
print "<tr $bc[0]><td>Version</td><td>" . $row[1] . "</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("Version")."</td><td>" . $row[1] . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"240\">".$langs->trans("Type")."</td><td>" . $conf->db->type . "</td></tr>\n";
|
||||
print "<tr $bc[0]><td>Host</td><td>" . $conf->db->host . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td>User</td><td>" . $conf->db->user . " </td></tr>\n";
|
||||
print "<tr $bc[0]><td>Pass</td><td>" . $conf->db->pass . " </td></tr>\n";
|
||||
print "<tr $bc[1]><td>Database name</td><td>" . $conf->db->name . "</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("Host")."</td><td>" . $conf->db->host . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td>".$langs->trans("User")."</td><td>" . $conf->db->user . " </td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("Password")."</td><td>" . $conf->db->pass . " </td></tr>\n";
|
||||
print "<tr $bc[1]><td>".$langs->trans("DatabaseName")."</td><td>" . $conf->db->name . "</td></tr>\n";
|
||||
|
||||
print '</table>';
|
||||
|
||||
|
||||
@ -19,40 +19,54 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/mysql-tables-contraintes.php
|
||||
\brief Page d'info des contraintes de la base
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php";
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
|
||||
print_titre($langs->trans("Constraints"));
|
||||
|
||||
if($dolibarr_main_db_type=="mysql")
|
||||
{
|
||||
print_titre("Tables Mysql - Contraintes");
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
$base=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print_titre("Tables PostreSql - Contraintes");
|
||||
$sql = "select conname,contype from pg_constraint;";
|
||||
$sql = "select conname,contype from pg_constraint;";
|
||||
$base=2;
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="1">';
|
||||
print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
if($base==1)
|
||||
{
|
||||
print '<td>Tables</td>';
|
||||
print '<td>'.$langs->trans("Tables").'</td>';
|
||||
print '<td>'.$langs->trans("Type").'</td>';
|
||||
print '<td>Contraintes</td>';
|
||||
print '<td>'.$langs->trans("Constraints").'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td>Contraintes</td>';
|
||||
print '<td>Type de la contrainte</td>';
|
||||
print '<td>'.$langs->trans("Constraints").'</td>';
|
||||
print '<td>'.$langs->trans("ConstraintsType").'</td>';
|
||||
}
|
||||
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
@ -71,8 +85,9 @@ if ($result)
|
||||
|
||||
print '<td>'.$row[0].'</td>';
|
||||
print '<td>'.$row[1].'</td>';
|
||||
print '<td align="left">'.$row[14].'</td>';
|
||||
|
||||
if($base==1) {
|
||||
print '<td align="left">'.$row[14].'</td>';
|
||||
}
|
||||
print '</tr>';
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -19,9 +19,17 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/mysql-tables.php
|
||||
\brief Page d'infos des tables de la base
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php";
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
@ -34,100 +42,96 @@ if ($_GET["action"] == 'convert')
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_titre($langs->trans("Tables")." ".ucfirst($dolibarr_main_db_type));
|
||||
|
||||
if($dolibarr_main_db_type=="mysql")
|
||||
{
|
||||
|
||||
print_titre("Tables Mysql");
|
||||
|
||||
print '<br>';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="1">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Nom de la table</td>';
|
||||
print '<td colspan="2">'.$langs->trans("Type").'</td>';
|
||||
print '<td>Format lignes</td>';
|
||||
print '<td>Nb enr.</td>';
|
||||
print '<td>Avg_row_length</td>';
|
||||
print '<td>Data_length</td>';
|
||||
print '<td>Max_Data_length</td>';
|
||||
print '<td>Index_length</td>';
|
||||
print '<td>Last check</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$var=True;
|
||||
$i=0;
|
||||
while ($i < $num)
|
||||
print '<br>';
|
||||
print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("TableName").'</td>';
|
||||
print '<td colspan="2">'.$langs->trans("Type").'</td>';
|
||||
print '<td>'.$langs->trans("TableLineFormat").'</td>';
|
||||
print '<td>'.$langs->trans("NbOfRecord").'</td>';
|
||||
print '<td>Avg_row_length</td>';
|
||||
print '<td>Data_length</td>';
|
||||
print '<td>Max_Data_length</td>';
|
||||
print '<td>Index_length</td>';
|
||||
print '<td>Last check</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$row = $db->fetch_row($i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
|
||||
print '<td>'.$row[0].'</td>';
|
||||
print '<td>'.$row[1].'</td>';
|
||||
if ($row[1] == "MyISAM")
|
||||
{
|
||||
print '<td><a href="mysql-tables.php?action=convert&table='.$row[0].'">Convertir</a></td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td>-</td>';
|
||||
}
|
||||
print '<td>'.$row[2].'</td>';
|
||||
print '<td align="right">'.$row[3].'</td>';
|
||||
print '<td align="right">'.$row[4].'</td>';
|
||||
print '<td align="right">'.$row[5].'</td>';
|
||||
print '<td align="right">'.$row[6].'</td>';
|
||||
print '<td align="right">'.$row[7].'</td>';
|
||||
print '<td align="right">'.$row[12].'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
$num = $db->num_rows();
|
||||
$var=True;
|
||||
$i=0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$row = $db->fetch_row($i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
|
||||
print '<td>'.$row[0].'</td>';
|
||||
print '<td>'.$row[1].'</td>';
|
||||
if ($row[1] == "MyISAM")
|
||||
{
|
||||
print '<td><a href="mysql-tables.php?action=convert&table='.$row[0].'">Convertir</a></td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td>-</td>';
|
||||
}
|
||||
print '<td>'.$row[2].'</td>';
|
||||
print '<td align="right">'.$row[3].'</td>';
|
||||
print '<td align="right">'.$row[4].'</td>';
|
||||
print '<td align="right">'.$row[5].'</td>';
|
||||
print '<td align="right">'.$row[6].'</td>';
|
||||
print '<td align="right">'.$row[7].'</td>';
|
||||
print '<td align="right">'.$row[12].'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
print_titre("Tables Mysql");
|
||||
print '<br>';
|
||||
print '<table class="noborder" cellpadding="4" cellspacing="1">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Nom de la table</td>';
|
||||
print '<td>Nombre de tuples lu</td>';
|
||||
print '<td>Nb index fetcher.</td>';
|
||||
print '<td>Nbre de tuples inserer</td>';
|
||||
print '<td>Nbre de tuple modifier</td>';
|
||||
print '<td>Nbre de tuple supprimer</td>';
|
||||
print "</tr>\n";
|
||||
$sql = "select relname,seq_tup_read,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del
|
||||
from pg_stat_user_tables;";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$var=True;
|
||||
$i=0;
|
||||
while ($i < $num)
|
||||
print '<br>';
|
||||
print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("TableName").'</td>';
|
||||
print '<td>Nombre de tuples lu</td>';
|
||||
print '<td>Nb index fetcher.</td>';
|
||||
print '<td>Nbre de tuples inserer</td>';
|
||||
print '<td>Nbre de tuple modifier</td>';
|
||||
print '<td>Nbre de tuple supprimer</td>';
|
||||
print "</tr>\n";
|
||||
$sql = "select relname,seq_tup_read,idx_tup_fetch,n_tup_ins,n_tup_upd,n_tup_del from pg_stat_user_tables;";
|
||||
|
||||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$row = $db->fetch_row($i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print '<td align="right">'.$row[0].'</td>';
|
||||
print '<td align="right">'.$row[1].'</td>';
|
||||
print '<td align="right">'.$row[2].'</td>';
|
||||
print '<td align="right">'.$row[3].'</td>';
|
||||
print '<td align="right">'.$row[4].'</td>';
|
||||
print '<td align="right">'.$row[5].'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
print '</table>';
|
||||
$num = $db->num_rows();
|
||||
$var=True;
|
||||
$i=0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$row = $db->fetch_row($i);
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td align="right">'.$row[0].'</td>';
|
||||
print '<td align="right">'.$row[1].'</td>';
|
||||
print '<td align="right">'.$row[2].'</td>';
|
||||
print '<td align="right">'.$row[3].'</td>';
|
||||
print '<td align="right">'.$row[4].'</td>';
|
||||
print '<td align="right">'.$row[5].'</td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
print '</table>';
|
||||
}
|
||||
llxFooter();
|
||||
?>
|
||||
|
||||
@ -19,44 +19,40 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/pre.inc.php
|
||||
\brief Page des infos système de la base de donnée
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php";
|
||||
|
||||
//include "/home/vegeta/www/dolibarr/htdocs/conf/conf.php";
|
||||
// ici comme ça j'ai la style sheet!
|
||||
|
||||
/*$conf = "../../conf/conf.php";
|
||||
if (file_exists($conf))
|
||||
{
|
||||
include($conf);
|
||||
}*/
|
||||
|
||||
include_once $dolibarr_main_document_root."/lib/${dolibarr_main_db_type}.lib.php";
|
||||
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_titre($langs->trans("DatabaseConfiguration"));
|
||||
|
||||
if($dolibarr_main_db_type=="mysql")
|
||||
{
|
||||
print_titre("Configuration MySql");
|
||||
$sql = "SHOW VARIABLES";
|
||||
$base=1;
|
||||
}
|
||||
else
|
||||
{
|
||||
print_titre("Configuration Pgsql");
|
||||
$sql = "select name,setting from pg_settings;";
|
||||
$base=2;
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="1">';
|
||||
print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Propriétés du serveur</td>';
|
||||
print '<td>Valeur</td>';
|
||||
print '<td>'.$langs->trans("Parameter").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
@ -68,16 +64,16 @@ if ($result)
|
||||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
if($base==1)
|
||||
print '<td>'.$objp->Variable_name.'</td><td>'.$objp->Value.'</td>';
|
||||
else
|
||||
print '<td>'.$objp->name.'</td><td>'.$objp->setting.'</td>';
|
||||
print '</tr>';
|
||||
|
||||
$i++;
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
if($base==1)
|
||||
print '<td>'.$objp->Variable_name.'</td><td>'.$objp->Value.'</td>';
|
||||
else
|
||||
print '<td>'.$objp->name.'</td><td>'.$objp->setting.'</td>';
|
||||
print '</tr>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
@ -18,8 +18,16 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/os.php
|
||||
\brief Page des infos système de l'OS
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
@ -30,7 +38,7 @@ print_titre("OS");
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||
print "\n";
|
||||
// Récupère la version de l'OS
|
||||
@ -39,7 +47,7 @@ phpinfo();
|
||||
$chaine = ob_get_contents();
|
||||
ob_end_clean();
|
||||
eregi('System </td><td class="v">([^\/]*)</td>',$chaine,$reg);
|
||||
print "<tr $bc[1]><td width=\"140\"><b>Version</b></td><td>".$reg[1]."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\"><b>".$langs->trans("Version")."</b></td><td>".$reg[1]."</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
|
||||
|
||||
@ -19,15 +19,24 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/pear.php
|
||||
\brief Page des infos système de PEAR
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
print "TODO";
|
||||
// \todo
|
||||
print $langs->trans("NotYetAvailable");
|
||||
|
||||
//include_once "PEAR/Info.php";
|
||||
//$info = new PEAR_Info();
|
||||
|
||||
@ -19,17 +19,24 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/pear_packages.php
|
||||
\brief Page des infos système des packages PEAR
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
//require_once "PEAR/Info.php";
|
||||
|
||||
llxHeader();
|
||||
|
||||
print "TODO";
|
||||
// \todo Afficher info PEAR
|
||||
print $langs->trans("NotYetAvailable");
|
||||
|
||||
//$info = new PEAR_Info();
|
||||
//$info->getPackages();
|
||||
|
||||
@ -20,8 +20,16 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/phpinfo.php
|
||||
\brief Page des infos système de PHP
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
@ -19,42 +19,52 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/pre.inc.php
|
||||
\brief Gestionnaire menu page infos système
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("../../main.inc.php");
|
||||
|
||||
function llxHeader($head = "", $urlp = "") {
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
top_menu($head);
|
||||
global $langs;
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add("index.php", "Résumé");
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/about.php", "Dolibarr");
|
||||
$menu->add_submenu("constall.php", "Tous les paramètres");
|
||||
|
||||
$menu->add("os.php", "OS");
|
||||
|
||||
$menu->add("web.php", "Serveur Web");
|
||||
|
||||
$menu->add("phpinfo.php", "Php");
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=conf", "Conf");
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=env", "Env");
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=modules", "Modules");
|
||||
|
||||
$menu->add("pear.php", "Pear");
|
||||
$menu->add_submenu("pear_packages.php", "Paquets");
|
||||
|
||||
$menu->add("mysql.php", "Base de données");
|
||||
$menu->add_submenu("mysql-tables.php", "Tables");
|
||||
$menu->add_submenu("mysql-tables-contraintes.php", "Tables Contraintes");
|
||||
|
||||
left_menu($menu->liste);
|
||||
$langs->load("admin");
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
top_menu($head);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add("index.php", $langs->trans("Summary"));
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/about.php", "Dolibarr");
|
||||
$menu->add_submenu("constall.php", $langs->trans("AllParameters"));
|
||||
|
||||
$menu->add("os.php", $langs->trans("OS"));
|
||||
|
||||
$menu->add("web.php", $langs->trans("WebServer"));
|
||||
|
||||
$menu->add("phpinfo.php", $langs->trans("Php"));
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=conf", $langs->trans("PhpConf"));
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=env", $langs->trans("PhpEnv"));
|
||||
|
||||
$menu->add_submenu("phpinfo.php?what=modules", $langs->trans("PhpModules"));
|
||||
|
||||
$menu->add("pear.php", $langs->trans("Pear"));
|
||||
$menu->add_submenu("pear_packages.php", $langs->trans("PearPackages"));
|
||||
|
||||
$menu->add("mysql.php", $langs->trans("Database"));
|
||||
$menu->add_submenu("mysql-tables.php", $langs->trans("Tables"));
|
||||
$menu->add_submenu("mysql-tables-contraintes.php", $langs->trans("Constraints"));
|
||||
|
||||
left_menu($menu->liste);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -19,8 +20,16 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/update.php
|
||||
\brief Page de mise a jour Dolibarr
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
$user->getrights('facture');
|
||||
|
||||
print "user " . $user->rights->facture->lire . " !";
|
||||
@ -44,7 +53,7 @@ if ($user->societe_id > 0)
|
||||
/*
|
||||
*
|
||||
*/
|
||||
print_titre("Mise à jour système");
|
||||
print_titre($langs->trans("SystemUpdate"));
|
||||
$err = 0;
|
||||
/*
|
||||
* Factures
|
||||
@ -97,7 +106,7 @@ $db->close();
|
||||
|
||||
if ($err == 0)
|
||||
{
|
||||
print "<p><b>Votre système a été mise à jour avec succés.</b>";
|
||||
print '<br><b>'.$langs->trans("SystemSuccessfulyUpdated").'</b>';
|
||||
}
|
||||
|
||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||
|
||||
@ -18,25 +18,33 @@
|
||||
* $Id$
|
||||
* $Source$
|
||||
*/
|
||||
|
||||
/*! \file htdocs/admin/system/web.php
|
||||
\brief Page des infos système du serveur Web
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("admin");
|
||||
|
||||
if (!$user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_titre("Serveur Web");
|
||||
print_titre($langs->trans("WebServer"));
|
||||
|
||||
print "<br>\n";
|
||||
|
||||
print '<table class="noborder" cellpadding="3" cellspacing="0" width="100%">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print "<tr class=\"liste_titre\"><td>".$langs->trans("Parameter")."</td><td>".$langs->trans("Value")."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">Version</td><td>".$_SERVER["SERVER_SOFTWARE"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>Nom du serveur virtuel</td><td>" . $_SERVER["SERVER_NAME"] . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">IP</td><td>".$_SERVER["SERVER_ADDR"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>Port</td><td>" . $_SERVER["SERVER_PORT"] . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">Racine du serveur</td><td>".$_SERVER["DOCUMENT_ROOT"]."</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">".$langs->trans("Version")."</td><td>".$_SERVER["SERVER_SOFTWARE"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("VirtualServerName")."</td><td>" . $_SERVER["SERVER_NAME"] . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">".$langs->trans("IP")."</td><td>".$_SERVER["SERVER_ADDR"]."</td></tr>\n";
|
||||
print "<tr $bc[0]><td>".$langs->trans("Port")."</td><td>" . $_SERVER["SERVER_PORT"] . "</td></tr>\n";
|
||||
print "<tr $bc[1]><td width=\"140\">".$langs->trans("DocumentRootServer")."</td><td>".$_SERVER["DOCUMENT_ROOT"]."</td></tr>\n";
|
||||
print '</table>';
|
||||
|
||||
llxFooter();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user