var setting = new Array(); setting.siteRootUrl = "https://guiadero.com"; setting.siteDescriptionMaxLength = 300; setting.siteDescriptionMinLength = 100; setting.maxKeywordsCountPerSite = 3; setting.itemGalleryImagesMaxCount = 10; setting.metaDataUrl = "https://guiadero.com"; setting.urlMandatory = 0; setting.backLinkMandatory = 0; setting.urlRewriting = 1; setting.lang = new Array(); setting.lang['You have already added this keyword. Select another one.'] = "Ya ha elegido esta palabra, seleccione otra."; setting.lang['loading...'] = "Cargando..."; setting.lang['Please, fill in the fields URL of site, Title and Description.'] = "Por favor, rellene la URL de su sitio web, los campos Titulo y Descripcion"; setting.lang['The URL must start with http://'] = "La URL debe comenzar con http://"; setting.lang['Please, enter a valid e-mail address.'] = "Por favor, ingrese un email valido"; setting.lang['You modify the webmaster of this site. Do you want the fields Webmaster Email and Webmaster Name to be refreshed, or you want to modify them manually?'] = "Al cambiar el Webmaster el correo electronico tambien va a cambiar"; setting.lang['The comment was saved.'] = "El comentario se ha guardado"; setting.lang['The comment was deleted.'] = "El comentario se ha eliminado"; setting.lang['The IP was banned.'] = "La Ip se ha baneado"; setting.lang['Please, select a package.'] = "Por favor, seleccion un paquete"; setting.lang['Please, select a payment processor.'] = "Por favor, selecione un procesador de pagos"; setting.lang['Please, enter a name or nickname.'] = "Por favor, ingrese su nombre de usuario"; setting.lang['Please, enter a comment.'] = "Please, enter a comment."; setting.lang['Please, enter the protection code.'] = "Por favor, ingrese el codigo de seguridad"; setting.lang['The tag was saved.'] = "Las etiquetas se han guardado"; setting.lang['You can`t select this payment method for selected package.'] = "Usted no puede seleccionar este metodo de pago para el paquete seleccionado"; setting.lang["Delete"] = "Borrar"; setting.lang["Edit"] = "Editar"; setting.lang["File"] = "Archivo"; setting.lang["was uploaded sucessfully"] = "Se ha subido correctamente"; setting.lang["of"] = "de"; setting.lang["available photos uploaded"] = "Tenemos la foto subida"; setting.lang["Loading"] = "Cargando"; setting.lang["Loading..."] = "Cargando..."; setting.lang["Your email must be in format - name@domain.com"] = "Su email debe tener este formato - nombre@email.com"; setting.lang["Email was used earlier"] = "El correo electronico fue utilizado anteriormente"; setting.lang["Please enter password"] = "Por favor ingrese una password"; setting.lang["Please confirm your password"] = "Por favor, confirme su password"; setting.lang["Please enter captcha code"] = "Por favor, ingrese en codigo captcha"; setting.lang["Passwords aren't equal"] = "Los passwords no coinciden"; setting.lang["This field is required"] = "Este campo es obligatorio"; setting.lang["Please enter your email"] = "Por favor ingrese su email"; setting.lang["Validation message"] = "Validacion de mensajes"; setting.lang["Your message was saved"] = "Su mensaje se ha guardado"; setting.lang["Your message was sent"] = "Su mensaje se ha enviado"; setting.lang["New file has been uploaded sucessfully"] = "Imagen subida correctamente"; setting.lang["Uploading..."] = "Subiendo..."; setting.lang["You have entered an invalid code"] = "javascript_config_you_have_entered_an_invalid_code"; function _t($phrase) { return setting.lang[$phrase] || $phrase; } var AppRouter = { rewrites: new Array(), addRewriteRule: function(pattern, replacement) { AppRouter.rewrites.push({"pattern": new RegExp(pattern), replacement: replacement}); }, getRewrittedUrl: function(url) { var rewrittedUrl = setting.siteRootUrl; if(!setting.urlRewriting)rewrittedUrl += "/index.php"; for(var i = 0; i < AppRouter.rewrites.length; i++) { var rewrite = AppRouter.rewrites[i]; url = url.replace(rewrite.pattern, rewrite.replacement); } rewrittedUrl += url; return rewrittedUrl; } }