Някой ако може да помогне
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /h2/home/suvenirc/public_html/vqmod/vqmod.php on line 636
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /h2/home/suvenirc/public_html/system/database/mysql.php on line 6
vqmod.php редове 632-640
mysql.php редове 1-8
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /h2/home/suvenirc/public_html/vqmod/vqmod.php on line 636
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /h2/home/suvenirc/public_html/system/database/mysql.php on line 6
vqmod.php редове 632-640
Код:
private function _checkMatch($modFilePath, $checkFilePath) {
$modFilePath = str_replace('\\', '/', $modFilePath);
$checkFilePath = str_replace('\\', '/', $checkFilePath);
$modFilePath = preg_replace('/([^*]+)/e', 'preg_quote("$1", "~")', $modFilePath);
$modFilePath = str_replace('*', '[^/]*', $modFilePath);
$return = (bool) preg_match('~^' . $modFilePath . '$~', $checkFilePath);
return $return;
mysql.php редове 1-8
Код:
<?php
final class MySQL {
private $connection;
public function __construct($hostname, $username, $password, $database) {
if (!$this->connection = mysql_connect($hostname, $username, $password)) {
exit('Error: Could not make a database connection using ' . $username . '@' . $hostname);
}