Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/11/2009, 17:19
Avatar de drop_one_1
drop_one_1
 
Fecha de Ingreso: diciembre-2006
Ubicación: Santiago, RM, Chile
Mensajes: 30
Antigüedad: 19 años, 10 meses
Puntos: 0
Respuesta: Quien me ayuda con un error mktime en PHPMYDIRECTORY! Urgente

Ummm... ya perdon.. Miren :

Código PHP:
function ifUpdated ($date)

{

    global 
$def_updated;


    
$date_day = date ( "d" );
    
$date_month = date ( "m" );
    
$date_year = date ( "Y" );

    list ( 
$on_year, $on_month, $on_day ) = split ( '[/.-]', $date );

Linea 320:    $first_date = mktime ( 0,0,0,$on_month,$on_day,$on_year );
    
$second_date = mktime ( 0,0,0,$date_month,$date_day,$date_year );

    if ( 
$second_date > $first_date )

    {

        
$days = $second_date - $first_date;

    }

    else

    {

        
$days = $first_date - $second_date;

    }

    
$current_result = ( $days ) / ( 60 * 60 * 24 );

    if ( 
$current_result <= 5 )

    {

        
$updated_listing = "$def_updated";

    }

    else

    {

        
$updated_listing = "";

    }

    return 
$updated_listing;

}