uawdijnntqw1x1x1
IP : 216.73.216.44
Hostname : webm005.cluster127.gra.hosting.ovh.net
Kernel : Linux webm005.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
histoio
/
www
/
f41a3
/
.
/
..
/
plugins-dist
/
.
/
..
/
35802
/
.
/
base.tar
/
/
breves.php000060400000010341152525340240006540 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ /** * Déclarations relatives à la base de données * * @package SPIP\Breves\Pipelines **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Déclare les alias de boucle et traitements automatiques de certaines balises * * @pipeline declarer_tables_interfaces * @param array $interfaces * Déclarations d'interface pour le compilateur * @return array * Déclarations d'interface pour le compilateur */ function breves_declarer_tables_interfaces($interfaces) { $interfaces['table_des_tables']['breves'] = 'breves'; $interfaces['exceptions_des_tables']['breves']['id_secteur'] = 'id_rubrique'; $interfaces['exceptions_des_tables']['breves']['date'] = 'date_heure'; $interfaces['exceptions_des_tables']['breves']['nom_site'] = 'lien_titre'; $interfaces['exceptions_des_tables']['breves']['url_site'] = 'lien_url'; $interfaces['table_des_traitements']['LIEN_TITRE'][] = _TRAITEMENT_TYPO; $interfaces['table_des_traitements']['LIEN_URL'][] = 'vider_url(%s)'; return $interfaces; } /** * Déclarer l'objet éditorial de brèves * * @pipeline declarer_tables_objets_sql * @param array $tables * Description des tables * @return array * Description complétée des tables */ function breves_declarer_tables_objets_sql($tables) { $tables['spip_breves'] = array( 'texte_retour' => 'icone_retour', 'texte_objets' => 'breves:breves', 'texte_objet' => 'breves:breve', 'texte_modifier' => 'breves:icone_modifier_breve', 'texte_creer' => 'breves:icone_nouvelle_breve', 'info_aucun_objet' => 'breves:info_aucun_breve', 'info_1_objet' => 'breves:info_1_breve', 'info_nb_objets' => 'breves:info_nb_breves', 'texte_logo_objet' => 'breves:logo_breve', 'texte_langue_objet' => 'breves:titre_langue_breve', 'titre' => 'titre, lang', 'date' => 'date_heure', 'principale' => 'oui', 'introduction_longueur' => '300', 'field' => array( 'id_breve' => 'bigint(21) NOT NULL', 'date_heure' => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", 'titre' => "text DEFAULT '' NOT NULL", 'texte' => "longtext DEFAULT '' NOT NULL", 'lien_titre' => "text DEFAULT '' NOT NULL", 'lien_url' => "text DEFAULT '' NOT NULL", 'statut' => "varchar(6) DEFAULT '0' NOT NULL", 'id_rubrique' => "bigint(21) DEFAULT '0' NOT NULL", 'lang' => "VARCHAR(10) DEFAULT '' NOT NULL", 'langue_choisie' => "VARCHAR(3) DEFAULT 'non'", 'maj' => 'TIMESTAMP' ), 'key' => array( 'PRIMARY KEY' => 'id_breve', 'KEY id_rubrique' => 'id_rubrique', ), 'join' => array( 'id_breve' => 'id_breve', 'id_rubrique' => 'id_rubrique' ), 'statut' => array( array( 'champ' => 'statut', 'publie' => 'publie', 'previsu' => 'publie,prop', 'exception' => 'statut' ) ), 'texte_changer_statut' => 'breves:entree_breve_publiee', 'aide_changer_statut' => 'brevesstatut', 'statut_titres' => array( 'prop' => 'breves:titre_breve_proposee', 'publie' => 'breves:titre_breve_publiee', 'refuse' => 'breves:titre_breve_refusee', ), 'statut_textes_instituer' => array( 'prop' => 'breves:item_breve_proposee', //_T('texte_statut_propose_evaluation') 'publie' => 'breves:item_breve_validee', //_T('texte_statut_publie') 'refuse' => 'breves:item_breve_refusee', //_T('texte_statut_refuse') ), 'rechercher_champs' => array( 'titre' => 8, 'texte' => 2, 'lien_titre' => 1, 'lien_url' => 1 ), 'rechercher_jointures' => array( 'document' => array('titre' => 2, 'descriptif' => 1) ), 'champs_versionnes' => array('id_rubrique', 'titre', 'lien_titre', 'lien_url', 'texte'), ); return $tables; } sites.php000060400000015715152525555550006427 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Interfaces des tables syndic et syndic article * * @param array $interfaces * @return array */ function sites_declarer_tables_interfaces($interfaces) { $interfaces['table_des_tables']['sites'] = 'syndic'; // compat pour les boucles (SITES) $interfaces['table_des_tables']['syndication'] = 'syndic'; $interfaces['table_des_tables']['syndic'] = 'syndic'; $interfaces['table_des_tables']['syndic_articles'] = 'syndic_articles'; # ne sert plus ? verifier balise_URL_ARTICLE $interfaces['exceptions_des_tables']['syndic_articles']['url_article'] = 'url'; # ne sert plus ? verifier balise_LESAUTEURS $interfaces['exceptions_des_tables']['syndic_articles']['lesauteurs'] = 'lesauteurs'; $interfaces['exceptions_des_tables']['syndic_articles']['url_site'] = array('syndic', 'url_site'); $interfaces['exceptions_des_tables']['syndic_articles']['nom_site'] = array('syndic', 'nom_site'); $interfaces['table_date']['syndication'] = 'date'; $interfaces['tables_jointures']['spip_syndic_articles'][] = 'syndic'; $interfaces['table_des_traitements']['NOM_SITE'][] = _TRAITEMENT_TYPO; // Articles syndiques : passage des donnees telles quelles, sans traitement typo // la securite et conformite XHTML de ces champs est assuree par safehtml() foreach (array('DESCRIPTIF', 'SOURCE', 'URL', 'URL_SOURCE', 'LESAUTEURS', 'TAGS') as $balise) { if (!isset($interfaces['table_des_traitements'][$balise]['syndic_articles'])) { $interfaces['table_des_traitements'][$balise]['syndic_articles'] = 'safehtml(%s)'; } else { if (strpos($interfaces['table_des_traitements'][$balise]['syndic_articles'], 'safehtml') == false) { $interfaces['table_des_traitements'][$balise]['syndic_articles'] = 'safehtml(' . $interfaces['table_des_traitements'][$balise]['syndic_articles'] . ')'; } } } return $interfaces; } function sites_declarer_tables_objets_sql($tables) { $tables['spip_syndic'] = array( 'table_objet_surnoms' => array('site'), 'type' => 'site', 'type_surnoms' => array('syndic'), 'texte_retour' => 'icone_retour', 'texte_objets' => 'icone_sites_references', 'texte_objet' => 'sites:icone_site_reference', 'texte_modifier' => 'sites:icone_modifier_site', 'texte_creer' => 'sites:icone_referencer_nouveau_site', 'info_aucun_objet' => 'sites:info_aucun_site', 'info_1_objet' => 'sites:info_1_site', 'info_nb_objets' => 'sites:info_nb_sites', 'titre' => "nom_site AS titre, '' AS lang", 'date' => 'date', 'principale' => 'oui', 'field' => array( "id_syndic" => "bigint(21) NOT NULL", "id_rubrique" => "bigint(21) DEFAULT '0' NOT NULL", "id_secteur" => "bigint(21) DEFAULT '0' NOT NULL", "nom_site" => "text DEFAULT '' NOT NULL", "url_site" => "text DEFAULT '' NOT NULL", "url_syndic" => "text DEFAULT '' NOT NULL", "descriptif" => "text DEFAULT '' NOT NULL", "maj" => "TIMESTAMP", "syndication" => "VARCHAR(3) DEFAULT '' NOT NULL", "statut" => "varchar(10) DEFAULT '0' NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_syndic" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_index" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "moderation" => "VARCHAR(3) DEFAULT 'non'", "miroir" => "VARCHAR(3) DEFAULT 'non'", "oubli" => "VARCHAR(3) DEFAULT 'non'", "resume" => "VARCHAR(3) DEFAULT 'oui'" ), 'key' => array( "PRIMARY KEY" => "id_syndic", "KEY id_rubrique" => "id_rubrique", "KEY id_secteur" => "id_secteur", "KEY statut" => "statut, date_syndic", ), 'join' => array( "id_syndic" => "id_syndic", "id_rubrique" => "id_rubrique" ), 'statut' => array( array('champ' => 'statut', 'publie' => 'publie', 'previsu' => 'publie,prop', 'exception' => 'statut') ), 'texte_changer_statut' => 'sites:info_statut_site_1', 'statut_textes_instituer' => array( 'prop' => 'texte_statut_propose_evaluation', 'publie' => 'texte_statut_publie', 'refuse' => 'texte_statut_poubelle', ), 'rechercher_champs' => array( 'nom_site' => 5, 'url_site' => 1, 'descriptif' => 3 ), 'champs_versionnes' => array('id_rubrique', 'id_secteur', 'nom_site', 'url_site', 'url_syndic', 'descriptif'), ); $tables['spip_syndic_articles'] = array( 'table_objet_surnoms' => array('syndic_article'), 'texte_retour' => 'icone_retour', 'texte_objets' => 'sites:icone_articles_syndic', 'texte_objet' => 'sites:icone_article_syndic', 'texte_modifier' => 'icone_modifier_article', # inutile en vrai 'info_aucun_objet' => 'sites:info_aucun_article_syndique', 'info_1_objet' => 'sites:info_1_article_syndique', 'info_nb_objets' => 'sites:info_nb_articles_syndiques', 'icone_objet' => 'site', // pas de page propre ni dans ecrire ni dans le site public 'url_voir' => '', 'url_edit' => '', 'page' => '', 'date' => 'date', 'editable' => 'non', 'principale' => 'oui', 'field' => array( "id_syndic_article" => "bigint(21) NOT NULL", "id_syndic" => "bigint(21) DEFAULT '0' NOT NULL", "titre" => "text DEFAULT '' NOT NULL", "url" => "text DEFAULT '' NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "lesauteurs" => "text DEFAULT '' NOT NULL", "maj" => "TIMESTAMP", "statut" => "varchar(10) DEFAULT '0' NOT NULL", "descriptif" => "text DEFAULT '' NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "url_source" => "TINYTEXT DEFAULT '' NOT NULL", "source" => "TINYTEXT DEFAULT '' NOT NULL", "tags" => "TEXT DEFAULT '' NOT NULL" ), 'key' => array( "PRIMARY KEY" => "id_syndic_article", "KEY id_syndic" => "id_syndic", "KEY statut" => "statut", "KEY url" => "url(255)" ), 'join' => array( "id_syndic_article" => "id_syndic_article", "id_syndic" => "id_syndic" ), 'statut' => array( array('champ' => 'statut', 'publie' => 'publie', 'previsu' => 'publie,prop', 'exception' => 'statut'), array( 'champ' => array(array('spip_syndic', 'id_syndic'), 'statut'), 'publie' => 'publie', 'previsu' => 'publie,prop', 'exception' => 'statut' ), ), 'statut_images' => array( 'puce-rouge-anim.gif', 'publie' => 'puce-publier-8.png', 'refuse' => 'puce-supprimer-8.png', 'dispo' => 'puce-proposer-8.png', 'off' => 'puce-refuser-8.png', ), 'rechercher_champs' => array( 'titre' => 5, 'descriptif' => 1 ) ); return $tables; } stats.php000060400000005750152526037730006430 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ /** * Déclarations relatives à la base de données * * @plugin Statistiques pour SPIP * @license GNU/GPL * @package SPIP\Stats\Pipelines **/ if (!defined("_ECRIRE_INC_VERSION")) { return; } /** * Déclarer les tables de statistiques * * Déclare les tables : * - spip_visites * - spip_visites_articles * - spip_referers * - spip_referers_articles * * @pipeline declarer_tables_auxiliaires * @param array $tables_auxiliaires * Description des tables auxiliaires * @return array * Description complétée des tables auxiliaires */ function stats_declarer_tables_auxiliaires($tables_auxiliaires) { $spip_visites = array( "date" => "DATE NOT NULL", "visites" => "int UNSIGNED DEFAULT '0' NOT NULL", "maj" => "TIMESTAMP" ); $spip_visites_key = array( "PRIMARY KEY" => "date" ); $spip_visites_articles = array( "date" => "DATE NOT NULL", "id_article" => "int UNSIGNED NOT NULL", "visites" => "int UNSIGNED DEFAULT '0' NOT NULL", "maj" => "TIMESTAMP" ); $spip_visites_articles_key = array( "PRIMARY KEY" => "date, id_article" ); $spip_referers = array( "referer_md5" => "bigint UNSIGNED NOT NULL", "date" => "DATE NOT NULL", "referer" => "VARCHAR (255)", "visites" => "int UNSIGNED NOT NULL", "visites_jour" => "int UNSIGNED NOT NULL", "visites_veille" => "int UNSIGNED NOT NULL", "maj" => "TIMESTAMP" ); $spip_referers_key = array( "PRIMARY KEY" => "referer_md5" ); $spip_referers_articles = array( "id_article" => "int UNSIGNED NOT NULL", "referer_md5" => "bigint UNSIGNED NOT NULL", "referer" => "VARCHAR (255) DEFAULT '' NOT NULL", "visites" => "int UNSIGNED NOT NULL", "maj" => "TIMESTAMP" ); $spip_referers_articles_key = array( "PRIMARY KEY" => "id_article, referer_md5", "KEY referer_md5" => "referer_md5" ); $tables_auxiliaires['spip_visites'] = array( 'field' => &$spip_visites, 'key' => &$spip_visites_key ); $tables_auxiliaires['spip_visites_articles'] = array( 'field' => &$spip_visites_articles, 'key' => &$spip_visites_articles_key ); $tables_auxiliaires['spip_referers'] = array( 'field' => &$spip_referers, 'key' => &$spip_referers_key ); $tables_auxiliaires['spip_referers_articles'] = array( 'field' => &$spip_referers_articles, 'key' => &$spip_referers_articles_key ); return $tables_auxiliaires; } delete_stats.php000060400000003143152526037730007744 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ if (!defined("_ECRIRE_INC_VERSION")) { return; } // securiser // faudrait plutot recuperer dans inc_serialbase et inc_auxbase // mais il faudra prevenir ceux qui affectent les globales qui s'y trouvent // Afficher la liste de ce qu'on va detruire et demander confirmation // ca vaudrait mieux /** * Supprimer les stats * * @param strinf $titre * @param bool $reprise * @return string */ function base_delete_stats_dist($titre = '', $reprise = '') { if (!$titre) { return; } // anti-testeur automatique sql_delete("spip_visites"); sql_delete("spip_visites_articles"); sql_delete("spip_referers"); sql_delete("spip_referers_articles"); sql_update("spip_articles", array('visites' => 0, 'referers' => 0, 'popularite' => 0)); // un pipeline pour detruire les tables de stats installees par les plugins pipeline('delete_statistiques', ''); spip_log("raz des stats operee redirige vers " . _request('redirect')); } delete_referers.php000060400000003012152526037730010416 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ if (!defined("_ECRIRE_INC_VERSION")) { return; } // securiser // faudrait plutot recuperer dans inc_serialbase et inc_auxbase // mais il faudra prevenir ceux qui affectent les globales qui s'y trouvent // Afficher la liste de ce qu'on va detruire et demander confirmation // ca vaudrait mieux /** * Supprimer les referers * * @param strinf $titre * @param bool $reprise * @return string */ function base_delete_referers_dist($titre = '', $reprise = '') { if (!$titre) { return; } // anti-testeur automatique sql_delete("spip_referers"); sql_delete("spip_referers_articles"); sql_update("spip_articles", array('referers' => 0)); // un pipeline pour detruire les tables de referers installees par les plugins ? //pipeline('delete_referers', ''); spip_log("raz des referers operee redirige vers " . _request('redirect')); } restaurer.php000060400000006712152527200740007277 0ustar00<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2020 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ if (!defined('_ECRIRE_INC_VERSION')) { return; } include_spip('inc/dump'); include_spip('inc/actions'); /** * Restauration d'une sauvegarde * * @param string $titre Titre de la page * @param bool $reprise true s'il s'agit d'une reprise de sauvegarde */ function base_restaurer_dist($titre = '', $reprise = false) { $status_file = _DUMP_STATUS_FILE; $status_file = _DIR_TMP . basename($status_file) . '.txt'; if (!lire_fichier($status_file, $status) or !$status = unserialize($status) ) { } else { $redirect = parametre_url(generer_action_auteur('restaurer', _DUMP_STATUS_FILE), 'step', intval(_request('step') + 1), '&'); $timeout = ini_get('max_execution_time'); // valeur conservatrice si on a pas reussi a lire le max_execution_time if (!$timeout) { $timeout = 30; } // parions sur une valeur tellement courante ... $max_time = time() + $timeout / 2; include_spip('inc/minipres'); @ini_set('zlib.output_compression', '0'); // pour permettre l'affichage au fur et a mesure $titre = _T('dump:restauration_en_cours') . ' (' . count($status['tables']) . ') '; $balise_img = chercher_filtre('balise_img'); $titre .= $balise_img(chemin_image('searching.gif')); echo(install_debut_html($titre)); // script de rechargement auto sur timeout echo http_script("window.setTimeout('location.href=\"" . $redirect . "\";'," . ($timeout * 1000) . ')'); echo "<div style='text-align: left'>\n"; dump_serveur($status['connect']); spip_connect('dump'); // au premier coup on ne fait rien sauf afficher l'ecran de sauvegarde if (_request('step')) { $options = array( 'callback_progression' => 'dump_afficher_progres', 'max_time' => $max_time, 'no_erase_dest' => lister_tables_noerase(), 'where' => $status['where'] ? $status['where'] : array(), 'desc_tables_dest' => array() ); if ($desc = sql_getfetsel('valeur', 'spip_meta', "nom='dump_structure_temp'", '', '', '', '', 'dump') and $desc = unserialize($desc) ) { $options['desc_tables_dest'] = $desc; } $res = base_copier_tables($status_file, $status['tables'], 'dump', '', $options); } else { // mais on en profite pour reparer les version base pour etre sur de ne pas les perdre sql_updateq('spip_meta', array('impt' => 'oui'), "nom='version_installee'", '', 'dump'); sql_updateq('spip_meta', array('impt' => 'oui'), "nom LIKE '%_base_version'", '', 'dump'); } echo("</div>\n"); if (!$res) { echo dump_relance($redirect); } echo(install_fin_html()); ob_end_flush(); flush(); if (!$res) { exit; } // quand on sort de $export avec true c'est qu'on a fini dump_end(_DUMP_STATUS_FILE, 'restaurer'); include_spip('inc/headers'); echo redirige_formulaire(generer_url_ecrire('restaurer', 'status=' . _DUMP_STATUS_FILE, '', true, true)); } }
/home/histoio/www/f41a3/./../plugins-dist/./../35802/./base.tar