<?php 
    
    # Control panel theme
    include_once 'data_connect.php';
    include_once 'log.php';
    

    $current_user_info = get_account($_SESSION['userID']);
    $user_theme = $current_user_info['theme'];
    

    if ($user_theme != 'light') {
        
        print '<link rel="stylesheet" type="text/css" href="cmdark.css">'.PHP_EOL;
        $user_theme = 'cmdark';
    
    }
    
    else
        $user_theme = 'light';
        
        
        
    if (isset($current_user_info['animations']) && $current_user_info['animations'] == 'off')
        print '<link rel="stylesheet" type="text/css" href="cmanim.css">'.PHP_EOL


?>