| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/smi-shot/ |
Upload File : |
const puppeteer=require('puppeteer');
const fs=require('fs');
(async()=>{
const box=fs.readFileSync('/tmp/smi-shot/aff-box.html','utf8');
const css=fs.readFileSync('/var/www/safemyident.de/web/wp-content/plugins/smi-affiliate/assets/css/affiliate.css','utf8');
const html='<html><head><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css"><style>body{background:#fff;padding:30px;font-family:Inter,system-ui,sans-serif}'+css+'</style></head><body>'+box+'</body></html>';
const b=await puppeteer.launch({headless:'new',args:['--no-sandbox','--disable-setuid-sandbox']});
const p=await b.newPage();
await p.setViewport({width:1100,height:700,deviceScaleFactor:1.4});
await p.setContent(html,{waitUntil:'networkidle2',timeout:30000});
await new Promise(r=>setTimeout(r,600));
await p.screenshot({path:'/tmp/smi-shot/aff-box.png'});
await b.close();console.log('shot done');
})().catch(e=>{console.error(e.message);process.exit(1);});