csstheme.php

File Type: php File Location: monofiles/ File name: csstheme.php
<?php 
    
    
include_once 'data_connect.php';
    
    
$rt 'style/'.$_SESSION['userID'];
    
    
    
// multiple themes
    /*
    
        $styles = array('cmdark.css');
        
        foreach ($styles as $css)
            
            if (is_file($rt.'/'.$css)) {
                
                print '<link rel="stylesheet" type="text/css" href="'.$rt.'/'.$css.'">'.PHP_EOL;
                $usr_theme = $css;
            
            }
            
    */
    // END
    
    
    
    
if (is_file($rt.'/cmdark.css')) {
            
        print 
'<link rel="stylesheet" type="text/css" href="'.$rt.'/cmdark.css">'.PHP_EOL;
        
        
$usr_theme 'cmdark.css';
        
    }
?>