I changed the next line to "defined" as well and it ran but gave me this error;
Please log into cp.cgi before you load this program. (Caller: avatar_clean.cgi:483 -> sub main::Tracer) (Caller: avatar_clean.cgi:307 -> sub main::error_output) (Caller: avatar_clean.cgi:37 -> sub main::VerifyCookie)
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.