* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2022 Johannes Keßler
+ * Copyright 2016-2023 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
$status = imap_status($this->_connection, $this->_connectionstring.$this->_mailbox, SA_ALL);
if(DEBUG === true) {
- var_dump("messages " . $status->messages);
- var_dump("recent " . $status->recent);
- var_dump("unseen " . $status->unseen);
- var_dump("uidnext " . $status->uidnext);
- var_dump("uidvalidity " . $status->uidvalidity);
+ Summoner::sysLog("messages " . $status->messages);
+ Summoner::sysLog("recent " . $status->recent);
+ Summoner::sysLog("unseen " . $status->unseen);
+ Summoner::sysLog("uidnext " . $status->uidnext);
+ Summoner::sysLog("uidvalidity " . $status->uidvalidity);
}
$list = imap_getmailboxes($this->_connection, $this->_connectionstring, "*");
* Insipid
* Personal web-bookmark-system
*
- * Copyright 2016-2022 Johannes Keßler
+ * Copyright 2016-2023 Johannes Keßler
*
* Development starting from 2011: Johannes Keßler
* https://www.bananas-playground.net/projekt/insipid/
if(!empty($url) && is_writable(dirname($filename))) {
if(DEBUG) {
- error_log("DEBUG try to save to $filename with $this->_googlePageSpeed for $url");
+ Summoner::sysLog("[DEBUG] try to save to $filename with $this->_googlePageSpeed for $url");
}
$theCall = Summoner::curlCall($this->_googlePageSpeed.urlencode($url).'&screenshot=true');
if(!empty($theCall)) {
$jsonData = json_decode($theCall,true);
if(DEBUG) {
- error_log("DEBUG Call result data: ".var_export($jsonData, true));
+ Summoner::sysLog("[DEBUG] Call result data: ".var_export($jsonData, true));
}
if(!empty($jsonData) && isset($jsonData['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'])) {
$imageData = $jsonData['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'];
fclose($source);
fclose($destination);
} elseif(DEBUG) {
- error_log("DEBUG invalid json data. Path ['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'] not found in : ".var_export($jsonData, true));
+ Summoner::sysLog("[DEBUG] invalid json data. Path ['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'] not found in : ".var_export($jsonData, true));
}
} elseif(DEBUG) {
- error_log("DEBUG curl call failed");
+ Summoner::sysLog("[DEBUG] curl call failed");
}
}