1. you don't need to inlcude this files:
PHP Code:
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
it's happening automatic
2.
why you eval this part?:
PHP Code:
eval('$title = "' . addslashes("THE THREAD TITLE") . '";'); // The title of the thread
eval('$pagetext = "' . addslashes("THE CONTENT OF THE POST") . '";'); // The content of the thread