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() {
//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 = '';

View File

@ -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