Changeset 6241 for extensions/LLGBO2/admin/llgbo_admin.php
- Timestamp:
- May 19, 2010, 6:53:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/admin/llgbo_admin.php
r6234 r6241 2 2 // +-----------------------------------------------------------------------+ 3 3 // | Plugin Name : Look_Like_GBO 2 | 4 // | Plugin Version : 2. 0|4 // | Plugin Version : 2.1.A | 5 5 // | File Version : 0.1 | 6 6 // | Plugin Version author : Ex-FTB | … … 135 135 if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';} 136 136 if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';} 137 $_POST['llgbo_hdlightbox'] = 'false';137 if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';} 138 138 // 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 143 150 if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10 144 151 $param_llgbo = array($_POST['llgbo_frame'], … … 147 154 $_POST['llgbo_title_frame'], $_POST['llgbo_header'], 148 155 $_POST['llgbo_maintain_header'], $_POST['llgbo_allinfo'], 149 $_POST['llgbo_hd lightbox'] ,$_POST['llgbo_always_displayexif']156 $_POST['llgbo_hdShadowbox'] ,$_POST['llgbo_always_displayexif'] 150 157 ); 151 158 $llgbo_new_value = implode ("," , $param_llgbo); … … 181 188 {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));} else { $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 182 189 if ($conf['LLGBO_SETTINGS'][9] == 'true') 183 {$template->assign(array( 'LLGBO_HD LIGHTBOX' => 'true'));} else { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}190 {$template->assign(array( 'LLGBO_HDShadowbox' => 'true'));} else { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));} 184 191 if ($conf['LLGBO_SETTINGS'][10] == 'true') 185 192 {$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.