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

654
wp-content/plugins/rss-feed/js/ejs.min.js vendored Executable file
View File

@@ -0,0 +1,654 @@
ejs = (function(){
// CommonJS require()
function require(p){
if ('fs' == p) return {};
if ('path' == p) return {};
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
return mod.exports;
}
require.modules = {};
require.resolve = function (path){
var orig = path
, reg = path + '.js'
, index = path + '/index.js';
return require.modules[reg] && reg
|| require.modules[index] && index
|| orig;
};
require.register = function (path, fn){
require.modules[path] = fn;
};
require.relative = function (parent) {
return function(p){
if ('.' != p.substr(0, 1)) return require(p);
var path = parent.split('/')
, segs = p.split('/');
path.pop();
for (var i = 0; i < segs.length; i++) {
var seg = segs[i];
if ('..' == seg) path.pop();
else if ('.' != seg) path.push(seg);
}
return require(path.join('/'));
};
};
require.register("ejs.js", function(module, exports, require){
/*!
* EJS
* Copyright(c) 2012 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('./utils')
, path = require('path')
, dirname = path.dirname
, extname = path.extname
, join = path.join
, fs = require('fs')
, read = fs.readFileSync;
/**
* Filters.
*
* @type Object
*/
var filters = exports.filters = require('./filters');
/**
* Intermediate js cache.
*
* @type Object
*/
var cache = {};
/**
* Clear intermediate js cache.
*
* @api public
*/
exports.clearCache = function(){
cache = {};
};
/**
* Translate filtered code into function calls.
*
* @param {String} js
* @return {String}
* @api private
*/
function filtered(js) {
return js.substr(1).split('|').reduce(function(js, filter){
var parts = filter.split(':')
, name = parts.shift()
, args = parts.join(':') || '';
if (args) args = ', ' + args;
return 'filters.' + name + '(' + js + args + ')';
});
};
/**
* Re-throw the given `err` in context to the
* `str` of ejs, `filename`, and `lineno`.
*
* @param {Error} err
* @param {String} str
* @param {String} filename
* @param {String} lineno
* @api private
*/
function rethrow(err, str, filename, lineno){
var lines = str.split('\n')
, start = Math.max(lineno - 3, 0)
, end = Math.min(lines.length, lineno + 3);
// Error context
var context = lines.slice(start, end).map(function(line, i){
var curr = i + start + 1;
return (curr == lineno ? ' >> ' : ' ')
+ curr
+ '| '
+ line;
}).join('\n');
// Alter exception message
err.path = filename;
err.message = (filename || 'ejs') + ':'
+ lineno + '\n'
+ context + '\n\n'
+ err.message;
throw err;
}
/**
* Parse the given `str` of ejs, returning the function body.
*
* @param {String} str
* @return {String}
* @api public
*/
var parse = exports.parse = function(str, options){
var options = options || {}
, open = options.open || exports.open || '<%'
, close = options.close || exports.close || '%>'
, filename = options.filename
, compileDebug = options.compileDebug !== false
, buf = "";
buf += 'var buf = [];';
if (false !== options._with) buf += '\nwith (locals || {}) { (function(){ ';
buf += '\n buf.push(\'';
var lineno = 1;
var consumeEOL = false;
for (var i = 0, len = str.length; i < len; ++i) {
var stri = str[i];
if (str.slice(i, open.length + i) == open) {
i += open.length
var prefix, postfix, line = (compileDebug ? '__stack.lineno=' : '') + lineno;
switch (str[i]) {
case '=':
prefix = "', escape((" + line + ', ';
postfix = ")), '";
++i;
break;
case '-':
prefix = "', (" + line + ', ';
postfix = "), '";
++i;
break;
default:
prefix = "');" + line + ';';
postfix = "; buf.push('";
}
var end = str.indexOf(close, i);
if (end < 0){
throw new Error('Could not find matching close tag "' + close + '".');
}
var js = str.substring(i, end)
, start = i
, include = null
, n = 0;
if ('-' == js[js.length-1]){
js = js.substring(0, js.length - 2);
consumeEOL = true;
}
if (0 == js.trim().indexOf('include')) {
var name = js.trim().slice(7).trim();
if (!filename) throw new Error('filename option is required for includes');
var path = resolveInclude(name, filename);
include = read(path, 'utf8');
include = exports.parse(include, { filename: path, _with: false, open: open, close: close, compileDebug: compileDebug });
buf += "' + (function(){" + include + "})() + '";
js = '';
}
while (~(n = js.indexOf("\n", n))) n++, lineno++;
if (js.substr(0, 1) == ':') js = filtered(js);
if (js) {
if (js.lastIndexOf('//') > js.lastIndexOf('\n')) js += '\n';
buf += prefix;
buf += js;
buf += postfix;
}
i += end - start + close.length - 1;
} else if (stri == "\\") {
buf += "\\\\";
} else if (stri == "'") {
buf += "\\'";
} else if (stri == "\r") {
// ignore
} else if (stri == "\n") {
if (consumeEOL) {
consumeEOL = false;
} else {
buf += "\\n";
lineno++;
}
} else {
buf += stri;
}
}
if (false !== options._with) buf += "'); })();\n} \nreturn buf.join('');";
else buf += "');\nreturn buf.join('');";
return buf;
};
/**
* Compile the given `str` of ejs into a `Function`.
*
* @param {String} str
* @param {Object} options
* @return {Function}
* @api public
*/
var compile = exports.compile = function(str, options){
options = options || {};
var escape = options.escape || utils.escape;
var input = JSON.stringify(str)
, compileDebug = options.compileDebug !== false
, client = options.client
, filename = options.filename
? JSON.stringify(options.filename)
: 'undefined';
if (compileDebug) {
// Adds the fancy stack trace meta info
str = [
'var __stack = { lineno: 1, input: ' + input + ', filename: ' + filename + ' };',
rethrow.toString(),
'try {',
exports.parse(str, options),
'} catch (err) {',
' rethrow(err, __stack.input, __stack.filename, __stack.lineno);',
'}'
].join("\n");
} else {
str = exports.parse(str, options);
}
if (options.debug) console.log(str);
if (client) str = 'escape = escape || ' + escape.toString() + ';\n' + str;
try {
var fn = new Function('locals, filters, escape, rethrow', str);
} catch (err) {
if ('SyntaxError' == err.name) {
err.message += options.filename
? ' in ' + filename
: ' while compiling ejs';
}
// throw err;
}
if (client) return fn;
return function(locals){
return fn.call(this, locals, filters, escape, rethrow);
}
};
/**
* Render the given `str` of ejs.
*
* Options:
*
* - `locals` Local variables object
* - `cache` Compiled functions are cached, requires `filename`
* - `filename` Used by `cache` to key caches
* - `scope` Function execution context
* - `debug` Output generated function body
* - `open` Open tag, defaulting to "<%"
* - `close` Closing tag, defaulting to "%>"
*
* @param {String} str
* @param {Object} options
* @return {String}
* @api public
*/
exports.render = function(str, options){
var fn
, options = options || {};
if (options.cache) {
if (options.filename) {
fn = cache[options.filename] || (cache[options.filename] = compile(str, options));
} else {
throw new Error('"cache" option requires "filename".');
}
} else {
fn = compile(str, options);
}
options.__proto__ = options.locals;
return fn.call(options.scope, options);
};
/**
* Render an EJS file at the given `path` and callback `fn(err, str)`.
*
* @param {String} path
* @param {Object|Function} options or callback
* @param {Function} fn
* @api public
*/
exports.renderFile = function(path, options, fn){
var key = path + ':string';
if ('function' == typeof options) {
fn = options, options = {};
}
options.filename = path;
var str;
try {
str = options.cache
? cache[key] || (cache[key] = read(path, 'utf8'))
: read(path, 'utf8');
} catch (err) {
fn(err);
return;
}
fn(null, exports.render(str, options));
};
/**
* Resolve include `name` relative to `filename`.
*
* @param {String} name
* @param {String} filename
* @return {String}
* @api private
*/
function resolveInclude(name, filename) {
var path = join(dirname(filename), name);
var ext = extname(name);
if (!ext) path += '.ejs';
return path;
}
// express support
exports.__express = exports.renderFile;
/**
* Expose to require().
*/
if (require.extensions) {
require.extensions['.ejs'] = function (module, filename) {
filename = filename || module.filename;
var options = { filename: filename, client: true }
, template = fs.readFileSync(filename).toString()
, fn = compile(template, options);
module._compile('module.exports = ' + fn.toString() + ';', filename);
};
} else if (require.registerExtension) {
require.registerExtension('.ejs', function(src) {
return compile(src, {});
});
}
}); // module: ejs.js
require.register("filters.js", function(module, exports, require){
/*!
* EJS - Filters
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* First element of the target `obj`.
*/
exports.first = function(obj) {
return obj[0];
};
/**
* Last element of the target `obj`.
*/
exports.last = function(obj) {
return obj[obj.length - 1];
};
/**
* Capitalize the first letter of the target `str`.
*/
exports.capitalize = function(str){
str = String(str);
return str[0].toUpperCase() + str.substr(1, str.length);
};
/**
* Downcase the target `str`.
*/
exports.downcase = function(str){
return String(str).toLowerCase();
};
/**
* Uppercase the target `str`.
*/
exports.upcase = function(str){
return String(str).toUpperCase();
};
/**
* Sort the target `obj`.
*/
exports.sort = function(obj){
return Object.create(obj).sort();
};
/**
* Sort the target `obj` by the given `prop` ascending.
*/
exports.sort_by = function(obj, prop){
return Object.create(obj).sort(function(a, b){
a = a[prop], b = b[prop];
if (a > b) return 1;
if (a < b) return -1;
return 0;
});
};
/**
* Size or length of the target `obj`.
*/
exports.size = exports.length = function(obj) {
return obj.length;
};
/**
* Add `a` and `b`.
*/
exports.plus = function(a, b){
return Number(a) + Number(b);
};
/**
* Subtract `b` from `a`.
*/
exports.minus = function(a, b){
return Number(a) - Number(b);
};
/**
* Multiply `a` by `b`.
*/
exports.times = function(a, b){
return Number(a) * Number(b);
};
/**
* Divide `a` by `b`.
*/
exports.divided_by = function(a, b){
return Number(a) / Number(b);
};
/**
* Join `obj` with the given `str`.
*/
exports.join = function(obj, str){
return obj.join(str || ', ');
};
/**
* Truncate `str` to `len`.
*/
exports.truncate = function(str, len, append){
str = String(str);
if (str.length > len) {
str = str.slice(0, len);
if (append) str += append;
}
return str;
};
/**
* Truncate `str` to `n` words.
*/
exports.truncate_words = function(str, n){
var str = String(str)
, words = str.split(/ +/);
return words.slice(0, n).join(' ');
};
/**
* Replace `pattern` with `substitution` in `str`.
*/
exports.replace = function(str, pattern, substitution){
return String(str).replace(pattern, substitution || '');
};
/**
* Prepend `val` to `obj`.
*/
exports.prepend = function(obj, val){
return Array.isArray(obj)
? [val].concat(obj)
: val + obj;
};
/**
* Append `val` to `obj`.
*/
exports.append = function(obj, val){
return Array.isArray(obj)
? obj.concat(val)
: obj + val;
};
/**
* Map the given `prop`.
*/
exports.map = function(arr, prop){
return arr.map(function(obj){
return obj[prop];
});
};
/**
* Reverse the given `obj`.
*/
exports.reverse = function(obj){
return Array.isArray(obj)
? obj.reverse()
: String(obj).split('').reverse().join('');
};
/**
* Get `prop` of the given `obj`.
*/
exports.get = function(obj, prop){
return obj[prop];
};
/**
* Packs the given `obj` into json string
*/
exports.json = function(obj){
return JSON.stringify(obj);
};
}); // module: filters.js
require.register("utils.js", function(module, exports, require){
/*!
* EJS
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Escape the given string of `html`.
*
* @param {String} html
* @return {String}
* @api private
*/
exports.escape = function(html){
return String(html)
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/'/g, '&#39;')
.replace(/"/g, '&quot;');
};
}); // module: utils.js
return require("ejs");
})();

View File

@@ -0,0 +1,558 @@
function show_loader(){
jQuery('.ajax-loader').css("visibility", "visible");
}
function hide_loader(){
jQuery('.ajax-loader').css("visibility", "hidden");
jQuery(".alert").hide();
}
function redirect_to(url)
{
window.location.href = url;
}
function raj_alert(msg,type)
{
hide_loader();
jQuery("."+type+"AjaxMsg").html(msg);
jQuery("."+type+"Ajax").show();
jQuery('html, body').animate({
scrollTop: jQuery("body").offset().top
}, 200);
}
function display_content(content)
{
jQuery("#auto_servies_page").fadeOut(function() {
jQuery(".alert").hide();
jQuery("#auto_servies_div").html(content);
jQuery('html, body').animate({
scrollTop: jQuery("body").offset().top
}, 200);
}).fadeIn(function() {
hide_loader();
jQuery(".raj_alert").hide();
});
}
function fixer_rendez_vous(id_product,url)
{
jQuery.ajax({
type: "GET",
beforeSend: function(){
show_loader();
},
url: url,
data: "add-to-cart="+id_product,
success: function(msg){
document.location=url+"/checkout/";
}
});
}
function submit_quote()
{
data=jQuery("#ct_RequestQuote").serialize();
jQuery.ajax({
type: "POST",
beforeSend: function(){
show_loader();
},
url: my_ajax_url,
data: "action=actions&action_to_do=submit_quote&"+data+"&site_name="+site_name,
success: function(msg){
json=check_valide_request(msg)
if(json!=false)
raj_alert("Votre demande a bien été envoyée ","success") ;
}
});
}
function change_model_selet()
{
jQuery.ajax({
type: "GET",
beforeSend: function(){
show_loader();
},
url: my_ajax_url,
data: "action=actions&action_to_do=get_models_select_json&make_id="+jQuery("#make_masse").val(),
success: function(msg){
hide_loader();
try
{
var json = JSON.parse(msg);
if(!json.hasOwnProperty("Error"))
{
raj_alert("Field 'Frror' doesn't exist in json :"+ content,"error") ;
return false
}
if(json["Error"])
{
raj_alert(json["Messages"],"error") ;
return false;
}
jQuery("#model_masse").html(ejs.render(json.template,json));
}
catch(e)
{
raj_alert(e+"<br>"+msg,"error") ;
return false;
}
}
});
}
function show_makes()
{
jQuery.ajax({
type: "POST",
beforeSend: function(){
show_loader();
},
url: my_ajax_url,
data: "action=actions&action_to_do=get_makes&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url),
success: function(msg){
json=check_valide_request(msg)
if(json!=false)
display_content(affect_to_template(json));
}
});
}
function show_contact(slug_car)
{
jQuery.ajax({
type: "POST",
beforeSend: function(){
show_loader();
},
url: my_ajax_url,
data: "action=actions&action_to_do=show_contact&slug_car="+slug_car+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url),
success: function(msg){
json=check_valide_request(msg)
if(json!=false)
display_content(affect_to_template(json));
}
});
}
var is_submit=false;
var current_id=0;
function list_admin(module)
{
//var data="search="+jQuery( "#user-search-input" ).val();
var data=jQuery( "#my_form_list" ).serialize();
jQuery.ajax({
beforeSend: function(){
show_loader();
},
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=get_list&module="+module+"&"+data+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url),
success: function(msg){
display_content(msg);
if(is_submit)
{
if(current_id==0)
raj_alert("New item added",'success');
else
raj_alert("Item edited",'success');
}
is_submit=false;
current_id=0;
}
});
}
function search_by_cat(module,cat_id)
{
//var data="search="+jQuery( "#user-search-input" ).val();
var data=jQuery( "#my_form_list" ).serialize();
jQuery.ajax({
beforeSend: function(){
show_loader();
},
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=get_list&module="+module+"&"+data+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url)+"&cat_id="+cat_id,
success: function(msg){
display_content(msg);
is_submit=false;
current_id=0;
}
});
}
function apply_action(module)
{
act=jQuery("#bulk-action-selector-top").val();
raj_do_action(module,act,0);
}
function raj_do_action(module,act,id)
{
if(id!=0)
{
jQuery('input[name="rows[]"]').attr("checked",false);
jQuery("#raj_row_"+id).attr("checked",true);
}
data="task="+act+"&agr_id="+jQuery("#template_raj").val();
jQuery('input[name="rows[]"').each(function () {
if(this.checked)
{
if(data!="")
data+="&";
data += "rows[]="+jQuery(this).val();
}
});
if(act=="delete")
{
if( confirm( 'Are you sure that you want to delete the selected items?' ) ) {
post_list_actions(module,id,data,act);
}
}
else
post_list_actions(module,id,data,act);
}
function post_list_actions(module,id,data,act)
{
jQuery.ajax({
beforeSend: function(){
show_loader();
},
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=apply_actions&module="+module+"&id="+id+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url)+"&"+data,
success: function(msg){
hide_loader();
if(msg=="done")
{
raj_alert("The action "+act+" applied successfully","success");
setTimeout(function(){ list_admin(module); }, 1000);
}
else
raj_alert(msg,"error");
}
});
}
function submit_admin_form(module)
{
current_id=jQuery("#"+module+"_id" ).val();
var form = jQuery("#"+module+"_add_form" );
var formData = new FormData(form[0]);
is_submit=true;
jQuery.ajax({
beforeSend: function(){
show_loader();
},
type: "POST",
url: my_ajax_url,
data: formData,
contentType: false,
processData: false,
success: function(msg){
hide_loader();
if(msg=="done")
{
if(jQuery("#action_to_do" ).val()=="edit_price")
raj_alert("Les prix sont modifiés",'success');
else
{
if(jQuery("#action_to_do" ).val()=="edit_settings")
raj_alert("Valeurs modifiées",'success');
else
list_admin(module);
}
}
else
raj_alert(msg,'error');
}
});
}
function add_item_admin(module,id)
{
var data=jQuery( "#my_form_list" ).serialize();
jQuery.ajax({
beforeSend: function(){
show_loader();
},
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=add_item&"+data+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url)+"&module="+module+"&id="+id,
success: function(msg){
display_content(msg);
}
});
}
function quick_edit_list(module,id)
{
current_id=id;
var form = jQuery("#quick_form_"+id );
var formData = new FormData(form[0]);
is_submit=true;
jQuery.ajax({
beforeSend: function(){
jQuery(".spinner").css('visibility', 'hidden');
jQuery("#loader_quick_"+id).css('visibility', 'visible');
},
type: "POST",
url: my_ajax_url,
data: formData,
contentType: false,
processData: false,
success: function(msg){
hide_loader();
if(msg=="done")
{
/*jQuery('.quick_edit_tr').hide();
jQuery('.post_tr').show(); */
var data=jQuery( "#my_form_list" ).serialize();
jQuery.ajax({
beforeSend: function(){
//show_loader();
},
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=get_list&module="+module+"&"+data+"&plugin_url="+encodeURIComponent(plugin_url)+"&user_id="+user_id+"&my_site_url="+encodeURIComponent(my_site_url),
success: function(msg){
jQuery("#auto_servies_div").html(msg);
}
});
}
else
{
jQuery("#error_"+id+" .error").html(msg);
jQuery("#error_"+id+"").show();
}
}
});
}
function raj_import_file(module)
{
show_loader();
jQuery(".raj_notice").hide();
var formData = new FormData();
formData.append('file', jQuery('#import_file')[0].files[0]);
formData.append("module", module);
formData.append("action_to_do", "import");
formData.append("action", "functions");
jQuery.ajax({
url: my_ajax_url,
type : 'POST',
data : formData,
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
success : function(data) {
hide_loader();
var tab= data.split("success:");
if(tab.length>1)
{
raj_alert(tab[1],"success");
setTimeout(function(){ list_admin(module); }, 1000);
}
else
{
raj_alert(data,"error");
}
}
});
}
function raj_alert(msg,type)
{
hide_loader();
jQuery(".raj_notice").hide();
jQuery("#"+type+"_raj p").html(msg);
jQuery("#"+type+"_raj").show();
jQuery('html, body').animate({
scrollTop: jQuery("body").offset().top
}, 200);
}
function affect_to_template(json)
{
return ejs.render(json.template,json);
if(!json.hasOwnProperty("template"))
{
raj_alert("json param is missing: template ","error");
return false;
}
var templ=json.template;
tot_chars=templ.length
var content="";
found_mostache=false;
for (var i = 0; i < tot_chars; i++) {
c=templ.charAt(i);
if(c=="{" && i<tot_chars-10 && templ.charAt(i+1)=="{")
{
mostache_text="";
for(j=i+2;j<tot_chars;j++)
{
if(templ.charAt(j)==" ")
continue
for(k=j;k<tot_chars;k++)
{
if(templ.charAt(k)!=" " && templ.charAt(k)!="}")
{
mostache_text+=templ.charAt(k);
continue;
}
for(l=k;l<tot_chars;l++)
{
if(templ.charAt(l)=="}" && templ.charAt(l+1)=="}")
found_mostache=true;
}
}
}
}
if(found_mostache)
{
i=l;
tab=mostache_text.split(":");
if(tab.length==1)
{
type_mostache="var";
var_name=mostache_text;
if(!json.hasOwnProperty(var_name))
{
alert("variable not found in json:"+var_name);
content+="{{"+var_name+"}}";
}
else
content+=json[var_name];
}
else
{
if(tab[0]=="foreach")
{
type_mostache="foreach";
var_name=tab[1];
for (var i = 0; i < json[var_name].length; i++) {
}
}
}
}
else
content+=c;
found_mostache=false;
}
}
function send_file_Kindle()
{
if(!usernameIsValid(jQuery("#Kindle_email").val()))
{
raj_alert("Please provide a valid Kindle email");
return false;
}
jQuery("#button_mydownloads").hide();
jQuery("#loading_mydownloads").show();
var email=jQuery("#Kindle_email").val() + jQuery("#Kindle_domain").val();
var url_file=jQuery("#url_file_download").val();
jQuery.ajax({
type: "POST",
url: my_ajax_url,
data: "action=actions&action_to_do=send_file_Kindle&url_file_download="+encodeURIComponent(url_file)+"&email="+encodeURIComponent(email)+"&admin_email="+encodeURIComponent(jQuery("#admin_email").val())+"&website_title="+encodeURIComponent(jQuery("#website_title").val())+"&product_name="+encodeURIComponent(jQuery("#product_name").val())+"&content_path="+encodeURIComponent(jQuery("#content_path").val()),
success: function(msg){
alert(msg);
jQuery("#button_mydownloads").show();
jQuery("#loading_mydownloads").hide();
//jQuery("#popSendKindle").hide();
self.parent.tb_remove();
}
});
}
function usernameIsValid(username) {
return /^[0-9a-zA-Z_.-]+$/.test(username);
}