Ignore:
Timestamp:
May 19, 2010, 6:53:38 PM (14 years ago)
Author:
EXFTB
Message:

daily correction for 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/admin/llgbo_admin.php

    r6234 r6241  
    22// +-----------------------------------------------------------------------+
    33// | Plugin Name : Look_Like_GBO  2                                                              |
    4 // | Plugin Version : 2.0                                                                                    |
     4// | Plugin Version : 2.1.A                                                                                    |
    55// | File Version : 0.1                                                                                       |
    66// | Plugin Version author : Ex-FTB                                                               |
     
    135135        if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
    136136        if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
    137     $_POST['llgbo_hdlightbox'] = 'false';
     137    if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';}
    138138        // compliance HD Shadowbox
    139         $query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
    140    $result = pwg_query($query);
    141    while ($row = pwg_db_fetch_assoc($result))
    142                 { $_POST['llgbo_hdlightbox'] = 'true';} 
     139          $shadowbowactive = 0;
     140          $query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
     141      $result = pwg_query($query);
     142          while ($row = pwg_db_fetch_assoc($result))
     143                { $shadowbowactive = 1;} 
     144        if ($shadowbowactive == 0)
     145                { if ($_POST['llgbo_hdShadowbox'] != 'false')
     146                {$lang['llgbo_hdShadowbox'] =  ' * * * * '.$lang['llgbo_hdShadowbox'].' * * * * '; }
     147                $_POST['llgbo_hdShadowbox'] = 'false';
     148                }
     149       
    143150        if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10   
    144151         $param_llgbo = array($_POST['llgbo_frame'],
     
    147154                                $_POST['llgbo_title_frame'],                    $_POST['llgbo_header'],
    148155                                $_POST['llgbo_maintain_header'],                        $_POST['llgbo_allinfo'],
    149                                 $_POST['llgbo_hdlightbox']      ,$_POST['llgbo_always_displayexif']
     156                                $_POST['llgbo_hdShadowbox']     ,$_POST['llgbo_always_displayexif']
    150157                        );               
    151158        $llgbo_new_value = implode ("," , $param_llgbo);
     
    181188          {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));}
    182189        if ($conf['LLGBO_SETTINGS'][9] == 'true')
    183           {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}
     190          {$template->assign(array( 'LLGBO_HDShadowbox' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));}
    184191        if ($conf['LLGBO_SETTINGS'][10] == 'true')
    185192          {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
Note: See TracChangeset for help on using the changeset viewer.