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(); libxml_use_internal_errors(true); $doc->loadHTMLFile($html); libxml_use_internal_errors(false); $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.082"; 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 ""; echo "Form submitted"; echo ""; echo ""; echo ""; die; } if(isset($_GET["action"])){$action = $_GET["action"];} if($action == "logout"){ if (isset($_COOKIE['logged'])) { unset($_COOKIE['logged']); setcookie('logged', '', time() - 3600, '/'); } sleep(.5); echo ""; echo ""; echo "Logout"; echo ""; echo ""; echo ""; } if($action == "dontbugme"){ setcookie("dontbugme", "true", time() + (86400 * 365), "/"); sleep(.5); echo ""; echo ""; echo "Dont bug me scrub"; echo ""; echo ""; echo ""; } function write_ini_file($content, $path) { if (!$handle = fopen($path, 'w')) { return false; } $success = fwrite($handle, $content); fclose($handle); return $success; } $configfile = 'settings.ini.php'; if(array_key_exists('category-0', $_POST) == true){ foreach ($config as $keyname => $section) { if(($keyname == "general")) { $nopass = $section["password"]; } } if(empty($_POST["password-0"])){ $_POST["password-0"] = $nopass;} if(strlen($_POST["password-0"]) < 50){ $_POST["password-0"] = password_hash($_POST["password-0"], PASSWORD_DEFAULT); } setcookie("logged", $_POST["password-0"], time() + (86400 * 7), "/"); $sampleData .= '; ' . "\r\n"; $getGroup = 0; foreach ($_POST as $parameter => $value) { $splitParameter = explode('-', $parameter); if ($value == "on") $value = "true"; if($splitParameter[0] == "group"){ if($value > $getGroup){ $getGroup++; } } if($splitParameter[0] == "category"){ $sampleData .= "[" . $value . "]\r\n"; }else{ $sampleData .= $splitParameter[0] . " = \"" . $value . "\"\r\n"; } } //$sampleData .= "[groups]\r\n"; $sampleData .= "groups = \"" . $getGroup . "\"\r\n"; if($action == "write"){ write_ini_file($sampleData, $configfile); sleep(.5); echo ""; echo ""; echo "Form submitted"; echo ""; echo ""; echo ""; } } ?>
"; echo "×"; echo "Tip! Choose an option from below to change some settings. Dont Remind Me Again!"; }?>
$section) { if(($keyname == "general")) { echo "
"; echo "
Current Version:[$currentVersion] - GitHub Version: [" . $githubVersion . "]

"; echo "
"; echo ""; echo ""; echo " "; echo "
Title
"; echo "
"; echo "
Password
"; echo "
"; if($section['useicons'] == "true"){echo " ";}else {echo " ";} echo " "; if($section['usemargins'] == "true"){echo " ";}else {echo " ";} echo "
"; echo"
"; echo "
"; echo " "; echo "
Bg 
"; echo ""; echo ""; echo "
"; echo "
Tab Border
"; echo ""; echo ""; echo "
"; echo "
Tab Highlight
"; echo ""; echo ""; echo "
"; echo "
"; echo "
Tab
"; echo ""; echo ""; echo "
"; echo "
Font Color
"; echo ""; echo ""; echo "
"; echo "
Tab  Shadow
"; echo ""; echo ""; echo "
"; echo "
"; echo "
Tab
"; echo ""; echo ""; echo "
"; echo "
Font Color
"; echo ""; echo ""; echo "
"; echo "
Tab  Shadow
"; echo ""; echo ""; echo "
"; echo "
"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
"; } }?>
$section) { if(($keyname !== "general") && ($keyname !== "groups")) { if(!isset($section['group'])){ $section['group'] = "1"; }?>
Name
URL
Group
';}else {echo '';}?> ';}else {echo '';}?> ';}else {echo '';}?>   
$section) { if(($keyname == "groups")) { if($section['groups'] > count($section)){ echo "
"; foreach(range(1,$section['groups']) as $index) { echo " "; echo "
Group-". $alphabet[$index - 1] . "
"; echo "

"; } echo "
"; }else{ echo "
"; foreach(range(1,$section['groups']) as $index) { $groupLetter = $alphabet[$index - 1]; echo " "; echo "
Group-" . $index . "
"; echo "

"; } echo "
"; } } }?>