Well just add the below codes to the beginning of your script file:
PHP Code:
include("functions/functions_adopts.php");
The function getcurrentimage() has been moved to the file functions_adopts.php. I split the original large functions.php file into five pieces for Mys v1.3.0.