Changeset 5431 for extensions/lmt
- Timestamp:
- Mar 28, 2010, 9:19:27 PM (14 years ago)
- Location:
- extensions/lmt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lmt/admin/lmt_admin.tpl
r3396 r5431 1 <h2 style="float:right;top:-24px;position:relative;height:auto;font-size:12px;font-weight:normal;">{$plugin.LMT_VERSION}</h2> 1 2 2 <div class="titrePage"> 3 <h2 style="position:absolute;right:0px;top:32px;height:auto;font-size:12px;font-weight:normal;">:: {$plugin.LMT_VERSION} ::</h2> 4 <h2>{'lmt_title'|@translate} <span style="font-size:-1;font-weight:normal;">{$TABSHEET_TITLE}</span></h2> 3 <div style="position:relative;top:-24px;clear:right;"> 5 4 6 {*{$tabsheet}*}7 5 </div> 8 6 9 {*<h3>{$plugin.LMT_TITLE}</h3>*} 7 8 9 <h3>{$plugin.LMT_TITLE}</h3> 10 10 11 11 {$LMT_BODY_PAGE} -
extensions/lmt/lmt_aip.class.inc.php
r4396 r5431 376 376 $sql="SELECT count(element_id) FROM ".CADDIE_TABLE." WHERE user_id = '".$user['id']."'"; 377 377 $result=pwg_query($sql); 378 $nbphotos= mysql_fetch_array($result);378 $nbphotos=pwg_db_fetch_row($result); 379 379 380 380 $author_list_values = array(0); … … 384 384 if($result) 385 385 { 386 while($row= mysql_fetch_array($result))386 while($row=pwg_db_fetch_assoc($result)) 387 387 { 388 388 $author_list_values[]=$row['id']; … … 511 511 if($result) 512 512 { 513 while($row= mysql_fetch_array($result))513 while($row=pwg_db_fetch_assoc($result)) 514 514 { 515 515 $lmt_licence_default_author_values[]=$row['id']; … … 616 616 if($result) 617 617 { 618 if( mysql_affected_rows()==1)618 if(pwg_db_changes()==1) 619 619 { 620 620 $this->display_result(l10n("lmt_author_deleted"), true); … … 625 625 if($result) 626 626 { 627 $nbimages= mysql_affected_rows();627 $nbimages=pwg_db_changes(); 628 628 if($nbimages>0) 629 629 { … … 684 684 if($result) 685 685 { 686 while($row= mysql_fetch_array($result))686 while($row=pwg_db_fetch_assoc($result)) 687 687 { 688 688 $datas["author_list"][]=array( … … 715 715 if($result) 716 716 { 717 while($row= mysql_fetch_array($result))717 while($row=pwg_db_fecth_assoc($result)) 718 718 { 719 719 $datas=array( … … 879 879 if($result) 880 880 { 881 while($row = mysql_fetch_array($result))881 while($row = pwg_db_fetch_assoc($result)) 882 882 { 883 883 $filenfo = pathinfo($row['path']); … … 919 919 $sql="select FOUND_ROWS()"; 920 920 $result=pwg_query($sql); 921 $nb= mysql_fetch_array($result);921 $nb=pwg_db_fetch_row($result); 922 922 923 923 $pages_navigation = new pages_navigation(); … … 982 982 if($result) 983 983 { 984 while($row = mysql_fetch_array($result))984 while($row = pwg_db_fetch_assoc($result)) 985 985 { 986 986 $filenfo = pathinfo($row['path']); … … 1021 1021 $sql="select FOUND_ROWS()"; 1022 1022 $result=pwg_query($sql); 1023 $nb= mysql_fetch_array($result);1023 $nb=pwg_db_fetch_row($result); 1024 1024 1025 1025 $pages_navigation = new pages_navigation(); -
extensions/lmt/lmt_root.class.inc.php
r4396 r5431 296 296 if($result) 297 297 { 298 while($row= mysql_fetch_array($result))298 while($row=pwg_db_fetch_assoc($result)) 299 299 { 300 300 $return=array( … … 321 321 if($result) 322 322 { 323 while($row= mysql_fetch_array($result))323 while($row=pwg_db_fetch_assoc($result)) 324 324 { 325 325 $return["aut_text1"]=$row['text1']; … … 345 345 { 346 346 $returned=array(); 347 while($row= mysql_fetch_assoc($result))347 while($row=pwg_db_fetch_assoc($result)) 348 348 { 349 349 array_push($returned, $row); -
extensions/lmt/main.inc.php
r4396 r5431 2 2 /* 3 3 Plugin Name: LMT 4 Version: 1. 1.04 Version: 1.2.0 5 5 Description: Appliquer une licence sur ses photos / Apply a licence on photos 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=282 … … 42 42 | | | * mantis : feature 1295 43 43 | | | Compatibility with theme 'montblanc' 44 | | |44 | 1.2.0 | 2010/03/28 | * compatibility with Piwigo 2.1 45 45 | | | 46 46 | | | … … 76 76 define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/'); 77 77 78 define('LMT_VERSION' , '1. 1.0'); // => ne pas oublier la version dans l'entête !!78 define('LMT_VERSION' , '1.2.0'); // => ne pas oublier la version dans l'entête !! 79 79 80 80 global $prefixeTable; -
extensions/lmt/maintain.inc.php
r3396 r5431 14 14 if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } 15 15 16 define('LMT_DIR' , basename(dirname(__FILE__)));17 define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/');16 if(!defined('LMT_DIR')) define('LMT_DIR' , basename(dirname(__FILE__))); 17 if(!defined('LMT_PATH')) define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/'); 18 18 19 19 //ini_set('error_reporting', E_ALL); … … 29 29 { 30 30 @include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/main.inc.php'); 31 // need GPC release greater or equal than 2.0. 232 if(checkGPCRelease(2,0, 2))31 // need GPC release greater or equal than 2.0.5 32 if(checkGPCRelease(2,0,5)) 33 33 { 34 34 @include_once('lmt_install.class.inc.php'); … … 39 39 function gpcMsgError(&$errors) 40 40 { 41 array_push($errors, sprintf(l10n('lmt_gpc2_not_installed'), "2.0. 2"));41 array_push($errors, sprintf(l10n('lmt_gpc2_not_installed'), "2.0.5")); 42 42 } 43 43 // ----------------------------------------------------------------------------- … … 49 49 50 50 51 function plugin_install($plugin_id, $plugin_version, &$errors) 51 function plugin_install($plugin_id, $plugin_version, &$errors) 52 52 { 53 53 global $prefixeTable, $gpc_installed;
Note: See TracChangeset
for help on using the changeset viewer.