Fixed bug #12872: Use "strong" instead of "b": typo3/sysext/adodb/
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 29 May 2010 21:28:30 +0000 (21:28 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 29 May 2010 21:28:30 +0000 (21:28 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7754 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/adodb/adodb/adodb-pager.inc.php
typo3/sysext/adodb/adodb/adodb-time.inc.php
typo3/sysext/adodb/adodb/drivers/adodb-ado.inc.php
typo3/sysext/adodb/adodb/drivers/adodb-ado5.inc.php
typo3/sysext/adodb/adodb/drivers/adodb-mssqlnative.inc.php
typo3/sysext/adodb/adodb/drivers/adodb-oci8.inc.php

index d6980c1..cbf2945 100644 (file)
@@ -155,7 +155,7 @@ class ADODB_Pager {
                        
                        for($i=$start; $i <= $end; $i++) {
                 if ($this->rs->AbsolutePage() == $i)
-                    $numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  ";
+                    $numbers .= "<font color=$this->linkSelectedColor><strong>$i</strong></font>  ";
                 else 
                      $numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  ";
             
index 0763895..f36c6d5 100644 (file)
@@ -413,7 +413,7 @@ function adodb_date_test_date($y1,$m,$d=13)
        if ($h == 0) $h = '00';
        else if ($h < 10) $h = '0'.$h;
        if ("$y1-$m-$d $h:00:00" != $rez) {
-               print "<b>$y1 error, expected=$y1-$m-$d $h:00:00, adodb=$rez</b><br>";
+               print "<strong>$y1 error, expected=$y1-$m-$d $h:00:00, adodb=$rez</strong><br>";
                return false;
        }
        return true;
@@ -484,10 +484,10 @@ function adodb_date_test()
        print  adodb_mktime(0,0,0,10,4,1582).' ';
        print adodb_mktime(0,0,0,10,15,1582);
        $diff = (adodb_mktime(0,0,0,10,15,1582) - adodb_mktime(0,0,0,10,4,1582));
-       if ($diff != 3600*24) print " <b>Error in gregorian correction = ".($diff/3600/24)." days </b><br>";
+       if ($diff != 3600*24) print " <strong>Error in gregorian correction = ".($diff/3600/24)." days </strong><br>";
                
-       print " 15 Oct 1582, Fri=".(adodb_dow(1582,10,15) == 5 ? 'Fri' : '<b>Error</b>')."<br>";
-       print " 4 Oct 1582, Thu=".(adodb_dow(1582,10,4) == 4 ? 'Thu' : '<b>Error</b>')."<br>";
+       print " 15 Oct 1582, Fri=".(adodb_dow(1582,10,15) == 5 ? 'Fri' : '<strong>Error</strong>')."<br>";
+       print " 4 Oct 1582, Thu=".(adodb_dow(1582,10,4) == 4 ? 'Thu' : '<strong>Error</strong>')."<br>";
        
        print "<p>Testing overflow<p>";
        
@@ -538,9 +538,9 @@ function adodb_date_test()
                                        break;
                                }
                        }
-                       print "<b>Error date(): $ts<br><pre> 
+                       print "<strong>Error date(): $ts<br><pre> 
 &nbsp; \"$s1\" (date len=".strlen($s1).")
-&nbsp; \"$s2\" (adodb_date len=".strlen($s2).")</b></pre><br>";
+&nbsp; \"$s2\" (adodb_date len=".strlen($s2).")</strong></pre><br>";
                        $fail = true;
                }
                
@@ -548,7 +548,7 @@ function adodb_date_test()
                $a2 = adodb_getdate($ts);
                $rez = array_diff($a1,$a2);
                if (sizeof($rez)>0) {
-                       print "<b>Error getdate() $ts</b><br>";
+                       print "<strong>Error getdate() $ts</strong><br>";
                                print_r($a1);
                        print "<br>";
                                print_r($a2);
@@ -598,7 +598,7 @@ function adodb_date_test()
        }
        echo "Tested $cnt dates<br>";
        if (!$fail) print "<p>Passed !</p>";
-       else print "<p><b>Failed</b> :-(</p>";
+       else print "<p><strong>Failed</strong> :-(</p>";
 }
 
 /**
index 552e577..69bc5ae 100644 (file)
@@ -600,7 +600,7 @@ class ADORecordSet_ado extends ADORecordSet {
                                $this->fields[] = false;
                                break;
                        case 6: // currency is not supported properly;
-                               ADOConnection::outp( '<b>'.$f->Name.': currency type not supported by PHP</b>');
+                               ADOConnection::outp( '<strong>'.$f->Name.': currency type not supported by PHP</strong>');
                                $this->fields[] = (float) $f->value;
                                break;
                        case 11: //BIT;
index 51beb65..f952562 100644 (file)
@@ -645,7 +645,7 @@ class ADORecordSet_ado extends ADORecordSet {
                        $this->fields[] = (float) $f->value; // if 64 bit PHP, could use (int)
                        break;
                        case 6: // currency is not supported properly;
-                               ADOConnection::outp( '<b>'.$f->Name.': currency type not supported by PHP</b>');
+                               ADOConnection::outp( '<strong>'.$f->Name.': currency type not supported by PHP</strong>');
                                $this->fields[] = (float) $f->value;
                                break;
                        case 11: //BIT;
index 920d947..04db496 100644 (file)
@@ -380,7 +380,7 @@ class ADODB_mssqlnative extends ADOConnection {
         if ($this->debug) error_log("<hr>connecting... hostname: $argHostname params: ".var_export($connectionInfo,true));
         //if ($this->debug) error_log("<hr>_connectionID before: ".serialize($this->_connectionID));
         if(!($this->_connectionID = sqlsrv_connect($argHostname,$connectionInfo))) { 
-            if ($this->debug) error_log( "<hr><b>errors</b>: ".print_r( sqlsrv_errors(), true));
+            if ($this->debug) error_log( "<hr><strong>errors</strong>: ".print_r( sqlsrv_errors(), true));
             return false;
         }
         //if ($this->debug) error_log(" _connectionID after: ".serialize($this->_connectionID));
index 43b71a6..a0b3904 100644 (file)
@@ -706,7 +706,7 @@ NATSOFT.DOMAIN =
                //if (strlen($val) < 4000) return $this->Execute("UPDATE $table SET $column=:blob WHERE $where",array('blob'=>$val)) != false;
                
                switch(strtoupper($blobtype)) {
-               default: ADOConnection::outp("<b>UpdateBlob</b>: Unknown blobtype=$blobtype"); return false;
+               default: ADOConnection::outp("<strong>UpdateBlob</strong>: Unknown blobtype=$blobtype"); return false;
                case 'BLOB': $type = OCI_B_BLOB; break;
                case 'CLOB': $type = OCI_B_CLOB; break;
                }
@@ -737,7 +737,7 @@ NATSOFT.DOMAIN =
        function UpdateBlobFile($table,$column,$val,$where,$blobtype='BLOB')
        {
                switch(strtoupper($blobtype)) {
-               default: ADOConnection::outp( "<b>UpdateBlob</b>: Unknown blobtype=$blobtype"); return false;
+               default: ADOConnection::outp( "<strong>UpdateBlob</strong>: Unknown blobtype=$blobtype"); return false;
                case 'BLOB': $type = OCI_B_BLOB; break;
                case 'CLOB': $type = OCI_B_CLOB; break;
                }
@@ -950,7 +950,7 @@ NATSOFT.DOMAIN =
                        $stmt[2] += 1;
                } else if (oci_lob_desc($type)) {
                        if ($this->debug) {
-                               ADOConnection::outp("<b>Bind</b>: name = $name");
+                               ADOConnection::outp("<strong>Bind</strong>: name = $name");
                        }
             //we have to create a new Descriptor here
                        $numlob = count($this->_refLOBs);
@@ -960,7 +960,7 @@ NATSOFT.DOMAIN =
                        $tmp = $this->_refLOBs[$numlob]['LOB'];
                $rez = OCIBindByName($stmt[1], ":".$name, $tmp, -1, $type);
                        if ($this->debug) {
-                               ADOConnection::outp("<b>Bind</b>: descriptor has been allocated, var (".$name.") binded");
+                               ADOConnection::outp("<strong>Bind</strong>: descriptor has been allocated, var (".$name.") binded");
                        }
                        
                        // if type is input then write data to lob now
@@ -969,7 +969,7 @@ NATSOFT.DOMAIN =
                                $tmp->WriteTemporary($var);
                                $this->_refLOBs[$numlob]['VAR'] = &$var;
                                if ($this->debug) {
-                                       ADOConnection::outp("<b>Bind</b>: LOB has been written to temp");
+                                       ADOConnection::outp("<strong>Bind</strong>: LOB has been written to temp");
                                }
                        } else {
                                $this->_refLOBs[$numlob]['VAR'] = $var;
@@ -977,7 +977,7 @@ NATSOFT.DOMAIN =
                        $rez = $tmp;
                } else {
                        if ($this->debug) 
-                               ADOConnection::outp("<b>Bind</b>: name = $name");
+                               ADOConnection::outp("<strong>Bind</strong>: name = $name");
                        
                        if ($type !== false) $rez = OCIBindByName($stmt[1],":".$name,$var,$size,$type);
                        else $rez = OCIBindByName($stmt[1],":".$name,$var,$size); // +1 byte for null terminator
@@ -1100,7 +1100,7 @@ NATSOFT.DOMAIN =
                                        if ($this -> _refLOBs[$key]['TYPE'] == true) {
                                                $tmp = $this -> _refLOBs[$key]['LOB'] -> load();
                                                if ($this -> debug) {
-                                                       ADOConnection::outp("<b>OUT LOB</b>: LOB has been loaded. <br>");
+                                                       ADOConnection::outp("<strong>OUT LOB</strong>: LOB has been loaded. <br>");
                                                }
                                                //$_GLOBALS[$this -> _refLOBs[$key]['VAR']] = $tmp;
                                                $this -> _refLOBs[$key]['VAR'] = $tmp;
@@ -1109,7 +1109,7 @@ NATSOFT.DOMAIN =
                                                $this -> _refLOBs[$key]['LOB']->free();
                                                unset($this -> _refLOBs[$key]);
                         if ($this->debug) {
-                                                       ADOConnection::outp("<b>IN LOB</b>: LOB has been saved. <br>");
+                                                       ADOConnection::outp("<strong>IN LOB</strong>: LOB has been saved. <br>");
                                                }
                     }                                  
                                }