flagflag  
2: 2012-04-15 (Sun) 17:47:17 iseki source 3: 2012-04-20 (Fri) 14:21:42 iseki source
Line 1: Line 1:
** Moodle-2.x Hacking [#u16c02ee] ** Moodle-2.x Hacking [#u16c02ee]
 +*** IP アドレスの逆引き [#vdc4090d]
 +- Moodle搭載の Geo City の GeoIP は動かないし,動いても情報は少ないので,NIC.AD.JP のDBを直接叩く
 +- moodle/iplookup/index.php の IP アドレスチェック後に,NIC.AD.JP へリダイレクト
 + $url = 'http://whois.nic.ad.jp/cgi-bin/whois_gw​?type=NET&key='.$ip;
 + redirect($url);
 +
*** 日付 [#d8f40c6e] *** 日付 [#d8f40c6e]
- 2.x で print_time_selector() は非推奨となった (おまけに 2.2.2+ ではバグっとる) - 2.x で print_time_selector() は非推奨となった (おまけに 2.2.2+ ではバグっとる)
Line 17: Line 23:
 }  }
- 置き換え関数の html_writer::select_time() もバグっとる :-(  おいおい である. - 置き換え関数の html_writer::select_time() もバグっとる :-(  おいおい である.
 +- moodle/lib/outputcomponents.php
 +- ただし,これでも 時刻が 0 (日本時間 AM9:00) の場合は,現時刻になるので 分を +1 するとか工夫が必要
 case 'hours':  case 'hours':
     for ($i=0; $i<=23; $i++) {      for ($i=0; $i<=23; $i++) {


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

68 user(s) are online (17 user(s) are browsing xpwiki)

Members: 0
Guests: 68

more...

Access Counter

Today : 1007710077100771007710077
Yesterday : 1038110381103811038110381
Total : 2359961023599610235996102359961023599610235996102359961023599610
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com