Jump to content

fichier auto.php à la racine de mon thème


Recommended Posts

Bonjour,

 

Je constate qu'un fichier a été crée le 25/08/2017 don il y a 2 semaines à la racine de mon thème et qui s'appelle auto.php

 

Je ne me souviens absolument pas avoir crée ou modifié ce fichier.

 

Voici son contenu, il envoi dans une table ps_robots des ip dont la mienne.

 

Est ce normal?

 

Puis je le supprimer ou est ce crée automatiquement?

<?php
/*
* 2007-2011 PrestaShop 
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contactprestashop.com>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 9068 $
*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

// Déclaration des paramètres de connexion
$host = monserver;

// Généralement la machine est localhost
// c'est-a-dire la machine sur laquelle le script est hébergé

$user = monuser;

$bdd = mabdd;

$passwd  = monpass;

$ip = $_SERVER['REMOTE_ADDR']; 


// Connexion au serveur
mysql_connect($host, $user,$passwd) or die("erreur de connexion au serveur");

mysql_select_db($bdd) or die("erreur de connexion a la base de donnees");

// Creation et envoi de la requete
//Ajout de lip a la table IP et a la colonne ip 
$sql = "INSERT  INTO ps_robots ( ip ) 
            VALUES ( '$ip' ) " ; 

$result = mysql_query($query);

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More