Esempio n. 1
0
 function make_serialized_task_params()
 {
     global $index_global, $index_notices, $clean_authors, $clean_editeurs;
     global $clean_collections, $clean_subcollections, $clean_categories;
     global $clean_series, $clean_titres_uniformes, $clean_indexint;
     global $clean_relations, $clean_notices, $index_acquisitions;
     global $gen_signature_notice, $gen_phonetique, $nettoyage_clean_tags, $clean_categories_path;
     global $gen_date_publication_article, $gen_date_tri, $reindex_docnum;
     global $clean_opac_search_cache, $clean_cache_amende;
     global $index_synchrordfstore;
     $t = parent::make_serialized_task_params();
     $t_clean = array();
     if ($index_global) {
         $t_clean["index_global"] = $index_global;
     }
     if ($index_notices) {
         $t_clean["index_notices"] = $index_notices;
     }
     if ($clean_authors) {
         $t_clean["clean_authors"] = $clean_authors;
     }
     if ($clean_editeurs) {
         $t_clean["clean_editeurs"] = $clean_editeurs;
     }
     if ($clean_collections) {
         $t_clean["clean_collections"] = $clean_collections;
     }
     if ($clean_subcollections) {
         $t_clean["clean_subcollections"] = $clean_subcollections;
     }
     if ($clean_categories) {
         $t_clean["clean_categories"] = $clean_categories;
     }
     if ($clean_series) {
         $t_clean["clean_series"] = $clean_series;
     }
     if ($clean_titres_uniformes) {
         $t_clean["clean_titres_uniformes"] = $clean_titres_uniformes;
     }
     if ($clean_indexint) {
         $t_clean["clean_indexint"] = $clean_indexint;
     }
     if ($clean_notices) {
         $t_clean["clean_notices"] = $clean_notices;
     }
     if ($index_acquisitions) {
         $t_clean["index_acquisitions"] = $index_acquisitions;
     }
     if ($gen_signature_notice) {
         $t_clean["gen_signature_notice"] = $gen_signature_notice;
     }
     if ($gen_phonetique) {
         $t_clean["gen_phonetique"] = $gen_phonetique;
     }
     if ($nettoyage_clean_tags) {
         $t_clean["nettoyage_clean_tags"] = $nettoyage_clean_tags;
     }
     if ($clean_categories_path) {
         $t_clean["clean_categories_path"] = $clean_categories_path;
     }
     if ($gen_date_publication_article) {
         $t_clean["gen_date_publication_article"] = $gen_date_publication_article;
     }
     if ($gen_date_tri) {
         $t_clean["gen_date_tri"] = $gen_date_tri;
     }
     if ($reindex_docnum) {
         $t_clean["reindex_docnum"] = $reindex_docnum;
     }
     if ($clean_opac_search_cache) {
         $t_clean["clean_opac_search_cache"] = $clean_opac_search_cache;
     }
     if ($clean_cache_amende) {
         $t_clean["clean_cache_amende"] = $clean_cache_amende;
     }
     if ($clean_relations) {
         $t_clean["clean_relations"] = $clean_relations;
     }
     if ($index_synchrordfstore) {
         $t_clean["index_synchrordfstore"] = $index_synchrordfstore;
     }
     $t["clean"] = $t_clean;
     return serialize($t);
 }
Esempio n. 2
0
 function make_serialized_task_params()
 {
     global $list_bann, $radio_bannette, $action;
     $t = parent::make_serialized_task_params();
     if ($radio_bannette) {
         $t["radio_bannette"] = $radio_bannette;
         //liste de bannettes sélectionnées dans le cas où on choisi..
         if ($radio_bannette == "4") {
             if ($list_bann) {
                 foreach ($list_bann as $id_bann) {
                     $t["list_bann"][$id_bann] = stripslashes($id_bann);
                 }
             }
         }
     }
     if ($action) {
         foreach ($action as $act) {
             $t["action"][$act] = $act;
         }
     }
     return serialize($t);
 }
Esempio n. 3
0
 function make_serialized_task_params()
 {
     global $form_jeu_sauv;
     $t = parent::make_serialized_task_params();
     if ($form_jeu_sauv) {
         foreach ($form_jeu_sauv as $jeu_sauvegarde) {
             $t["form_jeu_sauv"][$jeu_sauvegarde] = stripslashes($jeu_sauvegarde);
         }
     }
     return serialize($t);
 }
