", $_POST['wall']); printf(""); /* get wallpaper id and get info from api */ preg_match("/(?!.*-)([A-Za-z0-9]+)/", $_POST['wall'], $matches); $res = getwallpaper("https://wallhaven.cc/api/v1/w/$matches[0]?apikey=$apikey"); ?>
Purity %s
\n", $res["purity"], toupperpurity($res["purity"])); printf("Resolution %s
\n", $res["resolution"]); printf("File Size %s
\n", humanfilesize($res["file_size"])); printf("Share %s
\n", $matches[0], $_POST['purity'], $matches[0]); ?>