$contact_w1 = widget_value($dbc, 'contact-w1'); $contact_w2 = widget_value($dbc, 'contact-w2'); # If a path is not declared then set it to home page $path = get_path(); if (!isset($path['call_parts'][0]) || $path['call_parts'][0] == '') { $path['call_parts'][0] = $home_page; } $pre_url = './'; //if(isset($path['call_parts'][1])) { $pre_url = './../'; } # Constants: DEFINE('D_TEMPLATE', $pre_url . 'themes/' . $site_theme . ''); # Page Setup $page = @data_page($dbc, $path['call_parts'][0]); $post = @data_post($dbc, $path['call_parts'][0]); if (isset($page['id']) != '') { $view = data_page_type($dbc, $page['type']); } # Hit Counter $visitors = "Visitor"; if (empty($_COOKIE['visits'])) { $counterFile = "config/hitcount.txt"; if (file_exists($counterFile)) { $hits = file_get_contents($counterFile); ++$hits; } else { $hits = 1; } if (file_put_contents($counterFile, $hits)) { setcookie("visits", $visitors, time() + 3600); } }
<?php if ($opened['slider'] != 3) { ?> <option value="3" >Slider 3</option><?php } ?> </select> </td> <td> <select class="form-input" name="type" id="type" tabindex="5"> <?php $id = $opened['type']; $selected_type = data_page_type($dbc, $id); if ($id != "") { ?> <option value="<?php echo $opened['type']; ?> "><?php echo $selected_type['label']; ?> </option> <?php } else { ?>