Changeset 5423 for extensions/AStat
- Timestamp:
- Mar 28, 2010, 6:55:48 PM (14 years ago)
- Location:
- extensions/AStat
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AStat/admin/astat_admin.tpl
r3394 r5423 1 <div class="titrePage">2 <h2 style="position:absolute;right:0px;top:32px;height:auto;font-size:12px;font-weight:normal;">:: {$plugin.ASTAT_VERSION} ::</h2>3 <h2>{'AStat_title_page'|@translate} <span style="font-size:-1;font-weight:normal;">{$TABSHEET_TITLE}</span></h2>4 1 2 <h2 style="float:right;top:-24px;position:relative;height:auto;font-size:12px;font-weight:normal;">{$plugin.ASTAT_VERSION}</h2> 3 4 5 <div style="position:relative;top:-24px;clear:right;"> 5 6 {$tabsheet} 7 8 {if isset($datas)} 9 <p>{$datas.ASTAT_NFO_STAT}</p> 10 11 <h3>{$datas.L_STAT_TITLE}</h3> 12 13 {if isset($f_AStat_catfilter_list_values) and count($f_AStat_catfilter_list_values) 14 and isset($plugin.ASTAT_PAGE) and $plugin.ASTAT_PAGE != "config" and $plugin.ASTAT_PAGE != "tools"} 15 <center> 16 <form method="GET" action="{$plugin.ASTAT_LINK}" class="general"> 17 18 {if isset($f_AStat_parameters) and count($f_AStat_parameters)} 19 {foreach from=$f_AStat_parameters key=name item=data} 20 <INPUT type="hidden" name="{$data.NAME}" value="{$data.VALUE}"> 21 {/foreach} 22 {/if} 23 <fieldset> 24 <legend>{'AStat_catfilter_list'|@translate}</legend> 25 <select name="fAStat_catfilter" onchange="this.form.submit();"> 26 {html_options values=$f_AStat_catfilter_list_values output=$f_AStat_catfilter_list_labels selected=$f_AStat_catfilter_selected} 27 </select> 28 </fieldset> 29 </form> 30 </center> 31 {/if} 32 33 {/if} 34 35 6 36 </div> 7 37 8 {if isset($datas)}9 {$datas.ASTAT_NFO_STAT}10 <h3>{$datas.L_STAT_TITLE}</h3>11 38 12 {if isset($f_AStat_catfilter_list_values) and count($f_AStat_catfilter_list_values)13 and isset($plugin.ASTAT_PAGE) and $plugin.ASTAT_PAGE != "config" and $plugin.ASTAT_PAGE != "tools"}14 <center>15 <form method="GET" action="{$plugin.ASTAT_LINK}" class="general">16 39 17 {if isset($f_AStat_parameters) and count($f_AStat_parameters)}18 {foreach from=$f_AStat_parameters key=name item=data}19 <INPUT type="hidden" name="{$data.NAME}" value="{$data.VALUE}">20 {/foreach}21 {/if}22 <fieldset>23 <legend>{'AStat_catfilter_list'|@translate}</legend>24 <select name="fAStat_catfilter" onchange="this.form.submit();">25 {html_options values=$f_AStat_catfilter_list_values output=$f_AStat_catfilter_list_labels selected=$f_AStat_catfilter_selected}26 </select>27 </fieldset>28 </form>29 </center>30 {/if}31 40 32 {/if}33 41 34 42 {$ASTAT_BODY_PAGE} -
extensions/AStat/admin/astat_tools.tpl
r4269 r5423 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.core.packed.js"}2 {known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.datepicker.packed.js"}3 {assign var="datepicker_language" value="t emplate-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 2 {known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.datepicker.packed.js"} 3 {assign var="datepicker_language" value="themes/default/js/ui/packed/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"} 4 4 5 5 {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} … … 19 19 20 20 if(($('#purge_history_confirm').attr('checked')&&$('#purge_history_type0').attr('checked')&&re.test($('#purge_history_date').val()))|| 21 ($('#purge_history_confirm').attr('checked')&&! ('#purge_history_type0').attr('checked')))21 ($('#purge_history_confirm').attr('checked')&&!$('#purge_history_type0').attr('checked'))) 22 22 { 23 $('#purge_history_button').attr('disabled', true);23 $('#purge_history_button').attr('disabled', false); 24 24 } 25 25 else 26 26 { 27 $('#purge_history_button').attr('disabled', false);27 $('#purge_history_button').attr('disabled', true); 28 28 } 29 29 } -
extensions/AStat/astat_aim.class.inc.php
r3707 r5423 171 171 if($result) 172 172 { 173 $row = mysql_fetch_array($result);173 $row = pwg_db_fetch_assoc($result); 174 174 $list=substr($row['Type'], 5, strlen($row['Type'])-6); 175 175 $returned[0]=explode(',', $list); -
extensions/AStat/astat_aip.class.inc.php
r3707 r5423 435 435 436 436 $i=0; 437 while ($row = mysql_fetch_array($result))437 while ($row = pwg_db_fetch_assoc($result)) 438 438 { 439 439 if($year.$month.$day=="") … … 534 534 535 535 $i=0; 536 while ($row = mysql_fetch_array($result))536 while ($row = pwg_db_fetch_assoc($result)) 537 537 { 538 538 $returned0[$i] = $row; $i++; … … 543 543 if($result) 544 544 { 545 $row = mysql_fetch_array($result); $returned[1] = $row[0];545 $row = pwg_db_fetch_row($result); $returned[1] = $row[0]; 546 546 } 547 547 else … … 638 638 639 639 $i=0; 640 while ($row = mysql_fetch_array($result))640 while ($row = pwg_db_fetch_assoc($result)) 641 641 { 642 642 $returned0[$i] = $row; $i++; … … 647 647 if($result) 648 648 { 649 $row = mysql_fetch_array($result); $returned[1] = $row[0];649 $row = pwg_db_fetch_row($result); $returned[1] = $row[0]; 650 650 } 651 651 else … … 738 738 739 739 $i=0; 740 while ($row = mysql_fetch_array($result))740 while ($row = pwg_db_fetch_assoc($result)) 741 741 { 742 742 $returned0[$i] = $row; $i++; … … 747 747 if($result) 748 748 { 749 $row = mysql_fetch_array($result); $returned[1] = $row[0];749 $row = pwg_db_fetch_row($result); $returned[1] = $row[0]; 750 750 } 751 751 else … … 1116 1116 $template->set_filename('body_page', dirname(__FILE__)."/admin/astat_by_category.tpl"); 1117 1117 1118 $template_datas=array(); 1119 $template_datarows=array(); 1118 1120 1119 1121 /* requete */ … … 1918 1920 { 1919 1921 $returned[0]=0; 1920 while ($row = mysql_fetch_array($result))1922 while ($row = pwg_db_fetch_row($result)) 1921 1923 { 1922 1924 $returned[2][$returned[0]][0] = $row[0]; … … 1965 1967 { 1966 1968 $returned[0]=0; 1967 while ($row = mysql_fetch_array($result))1969 while ($row = pwg_db_fetch_row($result)) 1968 1970 { 1969 1971 $returned[2][$returned[0]][0] = $row[0]; … … 2017 2019 { 2018 2020 $returned[0]=0; 2019 while ($row = mysql_fetch_array($result))2021 while ($row = pwg_db_fetch_row($result)) 2020 2022 { 2021 2023 $returned[2][$returned[0]][0] = $row[0]; … … 2062 2064 if($result) 2063 2065 { 2064 $row = mysql_fetch_array($result);2066 $row = pwg_db_fetch_row($result); 2065 2067 if(is_array($row)) 2066 2068 { … … 2070 2072 if($result) 2071 2073 { 2072 $row2= mysql_fetch_array($result);2074 $row2=pwg_db_fetch_assoc($result); 2073 2075 array_push($returned, $row2['Data_length'], $row2['Index_length']); 2074 2076 } … … 2124 2126 if($result) 2125 2127 { 2126 $row= mysql_fetch_array($result);2128 $row=pwg_db_fetch_row($result); 2127 2129 return($row[0]); 2128 2130 } … … 2136 2138 if($result) 2137 2139 { 2138 $row= mysql_fetch_array($result);2140 $row=pwg_db_fetch_row($result); 2139 2141 return($row[0]); 2140 2142 } … … 2163 2165 if($result) 2164 2166 { 2165 $row= mysql_fetch_array($result);2167 $row=pwg_db_fetch_row($result); 2166 2168 $returned[0]=$row[0]; 2167 2169 } … … 2184 2186 if($result) 2185 2187 { 2186 if( mysql_num_rows($result)==1)2188 if(pwg_db_num_rows($result)==1) 2187 2189 { 2188 2190 return(true); … … 2222 2224 if($result) 2223 2225 { 2224 if( mysql_num_rows($result)>0)2225 { 2226 $row= mysql_fetch_row($result);2226 if(pwg_db_num_rows($result)>0) 2227 { 2228 $row=pwg_db_fetch_row($result); 2227 2229 $returned[0]=true; 2228 2230 $returned[1]=$row[0]; … … 2296 2298 if($result) 2297 2299 { 2298 while ($row = mysql_fetch_array($result))2300 while ($row = pwg_db_fetch_assoc($result)) 2299 2301 { 2300 2302 $text=str_repeat(' ', substr_count($row['global_rank'], '.')); … … 2339 2341 if($result) 2340 2342 { 2341 while ($row = mysql_fetch_row($result))2343 while ($row = pwg_db_fetch_row($result)) 2342 2344 { 2343 2345 $returned[]=$row[0]; … … 2473 2475 if($result) 2474 2476 { 2475 while($row= mysql_fetch_array($result))2477 while($row=pwg_db_fetch_assoc($result)) 2476 2478 { 2477 2479 $list.="<option value='".$row['IP']."'>".$row['IP'].str_repeat(" ", 15-strlen($row['IP']))." (".$row['NbEvents'].")</option>"; -
extensions/AStat/main.inc.php
r4269 r5423 2 2 /* 3 3 Plugin Name: AStat.2 4 Version: 2. 1.14 Version: 2.2.0 5 5 Description: Statistiques avancées / Advanced statistics 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=172 … … 42 42 | 2.1.1 | 2009/11/15 | * bug on tools (cf. bug #1242 in mantis) 43 43 | | | it was impossible to purge items in history due to an invalid regexp in the javascript 44 | 2.2.0 | 2010/03/28 | * release for compatibility with Piwigo 2.1 45 | | | * mantis: bug 1192 46 | | | Constant already defined when deactivating the plugin 47 | | | * mantis: bug 1344 48 | | | In tools, it's allowed to do purge only if checkbox is not checked 49 | | | 50 | | | 51 | | | 52 | | | 53 | | | 44 54 | | | 45 55 | | | … … 71 81 define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/'); 72 82 73 define('ASTAT_VERSION' , '2. 1.1'); // => ne pas oublier la version dans l'entête !!83 define('ASTAT_VERSION' , '2.2.0'); // => ne pas oublier la version dans l'entête !! 74 84 75 85 global $prefixeTable; -
extensions/AStat/maintain.inc.php
r3394 r5423 12 12 --------------------------------------------------------------------------- */ 13 13 14 if 14 if(!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } 15 15 16 define('ASTAT_DIR' , basename(dirname(__FILE__)));17 define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/');16 if(!defined('ASTAT_DIR')) define('ASTAT_DIR' , basename(dirname(__FILE__))); 17 if(!defined('ASTAT_PATH')) define('ASTAT_PATH' , PHPWG_PLUGINS_PATH . ASTAT_DIR . '/'); 18 18 19 19 //ini_set('error_reporting', E_ALL); … … 46 46 load_language('plugin.lang', ASTAT_PATH); 47 47 48 function plugin_install($plugin_id, $plugin_version, &$errors) 48 function plugin_install($plugin_id, $plugin_version, &$errors) 49 49 { 50 50 global $prefixeTable, $gpc_installed;
Note: See TracChangeset
for help on using the changeset viewer.