2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/help/en/help_timesource.php
	include/help/es/help_timesource.php
	include/help/ja/help_timesource.php: Fixed bad sintax query.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4550 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-07-12 15:10:42 +00:00
parent 116a78ffb9
commit 1f60ae2299
4 changed files with 20 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* 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 <juanmanuel.ramon@artica.es>
* godmode/reporting/reporting_builder.php: Fixes constant notice in

View File

@ -40,13 +40,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);

View File

@ -40,13 +40,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);

View File

@ -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);