| version 1.10, 2015/07/09 12:11:53 |
version 1.11, 2015/07/09 12:18:10 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/lib/phpMyEdit/phpMyEdit.class.php,v 1.9 2012-05-14 14:53:43 igor Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.219 2015-07-09 12:15:58 igor Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
|
|
| var $pw; // password |
var $pw; // password |
| var $tb; // table |
var $tb; // table |
| var $db; // database |
var $db; // database |
| |
var $ssl; // use MySQL with SSL |
| var $dbp; // database with point and delimiters |
var $dbp; // database with point and delimiters |
| var $dbh; // database handle |
var $dbh; // database handle |
| var $close_dbh; // if database handle should be closed |
var $close_dbh; // if database handle should be closed |
|
|
| */ |
*/ |
| function sql_connect() /* {{{ */ |
function sql_connect() /* {{{ */ |
| { |
{ |
| |
$flags = $this->ssl > 0 ? MYSQL_CLIENT_SSL : null; |
| $this->dbh = @ini_get('allow_persistent') |
$this->dbh = @ini_get('allow_persistent') |
| ? @mysql_pconnect($this->hn, $this->un, $this->pw) |
? @mysql_pconnect($this->hn, $this->un, $this->pw, $flags) |
| : @mysql_connect($this->hn, $this->un, $this->pw); |
: @mysql_connect($this->hn, $this->un, $this->pw, false, $flags); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
|
| Line 3226 function '.$this->js['prefix'].'filter_h |
|
| Line 3228 function '.$this->js['prefix'].'filter_h |
|
| $this->un = $opts['un']; |
$this->un = $opts['un']; |
| $this->pw = $opts['pw']; |
$this->pw = $opts['pw']; |
| $this->db = $opts['db']; |
$this->db = $opts['db']; |
| |
$this->ssl = $opts['ssl']; |
| } |
} |
| $this->tb = $opts['tb']; |
$this->tb = $opts['tb']; |
| // Other variables |
// Other variables |