Changeset 1888 for trunk/admin


Ignore:
Timestamp:
Mar 11, 2007, 10:52:29 AM (18 years ago)
Author:
rub
Message:

Reduce number of queries a very little bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/intro.php

    r1884 r1888  
    121121$template->set_filenames(array('intro' => 'admin/intro.tpl'));
    122122
    123 list($mysql_version) = mysql_fetch_row(pwg_query('SELECT VERSION();'));
     123$php_current_timestamp = date("Y-m-d H:i:s");
     124list($mysql_version, $db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT VERSION(), CURRENT_TIMESTAMP;'));
    124125
    125126$query = '
     
    184185;';
    185186list($nb_comments) = mysql_fetch_row(pwg_query($query));
    186 
    187 $php_current_timestamp = date("Y-m-d H:i:s");
    188 list($db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;'));
    189187
    190188$template->assign_vars(
Note: See TracChangeset for help on using the changeset viewer.