[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_db_connect_.class.php (source)

   1  <?php
   2  abstract class MP_db_connect_
   3  {
   4  	function mysql_disconnect($x = '0')
   5      {
   6          global $wpdb;
   7          if (isset($this->trace)) $this->trace->log("MAILPRESS [NOTICE] - Disconnecting from " . DB_NAME . " ($x)");
   8  
   9          $closed = ( $wpdb->use_mysqli ) ? mysqli_close( $wpdb->dbh ) : mysql_close( $wpdb->dbh );
  10  
  11          if (isset($this->trace)) $this->trace->log("MAILPRESS [NOTICE] - Disconnected ($x)");
  12      }
  13  
  14  	function mysql_connect($x = '0')
  15      {
  16          global $wpdb;
  17          if (isset($this->trace)) $this->trace->log("MAILPRESS [NOTICE] - Connecting to " . DB_NAME . " ($x)");
  18  
  19          $wpdb->__construct(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
  20  
  21          if (isset($this->trace)) $this->trace->log("MAILPRESS [NOTICE] - Connected ($x)");
  22      }
  23  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1