Стартовый пул

This commit is contained in:
2024-04-02 08:46:59 +03:00
parent fd57fffd3a
commit 3bb34d000b
5591 changed files with 3291734 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
if (!isset($db)) {
class my_DB extends DB {
function connect($phptype = 'mysql') {
$dsn = "mysql://" . DB_USER . ":" . DB_PASSWORD . "@" . DB_SERVER . "/" . DB_DATABASE;
$op = array(
'debug' => 2,
'portability' => DB_PORTABILITY_ALL,
);
//PEAR::setErrorHandling(PEAR_ERROR_TRIGGER);
$db = & parent::connect($dsn, $op);
if (parent::isError($db)) {
die($db->getMessage());
}
return $db;
}
}
$db = &my_DB::connect();
$db->query("SET NAMES cp1251");
}
$array = explode(",", $part_id);