Esempio n. 4
0
 function make_serialized_task_params()
 {
     global $chk_loan, $empr_location_id;
     global $f6, $f8, $f5, $f11, $f2, $f3;
     global $sort_list_0, $sort_list_1;
     $t = parent::make_serialized_task_params();
     if ($chk_loan) {
         $t["chk_loan"] = $chk_loan;
     }
     if (!empty($f6)) {
         for ($i = 0; $i < count($f6); $i++) {
             $t["f6"] = $f6;
         }
     }
     if (!empty($f8)) {
         for ($i = 0; $i < count($f8); $i++) {
             $t["f8"] = $f8;
         }
     }
     if (!empty($f11)) {
         for ($i = 0; $i < count($f11); $i++) {
             $t["f11"] = $f11;
         }
     }
     if (!empty($f5)) {
         for ($i = 0; $i < count($f5); $i++) {
             $t["f5"] = $f5;
         }
     }
     if (!empty($f2)) {
         for ($i = 0; $i < count($f2); $i++) {
             $t["f2"] = $f2;
         }
     }
     if (!empty($f3)) {
         for ($i = 0; $i < count($f3); $i++) {
             $t["f3"] = $f3;
         }
     }
     $t["sort_list_0"] = $sort_list_0;
     $t["sort_list_1"] = $sort_list_1;
     $t["empr_location_id"] = $empr_location_id;
     return serialize($t);
 }
Esempio n. 5
0
 function make_serialized_task_params()
 {
     global $dbh, $type_proc, $form_procs, $form_procs_remote;
     global $pmb_procedure_server_credentials, $pmb_procedure_server_address;
     $t = parent::make_serialized_task_params();
     $t["type_proc"] = stripslashes($type_proc);
     $t["form_procs"] = stripslashes($form_procs);
     $t["form_procs_remote"] = stripslashes($form_procs_remote);
     if ($form_procs) {
         $hp = new parameters($form_procs, "procs");
         $t["envt"] = $hp->make_serialized_parameters_params();
     } else {
         if ($form_procs_remote) {
             $id = $form_procs_remote;
             $pmb_procedure_server_credentials_exploded = explode("\n", $pmb_procedure_server_credentials);
             if ($pmb_procedure_server_address && count($pmb_procedure_server_credentials_exploded) == 2) {
                 $aremote_procedure_client = new remote_procedure_client($pmb_procedure_server_address, trim($pmb_procedure_server_credentials_exploded[0]), trim($pmb_procedure_server_credentials_exploded[1]));
                 $procedure = $aremote_procedure_client->get_proc($id, "AP");
                 if (!$procedure["error_message"]) {
                     $the_procedure = $procedure["procedure"];
                     if ($the_procedure) {
                         $sql = "CREATE TEMPORARY TABLE remote_proc LIKE procs";
                         mysql_query($sql, $dbh) or die(mysql_error());
                         $sql = "INSERT INTO remote_proc (idproc, name, requete, comment, autorisations, parameters, num_classement) VALUES (0, '" . mysql_escape_string($the_procedure->name) . "', '" . mysql_escape_string($the_procedure->sql) . "', '" . mysql_escape_string($the_procedure->comment) . "', '', '" . mysql_escape_string($the_procedure->params) . "', 0)";
                         mysql_query($sql, $dbh) or die(mysql_error());
                         $idproc = mysql_insert_id($dbh);
                         $hp = new parameters($idproc, "remote_proc");
                         $t["envt"] = $hp->make_serialized_parameters_params();
                     }
                 }
             }
         }
     }
     return serialize($t);
 }
Esempio n. 6
0
 function make_serialized_task_params()
 {
     global $chk_resa, $montrerquoi, $empr_location_id;
     $t = parent::make_serialized_task_params();
     if (!empty($chk_resa)) {
         for ($i = 0; $i < count($chk_resa); $i++) {
             $t["chk_resa"] = $chk_resa;
         }
     }
     $t["empr_location_id"] = $empr_location_id;
     return serialize($t);
 }
