From c5e21f6a48f18854f596255cb209fbc5bc0dd73c Mon Sep 17 00:00:00 2001 From: Kilian Saffran Date: Thu, 26 Aug 2021 14:06:43 +0200 Subject: [PATCH] v20210825 --- api/bin/getapidata.pl | 242 +- api/bin/lib/api.pm | 8 +- api/bin/lib/mysql.pm | 2 +- api/bin/tmpsync.sh | 160 +- dev/{dev => }/genpwd.php | 16 + public_html/css/site-marketing.css | 20 +- public_html/css/site-normal.css | 28 +- public_html/index.php | 124 +- public_html/js/site.js | 56 +- public_html/lib/menu.php | 14 + public_html/qubeshop/.htaccess | 2 +- public_html/qubeshop/apitest | 6 +- public_html/qubeshop/css/theme.css | 2 +- public_html/qubeshop/index.php | 1 + public_html/qubeshop/lib/config.php | 18 +- public_html/qubeshop/lib/lang/fr.php | 22 +- public_html/qubeshop/lib/modules/Api.php | 381 +- .../qubeshop/lib/modules/ArticleGroups.php | 10 +- public_html/qubeshop/lib/modules/Articles.php | 14 +- .../qubeshop/lib/modules/ContratCadre.php | 17 +- public_html/qubeshop/lib/modules/Email.php | 30 +- public_html/qubeshop/lib/modules/Profile.php | 22 +- public_html/qubeshop/lib/modules/User.php | 104 +- public_html/qubeshop/lib/publicaliases.php | 2 +- public_html/qubeshop/lib/session.php | 40 +- public_html/qubeshop/log/logintest.log | 5 + .../mails/20210817084840_ksaffran@dks.lu.eml | 12 + .../mails/20210817085235_ksaffran@dks.lu.eml | 12 + .../mails/20210817085307_ksaffran@dks.lu.eml | 12 + .../mails/20210817085716_ksaffran@dks.lu.eml | 12 + public_html/qubeshop/log/sql.log | 6884 +++++------------ public_html/qubeshop/log/test.log | 0 public_html/qubeshop/publicapi.php | 2 +- public_html/qubeshop/tmpl/js/contratcadre.js | 71 +- public_html/qubeshop/tmpl/js/dataform.js | 2 +- public_html/qubeshop/tmpl/js/login.js | 22 +- public_html/qubeshop/tmpl/js/profile.js | 22 +- public_html/qubeshop/tmpl/js/shop.js | 84 +- public_html/qubeshop/tmpl/login.html | 2 +- .../tmpl/module/login/forgotpassword.html | 8 +- .../tmpl/module/login/newaccount.html | 24 +- .../qubeshop/tmpl/panels/pnl_askprice.html | 2 +- .../qubeshop/tmpl/panels/pnl_basket.html | 2 +- .../tmpl/panels/pnl_contratcadre.html | 13 +- .../qubeshop/tmpl/panels/pnl_profile.html | 58 +- 45 files changed, 2671 insertions(+), 5919 deletions(-) rename dev/{dev => }/genpwd.php (65%) create mode 100644 public_html/lib/menu.php create mode 100644 public_html/qubeshop/log/logintest.log create mode 100644 public_html/qubeshop/log/mails/20210817084840_ksaffran@dks.lu.eml create mode 100644 public_html/qubeshop/log/mails/20210817085235_ksaffran@dks.lu.eml create mode 100644 public_html/qubeshop/log/mails/20210817085307_ksaffran@dks.lu.eml create mode 100644 public_html/qubeshop/log/mails/20210817085716_ksaffran@dks.lu.eml create mode 100644 public_html/qubeshop/log/test.log diff --git a/api/bin/getapidata.pl b/api/bin/getapidata.pl index 749fed4..ef5d1d3 100644 --- a/api/bin/getapidata.pl +++ b/api/bin/getapidata.pl @@ -22,7 +22,7 @@ my $onlyget = 0; my $sdata = "{}"; GetOptions("steps|s=s" => \$steps,"type|t=s" => \$type,"dryrun|dr"=> \$dryrun,"live|l" => \$live, "onlycopy|c" => \$onlycopy, "onlyget|g" => \$onlyget, "data|d=s" => \$sdata); -my $runcmd = 'ps ax | grep '.basename($0).' | grep -v \'grep\' | head -n1 | awk \'{print $1}\''; +my $runcmd = 'ps ax | grep '.basename($0).' | grep -v \'grep\' | grep -v "bin\/sh" | head -n1 | awk \'{print $1}\''; my $run = `$runcmd`; chomp($run); if (($run ne "") && ($run ne $$)){ @@ -57,7 +57,7 @@ if (! -d $cfg->{sqlpath}){ mkdir($cfg->{sqlpath}); } $cfg->{cdate} = POSIX::strftime('%Y%m%d',localtime); -print "Config:\n".Dumper($cfg); +#print "Config:\n".Dumper($cfg); my $db = mysql->new($cfg); $cfg->{dbh} = $db; my $clients = (); @@ -69,7 +69,6 @@ $api->writelog("Config:".Dumper($cfg)); # get clients # first getall needed data from api if ($onlycopy == 0){ - # get articles if (($steps =~ /articles,/)){ my $tmpart = (); @@ -79,7 +78,7 @@ if ($onlycopy == 0){ } } elsif ($type eq 'upd') { #$articles = $db->querysorted("select max(date_update) as date_update from wiges_s_article;"); - my $res = $db->querysorted("select max(date_update) - INTERVAL 2 HOUR as date_update from wiges_s_article;"); + my $res = $db->querysorted("select max(date_update) - INTERVAL 1 DAY as date_update from wiges_s_article;"); my @c = (); my $updx = $res->{0}->{date_update}; $updx =~ s/\.\d+$//; @@ -101,21 +100,17 @@ if ($onlycopy == 0){ } $articles = $api->getData('s_article',$tmpart,'article'); - } - if (($steps =~ /translation,/) || ($steps =~ /articles,/)){ $api->getData('l_article',$articles,undef); - - } - if (($steps =~ /article_groups,/) || ($steps =~ /articles,/)){ my $tmpref = (); - foreach my $a (keys(%{$articles})){ - $tmpref->{$a}->{article_lie} = $articles->{$a}->{article}; - } + my $tmpref2 = (); + foreach my $a (keys(%{$articles})){ + $tmpref->{$a}->{article_lie} = $articles->{$a}->{article}; + $tmpref2->{$a}->{article_generique} = $articles->{$a}->{article}; + } $api->getData('private_catalogue',$tmpref,undef); - } - if (($steps =~ /files,/) || ($steps =~ /articles,/)){ + $api->getData('private_catalogue',$tmpref2,undef); my $tmpdoc = (); - my $res = $db->querysorted("select max(dateheure_document) - INTERVAL 1 HOUR as dateheure_document from wiges_ole_article;"); + my $res = $db->querysorted("select max(dateheure_document) - INTERVAL 1 DAY as dateheure_document from wiges_ole_article;"); my @c = (); my $updx = $res->{0}->{dateheure_document}; $updx =~ s/\.\d+$//; @@ -123,41 +118,28 @@ if ($onlycopy == 0){ push(@c,$updx); $tmpdoc->{0}->{'dateheure_document'} = \@c; $api->getFiles('ole_article',$tmpdoc); - - } - - # get prix_vente - if (($steps =~ /prix_vente,/) || ($steps =~ /articles,/)){ + $api->getFiles('ole_article',$articles); $api->getData('v_prix_vente',$articles); - } - # get stock - if (($steps =~ /stock,/) || ($steps =~ /articles,/)){ $api->getData('v_stock',$articles); - } - # get familles - if (($steps =~ /famille,/) || ($steps =~ /articles,/)){ my $tmpsel = (); - my @xarts = (); - foreach my $a (keys(%{$articles})){ - push(@xarts,"'".$articles->{$a}->{article}."'"); - } - $tmpsel = $db->querysorted("select famille_art from wiges_s_article where article in (".join(",",@xarts).") group by famille_art;"); - - + my @xarts = (); + foreach my $a (keys(%{$articles})){ + push(@xarts,"'".$articles->{$a}->{article}."'"); + } + $tmpsel = $db->querysorted("select famille_art from wiges_s_article where article in (".join(",",@xarts).") group by famille_art;"); $api->getData('s_famille_article',$tmpsel); - } - - # get groups - if (($steps =~ /groups,/) || ($steps =~ /articles,/)){ - my $tmpsel = (); - my @xarts = (); - foreach my $a (keys(%{$articles})){ - push(@xarts,"'".$articles->{$a}->{article}."'"); - } - $tmpsel = $db->querysorted("select gp_art from wiges_s_article where article in (".join(",",@xarts).") group by gp_art;"); + $tmpsel = $db->querysorted("select gp_art from wiges_s_article where article in (".join(",",@xarts).") group by gp_art;"); $api->getData('s_groupe_article',$tmpsel); } + + if (($steps =~ /famille,/)){ + my $fam = $db->querysorted("select famille_art from wiges_s_article wsa where famille_art is not null group by famille_art;"); + $api->getData('s_famille_article',$fam,undef); + $fam = $db->querysorted("select gp_art from wiges_s_article wsa where gp_art is not null group by gp_art;"); + $api->getData('s_groupe_article',$fam,undef); + } my $ventes = (); + if (($steps =~ /ventes,/)){ my $tmpsel = (); if ($type eq 'upd'){ @@ -183,32 +165,69 @@ if ($onlycopy == 0){ } $ventes = $api->getData('w_ventes',$tmpsel,'no_document'); - } - # get ventes_pos - if (($steps =~ /ventes_pos,/) || ($steps =~ /ventes,/)){ + my $res = $db->query("select max(dateheure_modif) as dateheure_modif from wiges_s_article;"); $articles->{0}->{'dateheure_modif'} = ['>',$res->{dateheure_modif}]; - $api->getData('w_ventes_pos',$articles); + $api->getData('w_ventes_pos',$articles); } if (($steps =~ /clients,/)){ - my $res = $db->querysorted("select CONCAT(max(date(date_update)),' 00:00:00') as date_update from wiges_s_client;"); + my $res = $db->querysorted("select CONCAT(max(date(date_update)),' 00:00:00') - INTERVAL 2 DAY as date_update from wiges_s_client;"); my @c = (); my $updx = $res->{0}->{"date_update"}.""; push(@c,'>'); push(@c,$updx); $clients->{0}->{'date_update'} = \@c; - $api->getData('s_client',$clients,undef); - } - if (($steps =~ /contacts,/)){ - $clients = $db->querysorted("select client from wiges_s_client;"); - $api->getData('s_contact_client',$clients,undef); + $clients = $api->getData('s_client',$clients,'client'); + #$clients = $db->querysorted("select client from wiges_s_client;"); + $api->getData('s_contact_client',$clients,undef); } # get ventes # get contrats cadres + ##Contrat cadre docs + if ($steps =~ /contratcadre,/){ + print "get Contrat Cadre Docs\n"; + my $ccc = (); + my $res = $db->querysorted("select max(dateheure_modif) - INTERVAL 30 DAY as dateheure_modif from wiges_w_ventes;"); + my @c = (); + my $updx = $res->{0}->{"dateheure_modif"}.""; + push(@c,'>'); + push(@c,$updx); + $ccc->{0}->{'dateheure_modif'} = \@c; + $ccc->{0}->{'dateheure_modif'} = ['>',$res->{dateheure_modif}]; + $ccc->{0}->{'document'} = 'CCC'; + my $docs = $api->getData('w_ventes',$ccc,'no_document'); + foreach my $d (keys(%{$docs})){ + $docs->{$d}->{document} = 'CCC'; + } + $api->getData('w_ventes_pos',$docs,undef); + } - + if ($steps =~ /brochures,/){ + my $tmpdoc = (); + $tmpdoc->{0}->{'code_document'} = 'art_brochure'; + $api->getFiles('ole_article',$tmpdoc); + $tmpdoc->{0}->{'code_document'} = 'art_bro_pdf'; + $api->getFiles('ole_article',$tmpdoc); + $steps = "articles,"; + } + if ($steps =~ /fiches,/){ + my $tmpdoc = (); + $tmpdoc->{0}->{'code_document'} = 'art_certific'; + $api->getFiles('ole_article',$tmpdoc); + $tmpdoc->{0}->{'code_document'} = 'art_fiche'; + $api->getFiles('ole_article',$tmpdoc); + $steps = "articles,"; + } + if ($steps =~ /private_catalogue,/){ + my $tmpdoc = (); + $tmpdoc->{0}->{'type_ligne'} = '1'; + $api->getData('private_catalogue',$tmpdoc); + $tmpdoc->{0}->{'type_ligne'} = '2'; + $api->getFiles('private_catalogue',$tmpdoc); + $steps = "articles,"; + } } if ($onlyget == 0){ @@ -227,22 +246,29 @@ if ($onlyget == 0){ 'prod_cat_fr' => $r->{'designation'}, 'modified' => POSIX::strftime('%F %T', localtime) }; + my $nd2 = { + 'famille_art' => ((defined($r->{'famille_art'}))?$r->{'famille_art'}:'0'), + 'titre_fr' => $r->{'designation'}, + 'modified' => POSIX::strftime('%F %T', localtime) + }; $nd->{'prod_cat_link'} = $config->toAscii($nd->{'prod_cat_link'}); #$nd->{'prod_cat_link'} =~ s/^[A-Za-z0-9]/_/g; #print Dumper($nd); my $sql = $db->createReplaceDDL('prod_cat',$nd,undef); + my $sql2= $db->createReplaceDDL('familles',$nd2,undef); if ($cfg->{dryrun} == 1){ print $sql."\n"; } else { $api->writesql('prod_cat',$sql); $db->exec($sql); + $db->exec($sql2); } } $api->writelog("End Copy famille..."); } - if ($steps =~ /groups,/ || ($steps =~ /articles,/)){ + if ($steps =~ /famille,/ || ($steps =~ /articles,/)){ #wiges_s_groupe_article => prod_group $api->writelog("Copy groups..."); my $data = $db->queryarray("select * from wiges_s_groupe_article;"); @@ -270,19 +296,28 @@ if ($onlyget == 0){ 'prod_name_de' => $de.(($qb)?' | '.$qb:''), 'prod_name_fr' => $fr.(($qb)?' | '.$qb:'') }; + my $nd2 = { + 'gp_art' => $r->{'gp_art'}, + # 'main_cat_link' => $r->{'firme'}, + 'famille_art' => ((defined($r->{'famille_art'}))?$r->{'famille_art'}:'0'), + 'qube_name' => $qb, + 'titre_de' => $de.(($qb)?' | '.$qb:''), + 'titre_fr' => $fr.(($qb)?' | '.$qb:'') + }; my $sql = $db->createReplaceDDL('prod_group',$nd,undef); + my $sql2 = $db->createReplaceDDL('groupes',$nd2,undef); if ($cfg->{dryrun} == 1){ - print $sql."\n"; + print $sql2."\n"; } else { - $api->writesql('prod_group',$sql); + $api->writesql('groupes',$sql2); $db->exec($sql); + $db->exec($sql2); } } $api->writelog("End Copy groups..."); } if ($steps =~ /clients,/){ $api->writelog("Copy clients..."); - #wiges_s_groupe_article => prod_group my $data = $db->queryarray("SELECT * FROM wiges_s_client;"); foreach my $r (@{$data}){ @@ -333,21 +368,23 @@ if ($onlyget == 0){ } } $api->writelog("End Copy clients..."); - } + # } - if ($steps =~ /contacts,/){ + # if ($steps =~ /contacts,/){ $api->writelog("Copy contacts..."); - my $data = $db->queryarray("select id as id_wiges,client as id_client, personne as id_personne, nom, adresse_email as useremail from wiges_s_contact_client where adresse_email is not null;"); + $data = $db->queryarray("select id as id_wiges,client as id_client, personne as id_personne, nom, adresse_email as useremail, on_actif from wiges_s_contact_client where adresse_email is not null;"); foreach my $r (@{$data}){ my $nd = { 'id_wiges' => $r->{id_wiges}, 'id_client' => $r->{id_client}, 'id_personne' => $r->{id_personne}, 'nom' => $r->{nom}, - 'useremail' => $r->{useremail} + 'useremail' => $r->{useremail}, + 'on_actif' => $r->{on_actif} }; my $ids = 'id_wiges,id_client,id_personne'; - my $sql = $db->createUpsertDDL('users',$nd,undef,$ids); + my $sql = $db->createUpsertDDL('clients_contacts',$nd,undef,$ids); + #print $sql."\n"; if ($cfg->{dryrun} == 1){ print $sql."\n"; } else { @@ -359,7 +396,7 @@ if ($onlyget == 0){ $api->writelog("End Copy contacts..."); } - if (($steps =~ /article_groups,/) || ($steps =~ /articles,/)){ + if ($steps =~ /articles,/){ $api->writelog("Copy article_groups..."); my $agdata = $db->queryarray("select wsa.id, wsa.article, @@ -471,8 +508,8 @@ if ($onlyget == 0){ } $api->writelog("update article_groups fichetechnique..."); $upselsql = "update wiges_ole_article as woa, article_groups as ag - set ag.fichetechnique = case when woa.nom_fichier is null then null else replace(woa.nom_fichier,'art_fiche','fiche') end, - where woa.article = ag.article and woa.code_document = 'art_fiche'; "; + set ag.fichetechnique = case when woa.nom_fichier is null then null else replace(woa.nom_fichier,'art_fiche','fiche') end + where woa.article = ag.article and woa.code_document = 'art_fiche';"; if ($cfg->{dryrun} == 1){ print $upselsql."\n"; } else { @@ -486,8 +523,8 @@ if ($onlyget == 0){ $api->writelog("update article_groups brochure..."); $upselsql = "update wiges_ole_article as woa, article_groups as ag - set ag.fichetechnique = case when woa.nom_fichier is null then null else replace(woa.nom_fichier,'art_brochure','brochure') end, - where woa.article = ag.article and woa.code_document = 'art_brochure'; "; + set ag.brochure = case when woa.nom_fichier is null then null else replace(replace(woa.nom_fichier,'art_brochure','brochure'),'art_bro_pdf','brochure') end + where woa.article = ag.article and woa.code_document in ('art_brochure','art_bro_pdf') ; "; if ($cfg->{dryrun} == 1){ print $upselsql."\n"; } else { @@ -497,6 +534,12 @@ if ($onlyget == 0){ if ($cpr != 0){ $api->writelog("cmd failed:".$cmd."!"); } + $agfiche = $db->exec($upselsql); + $cmd = 'rsync -av '.$cfg->{datapath}.'/art_bro_pdf/ '.$cfg->{mediapath}.'brochure/'; + $cpr = system($cmd); + if ($cpr != 0){ + $api->writelog("cmd failed:".$cmd."!"); + } } $api->writelog("End Copy article_groups..."); @@ -555,29 +598,31 @@ if ($onlyget == 0){ $api->writelog("update articles fiches..."); #my $sqlcleanft = "UPDATE articles set doc_ft=null;"; #$db->exec($sqlcleanft); - my $agfiche = $db->queryarray("select ag.article,woa.nom_fichier from wiges_ole_article woa join articles ag on (woa.article=ag.article) where woa.code_document ='art_fiche' and woa.nom_fichier is not null;"); - if (scalar(@{$agfiche}) > 0){ + my $agfiche = $db->exec("update wiges_ole_article as woa, articles as ag + set ag.doc_ft = case when woa.nom_fichier is null then null else replace(woa.nom_fichier,'art_fiche','fiche') end + where woa.article = ag.article and woa.code_document = 'art_fiche';"); + #if (scalar(@{$agfiche}) > 0){ my $cmd = 'rsync -av '.$cfg->{datapath}.'/art_fiche/ '.$cfg->{mediapath}.'fiche/'; my $cpr = system($cmd); if ($cpr != 0){ $api->writelog("cmd failed:".$cmd."!"); } - } - foreach my $r (@{$agfiche}){ - if (-e $cfg->{datapath}.'/'.$r->{nom_fichier}){ - my $newfname = basename($r->{nom_fichier}); - my $sql = "UPDATE articles set doc_ft='fiche/".$newfname."' where article='".$r->{article}."';"; - #system($cmd); - if ($cfg->{dryrun} == 1){ - print $sql."\n"; - } else { - $api->writesql('articles',$sql); - $db->exec($sql); - } - } else { - #print "File ".dirname($RealBin).'/data/'.$r->{nom_fichier}." does not exist!\n"; - } - } + #} + # foreach my $r (@{$agfiche}){ + # if (-e $cfg->{datapath}.'/'.$r->{nom_fichier}){ + # my $newfname = basename($r->{nom_fichier}); + # my $sql = "UPDATE articles set doc_ft='fiche/".$newfname."' where article='".$r->{article}."';"; + # #system($cmd); + # if ($cfg->{dryrun} == 1){ + # print $sql."\n"; + # } else { + # $api->writesql('articles',$sql); + # $db->exec($sql); + # } + # } else { + # #print "File ".dirname($RealBin).'/data/'.$r->{nom_fichier}." does not exist!\n"; + # } + # } #article_prices # my $arprice = $db->queryarray("select date_debut,0 as cc_client,article,pu_vente as prix_net from wiges_v_prix_vente wsa where prix_vente=1;"); # foreach my $r (@{$arprice}){ @@ -614,9 +659,32 @@ if ($onlyget == 0){ } } + } + if ($steps =~ /contratcadre,/){ + my $arcadre = $db->queryarray("select wwv.client, wwvp.no_document, wwvp.no_position,wwvp.article , wwvp.pu_net + from wiges_w_ventes wwv left join wiges_w_ventes_pos wwvp on (wwv.no_document=wwvp.no_document and wwv.document='CCC') where wwvp.article is not null"); + foreach my $r (@{$arcadre}){ + my $nd = { + 'client' => $r->{'client'}, + 'no_document' => $r->{'no_document'}, + 'no_position' => $r->{'no_position'}, + 'article' => $r->{'article'}, + 'pu_net' => $r->{'pu_net'} + }; + my $sql = $db->createUpsertDDL('clients_contratcadre',$nd,undef,'client,no_document,no_position'); + if ($cfg->{dryrun} == 1){ + print $sql."\n"; + } else { + $api->writesql('clients_contratcadre',$sql); + $db->exec($sql); + } + } + } + if (($steps =~ /prices,/) || ($steps =~ /articles,/) || ($steps =~ /contratcadre,/)){ + # #contrat cadre client $api->writelog("copy contrat cadre prices..."); - $arprice = $db->queryarray("select null as date_debut,wwv.client as cc_client,wwvp.article,wwvp.pu_net as prix_net from wiges_w_ventes_pos wwvp join wiges_w_ventes wwv on (wwvp.no_document=wwv.no_document and wwv.document='CCC');"); + my $arprice = $db->queryarray("select null as date_debut,wwv.client as cc_client,wwvp.article,wwvp.pu_net as prix_net from wiges_w_ventes_pos wwvp join wiges_w_ventes wwv on (wwvp.no_document=wwv.no_document and wwv.document='CCC');"); foreach my $r (@{$arprice}){ my $nd = { 'date_debut' => $r->{'date_debut'}, diff --git a/api/bin/lib/api.pm b/api/bin/lib/api.pm index 081c69f..5fa80a5 100644 --- a/api/bin/lib/api.pm +++ b/api/bin/lib/api.pm @@ -81,7 +81,7 @@ sub writesql(){ } } -sub getData($$){ +sub getData(){ my $self = shift; my $wtable = shift; my $def = shift; @@ -104,9 +104,9 @@ sub getData($$){ } my $sql = $self->{dbh}->createReplaceDDL('wiges_'.$wtable,$r,undef); if ($self->{dryrun} == 0){ - # open(FF,">>".$self->{sqlpath}."/".$self->{cdate}."_wiges_".$wtable.".sql"); - # print FF $sql."\n"; - # close(FF); + open(FF,">>".$self->{sqlpath}."/".$self->{cdate}."_wiges_".$wtable.".sql"); + print FF $sql."\n"; + close(FF); $self->{dbh}->exec($sql); }else { print $sql."\n"; diff --git a/api/bin/lib/mysql.pm b/api/bin/lib/mysql.pm index f7f6801..7b39c4d 100644 --- a/api/bin/lib/mysql.pm +++ b/api/bin/lib/mysql.pm @@ -47,7 +47,7 @@ sub logerror(){ my $self = shift; my $fn = shift; my $stat = shift; - print STDERR "Error:$fn:$stat\n"; + print "Error:$fn:$stat\n"; return (); } diff --git a/api/bin/tmpsync.sh b/api/bin/tmpsync.sh index 87da762..5108036 100644 --- a/api/bin/tmpsync.sh +++ b/api/bin/tmpsync.sh @@ -3,131 +3,35 @@ CALLDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CMD='/usr/local/bin/perl /usr/home/qubewv/api/bin/getapidata.pl -l -t data -s articles -d' TMPLOG=${CALLDIR}"/tmp.log" -#${CMD} '{"gp_art":"A102","famille_art":"A1"}' -${CMD} '{"gp_art":"A104","famille_art":"A1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"A301","famille_art":"A3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"A303","famille_art":"A3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B111","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B112","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B113","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B114","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B116","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B117","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B118","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B122","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B124","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B132","famille_art":"B1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B603","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B604","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B609","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B610","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B611","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B612","famille_art":"B6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B701","famille_art":"B7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B708","famille_art":"B7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B801","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B802","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B803","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B804","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B806","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B807","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B808","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B809","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"B810","famille_art":"B8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C100","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C101","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C102","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C105","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C106","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C107","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C108","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C109","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C113","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C115","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C116","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C131","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C137","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C147","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C148","famille_art":"C1"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C200","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C201","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C204","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C205","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C206","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C213","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C218","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C219","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C220","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C221","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C222","famille_art":"C2"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C300","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C301","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C302","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C303","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C304","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C306","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C307","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C309","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C310","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C311","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C312","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C314","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C316","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C318","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C319","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C322","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C323","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C325","famille_art":"C3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C401","famille_art":"C4"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C407","famille_art":"C4"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C408","famille_art":"C4"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C409","famille_art":"C4"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C500","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C505","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C516","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C517","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C519","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C520","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C521","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C522","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C523","famille_art":"C5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C600","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C601","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C602","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C603","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C604","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C606","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C607","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C608","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C609","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C610","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C613","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C615","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C616","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C617","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C622","famille_art":"C6"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C700","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C701","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C702","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C706","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C707","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C708","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C711","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C712","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C713","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C716","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C717","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C718","famille_art":"C7"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C804","famille_art":"C8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C805","famille_art":"C8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"C806","famille_art":"C8"}' >> ${TMPLOG} -${CMD} '{"gp_art":"S500","famille_art":"S5"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U300","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U301","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U303","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U304","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U305","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U307","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U308","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U309","famille_art":"U3"}' >> ${TMPLOG} -${CMD} '{"gp_art":"U315","famille_art":"U3"}' >> ${TMPLOG} \ No newline at end of file + +#${CMD} '{"gp_art":"A104","famille_art":"A1"}' + +${CMD} '{"article":"&BLZ-AK"}' +${CMD} '{"article":"&BLZ-DIS"}' +${CMD} '{"article":"&BLZ-EB"}' +${CMD} '{"article":"&BLZ-KSB"}' +${CMD} '{"article":"&BLZ-KV/AR01"}' +${CMD} '{"article":"&BLZ-KV/AR02"}' +${CMD} '{"article":"&BLZ-KV/AR03"}' +${CMD} '{"article":"&BLZ-KV/AR04"}' +${CMD} '{"article":"&BLZ-KV/CC"}' +${CMD} '{"article":"&BLZ-KV/FF"}' +${CMD} '{"article":"&BLZ-KV/FR"}' +${CMD} '{"article":"&BLZ-KV/MZ"}' +${CMD} '{"article":"&BLZ-KV/RR3"}' +${CMD} '{"article":"&BLZ-KV/UNI2S"}' +${CMD} '{"article":"&BLZ-KV/UNI3S"}' +${CMD} '{"article":"&BLZ-KV30/UNI1S"}' +${CMD} '{"article":"&BLZ-MV/AR01"}' +${CMD} '{"article":"&BLZ-PV"}' +${CMD} '{"article":"&BLZ-RD"}' +${CMD} '{"article":"&BLZ-SSP"}' +${CMD} '{"article":"&BLZ-TE"}' +${CMD} '{"article":"&BLZ-WD/WS"}' +${CMD} '{"article":"&BLZ-WD/WS3"}' +${CMD} '{"article":"&BLZ-WE/FIX"}' +${CMD} '{"article":"&BLZ-WE/FIX080"}' +${CMD} '{"article":"&BLZ-WE/KVRR"}' +${CMD} '{"article":"&BLZ-WE/M"}' +${CMD} '{"article":"&BLZ-WE/PR"}' +${CMD} '{"article":"&BLZ-WE/WS"}' diff --git a/dev/dev/genpwd.php b/dev/genpwd.php similarity index 65% rename from dev/dev/genpwd.php rename to dev/genpwd.php index 9d9ad10..23a702d 100644 --- a/dev/dev/genpwd.php +++ b/dev/genpwd.php @@ -1,8 +1,24 @@ home/home/matieres-premieres/fr/" /> " /> +"> "> "> -css/responsive.css?v="> + css/flaticon.css?v="> "> css/flexslider.css?v="> css/jquery.nailthumb.1.0.css?v=" type="text/css" rel="stylesheet" /> -"> + + css/style3.css?v="> css/site.css?v="> "> @@ -134,23 +135,23 @@ if (isset($datainfo[$page])){ - + - + - + - - + + -
 loading...
+
@@ -197,75 +198,38 @@ if (isset($datainfo[$page])){
- -