//function that returns all the pages in the database in an array
functionget_pages()
{
global$db;
$pages=$db->query("SELECT * FROM pages");
$db_page_title=array();
$i=0;
while($row=$pages->fetchArray())
{
$db_page_title[$i]=$row[1];
$i++;
}
return$db_page_title;
}
//function that returns the current page as string; needed in the admin sidebar wrapper template to give the active class and color the active page <li>