<?php
echo '<pre>';
$f = '/home/brenopai/public_html/brenopaiva.com.br/sistema/application/modules/admin/views/template/header.php';
$lines = file($f);
$total = count($lines);
echo "Total linhas: $total\n\n";
// Show menu section
foreach($lines as $i=>$l) {
    if(strpos($l,'sidebar')!==false || strpos($l,'nav-sidebar')!==false ||
       strpos($l,'financeiro')!==false || strpos($l,'diligenc')!==false ||
       strpos($l,'reports')!==false || strpos($l,'relat')!==false ||
       strpos($l,'check_user_role')!==false || strpos($l,'user_role')!==false ||
       strpos($l,'notification')!==false || strpos($l,'settings')!==false) {
        echo ($i+1).": ".htmlspecialchars($l);
    }
}
echo '</pre>';
