Changeset 4591 for extensions/LLGBO2/main.inc.php
- Timestamp:
- Dec 30, 2009, 11:20:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/main.inc.php
r4578 r4591 2 2 /* 3 3 Plugin Name: Look_like_gbo2 4 Version: 2.0. I4 Version: 2.0.J 5 5 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=251 6 6 Author: Ex-Ftb … … 14 14 /* 2.0.h new languages PL, ES, HU */ 15 15 /* 2.0.i Manage tab for tooltip and frame settings */ 16 /* 2.0.J add sample display and fix bug in admin with chrome */ 16 17 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 17 18 /* création d'une instance de la classe */ 18 19 $obj = new look_like_gbo(); /* class loading */ 19 20 global $conf,$ttvalues,$plugvalues,$frvalues; 20 define ('LLGBO_INFO_VERSION','2.0. Ia');21 define ('LLGBO_INFO_VERSION','2.0.J'); 21 22 define('LLGBO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 22 23 … … 210 211 /* HTML frame */ 211 212 If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) 212 { $bd = 0;213 { $bds = 0; 213 214 $frame_begin =''; 214 215 $frame_end=''; 215 216 for ($x = 1 ;$x < 32 ; $x =$x +2) 216 217 { if ((isset($conf['LLGBO_FRAME'][$x+1])) and ($conf['LLGBO_FRAME'][$x+1] > 0)) // boder value > 0 217 {$frame_begin = '<div style="border: '.$conf['LLGBO_FRAME'][$x+1].'px solid '.$conf['LLGBO_FRAME'][$x].'">'."\n".$frame_begin;218 $bd = $bd+ $conf['LLGBO_FRAME'][$x+1]; //define border sum218 {$frame_begin = '<div id ="llgboframe'.$x.'" style="border: '.$conf['LLGBO_FRAME'][$x+1].'px solid '.$conf['LLGBO_FRAME'][$x].'">'."\n".$frame_begin; 219 $bds = $bds + $conf['LLGBO_FRAME'][$x+1]; //define border sum 219 220 $frame_end = $frame_end .' </div>'; 220 221 } 221 222 } 222 $frame_width = $ThePicture["scaled_width"] + (2 * $bd );223 $frame_height = $ThePicture["scaled_height"] + (2 * $bd );223 $frame_width = $ThePicture["scaled_width"] + (2 * $bds); 224 $frame_height = $ThePicture["scaled_height"] + (2 * $bds); 224 225 $template->assign('FRAME_SIZE','style="width:'.$frame_width .'px; height:'.$frame_height.'px;"'); 225 226 $template->assign('FRAME_BEGIN', $frame_begin);
Note: See TracChangeset
for help on using the changeset viewer.