Changeset 5433 for extensions
- Timestamp:
- Mar 28, 2010, 9:46:42 PM (14 years ago)
- Location:
- extensions/UserStat
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserStat/admin/userstat_admin.tpl
r4270 r5433 1 <div class="titrePage"> 2 <h2 style="position:absolute;right:0px;top:32px;height:auto;font-size:12px;font-weight:normal;">:: {$plugin.USERSTAT_VERSION} ::</h2> 3 <h2>{'us_titlePage'|@translate} <span style="font-size:-1;font-weight:normal;">{$TABSHEET_TITLE}</span></h2> 1 <h2 style="float:right;top:-24px;position:relative;height:auto;font-size:12px;font-weight:normal;">{$plugin.USERSTAT_VERSION}</h2> 4 2 5 {$tabsheet} 3 <div style="position:relative;top:-24px;clear:right;"> 6 4 </div> 7 5 8 {if isset($datas)} 9 {$datas.USERSTAT_NFO_STAT} 10 <h3>{$datas.L_STAT_TITLE}</h3> 11 12 {/if} 6 {$tabsheet} 13 7 14 8 {$USERSTAT_BODY_PAGE} -
extensions/UserStat/admin/userstat_global.tpl
r4270 r5433 53 53 {foreach from=$datas.templatesUsers key=name item=data} 54 54 <tr class="StatTableRow"> 55 <td>{$data.t emplate}</td>55 <td>{$data.theme}</td> 56 56 <td>{$data.nbUsers}</td> 57 57 </tr> -
extensions/UserStat/main.inc.php
r4273 r5433 2 2 /* 3 3 Plugin Name: UserStat 4 Version: 1. 0.04 Version: 1.1.0 5 5 Description: Statistiques utilisateurs / Users statistics 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=321 … … 24 24 | release | date | 25 25 | 1.0.0 | 2009/11/15 | * first public release 26 | | |26 | 1.1.0 | 2010/03/28 | * compatibility with Piwigo 2.1 27 27 | | | 28 28 | | | … … 54 54 define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/'); 55 55 56 define('USERSTAT_VERSION' , '1. 0.0'); // => ne pas oublier la version dans l'entête !!56 define('USERSTAT_VERSION' , '1.1.0'); // => ne pas oublier la version dans l'entête !! 57 57 58 58 global $prefixeTable; -
extensions/UserStat/maintain.inc.php
r4270 r5433 16 16 if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } 17 17 18 define('USERSTAT_DIR' , basename(dirname(__FILE__)));19 define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/');18 if(!defined('USERSTAT_DIR')) define('USERSTAT_DIR' , basename(dirname(__FILE__))); 19 if(!defined('USERSTAT_PATH')) define('USERSTAT_PATH' , PHPWG_PLUGINS_PATH . USERSTAT_DIR . '/'); 20 20 21 21 … … 23 23 24 24 /* ----------------------------------------------------------------------------- 25 AStat-2needs the Grum Plugin Classe25 UserStat needs the Grum Plugin Classe 26 26 ----------------------------------------------------------------------------- */ 27 27 $gpc_installed=false; … … 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. 132 if(checkGPCRelease(2,0, 1))31 // need GPC release greater or equal than 2.0.5 32 if(checkGPCRelease(2,0,5)) 33 33 { 34 34 @include_once("userstat_aim.class.inc.php"); … … 39 39 function gpcMsgError(&$errors) 40 40 { 41 array_push($errors, sprintf(l10n('us_gpc2_not_installed'), "2.0. 1"));41 array_push($errors, sprintf(l10n('us_gpc2_not_installed'), "2.0.5")); 42 42 } 43 43 // ----------------------------------------------------------------------------- -
extensions/UserStat/userstat_aip.class.inc.php
r4270 r5433 201 201 if($result) 202 202 { 203 while($row= mysql_fetch_assoc($result))203 while($row=pwg_db_fetch_assoc($result)) 204 204 { 205 205 $row['indent']=substr_count($row['global_rank'], '.'); … … 243 243 if($result) 244 244 { 245 $row= mysql_fetch_assoc($result);245 $row=pwg_db_fetch_assoc($result); 246 246 return($row["username"]); 247 247 } … … 277 277 if($result) 278 278 { 279 while($row= mysql_fetch_row($result))279 while($row=pwg_db_fetch_row($result)) 280 280 { 281 281 $returned[]=Array( … … 304 304 if($result) 305 305 { 306 while($row= mysql_fetch_assoc($result))306 while($row=pwg_db_fetch_assoc($result)) 307 307 { 308 308 $row["humanReadable"]=$list[$row["language"]]; … … 323 323 $returned = array(); 324 324 325 $sql="SELECT count(user_id) as nbUsers, t emplate FROM ".USER_INFOS_TABLE." GROUP BY template ORDER BY nbUsers DESC";326 $result=pwg_query($sql); 327 if($result) 328 { 329 while($row= mysql_fetch_assoc($result))325 $sql="SELECT count(user_id) as nbUsers, theme FROM ".USER_INFOS_TABLE." GROUP BY theme ORDER BY nbUsers DESC"; 326 $result=pwg_query($sql); 327 if($result) 328 { 329 while($row=pwg_db_fetch_assoc($result)) 330 330 { 331 331 $returned[]=$row; … … 359 359 $sql=" 360 360 SELECT name, 361 MAX(id) ASid,361 id, 362 362 MAX(nbRates) AS nbRates, 363 363 MAX(maxRate) AS maxRate, … … 409 409 if($result) 410 410 { 411 while($row= mysql_fetch_assoc($result))411 while($row=pwg_db_fetch_assoc($result)) 412 412 { 413 413 $returned[]=$row; … … 506 506 if($result) 507 507 { 508 while($row= mysql_fetch_assoc($result))508 while($row=pwg_db_fetch_assoc($result)) 509 509 { 510 510 $returned[$row['categoryId']]=$row;
Note: See TracChangeset
for help on using the changeset viewer.