flagflag  
3: 2012-04-20 (Fri) 14:21:42 iseki source Cur: 2014-11-21 (Fri) 12:08:46 iseki source
Line 1: Line 1:
** Moodle-2.x Hacking [#u16c02ee] ** Moodle-2.x Hacking [#u16c02ee]
 +*** 申し訳ございません、セキュリティ上の理由から、httpsアクセスのみ許可されています。 [#nde47833]
 +- メッセージの変数は sslonlyaccess
 +- lib/setuplib.php の print_error('sslonlyaccess', 'error'); をコメントアウトする
 +#br
 +
*** IP アドレスの逆引き [#vdc4090d] *** IP アドレスの逆引き [#vdc4090d]
- Moodle搭載の Geo City の GeoIP は動かないし,動いても情報は少ないので,NIC.AD.JP のDBを直接叩く - Moodle搭載の Geo City の GeoIP は動かないし,動いても情報は少ないので,NIC.AD.JP のDBを直接叩く
Line 10: Line 15:
 function print_time_selector($hour, $minute, $currenttime=0, $step=5, $return=false) {  function print_time_selector($hour, $minute, $currenttime=0, $step=5, $return=false) {
   debugging('print_time_selector() has been deprecated. Please change your code to use html_writer.');    debugging('print_time_selector() has been deprecated. Please change your code to use html_writer.');
 + 
   $hourselector = html_writer::select_time('hours', $hour, $currenttime);    $hourselector = html_writer::select_time('hours', $hour, $currenttime);
   $minuteselector = html_writer::select_time('minutes', $minute, $currenttime, $step);    $minuteselector = html_writer::select_time('minutes', $minute, $currenttime, $step);
 + 
   $output = $hourselector . $minuteselector;    $output = $hourselector . $minuteselector;
 + 
   if ($return) {    if ($return) {
       return $output;        return $output;
Line 36: Line 41:
         $currentdate['minutes'] = ceil($currentdate['minutes']/$step)*$ste​p;          $currentdate['minutes'] = ceil($currentdate['minutes']/$step)*$ste​p;
     }      }
 + 
     for ($i=0; $i<=59; $i+=$step) {      for ($i=0; $i<=59; $i+=$step) {
         $strno = sprintf("%02d",$i);          $strno = sprintf("%02d",$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 MonthApr 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
Today

Who's Online

72 user(s) are online (20 user(s) are browsing xpwiki)

Members: 0
Guests: 72

more...

Access Counter

Today : 1079810798107981079810798
Yesterday : 2042920429204292042920429
Total : 2339020423390204233902042339020423390204233902042339020423390204
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com