Unable to read settings.ini.php. Did you rename it from example.ini.php?
Error message: ' .$e->getMessage());
}
function githubVersion (){
$html = "https://github.com/causefx/iDashboard-PHP/releases/latest";
$doc = new DOMDocument();
$doc->loadHTMLFile($html);
$xpath = new DomXpath($doc);
$version = $xpath->query('//span[@class="css-truncate-target"]')->item(0)->nodeValue;
if(!isset($version)){
$version = "null";
}
return $version;
}
$githubVersion = githubVersion();
$currentVersion = "1.07";
foreach ($config as $keyname => $section) {
if(($keyname == "general")) {
$cookiepass = $section["password"];
$backgroundColor = $section["tabcolor"];
}
}
if($currentVersion == $githubVersion){
$versionText = "You're Up-To-Date!";
$versionIcon = "check";
$versionColor = "#5cb85c";
}elseif($githubVersion == "null"){
$versionText = "Failed to check for update!";
$versionIcon = "question";
$versionColor = "#f0ad4e";
}elseif($currentVersion < $githubVersion){
$versionText = "New Version is out Download Here";
$versionIcon = "times";
$versionColor = "#d9534f";
}
if($_COOKIE["logged"] !== $cookiepass){
echo "";
echo "