Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Created December 29, 2014 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidperezgar/0f029f903a6848a6a0ca to your computer and use it in GitHub Desktop.
Save davidperezgar/0f029f903a6848a6a0ca to your computer and use it in GitHub Desktop.
WP-Login ES for Local and Remote
<?php
if ($_SERVER['HTTP_HOST'] === "localhost") {
define('DB_NAME', '');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('WP_HOME', 'http://localhost/');
define('WP_SITEURL', 'http://localhost/');
define('WP_DEBUG', false);
} else {
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASSWORD', '');
define('WP_HOME', 'http://www.');
define('WP_SITEURL', 'http://www.');
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/domains//public_html/');
define('FTP_USER', '');
define('FTP_PASS', '');
define('FTP_HOST', '');
define('FTP_SSL', false);
define('WP_DEBUG', false);
}
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
define('AUTH_KEY', 'pon aquí tu frase aleatoria');
define('SECURE_AUTH_KEY', 'pon aquí tu frase aleatoria');
define('LOGGED_IN_KEY', 'pon aquí tu frase aleatoria');
define('NONCE_KEY', 'pon aquí tu frase aleatoria');
define('AUTH_SALT', 'pon aquí tu frase aleatoria');
define('SECURE_AUTH_SALT', 'pon aquí tu frase aleatoria');
define('LOGGED_IN_SALT', 'pon aquí tu frase aleatoria');
define('NONCE_SALT', 'pon aquí tu frase aleatoria');
//Calculate Salt on: https://api.wordpress.org/secret-key/1.1/salt/
$table_prefix = 'wpclmkg_';
define ('WPLANG', 'es_ES');
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment