diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 454852531b..8821ea5172 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-07-12 Juan Manuel Ramon + + * include/help/en/help_timesource.php + include/help/es/help_timesource.php + include/help/ja/help_timesource.php: Fixed bad sintax query. + 2011-07-12 Juan Manuel Ramon * godmode/reporting/reporting_builder.php: Fixes constant notice in diff --git a/pandora_console/include/help/en/help_timesource.php b/pandora_console/include/help/en/help_timesource.php index 8542097257..8803357b89 100644 --- a/pandora_console/include/help/en/help_timesource.php +++ b/pandora_console/include/help/en/help_timesource.php @@ -40,17 +40,19 @@ global $config; switch ($config["dbtype"]) { case "mysql": - $timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = $timestamp[0]['UNIX_TIMESTAMP()']; break; case "postgresql": $timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));"); break; case "oracle": - $timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = $timestamp[0]['dt']; break; } ui_print_timestamp ($timestamp, false, $option); ?>
Your browser time: -

\ No newline at end of file +

diff --git a/pandora_console/include/help/es/help_timesource.php b/pandora_console/include/help/es/help_timesource.php index deaa35a8d8..d75997227d 100644 --- a/pandora_console/include/help/es/help_timesource.php +++ b/pandora_console/include/help/es/help_timesource.php @@ -40,17 +40,19 @@ global $config; switch ($config["dbtype"]) { case "mysql": - $timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = $timestamp[0]['UNIX_TIMESTAMP()']; break; case "postgresql": $timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));"); break; case "oracle": - $timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = $timestamp[0]['dt']; break; } ui_print_timestamp ($timestamp, false, $option); ?>
Hora de su navegador: -

\ No newline at end of file +

diff --git a/pandora_console/include/help/ja/help_timesource.php b/pandora_console/include/help/ja/help_timesource.php index 83b965181c..e5967f1625 100644 --- a/pandora_console/include/help/ja/help_timesource.php +++ b/pandora_console/include/help/ja/help_timesource.php @@ -35,13 +35,15 @@ global $config; switch ($config["dbtype"]) { case "mysql": - $timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();"); + $timestamp = $timestamp[0]['UNIX_TIMESTAMP()']; break; case "postgresql": $timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));"); break; case "oracle": - $timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual"); + $timestamp = $timestamp[0]['dt']; break; } ui_print_timestamp ($timestamp, false, $option);