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();
}
?>
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/web35/html/html2/inc/nc_load_boxes.inc.php:10) in /home/www/web35/html/html2/includes/application_top.php on line 311
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/web35/html/html2/inc/nc_load_boxes.inc.php:10) in /home/www/web35/html/html2/includes/application_top.php on line 311
Fatal error: Call to undefined function: nc_load_boxes() in /home/www/web35/html/html2/includes/application_top.php on line 577