ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2558


Ignore:
Timestamp:
Apr 12, 2007, 12:12:42 AM (13 years ago)
Author:
tejimaa
Message:

for sqllog

Location:
OpenPNE/branches/2_6_5/2_6_5_100000000PV
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_6_5/2_6_5_100000000PV/lib/include/DB/mysql.php

    r2 r2558  
    193193    function connect($dsn, $persistent = false)
    194194    {
     195        $tracetime = microtime();
     196        list($msec, ) = explode(" ", $tracetime);
     197        $tracetime = (float)$msec;
     198        sqllog($tracetime . " : connect!\n");
     199       
    195200        if (!PEAR::loadExtension('mysql')) {
    196201            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
     
    275280    function disconnect()
    276281    {
     282        $tracetime = microtime();
     283        list($msec, ) = explode(" ", $tracetime);
     284        $tracetime = (float)$msec;
     285        sqllog($tracetime." : disconnect\n");
     286       
    277287        $ret = @mysql_close($this->connection);
    278288        $this->connection = null;
     
    298308    function simpleQuery($query)
    299309    {
     310        $tracetime = microtime();
     311        list($msec, ) = explode(" ", $tracetime);
     312        $tracetime = (float)$msec;
     313       
     314        sqllog($tracetime." : simpleQuery : ".$query."\n");
     315       
    300316        $ismanip = DB::isManip($query);
    301317        $this->last_query = $query;
  • OpenPNE/branches/2_6_5/2_6_5_100000000PV/public_html/img/.htaccess

    r2 r2558  
    22RewriteCond %{REQUEST_FILENAME} !-f
    33RewriteCond %{REQUEST_FILENAME} !-d
    4 RewriteRule \.(jpe?g|gif|png)$ index.php [L]
     4RewriteRule \.(jpe?g|gif|png)$ /img/index.php [L]
  • OpenPNE/branches/2_6_5/2_6_5_100000000PV/webapp/modules/pc/init.inc

    r1415 r2558  
    1717function init_pc_page(&$smarty)
    1818{
     19        global $sqllog_filename;
     20        $smarty->assign('sqllog', $sqllog_filename);
     21       
    1922    //文言系
    2023    $smarty->assign('WORD_FRIEND', WORD_FRIEND);
  • OpenPNE/branches/2_6_5/2_6_5_100000000PV/webapp/modules/pc/templates/inc_header.tpl

    r1870 r2558  
    334334<div align="left">
    335335
     336<a href="./sqllog/({$sqllog}).txt" target="_blank">ただ今のSQL実行結果はコチラ</a>
     337
    336338<table class="ext_sub_container" border="0" cellspacing="0" cellpadding="0">
    337339<tr>
Note: See TracChangeset for help on using the changeset viewer.