Changeset 5423 for extensions/AStat/astat_aip.class.inc.php
- Timestamp:
- Mar 28, 2010, 6:55:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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>";
Note: See TracChangeset
for help on using the changeset viewer.