Unable to read settings.ini.php. Did you rename it from example.ini.php?
Error message: ' .$e->getMessage());
}
$html = "https://github.com/causefx/iDashboard-PHP/releases/latest";
$doc = new DOMDocument();
$doc->loadHTMLFile($html);
$xpath = new DomXpath($doc);
$githubChanges = $xpath->query('//div[@class="markdown-body"]//p')->item(0)->nodeValue;
$githubVersion = $xpath->query('//span[@class="css-truncate-target"]')->item(0)->nodeValue;
if(!isset($githubVersion)){
$githubVersion = "null";
}
if(!isset($githubChanges)){
$githubChanges = "null";
}
$currentVersion = "1.081";
foreach ($config as $keyname => $section) {
if(($keyname == "general")) {
$cookiepass = $section["password"];
$backgroundColor = $section["tabcolor"];
}
}
if($currentVersion == $githubVersion){
$alertColor = "info";
$alertTitle = "Up-To-Date!";
$alertText = "Nice, no worries here, you're on the current version :)";
}elseif($githubVersion == "null"){
$alertColor = "warning";
$alertTitle = "Can't Get GitHub Version!";
$alertText = "The Dashboard Failed to check for update! We need to have php-xml enabled.";
}elseif($currentVersion < $githubVersion){
$alertColor = "success";
$alertTitle = "New Version Is Out!";
$alertText = "Looks like it's time to update the dashboard. Download Now ";
}
if($_COOKIE["logged"] !== $cookiepass){
echo "";
echo "