Ignore:
Timestamp:
Jul 7, 2014, 9:26:18 PM (10 years ago)
Author:
gbo
Message:

Release 27..A new admin part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/include/manage_header.php

    r15076 r28990  
    11<?php
     2//----------------------------------------------------   
     3/*      LLGBO Manage header                                        */
     4//----------------------------------------------------
    25if (!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;;}
     6if ($CF_LLGBO['manageheader'])
     7        {$no_header = false;
     8        $input= $_SERVER['PHP_SELF'];
     9        if ($conf['question_mark_in_urls'] == true)
     10                {       foreach($_GET as $cle  =>$valeur)
     11                        {$input= $input.$cle ;}
     12        }
    3013         
    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>');}
     14        if  ( strpos( $input,'index') == true )
     15        {       foreach($CF_LLGBO['HD-dispheader'] as $cle  => $valeur)
     16                        { if ($valeur  == false) {
     17                                        if($cle == 'home' ) {$cle = 'index.php';}
     18                                        if (strpos( $input, $cle) == true )
     19                                                {$no_header = true;}
     20                                        }
     21                        }
     22        }
     23         else
     24        {       
     25                 if (isset($CF_LLGBO['HD-dispheader'][$page_name]) and ($CF_LLGBO['HD-dispheader'][$page_name] == false) ) {$no_header = true;}
     26       
     27        if ($no_header == true)
     28        {$template->append('head_elements','<!-- llgbo -->'."\n".'<STYLE type="text/css">'."\n".'#theHeader{display: none}'."\n".'header_msgs {position:static}'."\n".'</STYLE>');}
    4629}       
    4730?>
Note: See TracChangeset for help on using the changeset viewer.