add('SITENAME', instaDisc_getConfig('siteName')); if (instaDisc_isAdmin($_SESSION['username'])) { $users = instaDisc_getAllUsers(); } else { header('Location: index.php'); exit; } $i=0; $j=0; for ($i=0;isset($users[$i]);$i++) { $j++; } $j--; for ($i=0;$i<$j;$i++) { $template->adds_block('USERS', array( 'USERNAME' => $users[$i]['username'], 'ID' => $users[$i]['id'])); } $template->display(); ?>