mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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:
parent
116a78ffb9
commit
1f60ae2299
@ -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>
|
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/reporting/reporting_builder.php: Fixes constant notice in
|
* godmode/reporting/reporting_builder.php: Fixes constant notice in
|
||||||
|
@ -40,17 +40,19 @@ global $config;
|
|||||||
|
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||||
|
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||||
break;
|
break;
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
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;
|
break;
|
||||||
}
|
}
|
||||||
ui_print_timestamp ($timestamp, false, $option);
|
ui_print_timestamp ($timestamp, false, $option);
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
<b>Your browser time:</b> <script type="text/javascript">document.write (date);</script>
|
<b>Your browser time:</b> <script type="text/javascript">document.write (date);</script>
|
||||||
</p>
|
</p>
|
||||||
|
@ -40,17 +40,19 @@ global $config;
|
|||||||
|
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||||
|
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||||
break;
|
break;
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
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;
|
break;
|
||||||
}
|
}
|
||||||
ui_print_timestamp ($timestamp, false, $option);
|
ui_print_timestamp ($timestamp, false, $option);
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
<b>Hora de su navegador:</b> <script type="text/javascript">document.write (date);</script>
|
<b>Hora de su navegador:</b> <script type="text/javascript">document.write (date);</script>
|
||||||
</p>
|
</p>
|
||||||
|
@ -35,13 +35,15 @@ global $config;
|
|||||||
|
|
||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||||
|
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||||
break;
|
break;
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
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;
|
break;
|
||||||
}
|
}
|
||||||
ui_print_timestamp ($timestamp, false, $option);
|
ui_print_timestamp ($timestamp, false, $option);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user