<commit_before><?php
defined('C5_EXECUTE') or die("Access Denied.");

class DashboardSystemSeoController extends DashboardBaseController{

	public $helpers = array('form'); 
	
	public function view(){
		$categories = array();
		$c = Page::getCurrentPage();
		$children = $c->getCollectionChildrenArray(true);
		
		foreach($children as $cID) {
			$nc = Page::getByID($cID, 'ACTIVE');
			$ncp = new Permissions($nc);
			if($ncp->canRead()){
				$categories[] = $nc;	
			}
		}				
		
		$this->set('categories', $categories);
	}
}
?><commit_msg>Updated main SEO controller for issue #126<commit_after><?php
defined('C5_EXECUTE') or die("Access Denied.");

class DashboardSystemSeoController extends DashboardBaseController{
	/**
	* Dashboard view - automatically redirects to a default
	* page in the category
	*
	* @return void
	*/
	public function view() {
		$this->redirect('/dashboard/system/seo/urls');
	}
}
?>
{'fraction_non_alphanumeric': 0.15916575192096596, 'fraction_numerical': 0.005488474204171241, 'mean_word_length': 4.6645962732919255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6612894', 'n_tokens_mistral': 321, 'n_tokens_neox': 295, 'n_words': 67}