I am getting this error
[font=Segoe UI][size=13px][font=Times New Roman][/size][size=12pt]Fatal error[/size][/font][/size][size=13px][font=Times New Roman][/size][size=12pt]: Call to undefined function check_image() in[/size][/font][font=Times New Roman][/size][size=12pt] [/size][/font][font=Times New Roman][/size][size=12pt]/home/vetnets1/public_html/control/spotlight_engineer/aed_spotlight.php[/size][/font][font=Times New Roman][/size][size=12pt] [/size][/font][font=Times New Roman][/size][size=12pt]on line[/size][/font][font=Times New Roman][/size][size=12pt] [/size][/font][font=Times New Roman][/size][size=12pt]21[/size][/font][/font]
Here is the code:
[font=Segoe UI][/size][size=13px][/color]
<? [/size][/font]include("../../global.php"); include("app_vars.php"); include("../../library/check_image.php"); if(count($_POST) > 0) { // Determine type of banner link switch($link_opt) { case '0' : $link_url = $int_url; break; case '1' : $link_url = $ext_url; break; case '3' : $link_url = $linkmurl; break; default : $link_url = $int_url; } # If an image has been specified... if($img_size > 0) { if(check_image($img, array("width" => $MAX_IMAGE_WIDTH))) { $fp = fopen($img, "r"); $img_data = addslashes(fread($fp, $img_size)); fclose($fp); } else { unset($img_name, $img_type, $img_size); $onLoad = " onLoad=\"alert('The image did not meet size requirements and was not stored with the Spotlight.');\""; } } else { unset($img_name, $img_type, $img_size); } require("../../datalink.php"); if(($a) && ($_POST["go"] != "index.php")) { $_POST["go"] .= $spotliteID; } header("Location: " . $_POST["go"]); exit(); } if($r) { $query = "UPDATE spotliteDB SET img_name = NULL, img_type = NULL, img_size = NULL, img_data = NULL WHERE spotliteID = $spotliteID"; mysql_query($query) or mysql_error_handler($query, $PHP_SELF); } if($e) { include("../../datalink.php"); } ?> the builder
|
<? include("../footer.php"); ?> ___________________________________________________________________________________________________________________
I have the check_image.php file in the library directory as indicated in the include at the top…any help would be greatly appreciated.
Regards,