$db_conn, 'is_adm'=>0, 'showfuture'=>$showfuture, 'tp'=>$tp, 'main_pg_format'=>1)); $cats = $events_list->get_cats(); $eventslist = $events_list->get_events_list(); $num_events = $events_list->num_events_forthcoming(); list($file, $voided) = explode("?", $_SERVER['REQUEST_URI']); $cgi = $_SERVER['REQUEST_METHOD'] == 'GET' ? $_GET : $_POST; reset ($cgi); $cgi['grp_id'] = $grp_id; while (list($key, $val) = each($cgi)) { if ($val) { $query_string .= '&'.$key.'='.$val; } } if (IS_ADM_PG === 1) { check_auth('adm'); } $_SESSION['iurl'] = $file.'?'.$query_string; /* echo'
';
print_r($_SESSION);
echo'
'; */ $db_conn = &db_conn(2); $_SESSION['baseurl'] = $baseurl; if ($use_pathvars) { // Create instance of PathVars $pathVars=new PathVars($baseurl); $thread_id = clean($pathVars->fetchByIndex(0), 6); } $cnt1 = &new nw_content(array('grp_id'=>$grp_id, 'show_edit'=>(SHOW_EDIT===1?1:0), 'thread_id'=>$thread_id, 'baseurl' => $baseurl, 'db_conn'=>$db_conn, 'use_get_vars_x'=>$use_get_vars_x)); /* $baseurl = '/tips'; $cnt2 = &new nw_content(array('grp_id'=>12, 'show_edit'=>(SHOW_EDIT===1?1:0), 'thread_id'=>$thread_id, 'baseurl' => $baseurl, 'db_conn'=>$db_conn, 'use_get_vars_x'=>$use_get_vars_x)); */ $title = $cnt1->get_group_title(); if (!$pg_title) {$pg_title = $title;} if (IS_ADM_PG === 1) { $tmpl1arr['css'][] = '/s/moveit.css'; $tmpl1arr['css'][] = '/s/adm.css'; } $tmpl1arr['css'][] = '/s/home_08jul09.css'; $tmpl1arr['css'][] = '/s/atomic.css'; $tmpl1arr['css'][] = '/s/th.css'; $tmpl1arr['css'][] = '/s/form.css'; tmpl1('', $tmpl1arr); echo ' '; tmpl2(''); //echo '$_SESSION[\'iurl\']: "'.$_SESSION['iurl'].'"
'; echo '
'; if (IS_ADM_PG === 1) { $cnt1->echo_grp_adm(); } else { $features = array( 1 => array('name'=>'About WoodNet','url'=>'/about/'), 2 => array('name'=>'WoodLots', 'url'=>'/woodlots/'), 3 => array('name'=>'Training & Events', 'url'=>'/events/'), 4 => array('name'=>'Woodland Enterprise Centre', 'url'=>'/wec/'), 5 => array('name'=>'Technology', 'url'=>'/articles/timber-technology/'), 6 => array('name'=>'Woodland Management', 'url'=>'/articles/woodland-management/'), 7 => array('name'=>'Timber Build', 'url'=>'/articles/timber-build/'), 8 => array('name'=>'Heating with Wood', 'url'=>'/articles/heating-with-wood/'), ); echo '
'; echo '
'; echo "\n\n".'
    '; $i = 0; foreach ($features as $key=>$val) { $i++; if ($i==5) { //echo '
'."\n\n"; //echo '
 
'; echo '
'; echo '
'; } /* if ($title && $show_heading) { echo '

'.$title.'

'; } */ /* if (IS_ADM_PG === 1) { echo '
 
'; } */ echo '
 
'; $cnt1->echo_content(); echo '
'; echo '
'; echo '

Latest Courses & Events »  ('.$num_events.' events)

'; echo $eventslist; echo '
'; include_once(IRERU.'/adv/woodlots_f.php'); $adverts = &new adverts(array('iss_id'=>CUR_ISSUE_NO, 'display_format'=>'online', 'main_pg'=>1)); $num_adv = $adverts->num_ads(); echo '
'; echo '
'; echo '

WoodLots Directory »  ('.$num_adv.' listings)

'; $adverts->show_ads(); echo '
'; echo '
'; echo '
'; echo '
'; //include_once(IRERU.'/events/eventsbox.php'); /* $sql = 'SELECT * FROM ev_events WHERE ev_hide_on_main_pg_x !=1 AND UNIX_TIMESTAMP(ev_start) > UNIX_TIMESTAMP(NOW()) ORDER BY ev_start ASC LIMIT 3'; $result = mysql_query($sql); if (mysql_num_rows($result)) { echo '
'; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo '
'.$row['ev_title'].'
'; } echo '
'; } */ $cnt2 = &new nw_content(array('grp_id'=>11, 'show_edit'=>(SHOW_EDIT===1?1:0), 'thread_id'=>$thread_id, 'baseurl' => $baseurl, 'db_conn'=>$db_conn, 'use_get_vars_x'=>$use_get_vars_x)); if ($cnt2->entries_exist()) { echo '
'; echo '

News

'; $cnt2->echo_content(); echo '
'; } tmpl3(); ?>