reset temporary $levs array on each iteration

also, use rsort(), since $levs isn't associative
remove unused $silent parameter from when cURL was used directly
remove unused $wpdb variable
fix undefined variables in comment.php
fix undefined variables in Formatter.php
fix undefined variables in scaffold.php
fix undefined variables in site.php