Drupal 7, no toolbar, strange code
Sounds like an incomplete or partially failed install. Delete all the tables in the database and try doing a fresh install. 

Try performing the install with Drush so you can see in real time if there are any errors when writing to the database (look under "Quick installation with Drush"): https://www.drupal.org/documentation/install/developers 

Also make sure you're running PHP 5.3+ and MySQL 5.0.15 or higher with PDO: https://www.drupal.org/requirements