function nc_load_boxes() {
$boxes = array();
$result = mysql_query("
SELECT *
FROM
nc_boxes
WHERE box_pos = 'left'
ORDER BY
box_order
");
while(($row = mysql_fetch_array($result) )) {
$boxes[] = array('id' => $row['nc_boxes_id'],
'name' => $row['box_name'],
'pos' => $row['box_pos'],
'order'=> $row['box_order']
);
}
$result = mysql_query("
SELECT *
FROM
nc_boxes
WHERE box_pos = 'off'
ORDER BY
box_order
");
while(($row = mysql_fetch_array($result) )) {
$boxes[] = array('id' => $row['nc_boxes_id'],
'name' => $row['box_name'],
'pos' => $row['box_pos'],
'order'=> $row['box_order']
);
}
$result = mysql_query("
SELECT *
FROM
nc_boxes
WHERE box_pos = 'right'
ORDER BY
box_order
");
while(($row = mysql_fetch_array($result) )) {
$boxes[] = array('id' => $row['nc_boxes_id'],
'name' => $row['box_name'],
'pos' => $row['box_pos'],
'order'=> $row['box_order']
);
}
return $boxes;
}
?>
function nc_get_box_pos($box) {
global $nc_boxes_data;
foreach ($nc_boxes_data as $box_data) {
if($box_data['name'] == $box) return $box_data['pos'];
}
return 'off';
}
?>
function nc_get_conf($conf_key) {
$result = mysql_query('
SELECT nc_value
FROM nc_configuration
WHERE
nc_key = "'.$conf_key.'"
');
echo mysql_error();
$data = mysql_fetch_array($result);
return $data['nc_value'];
}
function nc_is_valid_trusted_shop_id($shop_id) {
if(strlen($shop_id) != 33)
return false;
if(substr($shop_id, 0, 1) != 'X')
return false;
return true; // 33 chars long and begins with X
}
?>
function nc_get_url_shop_bg() {
if(file_exists(DIR_FS_CATALOG.DIR_WS_IMAGES .'shop_bg.gif')) {
return DIR_WS_CATALOG.DIR_WS_IMAGES .'shop_bg.gif';
}
return false;
}
?>
function nc_get_url_infobox_bg($box=false) {
$out = false;
if($box !== false) {
if(file_exists(DIR_FS_CATALOG.DIR_WS_IMAGES .'menubox/'.$box.'.gif')) {
$out = DIR_WS_CATALOG.DIR_WS_IMAGES.'menubox/'.$box.'.gif';
}
}
if($out === false) {
if(file_exists(DIR_FS_CATALOG.DIR_WS_IMAGES .'infobox_bg.gif')) {
$out = DIR_WS_CATALOG.DIR_WS_IMAGES .'infobox_bg.gif';
}
}
return $out;
}
?>
function nc_get_tpl_content($name) {
$result = mysql_query('
SELECT content
FROM nc_tpl_email
WHERE
name = "'. $name .'"
');
$data = mysql_fetch_array($result);
return $data['content'];
}
?>
function nc_counter_visit() {
$result = mysql_query('
UPDATE nc_counter
SET visits = visits + 1
');
echo mysql_error();
}
?>
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /var/www/vhosts/dawiess.de/httpdocs/inc/xtc_db_connect.inc.php:34
Stack trace:
#0 /var/www/vhosts/dawiess.de/httpdocs/includes/application_top.php(191): xtc_db_connect()
#1 /var/www/vhosts/dawiess.de/httpdocs/index.php(25): include('...')
#2 {main}
thrown in /var/www/vhosts/dawiess.de/httpdocs/inc/xtc_db_connect.inc.php on line 34