Problem i really retarded
As you can see i set all properly
defined('_IN_JOHNCMS') or die('Error:restricted access');
if (isset($_COOKIE['the']))
{
$the = $_COOKIE['the'];
}
elseif (!$is_mobile)
{
$the = 'web';
} else {
$the = 'wap';
}
if ($the == 'web')
{
$version = 'style';
$vers = 'head_web.php';
$end_vers = 'end_web.php';
$main_menu = 'mainmenu2.php';
}
if ($the == 'wap')
{
$version = 'theme';
$vers = 'head_wap.php';
$end_vers = 'end_wap.php';
$main_menu = 'mainmenu.php';
}
require_once (''.$vers.'');but still showing mainmenu for wap