Beispiel #1
0
        if ($_POST['username'] == credential(0) && check_pass($_POST['password'], credential(1))) {
            $_SESSION['loggedin'] = 1;
            header('location: ' . $_SERVER['HTTP_REFERER']);
        } else {
            if ($_POST['username'] != credential(0) || !check_pass($_POST['password'], credential(1))) {
                $err[] = 'Wrong username and/or password!';
            }
        }
    }
}
/* End Auth */
/* Initiate Program */
$keywords = '';
if (isset($_GET['q']) && $_GET['q'] != '') {
    $h1 = search_title();
    $title = search_title();
    $body_class = 'search';
    $keywords = 'search, search result, search results, tìm kiếm, kết quả tìm kiếm';
} else {
    if (!isset($_GET['p']) || $_GET['p'] == 'home') {
        $h1 = can_wish() ? birthday_title() : home_title();
        $title = can_wish() ? birthday_title() : home_title();
        if ($embed == 0 && has_dob()) {
            $body_class = 'home has_dob';
        } else {
            if ($embed == 0) {
                $body_class = 'home';
            } else {
                if ($embed == 1) {
                    $body_class = 'embed';
                }
Beispiel #2
0
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">
    <div class="row" style="padding-left:20px;padding-right:20px;">
        <ul class="list-inline nav navbar-nav">
            <li><h3 class="filter-search" style="color:#484a49;"><?php 
echo search_title();
?>
</h3></li>
            <li></li>
        </ul>  
        <div class="nav navbar-nav navbar-right"> 
            <!--     START sort by       -->
                <span class="see_by">
                    <?php 
$orders = osc_list_orders();
$current = '';
foreach ($orders as $label => $params) {
    $orderType = $params['iOrderType'] == 'asc' ? '0' : '1';
    if (osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) {
        $current = $label;
    }
}
?>
                  <style>
                        .btn-dropdown {
                           color: #CCC;
                           background-color: #f6f6f6;
                           border-color: #CCC;
                           border:2px solid #CCC;
                           margin-right: 15px;
                           padding-left:35px;
                           padding-right:35px;
Beispiel #3
0
                    });
                });
    </script>
<?php 
}
osc_current_web_theme_path('header.php');
?>

<div class="row">
  <?php 
osc_current_web_theme_path('search-sidebar.php');
?>
  <div class="col-sm-8 col-md-9">
    <div class="title">
      <h1><?php 
echo search_title() != "" ? search_title() : '&nbsp;';
?>
</h1>
    </div>
    <div class="toolbar">
      <div class="sorting"> <a href="<?php 
echo osc_esc_html(osc_update_search_url(array('sShowAs' => 'list')));
?>
" class="list-button <?php 
if (osclasswizards_show_as() == 'list') {
    echo "active";
}
?>
" data-class-toggle="listing-grid" data-destination="#listing-card-list"><span> <i class="fa fa-th-list"></i> </span></a> <a href="<?php 
echo osc_esc_html(osc_update_search_url(array('sShowAs' => 'gallery')));
?>