Changeset 9066 for extensions/GrumPluginClasses/classes
- Timestamp:
- Feb 2, 2011, 7:49:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/classes/GPCCore.class.inc.php
r9034 r9066 3 3 /* ----------------------------------------------------------------------------- 4 4 class name : GPCCore 5 class version : 1.3. 26 plugin version : 3.4. 07 date : 2011-0 1-285 class version : 1.3.3 6 plugin version : 3.4.4 7 date : 2011-02-02 8 8 ------------------------------------------------------------------------------ 9 9 author: grum at piwigo.org … … 42 42 | | | 43 43 | | | * mantis bug:2167 44 | | | 45 | 1.3.4 | 2011/02/02 | * mantis bug:2170 46 | | | . File path for RBuilder registered plugins is corrupted 47 | | | 48 | | | * mantis bug:2178 49 | | | . RBuilder register function don't work 50 | | | 51 | | | * mantis bug:2179 52 | | | . JS file loaded in wrong order made incompatibility 53 | | | with Lightbox, GMaps & ASE plugins (and probably other) 54 | | | 44 55 | | | 45 56 | | | … … 96 107 Array('name' => "GPCAjax", 'version' => "3.0.0"), 97 108 Array('name' => "GPCCategorySelector", 'version' => "1.0.1"), 98 Array('name' => "GPCCore", 'version' => "1.3. 3"),109 Array('name' => "GPCCore", 'version' => "1.3.4"), 99 110 Array('name' => "GPCCss", 'version' => "3.0.0"), 100 111 Array('name' => "GPCPagesNavigation", 'version' => "2.0.0"), … … 224 235 } 225 236 237 $conf[$pluginName.'_config']=serialize($config); 238 226 239 return(true); 227 240 } … … 267 280 static public function saveConfig($pluginName, $config) 268 281 { 282 global $conf; 283 269 284 $sql="REPLACE INTO ".CONFIG_TABLE." 270 285 VALUES('".$pluginName."_config', '" 271 . serialize($config)."', '')";286 .pwg_db_real_escape_string(serialize($config))."', '')"; 272 287 $result=pwg_query($sql); 273 288 if($result) 274 { return true; } 289 { 290 $conf[$pluginName.'_config']=serialize($config); 291 return true; 292 } 275 293 else 276 { return false; } 294 { 295 return false; 296 } 277 297 } 278 298 … … 364 384 if(!array_key_exists($id, $template->known_scripts) and !array_key_exists($file, self::$headerItems['js'])) 365 385 { 366 $template->known_scripts[$id]=$file; 386 $dummy=null; 387 388 $template->func_known_script( 389 array('id'=>$id, 390 'src'=>$file), 391 $dummy); 392 //$template->known_scripts[$id]=$file; 367 393 self::$headerItems['js'][$id]=$file; 368 394 } … … 383 409 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.$file.'"/>'); 384 410 } 385 411 /* 386 412 foreach(self::$headerItems['js'] as $file) 387 413 { … … 389 415 $template->block_html_head(null, '<script type="text/javascript" src="'.$file.'"></script>', $dummy1, $dummy2); 390 416 } 417 */ 391 418 } 392 419 … … 454 481 self::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/packed/ui.slider.packed.js'); 455 482 self::addHeaderJS('jquery.ui.draggable', 'themes/default/js/ui/packed/ui.draggable.packed.js'); 456 self::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/packed/ui. slider.dialog.js');483 self::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/packed/ui.dialog.packed.js'); 457 484 self::addHeaderJS('gpc.inputText', GPC_PATH.'js/ui.inputText'.self::$minified.'.js'); 458 485 self::addHeaderJS('gpc.inputNum', GPC_PATH.'js/ui.inputNum'.self::$minified.'.js');
Note: See TracChangeset
for help on using the changeset viewer.