//Load configuration $config_file = __DIR__ . '/../custom/config.yml'; if (is_file($config_file)) { $conf = Spyc::YAMLLoad($config_file); $PlanetConfig = new PlanetConfig($conf); } else { die('Config file (custom/config.yml) is missing.'); } //Instantiate app $Planet = new Planet($PlanetConfig); //Load if (0 < $Planet->loadOpml(__DIR__ . '/../custom/people.opml')) { $Planet->loadFeeds(); $items = $Planet->getItems(); } $everyone = $Planet->getPeople(); $count_feeds = count($everyone); $page_id = 'admin-feed'; $footer_extra = <<<FRAGMENT <script> var allCheckboxes = function(status){ var form = document.getElementById('feedmanage'); var selectboxes = form.getElementsByTagName('input'); for (var i=0; i<selectboxes.length; i++){ if ('checkbox' == selectboxes[i].type){ selectboxes[i].checked = status; } } } window.onload = function(){