includes/template.php
changeset 798 ddfc1b554a08
parent 767 cba10e1031eb
child 801 eb8b23f11744
equal deleted inserted replaced
797:8d2a40574bbc 798:ddfc1b554a08
  1374       $t = str_replace('[[NumQueriesLoc]]', $q_loc, $t);
  1374       $t = str_replace('[[NumQueriesLoc]]', $q_loc, $t);
  1375       $t = str_replace('[[GenTimeLoc]]', $t_loc, $t);
  1375       $t = str_replace('[[GenTimeLoc]]', $t_loc, $t);
  1376       $t = str_replace('[[EnanoPoweredLink]]', $lang->get('page_enano_powered', array('about_uri' => $this->tpl_strings['URL_ABOUT_ENANO'])), $t);
  1376       $t = str_replace('[[EnanoPoweredLink]]', $lang->get('page_enano_powered', array('about_uri' => $this->tpl_strings['URL_ABOUT_ENANO'])), $t);
  1377       $t = str_replace('[[EnanoPoweredLinkLong]]', $lang->get('page_enano_powered_long', array('about_uri' => $this->tpl_strings['URL_ABOUT_ENANO'])), $t);
  1377       $t = str_replace('[[EnanoPoweredLinkLong]]', $lang->get('page_enano_powered_long', array('about_uri' => $this->tpl_strings['URL_ABOUT_ENANO'])), $t);
  1378       
  1378       
  1379       if ( defined('ENANO_DEBUG') )
  1379       if ( defined('ENANO_PROFILE') )
  1380       {
  1380       {
  1381         $t = str_replace('</body>', '<div id="profile" style="margin: 10px;">' . profiler_make_html() . '</div></body>', $t);
  1381         $t = str_replace('</body>', '<div id="profile" style="margin: 10px;">' . profiler_make_html() . '</div></body>', $t);
  1382         // ob_end_clean();
  1382         // ob_end_clean();
  1383         // return profiler_make_html();
  1383         // return profiler_make_html();
  1384       }
  1384       }
  2981       $t = str_replace('[[NumQueries]]', ( is_object($db) ? (string)$db->num_queries : '0' ), $t);
  2981       $t = str_replace('[[NumQueries]]', ( is_object($db) ? (string)$db->num_queries : '0' ), $t);
  2982       $t = str_replace('[[GenTime]]', (string)$f, $t);
  2982       $t = str_replace('[[GenTime]]', (string)$f, $t);
  2983       $t = str_replace('[[NumQueriesLoc]]', $q_loc, $t);
  2983       $t = str_replace('[[NumQueriesLoc]]', $q_loc, $t);
  2984       $t = str_replace('[[GenTimeLoc]]', $t_loc, $t);
  2984       $t = str_replace('[[GenTimeLoc]]', $t_loc, $t);
  2985       
  2985       
  2986       if ( defined('ENANO_DEBUG') )
  2986       if ( defined('ENANO_PROFILE') )
       
  2987       {
  2987         $t = str_replace('</body>', '<div id="profile" style="margin: 10px;">' . profiler_make_html() . '</div></body>', $t);
  2988         $t = str_replace('</body>', '<div id="profile" style="margin: 10px;">' . profiler_make_html() . '</div></body>', $t);
       
  2989       }
  2988       
  2990       
  2989       echo $t;
  2991       echo $t;
  2990     }
  2992     }
  2991     else return '';
  2993     else return '';
  2992   }
  2994   }