Custom Post-Type not in admin menu

Your capability type is not valid. I would remove the code below if you can. WordPress auto generates the capability_type.

        "capability_type" => array(
            strtolower($s),
            strtolower($m)
        ),

Check out the documentation for capability_type. https://codex.wordpress.org/Function_Reference/register_post_type

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