Results 1 to 5 of 5

Thread: Default Theme Qestion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    906

    Default

    If you done it, default template will not show. Some users already have cookie set with style defauult, that is why it is showing. To force all users to black, replace include/class.css.php with

    Code:
    <?php
    
    class css
    {
    
        public static function set($css)
        {
            css::validate($css);
    
            $redirect_url = '';
    
            if (isset($_SERVER['HTTP_REFERER']))
            {
                $redirect_url = $_SERVER['HTTP_REFERER'];
            }
    
            if (stripos($redirect_url, VSHARE_URL) === false)
            {
                $redirect_url = VSHARE_URL . '/index.php';
            }
    
            redirect($redirect_url);
        }
    
        public static function validate($css)
        {
    	$css = 'black';
            $_SESSION['CSS'] = $css;
            setcookie('CSS', $css, time() + 2592000); /* expire in 30 days */
        }
    
        public static function cookie()
        {
            $css = 'black';
            css::validate($css);
        }
    }
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  2. #2
    Join Date
    Jan 2011
    Posts
    6

    Default

    that did the trick, thanyou

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •