How to change look on you site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to change look on you site

    Add this code to your page:
    Code:
    <?php
    if(isset($_GET['style']) and file_exists($_GET['style'] .'.css')) {
        setcookie('style', $_GET['style'] . '.css', time()+365*24*60*60, '/');
    }
    
    $style = isset($_COOKIE['style']) ? $_COOKIE['style'] : 'default.css';
    ?>
    and this in <head>:
    Code:
    <link href="<?php echo $style; ?>" rel="stylesheet" type="text/css">
    the link will be like this: yourdomain.com

    #2
    Gud lol...............

    Comment

    Working...
    X