Proyectos de Subversion Moodle

Rev

Rev 1399 | Rev 1401 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1399 Rev 1400
Línea 52... Línea 52...
52
 
52
 
53
    $t0 = $dt->getTimestamp();
53
    $t0 = $dt->getTimestamp();
54
    $t1 = strtotime('-5 minutes');
54
    $t1 = strtotime('-5 minutes');
Línea 55... Línea 55...
55
    $t2 = strtotime('+5 minutes');
55
    $t2 = strtotime('+5 minutes');
56
 
56
 
57
    if ($t0 < $t1 || $t0 > $t2) {
57
    /* if ($t0 < $t1 || $t0 > $t2) {
Línea 58... Línea 58...
58
        return ['error' => 'ERROR_SECURITY4', 'message' => 'Timestamp out of valid range'];
58
        return ['error' => 'ERROR_SECURITY4', 'message' => 'Timestamp out of valid range'];
59
    }
59
    } */
60
 
60