From 8977700bffa3a6b995c9eec322d90178477b8cae Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 25 Sep 2014 11:02:10 +0200 Subject: [PATCH] change server --- js/main.js | 3 ++- server/DB.class.php | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/js/main.js b/js/main.js index 85a80d1..fac350d 100755 --- a/js/main.js +++ b/js/main.js @@ -1,7 +1,7 @@ $(document).ready(function() { //Variables - var sURLSer = 'http://andros.myftp.org/logrosDeLaVida/'; + var sURLSer = 'http://andros-films.com/server-LogrosDeLaVida/'; var $cajaLogros = $('#cajaLogros') var $cajaForm = $('#cajaForm') var $cajaCrearCuenta = $('#cajaCrearCuenta') @@ -100,6 +100,7 @@ $(document).ready(function() { * @return {String} HTML */ function generarHTMLLogro(iniId, insTitulo, insDecr, insIcon, insReal) { + console.log(insDecr) var sOn = ''; var sOff = ''; var sIconDes = ''; diff --git a/server/DB.class.php b/server/DB.class.php index 73c0bc0..0180d1d 100644 --- a/server/DB.class.php +++ b/server/DB.class.php @@ -6,11 +6,11 @@ */ class DB { //Variables - public static $DB_HOST = 'localhost'; - public static $DB_USER = 'root'; - public static $DB_PASS = ''; - public static $DB_TYPE = 'mysql'; - public static $DB_NOM = 'nombre base de datos'; + public static $DB_HOST = 'localhost';//host database + public static $DB_USER = 'user database'; + public static $DB_PASS = 'pass database'; + public static $DB_TYPE = 'mysql';//type database: sqlite, PostgreSQL... + public static $DB_NOM = 'nom database'; private $sQuery; private $aRows = array(); private $conn; @@ -26,7 +26,7 @@ class DB { */ private function abrirConexion() { $this->conn = new PDO(self::$DB_TYPE . ':host=' . self::$DB_HOST - . ';dbname=' . self::$DB_NOM, self::$DB_USER, self::$DB_PASS); + . ';dbname=' . self::$DB_NOM . ';charset=utf8;', self::$DB_USER, self::$DB_PASS); } /** * Método que desconecta de la base de datos