Ok I think that's clear! Thanx! But now I am running the script and I am getting the following erroro from the server.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Parse error: parse error in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php on line 226
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 84
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 84
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 92
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/functions.php:226) in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/sessions.php on line 92
Parse error: parse error in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/includes/page_header.php on line 227
Fatal error: Call to undefined function: get_categories() in /home/httpd/vhosts/cafethequestion.nl/httpdocs/4images/index.php on line 78
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Am I missing something? Or am I doing something wrong?
This is my function.php file from line 225 to 239
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
if ($user_info['user_level'] != GUEST && $image_row['price_1'] != 0) {
$warenkorb_url = $self_url;
$warenkorb_url .= (!empty($mode)) ? ((preg_match("/\?/", $warenkorb_url)) ? "&" : "?")."mode=".$mode : "";
$warenkorb_url .= preg_match("/\?/", $warenkorb_url) ? "&" : "?";
if (check_warenkorb($image_row['image_id'])) {
$warenkorb_url .= "action=removefromwarenkorb&id=".$image_row['image_id'];
$warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\"Remove item from shopping cart\" /></a>";
$warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_no_kl.gif")."\" border=\"0\" align=\"\" alt=\" Remove item from shopping cart \" /></a>";
}
else {
$warenkorb_url .= "action=addtowarenkorb&id=".$image_row['image_id'];
$warenkorb_button = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
$warenkorb_button_kl = "<a href=\"".$site_sess->url($warenkorb_url)."\"><img src=\"".get_gallery_image("warenkorb_yes_kl.gif")."\" border=\"0\" align=\"\" alt=\" Add to shopping cart\" /></a>";
}
}