1 | <?php |
---|
2 | if (!isset($page_name)) {$page_name ='index';} |
---|
3 | if ($conf['LLGBO_SETTINGS'] [6] = 'true' ) |
---|
4 | {$no_header = false; |
---|
5 | |
---|
6 | $input= $_SERVER['PHP_SELF']; |
---|
7 | if ($conf['question_mark_in_urls'] == true) |
---|
8 | { foreach($_GET as $cle =>$valeur) |
---|
9 | {$input= $input.$cle ;} |
---|
10 | } |
---|
11 | // print_r($input.'----'.$page_name ); |
---|
12 | if ( strpos( $input,'index') == true ) |
---|
13 | { |
---|
14 | if ((strpos( $input,'index.php/') == false ) and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// home |
---|
15 | if ((strpos( $input,'categories') == true ) and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// categories |
---|
16 | if ((strpos( $input,'category') == true ) and ($conf['LLGBO_HEADER'][1] == 'false')) {$no_header = true; } |
---|
17 | if ((strpos( $input,'filter=') == true ) and ($conf['LLGBO_HEADER'][2] == 'false')) {$no_header = true; } |
---|
18 | if ((strpos( $input,'categories/flat') == true ) and ($conf['LLGBO_HEADER'][3] == 'false')) {$no_header = true ;} |
---|
19 | if ((strpos( $input,'categories/posted-monthly-list') == true ) and ($conf['LLGBO_HEADER'][4] == 'false')) {$no_header = true ;} |
---|
20 | if ((strpos( $input,'additional_page') == true ) and ($conf['LLGBO_HEADER'][6] == 'false')) {$no_header = true; } |
---|
21 | if ((strpos( $input,'most_visited') == true ) and ($conf['LLGBO_HEADER'][7] == 'false')) {$no_header = true ;} |
---|
22 | if ((strpos( $input,'best_rated') == true ) and ($conf['LLGBO_HEADER'][8] == 'false')) {$no_header = true; } |
---|
23 | if ((strpos( $input,'list') == true ) and ($conf['LLGBO_HEADER'][9] == 'false')) {$no_header = true; } |
---|
24 | if ((strpos( $input,'recent_pics') == true ) and ($conf['LLGBO_HEADER'][10] == 'false')) {$no_header = true ;} |
---|
25 | if ((strpos( $input,'tags') == true ) and ($conf['LLGBO_HEADER'][11] == 'false')) {$no_header = true; } |
---|
26 | if ((strpos( $input,'created-monthly-list') == true ) and ($conf['LLGBO_HEADER'][12] == 'false')) {$no_header = true;} |
---|
27 | if ((strpos( $input,'favorites') == true ) and ($conf['LLGBO_HEADER'][19] == 'false')) {$no_header = true;} |
---|
28 | if ((strpos( $input,'recent_cats') == true ) and ($conf['LLGBO_HEADER'][20] == 'false')) {$no_header = true;;} |
---|
29 | if ((strpos( $input,'thePiwiShackControllerPage') == true ) and ($conf['LLGBO_HEADER'][21] == 'false')) {$no_header = true;;} |
---|
30 | |
---|
31 | } |
---|
32 | //print_r($_GET.'----'.$page_name ); |
---|
33 | if ( strpos( $input,'index') == false ) |
---|
34 | {if ( $page_name == 'index' and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// home |
---|
35 | if ( $page_name == 'picture' and $conf['LLGBO_HEADER'][5] == 'false') {$no_header = true;}//picture page |
---|
36 | if ( $page_name == 'tags' and $conf['LLGBO_HEADER'][11] == 'false') {$no_header = true;}//tags |
---|
37 | if ( $page_name == 'search' and $conf['LLGBO_HEADER'][13] == 'false') {$no_header = true;}//search |
---|
38 | if ( $page_name == 'comments' and $conf['LLGBO_HEADER'][14] == 'false') {$no_header = true;}//comments |
---|
39 | if ( $page_name == 'about' and $conf['LLGBO_HEADER'][15] == 'false') {$no_header = true;}//about |
---|
40 | if ( $page_name == 'notification' and $conf['LLGBO_HEADER'][16] == 'false') {$no_header = true;}//notification |
---|
41 | if ( $page_name == 'register' and $conf['LLGBO_HEADER'][17] == 'false') {$no_header = true;} //notification |
---|
42 | if ( $page_name == 'identification' and $conf['LLGBO_HEADER'][18] == 'false') {$no_header = true;}//about |
---|
43 | } |
---|
44 | if ($no_header == true) |
---|
45 | {$template->append('head_elements','<!-- llgbo -->'."\n".'<STYLE type="text/css">'."\n".'#theHeader{display: none}'."\n".'header_msgs {position:static}'."\n".'</STYLE>');} |
---|
46 | } |
---|
47 | ?> |
---|