Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/niceye.com/library/db.php:80 Stack trace: #0 /var/www/vhosts/niceye.com/library/db.php(231): db::connect() #1 /var/www/vhosts/niceye.com/pages/default/router.php(18): db::select('menus', Array) #2 {main} thrown in /var/www/vhosts/niceye.com/library/db.php on line 80

Huston! We have a problem !

File : /var/www/vhosts/niceye.com/library/db.php
Line : 80
Error : Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/niceye.com/library/db.php:80
Stack trace:
#0 /var/www/vhosts/niceye.com/library/db.php(231): db::connect()
#1 /var/www/vhosts/niceye.com/pages/default/router.php(18): db::select('menus', Array)
#2 {main}
thrown

/var/www/vhosts/niceye.com/library/db.php ( 80 )

70 */
71 public static function connect() {
72 if (db::$_isConnecting && !db::$_multiple) {
73 return;
74 }
75 db::$_isConnecting = true;
76 if (db::$_server) {
77 db::$_conn = mysql_connect(db::$_server, db::$_username, db::$_password);
78 mysql_select_db(db::$_db_name, db::$_conn);
79 } else {
80 db::$_conn = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD);
81 echo mysql_error();
82 mysql_select_db(DB_NAME, db::$_conn);
83 db::mysql_query("SET NAMES UTF8;", db::$_conn);
84 }
85 }
86 /**
87 * Veritabanı bağlantı bilgilerini ayarlar. Kullanıldığında çoklu bağlantıyı etkinleştirir.
88 * @param string $server
89 * @param string $username

/var/www/vhosts/niceye.com/library/db.php ( 231 )

221 }
222
223 $query = "SELECT " . $rows . " FROM " . $table . $join . $where . $group_by . $order_by . $limit;
224 if ($use_cache) {
225 $key = md5($query);
226 $mem = rG_Memcache::singleton();
227 $result = $mem->get($key);
228 if ($result)
229 return $result;
230 }
231 db::connect();
232
233 if (isset($params["die"])) {
234 die($query);
235 }
236 $q = db::mysql_query($query);
237 $i = 0;
238 if (mysql_error ()) {
239 $error = mysql_error();
240 throw new Exception(chr(13) . "SQL Error : " . chr(13) . "Query : " . $query . chr(13) . " Error : " . $error . chr(13));

/var/www/vhosts/niceye.com/pages/default/router.php ( 18 )

8 $controller = $_GET["controller"];
9 $action = $_GET["do"];
10 $id = $_GET["id"];
11
12 $extra = $_GET["extra"];
13
14 $rG->assign("controller", $controller);
15 $rG->assign("action", $action);
16
17 $params['order_by'] = "order_no";
18 $menu = db::select("menus", $params);
19 $rG->assign("menu", $menu);
20
21 // SET Default Language
22 if(!$_COOKIE['lang']) {
23 setcookie("lang", DEFAULT_LANG, time() + 86400, "/");
24 $rG->assign("cur_lang", "tr");
25 }
26 else {
27