<?php
-// $Id: referer.inc.php,v 1.2 2003/07/27 13:54:58 arino Exp $
+// $Id: referer.inc.php,v 1.3 2003/08/03 13:52:56 arino Exp $
/*
* PukiWiki Referer ¥×¥é¥°¥¤¥ó(¥ê¥ó¥¯¸µÉ½¼¨¥×¥é¥°¥¤¥ó)
* (C) 2003, Katsumi Saito <katsumi@jo1upk.ymt.prug.or.jp>
// $sort_last = '0d';
break;
case '1d': // 1d ½é²óÅÐÏ¿Æü»þ(¿·Ãå½ç)
- usort($data,create_function('$a,$b','return $b[2] - $a[2];'));
+ usort($data,create_function('$a,$b','return $b[1] - $a[1];'));
$color_1st = $bg['cur'];
$arrow_1st = $_referer_msg['msg_Chr_darr'];
$sort_1st = '1a';
break;
case '1a': // 1a ½é²óÅÐÏ¿Æü»þ(ÆüÉÕ½ç)
- usort($data,create_function('$a,$b','return $a[2] - $b[2];'));
+ usort($data,create_function('$a,$b','return $a[1] - $b[1];'));
$color_1st = $bg['cur'];
$arrow_1st = $_referer_msg['msg_Chr_uarr'];
// $sort_1st = '1d';
break;
case '2d': // 2d ¥«¥¦¥ó¥¿(Â礤¤½ç)
- usort($data,create_function('$a,$b','return $b[3] - $a[3];'));
+ usort($data,create_function('$a,$b','return $b[2] - $a[2];'));
$color_ctr = $bg['cur'];
$arrow_ctr = $_referer_msg['msg_Chr_darr'];
$sort_ctr = '2a';
break;
case '2a': // 2a ¥«¥¦¥ó¥¿(¾®¤µ¤¤½ç)
- usort($data,create_function('$a,$b','return $a[3] - $b[3];'));
+ usort($data,create_function('$a,$b','return $a[2] - $b[2];'));
$color_ctr = $bg['cur'];
$arrow_ctr = $_referer_msg['msg_Chr_uarr'];
// $sort_ctr = '2d';
break;
case '3': // 3 Referer
- usort($data,create_function('$a,$b','return ($a[1] == $b[1]) ? 0 : (($a[1] > $b[1]) ? 1 : -1);'));
+ usort($data,create_function('$a,$b','return ($a[3] == $b[3]) ? 0 : (($a[3] > $b[3]) ? 1 : -1);'));
$color_ref = $bg['cur'];
break;
}