X-Git-Url: http://git.sourceforge.jp/view?p=nucleus-jp%2Fnucleus-jp-ancient.git;a=blobdiff_plain;f=utf8%2Fnucleus%2Flibs%2Fshowlist.php;h=ab78c233289d96e9ba7666da25541442105830f5;hp=43ab1ab8b42f277b552f232777807ac4d662972d;hb=b5f3f1bf515d9979f70fd0043dc562d6c6ca3a4b;hpb=9133cfc6678513cdd7a9f9571d5027c1b719e962 diff --git a/utf8/nucleus/libs/showlist.php b/utf8/nucleus/libs/showlist.php index 43ab1ab..ab78c23 100644 --- a/utf8/nucleus/libs/showlist.php +++ b/utf8/nucleus/libs/showlist.php @@ -41,18 +41,18 @@ function showlist($query, $type, $template) { $res = sql_query($query); // don't do anything if there are no results - $numrows = mysql_num_rows($res); + $numrows = sql_num_rows($res); if ($numrows == 0) return 0; call_user_func('listplug_' . $type, $template, 'HEAD'); - while($template['current'] = mysql_fetch_object($res)) + while($template['current'] = sql_fetch_object($res)) call_user_func('listplug_' . $type, $template, 'BODY'); call_user_func('listplug_' . $type, $template, 'FOOT'); - mysql_free_result($res); + sql_free_result($res); // return amount of results return $numrows; @@ -204,7 +204,7 @@ function listplug_table_pluginlist($template, $type) { // check dependency require $req = array(); $res = sql_query('SELECT pfile FROM ' . sql_table('plugin')); - while($o = mysql_fetch_object($res)) { + while($o = sql_fetch_object($res)) { $preq =& $manager->getPlugin($o->pfile); if ($preq) { $depList = $preq->getPluginDep(); @@ -592,7 +592,7 @@ function listplug_table_skinlist($template, $type) { // show list of defined parts $r = sql_query('SELECT stype FROM '.sql_table('skin').' WHERE sdesc='.$current->sdnumber . ' ORDER BY stype'); $types = array(); - while ($o = mysql_fetch_object($r)) + while ($o = sql_fetch_object($r)) array_push($types,$o->stype); if (sizeof($types) > 0) { $friendlyNames = SKIN::getFriendlyNames();