Unable to read config.ini.php. Did you rename it from config.ini.php-example?

Error message: ' .$e->getMessage()); } $i = 0; $ii = 0; foreach ($config as $keyname => $section) { if(($keyname == "groups")){ if(isset($section['groups'])){ $groupCount = $section['groups']; }else{ $groupCount = "1"; } } } foreach ($config as $keyname => $section) { if(($keyname !== "general" && $section["enabled"]=="true")){ $i++; if(!empty($section["default"]) && $section["default"]=="true"){ $defaulttabuser = "tab$i"; } } if(!empty($section["useicons"]) && ($section["useicons"]=="true")){ $icons = "active"; $guesticons = ""; $adminicons = ""; $swapicons = ""; $refreshicons = ""; } if(!empty($section["usemargins"]) && ($section["usemargins"]=="true")){ $margins = "active"; } if($icons == "active"){ $px = "62px";//80 $pxmobile = "-30px"; }else{ $px = "34px";//50 $pxmobile = "0px"; } if($margins == "active"){ $marginpx = "10px"; $marginborderpx = "0px"; }else{ $marginpx = "0px"; $marginborderpx = "0px"; } //Guest if($_COOKIE["logged"] !== $cookiepass && !empty($section["enabled"]) && ($section["enabled"]=="true") && !empty($section["guest"]) && ($section["guest"]=="true") ) { if($icons == "active"){ $listicons = ""; } $loadedlist .= "
  • " . $keyname . " " . $listicons ."
  • \n"; $loadedurls .= "
    \n"; if(($keyname !== "general" && !empty($section["enabled"]) && $section["enabled"]=="true" && !empty($section["guest"]) && $section["guest"]=="true")){ $ii++; if(!empty($section["default"]) && $section["default"]=="true"){ $defaulttabguest = "tab$ii"; } } } if(isset($groupCount)) { if($icons == "active"){ $listicons = ""; } if($_COOKIE["logged"] == $cookiepass){ foreach(range(1,$groupCount) as $index) { if(!empty($section["enabled"]) && $section["enabled"]=="true" && $section["group"]==$index) { if($index == 1){ //$loadedlist .= ""; $loadedlist .= "
  • " . $keyname . " " . $listicons ."
  • \n"; }elseif($index !== 1 && $index == $index){ $loadedlist .= "
  • " . $keyname . " " . $listicons ."
  • \n"; } $loadedurls .= "
    \n"; //echo "2nd . Name is $keyname Group Count is $groupCount and index is $index\n"; } } } }else{ //Full Access - Now with groups! if($_COOKIE["logged"] == $cookiepass && !empty($section["enabled"]) && ($section["enabled"]=="true")) { if($icons == "active"){ $listicons = ""; } $loadedlist .= "
  • " . $keyname . " " . $listicons ."
  • \n"; $loadedurls .= "
    \n"; } } //General if (empty($title)) $title = 'Manage My HTPC'; if(($keyname == "general")) { $title = $section["title"]; $tabcoloractive = $section["tabcoloractive"]; $fontcoloractive = $section["fontcoloractive"]; $tabcolor = $section["tabcolor"]; $fontcolor = $section["fontcolor"]; $tabshadowactive = $section["tabshadowactive"]; $tabshadow = $section["tabshadow"]; $cookiepass = $section["password"]; $bg = $section["bg"]; $tabborder = $section["tabborder"]; $tabhighlight = $section["tabhighlight"]; } } if($_COOKIE["logged"] !== $cookiepass){ $lasttablist .= "
  • Login" . $guesticons . "
  • \n"; $lasttaburl .= "
    \n"; $defaulttab = $defaulttabguest; } if($_COOKIE["logged"] == $cookiepass){ if($groupCount > 1){ $lasttablist .= "
  • Settings" . $adminicons . "
  • Swap Group" . $swapicons . "
  • \n"; $lasttaburl .= "
    \n"; $lasttaburl .= "
    \n"; }elseif(!isset($groupCount) || $groupCount == 1){ $lasttablist .= "
  • Settings" . $adminicons . "
  • \n"; $lasttaburl .= "
    \n"; } $defaulttab = $defaulttabuser; } if(!file_exists('settings.ini.php')){ $lasttablist = "
  • Setup
  • \n"; $lasttaburl = "
    \n"; } if(empty($defaulttab)){ $defaulttab = "tab1";} ?> <?=$title;?>