Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/**
* Factory Licensing Functions
*
* Defines a set of function that are used to check a license during development process.
* When a plugin is compiled, these functions are removed.
*/
function factory_license( license ) {
var current = factory_get_current_license();
return jQuery.isArray(license)
? jQuery.inArray(current, license)
: license == current;
}
/**
* Returns current license type.
* @return string
*/
function factory_get_current_license() {
if ( !window.factory_license_type ) return 'free';
return window.factory_license_type;
}

View File

@@ -0,0 +1,54 @@
var licenseManager = {};
(function($){
licenseManager = {
init: function() {
this.initLicenseForm();
this.initManualActivationForm();
},
initLicenseForm: function() {
var button = $("#license-submit");
var form = button.parents('form');
button.click(function(){
form.submit();
return false;
});
// faq
$("#faq-block .faq-header").click(function(){
var next = $(this).next();
if ( next.is(":visible") ) next.fadeOut();
else next.fadeIn();
return false;
});
$("#open-faq").click(function(){
$("#how-to-find-the-key").click();
window.location.href = "#how-to-find-the-key";
return false;
});
},
initManualActivationForm: function() {
var button = $("#manual-trial-submit");
var form = button.parents('form');
button.click(function(){
form.submit();
return false;
});
}
}
$(function(){
licenseManager.init();
});
})(jQuery)

View File

@@ -0,0 +1,83 @@
var registrationManager = {};
(function($){
registrationManager = {
init: function() {
this.makeRequest();
},
makeRequest: function() {
var self = this;
$.ajax(licenseServer, {
data: licenseGateData,
type: 'post',
dataType: 'jsonp'
})
.success(function( data ){
if ( data.ErrorCode ) {
self.showRejectedResponse( data );
return;
}
self.saveSecret(data.secret);
})
.error(function(){
self.showFailedResponse();
});
},
saveSecret: function( secret ) {
$.ajax(licenseAdminUrl, {
type: 'post',
data: {
secret: secret,
action: 'save_site_secret'
}
})
.success(function( data ){
if ( data != 'ok' ) {
alert(data);
return;
}
if ( !licenseRedirect || licenseRedirect == '' ) {
window.location.reload();
} else {
window.location.href = licenseRedirect;
}
})
.error(function(){
alert('unknown error');
});
},
showRejectedResponse: function( data ) {
var wrap = $("#license-registration-rejected");
var messageContainer = wrap.find(".error-container");
messageContainer.html( data.ErrorText );
this.hideLoader();
wrap.fadeIn();
},
showFailedResponse: function() {
this.hideLoader();
$("#license-registration-failed").fadeIn();
},
hideLoader: function() {
$(".license-global-loader").hide();
}
}
$(function(){
registrationManager.init();
});
})(jQuery)