Changeset 6000

Show
Ignore:
Timestamp:
05/23/08 21:16:38 (5 months ago)
Author:
inureyes
Message:

#711

  • stat 관련 쿼리 및 남은 mysql 종속성의 encapsulation.
Location:
trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/components/Needlworks.DBMS.MySQL.php

    r5806 r6000  
    295295        return mysql_error($err); 
    296296    } 
     297     
     298    /*@static@*/ 
     299    function stat($stat = null) { 
     300        return mysql_stat($stat); 
     301    } 
    297302} 
    298303 
  • trunk/interface/blog/sync.php

    r5557 r6000  
    3535            WHERE id = tag AND blogid = ".getBlogId()." AND entry = {$entry['id']}  
    3636            ORDER BY name"); 
    37     while(list($tag) = mysql_fetch_row($result)) 
     37    while(list($tag) = POD::fetch($result,'row')) 
    3838        echo '<tag>', htmlspecialchars($tag), '</tag>', "\r\n"; 
    39     mysql_free_result($result); 
     39    POD::free($result); 
    4040    echo '<location>', htmlspecialchars($entry['location']), '</location>', "\r\n"; 
    4141    echo '<comments>', $entry['comments'], '</comments>', "\r\n"; 
  • trunk/interface/owner/communication/trackback/log/index.php

    r5285 r6000  
    1313} 
    1414else 
    15     respond::PrintResult(array('error' => 1, 'msg' => mysql_error())); 
     15    respond::PrintResult(array('error' => 1, 'msg' => POD::error())); 
    1616?>  
  • trunk/interface/owner/control/system/index.php

    r5926 r6000  
    3030    $dbVersion = POD::queryColumn("SELECT VERSION()"); 
    3131    $dbVersion = "MySQL: " . $dbVersion[0]; 
    32     $dbStat = preg_replace( "/\\s{2,}/", "<br />", mysql_stat()); 
     32    $dbStat = preg_replace( "/\\s{2,}/", "<br />", POD::stat()); 
    3333} 
    3434 
  • trunk/interface/owner/data/correct/index.php

    r5832 r6000  
    123123        if (!is_null($comment['parent']) && ($comment['isFiltered'] == 0)) { 
    124124            $r2 = POD::query("SELECT id FROM {$database['prefix']}Comments WHERE blogid = $blogid AND id = {$comment['parent']} AND isFiltered = 0"); 
    125             if (mysql_num_rows($r2) <= 0) { 
     125            if (POD::num_rows($r2) <= 0) { 
    126126                trashCommentInOwner($blogid, $comment['id']); 
    127127            } 
  • trunk/interface/owner/setting/filter/change/index.php

    r5285 r6000  
    3030        $isAjaxRequest ? respond::PrintResult(array('error' => 0)) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    3131    } else { 
    32         $isAjaxRequest ? respond::PrintResult(array('error' => 1, 'msg' => mysql_error())) : header("Location: ".$_SERVER['HTTP_REFERER']); 
     32        $isAjaxRequest ? respond::PrintResult(array('error' => 1, 'msg' => POD::error())) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    3333    } 
    3434} else { 
     
    3838        $isAjaxRequest ? respond::PrintResult(array('error' => 0)) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    3939    else 
    40         $isAjaxRequest ? respond::PrintResult(array('error' => 1, 'msg' => mysql_error())) : header("Location: ".$_SERVER['HTTP_REFERER']); 
     40        $isAjaxRequest ? respond::PrintResult(array('error' => 1, 'msg' => POD::error())) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    4141} 
    4242?> 
  • trunk/interface/owner/skin/setting/skin/index.php

    r5285 r6000  
    3838    respond::PrintResult(array('error' => 0)); 
    3939} else { 
    40     respond::PrintResult(array('error' => 1, 'msg' => mysql_error())); 
     40    respond::PrintResult(array('error' => 1, 'msg' => POD::error())); 
    4141} 
    4242?>