change server

This commit is contained in:
Andros Fenollosa 2014-09-25 11:02:10 +02:00
parent e45dae4870
commit 8977700bff
2 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,7 @@
$(document).ready(function() { $(document).ready(function() {
//Variables //Variables
var sURLSer = 'http://andros.myftp.org/logrosDeLaVida/'; var sURLSer = 'http://andros-films.com/server-LogrosDeLaVida/';
var $cajaLogros = $('#cajaLogros') var $cajaLogros = $('#cajaLogros')
var $cajaForm = $('#cajaForm') var $cajaForm = $('#cajaForm')
var $cajaCrearCuenta = $('#cajaCrearCuenta') var $cajaCrearCuenta = $('#cajaCrearCuenta')
@ -100,6 +100,7 @@ $(document).ready(function() {
* @return {String} HTML * @return {String} HTML
*/ */
function generarHTMLLogro(iniId, insTitulo, insDecr, insIcon, insReal) { function generarHTMLLogro(iniId, insTitulo, insDecr, insIcon, insReal) {
console.log(insDecr)
var sOn = ''; var sOn = '';
var sOff = ''; var sOff = '';
var sIconDes = ''; var sIconDes = '';

View File

@ -6,11 +6,11 @@
*/ */
class DB { class DB {
//Variables //Variables
public static $DB_HOST = 'localhost'; public static $DB_HOST = 'localhost';//host database
public static $DB_USER = 'root'; public static $DB_USER = 'user database';
public static $DB_PASS = ''; public static $DB_PASS = 'pass database';
public static $DB_TYPE = 'mysql'; public static $DB_TYPE = 'mysql';//type database: sqlite, PostgreSQL...
public static $DB_NOM = 'nombre base de datos'; public static $DB_NOM = 'nom database';
private $sQuery; private $sQuery;
private $aRows = array(); private $aRows = array();
private $conn; private $conn;
@ -26,7 +26,7 @@ class DB {
*/ */
private function abrirConexion() { private function abrirConexion() {
$this->conn = new PDO(self::$DB_TYPE . ':host=' . self::$DB_HOST $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 * Método que desconecta de la base de datos