Nettoyage du code
This commit is contained in:
parent
dad0dff3fb
commit
f214c461c6
@ -28,8 +28,6 @@ if (!$user->admin)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
// positionne la variable pour le test d'affichage de l'icone
|
// positionne la variable pour le test d'affichage de l'icone
|
||||||
|
|
||||||
$main_use_mailman = MAIN_USE_MAILMAN;
|
$main_use_mailman = MAIN_USE_MAILMAN;
|
||||||
|
|||||||
@ -26,8 +26,6 @@ require("../boutique/editeur/editeur.class.php");
|
|||||||
require("../boutique/auteur/auteur.class.php");
|
require("../boutique/auteur/auteur.class.php");
|
||||||
require("../product/promotion/promotion.class.php");
|
require("../product/promotion/promotion.class.php");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
|
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
|
||||||
|
|||||||
@ -25,8 +25,6 @@ require("../boutique/livre/livre.class.php");
|
|||||||
require("../boutique/editeur/editeur.class.php");
|
require("../boutique/editeur/editeur.class.php");
|
||||||
require("../boutique/auteur/auteur.class.php");
|
require("../boutique/auteur/auteur.class.php");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
|
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
|
||||||
|
|||||||
@ -20,8 +20,6 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$dir = "../includes/modules/facture/";
|
$dir = "../includes/modules/facture/";
|
||||||
|
|||||||
@ -30,8 +30,6 @@ print '<TD>Nom</TD>';
|
|||||||
print '<TD>Valeur</TD>';
|
print '<TD>Valeur</TD>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
$sql = "SELECT rowid, name, value, type, note FROM llx_const ORDER BY name ASC";
|
$sql = "SELECT rowid, name, value, type, note FROM llx_const ORDER BY name ASC";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
@ -29,8 +29,6 @@ if (!$user->admin)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
// positionne la variable pour le test d'affichage de l'icone
|
// positionne la variable pour le test d'affichage de l'icone
|
||||||
|
|
||||||
$facture_addon_var = FACTURE_ADDON;
|
$facture_addon_var = FACTURE_ADDON;
|
||||||
|
|||||||
@ -20,8 +20,6 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$dir = "../includes/modules/facture/";
|
$dir = "../includes/modules/facture/";
|
||||||
|
|||||||
@ -24,8 +24,6 @@ llxHeader();
|
|||||||
|
|
||||||
print_titre("Configuration Mysql");
|
print_titre("Configuration Mysql");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
print '<table border="0" cellpadding="3" cellspacing="1">';
|
print '<table border="0" cellpadding="3" cellspacing="1">';
|
||||||
|
|
||||||
$sql = "SHOW VARIABLES";
|
$sql = "SHOW VARIABLES";
|
||||||
|
|||||||
@ -29,7 +29,6 @@ if (! strlen(DB_NAME_OSC))
|
|||||||
print "Non dispo";
|
print "Non dispo";
|
||||||
llxFooter();
|
llxFooter();
|
||||||
}
|
}
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="lower(p.label),p.price";
|
$sortfield="lower(p.label),p.price";
|
||||||
|
|||||||
@ -29,8 +29,6 @@ if (!$user->admin)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($action == 'set')
|
if ($action == 'set')
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO llx_propal_model_pdf (nom) VALUES ('".$value."')";
|
$sql = "INSERT INTO llx_propal_model_pdf (nom) VALUES ('".$value."')";
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
print_barre_liste("Liste des tables", $page, $PHP_SELF);
|
print_barre_liste("Liste des tables", $page, $PHP_SELF);
|
||||||
|
|
||||||
$sql = "SELECT name, loaded FROM llx_sqltables";
|
$sql = "SELECT name, loaded FROM llx_sqltables";
|
||||||
|
|||||||
@ -30,8 +30,6 @@ if (!$user->admin)
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
$def = array();
|
$def = array();
|
||||||
|
|
||||||
// positionne la variable pour le test d'affichage de l'icone
|
// positionne la variable pour le test d'affichage de l'icone
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
$album = new Album($db);
|
$album = new Album($db);
|
||||||
|
|
||||||
|
|||||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($id)
|
if ($id)
|
||||||
{
|
{
|
||||||
$title = title_url($id, $db);
|
$title = title_url($id, $db);
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
$lieuconcert = new LieuConcert($db);
|
$lieuconcert = new LieuConcert($db);
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="lower(lc.nom)";
|
$sortfield="lower(lc.nom)";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,8 +25,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="rat";
|
$sortfield="rat";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($id)
|
if ($id)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="date_added";
|
$sortfield="date_added";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php3");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="lower(p.label),p.price";
|
$sortfield="lower(p.label),p.price";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php3");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="rat";
|
$sortfield="rat";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php3");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if ($sortfield == "") {
|
||||||
$sortfield="lower(p.label),p.price";
|
$sortfield="lower(p.label),p.price";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
require("./pre.inc.php3");
|
require("./pre.inc.php3");
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($sortfield == "")
|
if ($sortfield == "")
|
||||||
{
|
{
|
||||||
$sortfield="c";
|
$sortfield="c";
|
||||||
|
|||||||
@ -24,8 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
|
|
||||||
if ($action == "inactive")
|
if ($action == "inactive")
|
||||||
{
|
{
|
||||||
$promotion = new Promotion($db);
|
$promotion = new Promotion($db);
|
||||||
|
|||||||
@ -24,7 +24,6 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -19,14 +19,12 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("../../propal.class.php3");
|
require("../../propal.class.php3");
|
||||||
require("../../graph.class.php");
|
require("../../graph.class.php");
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -26,7 +26,6 @@ require("../../graph.class.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$db = new Db();
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user