mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 21:54:12 +00:00
bdef6c017b
- New design for platform - Page change based on results - Illustrations added - Search by email and username - Better security (sensitive files moved to folder with .htaccess) - Admin page for setup (with password) - Customizable functions - Caching of results - Pre-caching script for caching multiple users
22 lines
No EOL
704 B
JavaScript
22 lines
No EOL
704 B
JavaScript
function get_functions() {
|
|
|
|
config_form = {};
|
|
|
|
var config_data = JSON.stringify(config_form);
|
|
|
|
var xhttp = new XMLHttpRequest();
|
|
xhttp.onreadystatechange = function() {
|
|
if (this.readyState == 4 && this.status == 200) {
|
|
var result = JSON.parse(this.responseText);
|
|
if(result.error) {
|
|
document.getElementById('results_error').innerHTML = '<p style="color:inherit; text-shadow: none;">' + result.message + '</p>';
|
|
} else {
|
|
functions = result;
|
|
get_stats();
|
|
}
|
|
}
|
|
};
|
|
xhttp.withCredentials = true;
|
|
xhttp.open("post", "api/get_functions.php");
|
|
xhttp.send(config_data);
|
|
} |