I want to add a function "print" in to my sytem. I try to add it with these lines in functions.php:
if (!check_permission("auth_sendpostcard", $image_row['cat_id'])) ......
and:
if (!check_permission("auth_print", $image_row['cat_id'])) {
$print_button = "<img src=\"".get_gallery_image("print_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
$print_button = "<a href=\"".$site_sess->url(ROOT_PATH."print.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&mode=".$mode : ""))."\"><img src=\"".get_gallery_image("print.gif")."\" border=\"0\" alt=\"\" /></a>";
}
In MYSQL I add a line in the table categories "auth_print".
The result wasn't a print button it was "print_off.gif". So please help me to find my mistake in this mess