Tengo un problema, me pasaron un joomla que tiene un formulario web, el tema que el formulario no esta funcionando. Y no encuentro ningun complemento, solo un PHP.
llamado easycontact. php:
Código PHP:
<?php
//defined('_JEXEC') or die('Este script no se puede ejecutar de forma independiente.');
session_start();
require_once dirname(dirname(dirname(__FILE__))).'/configuration.php';
$route=dirname(__FILE__);
$_SESSION['route']=dirname(dirname(dirname(__FILE__)));
if(isset($_GET['type'])){
$_SESSION['type']=$_GET['type']; //type form
}else{
$_SESSION['type']="general"; //type form
}
//chmod($route.'/config_email_install.json',777);
$str_datos = file_get_contents($route."/config/".$_SESSION['type']."_config.json");
$datos = json_decode($str_datos,true);
$dat = new JConfig();
$con =mysql_connect($dat->host, $dat->user, $dat->password);
if (!$con){die('ERROR DE CONEXION CON MYSQL:'. mysql_error());}
$database = mysql_select_db($dat->db, $con);
if (!$database){die('ERROR CONEXION CON BD:'.mysql_error());}
$sql = 'SELECT * FROM '.$datos["prefixTbl"].'emails_saved';
$result = mysql_query ($sql);
if (!$result){
require_once $route.'/api/install.php';
}
require_once $route."/helpers/form_".$_SESSION['type'].".html";
me podrian ayudar porfa!