Jump to content

convict

Member
  • Posts

    1,302
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by convict

  1. index.php

    Replace

    $body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");
    
    
    
    
    With
    
    
    
    $two_column_page = array ('viewDoc','viewCat','viewProd','unsubscribe','taf','login','logout',
    
    'forgotPass','account','profile','changePass','newsletter','dnExpire');
    
    
    
    if (isset($_GET['act']) && in_array(treatGet($_GET['act']),$two_column_page)) {
    
    	$body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index.tpl");
    
    } else {
    
    	$body = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/global/index_home.tpl");
    
    }

    Global template for

    Homepage - skins/<your skin>/styleTemplates/global/index_home.tpl

    Rest (cart except /2 columns anyway/) - skins/<your skin>/styleTemplates/global/index.tpl

  2. Also when I click on server info while logged in as administrator it doesn't show anything, just a blank page on server info.

    Yes, there is a bug.

    This is the right code in admin/misc/info.php

    <?php

    include("../../includes/global.inc.php");

    include_once("../../includes/functions.inc.php");

    $enableSSl = 1;

    include_once("../../includes/sslSwitch.inc.php");

    $sessionDomain = substr($GLOBALS['rootRel'],0, strlen($GLOBALS['rootRel'])-1);

    @ini_set("session.cookie_path",$sessionDomain);

    if($glob['rootRel']=="/"){

    $sessionName = "ccSID";

    } else {

    $sessionName = "ccSID-".md5($glob['rootRel']);

    }

    session_name($sessionName);

    session_start();

    if(isset($_SESSION['ccAdmin'])){

    echo phpinfo();

    }

    ?>

×
×
  • Create New...