Uncaught ReferenceError: the_ajax_script is not defined . How is this not defined?

Until ajaxurl is always defined as of WP 2.8 you can simply remove the_ajax_script from here $.post(the_ajax_script.ajaxurl.

You create the object the_ajax_script for the activate2 script but don’t but the code that uses this object in that file.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)