Esempio n. 7
0
 function make_serialized_task_params()
 {
     global $dbh, $type_proc, $form_procs, $form_procs_remote;
     global $tocsv_checked, $tocsv_sep, $tocsv_filepath, $tocsv_enclosure;
     global $pmb_procedure_server_credentials, $pmb_procedure_server_address;
     $t = parent::make_serialized_task_params();
     $t['type_proc'] = stripslashes($type_proc);
     $t['form_procs'] = stripslashes($form_procs);
     $t['form_procs_remote'] = stripslashes($form_procs_remote);
     $t['tocsv']['checked'] = $tocsv_checked;
     $t['tocsv']['sep'] = stripslashes($tocsv_sep);
     $t['tocsv']['filepath'] = stripslashes($tocsv_filepath);
     $t['tocsv']['enclosure'] = stripslashes($tocsv_enclosure);
     if ($form_procs) {
         $hp = new parameters($form_procs, 'procs');
         $t['envt'] = $hp->make_serialized_parameters_params();
     } else {
         if ($form_procs_remote) {
             $id = $form_procs_remote;
             $pmb_procedure_server_credentials_exploded = explode("\n", $pmb_procedure_server_credentials);
             if ($pmb_procedure_server_address && count($pmb_procedure_server_credentials_exploded) == 2) {
                 $aremote_procedure_client = new remote_procedure_client($pmb_procedure_server_address, trim($pmb_procedure_server_credentials_exploded[0]), trim($pmb_procedure_server_credentials_exploded[1]));
                 $procedure = $aremote_procedure_client->get_proc($id, "AP");
                 if (!$procedure['error_message']) {
                     $the_procedure = $procedure['procedure'];
                     if ($the_procedure) {
                         $sql = "CREATE TEMPORARY TABLE remote_proc LIKE procs";
                         pmb_mysql_query($sql, $dbh) or die(pmb_mysql_error());
                         $sql = "INSERT INTO remote_proc (idproc, name, requete, comment, autorisations, parameters, num_classement) VALUES (0, '" . pmb_mysql_escape_string($the_procedure->name) . "', '" . pmb_mysql_escape_string($the_procedure->sql) . "', '" . pmb_mysql_escape_string($the_procedure->comment) . "', '', '" . pmb_mysql_escape_string($the_procedure->params) . "', 0)";
                         pmb_mysql_query($sql, $dbh) or die(pmb_mysql_error());
                         $idproc = pmb_mysql_insert_id($dbh);
                         $hp = new parameters($idproc, "remote_proc");
                         $t['envt'] = $hp->make_serialized_parameters_params();
                     }
                 }
             }
         }
     }
     return serialize($t);
 }
 function make_serialized_task_params()
 {
     global $upload_folder, $upload_repertoire;
     $t = parent::make_serialized_task_params();
     if ($upload_folder) {
         $t["upload_folder"] = stripslashes($upload_folder);
     }
     if ($upload_repertoire) {
         $t["upload_repertoire"] = stripslashes($upload_repertoire);
     }
     return serialize($t);
 }
Esempio n. 9
0
 function make_serialized_task_params()
 {
     global $list_view, $conso, $date_deb, $date_fin, $date_ech;
     $t = parent::make_serialized_task_params();
     if ($list_view) {
         foreach ($list_view as $id_vue) {
             $t["list_view"][$id_vue] = $id_vue;
         }
     }
     $t["conso"] = $conso;
     $t["date_deb"] = $date_deb;
     $t["date_fin"] = $date_fin;
     $t["date_ech"] = $date_ech;
     return serialize($t);
 }
Esempio n. 10
0
 function make_serialized_task_params()
 {
     global $chk_reader, $empr_location_id, $empr_statut_edit;
     $t = parent::make_serialized_task_params();
     if (!empty($chk_reader)) {
         for ($i = 0; $i < count($chk_reader); $i++) {
             $t["chk_reader"] = $chk_reader;
         }
     }
     $t["empr_location_id"] = $empr_location_id;
     $t["empr_statut_edit"] = $empr_statut_edit;
     return serialize($t);
 }
Esempio n. 11
0
 function make_serialized_task_params()
 {
     global $base_path, $source_entrepot, $connecteurId;
     global $auto_import, $auto_delete;
     $t = parent::make_serialized_task_params();
     if ($source_entrepot) {
         $t["source_entrepot"] = $source_entrepot;
         $t["connecteurId"] = $connecteurId;
         if ($connecteurId) {
             $contrs = new connecteurs();
             require_once $base_path . "/admin/connecteurs/in/" . $contrs->catalog[$connecteurId]["PATH"] . "/" . $contrs->catalog[$connecteurId]["NAME"] . ".class.php";
             eval("\$conn=new " . $contrs->catalog[$connecteurId]["NAME"] . "(\"" . $base_path . "/admin/connecteurs/in/" . $contrs->catalog[$connecteurId]["PATH"] . "\");");
             //Propre au connecteur
             $t["envt"] = $conn->get_maj_environnement($source_entrepot);
         }
     }
     if ($auto_import) {
         $t['auto_import'] = $auto_import ? true : false;
     }
     if ($auto_delete) {
         $t['auto_delete'] = $auto_delete ? true : false;
     }
     return serialize($t);
 }
Esempio n. 12
0
 function make_serialized_task_params()
 {
     global $empr_caddie, $mailtpl_id;
     $t = parent::make_serialized_task_params();
     $t["empr_caddie"] = $empr_caddie;
     $t["mailtpl_id"] = $mailtpl_id;
     return serialize($t);
 }
Esempio n. 13
0
 function make_serialized_task_params()
 {
     global $mySQL;
     $t = parent::make_serialized_task_params();
     if ($mySQL) {
         foreach ($mySQL as $elem) {
             $t["mySQL"][$elem] = stripslashes($elem);
         }
     }
     return serialize($t);
 }