connect_error); $page = preg_replace('/[^a-z0-9\-]/','',$page); $pagetitle = preg_replace('/[^a-z0-9\-]/','%',$page); if($page == 'contact' && $config['v'] < '2.3.4') $page = 'contactus'; if(!in_array($page, $config['all_modules'])){ $sql = "select id from $multitable where title like '%$pagetitle%' or custom_url like '$page' order by id desc limit 0,1"; $result = $mysqli->query($sql); $total = $mysqli->affected_rows; if($total == 1){ $row = $result->fetch_array(MYSQLI_ASSOC); $foundpage = find_this_page($row['id']); slab_refresh($foundpage); } else { slab_whack_hack($page,$table_prefix); } } $subpages = array('downloads','gigs'); $newpage = array('resources','calendar'); if(isset($config['slab_seo']) && $config['v'] < '2.3.4') include $common_path.'/seo/meta.php'; // keep this here! 2009-09-09 /* if($config['slab500_tracking']){ // only by demand - too huge. $userid = intval($_SESSION['SLAB500_userid']); if(empty($_SESSION['SLAB500_visitor'])){ session_register('SLAB500_visitor'); $_SESSION['SLAB500_visitor'] = session_id(); } // if there is no unique session for this visitor, create one. $session = $_SESSION['SLAB500_visitor']; $query = preg_replace('/[^a-z0-9\-\?=&\.%;]/i','',$_SERVER['QUERY_STRING']); $sql = "insert into zz_tracking set prefix = '$table_prefix', type = 'page view', session = '$session', userid = $userid, query = '$query', updated = now()"; if($session) $trackit = $mysqli->query($sql) or die(mysql_error()); } */ // quick display DEPRICATED? /* if(!$_GET['page'] && !$_GET['family'] && !$_GET['category'] && !$_GET['display'] && ($_GET['d'] || $_GET['c'])){ if(is_numeric($_GET['d'])) $getquickresult = mysql_query("select id from $multitable where id = ".intval($_GET['d'])." limit 0,1 ") or die('could not quick select'); elseif(!is_numeric($_GET['c'])) $getquickresult = mysql_query("select id from $multitable where category like '%".clean_it($_GET['c'])."' limit 0,1 ") or die('could not quick select'); $row = mysql_fetch_row($getquickresult); $foundpage = find_this_page($row[0]); if($_GET['page'] != '404') slab_refresh($foundpage); else echo 'not found'; } // if quick display */ //for custom_url //if($_GET['p']) // $page = 'p'; $mysqli->close(); ?>
Because you have always_show_menu_images set, this option is disabled.'; else $menuimagesdisabled = ''; $configurables = array( 'bio_display_limit' => array('number','ENTRY STACK NUMBER','The maximum number of entries you want to stack in the content area of the first page of this section.'), 'bio_increment' => array('number','SUB NAV NUMBER','The maximum number of entries you want to show in the sub-navigation for this section'), 'bio_menu_photo' => array('truefalse','SUB NAV IMAGES','Show images in the sub-navigation for this section.'.$menuimagesdisabled), ); // dbfield => array(type,label,size,mods,options,description) $multifields = array( 'featured' => array('radio','set','full',NULL,$config['featured_options'], $config['multifield_descriptions']['featured']), 'family' => array('catfam',$input_family,'full', NULL, NULL, $config['multifield_descriptions']['family']), 'category' => array('catfam',$input_category,'full', NULL,NULL, $config['multifield_descriptions']['category']), 'display_order' => array('order',$input_display_order,'half',NULL,NULL, $config['multifield_descriptions']['display_order']), 'title' => array('text',$input_title,'full', NULL,NULL, $config['multifield_descriptions']['title']), 'title1' => array('text',$input_title1,'full', NULL, NULL, $config['multifield_descriptions']['title1']), 'file_name' => array('file','main '.$input_file,'threequarters', NULL, NULL, $config['multifield_descriptions']['file_name']), 'alt' => array('text','alt text for image','quarter', NULL, NULL, $config['multifield_descriptions']['alt']), 'file_placement' => array('radio','image placement','quarter', NULL, $config['file_placements'], $config['multifield_descriptions']['file_placement']), 'caption' => array('body','image caption','quarter', 'short', NULL, $config['multifield_descriptions']['caption']), 'body' => array('body',$input_body,'full', 'editor', NULL, $config['multifield_descriptions']['body']), 'extrafiles' => array('extrafiles',$input_extrafiles_name, 'full', $input_extrafiles, NULL, $config['multifield_descriptions']['extrafiles']), 'url1' => array('text',$input_url1,'half', NULL, NULL, $config['multifield_descriptions']['url1']), 'url1name' => array('text',$input_url1.' label','half', NULL, NULL, $config['multifield_descriptions']['url1name']), 'url2' => array('text',$input_url2,'half', NULL, NULL, $config['multifield_descriptions']['url2']), 'url2name' => array('text',$input_url2.' label','half', NULL, NULL, $config['multifield_descriptions']['url2name']), 'title4' => array('text',$input_title4,'full', NULL, NULL, $config['multifield_descriptions']['title4']), 'custom_url' => array('text',$input_custom_url,'full', NULL, NULL, $config['multifield_descriptions']['custom_url']), ); ?>connect_error); $sqlcc = "select * from $multitable where module like 'contact' and featured < 5 order by display_order asc"; $resultcc = $mysqli->query($sqlcc) or die($sqlcc); $totalcc = $mysqli->affected_rows; if($totalcc){ $context = 'http://schema.org'; $type = 'Organization'; $url = $config['full_url']; $atttype = 'ContactPoint'; $scriptstart = ''; $innerscript = $script1.$script2.$script3; $innerscript = substr($innerscript,0,-4); $innerscript .= ']'."\r\n"; echo $scriptstart.$innerscript.$scriptend; } // total ?>