includes/template.php
changeset 484 340c81fdd350
parent 472 bc4b58034f4d
child 488 5560ff856dd7
equal deleted inserted replaced
483:2cb1c8a6d3db 484:340c81fdd350
  2200         $t_loc = "Time: {$f}s";
  2200         $t_loc = "Time: {$f}s";
  2201         $t_loc_long = "Generated in {$f}sec";
  2201         $t_loc_long = "Generated in {$f}sec";
  2202         $q_loc = '<a href="' . $this->tpl_strings['REPORT_URI'] . '">' . ( is_object($db) ? "{$db->num_queries} SQL" : 'Queries: N/A' ) . '</a>';
  2202         $q_loc = '<a href="' . $this->tpl_strings['REPORT_URI'] . '">' . ( is_object($db) ? "{$db->num_queries} SQL" : 'Queries: N/A' ) . '</a>';
  2203         $dbg = $t_loc;
  2203         $dbg = $t_loc;
  2204         $dbg_long = $t_loc_long;
  2204         $dbg_long = $t_loc_long;
  2205         if ( $session->user_level >= USER_LEVEL_ADMIN )
  2205         if ( is_object($session) )
  2206         {
  2206         {
  2207           $dbg .= "&nbsp;&nbsp;|&nbsp;&nbsp;$q_loc";
  2207           if ( $session->user_level >= USER_LEVEL_ADMIN )
  2208           $dbg_long .= "&nbsp;&nbsp;|&nbsp;&nbsp;$q_loc";
  2208           {
       
  2209             $dbg .= "&nbsp;&nbsp;|&nbsp;&nbsp;$q_loc";
       
  2210             $dbg_long .= "&nbsp;&nbsp;|&nbsp;&nbsp;$q_loc";
       
  2211           }
  2209         }
  2212         }
  2210         $t = str_replace('[[EnanoPoweredLink]]', 'Powered by <a href="http://enanocms.org/" onclick="window.open(this.href); return false;">Enano</a>', $t);
  2213         $t = str_replace('[[EnanoPoweredLink]]', 'Powered by <a href="http://enanocms.org/" onclick="window.open(this.href); return false;">Enano</a>', $t);
  2211         $t = str_replace('[[EnanoPoweredLinkLong]]', 'Website engine powered by <a href="http://enanocms.org/" onclick="window.open(this.href); return false;">Enano</a>', $t);
  2214         $t = str_replace('[[EnanoPoweredLinkLong]]', 'Website engine powered by <a href="http://enanocms.org/" onclick="window.open(this.href); return false;">Enano</a>', $t);
  2212       }
  2215       }
  2213       
  2216