Итак, для создания поста опять же используем файл с функциями из первой части http://www.avesblog.ru/2012/03/phpbb3-php-1.html . <?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 'On'); // The default phpBB inclusion protection - required define('IN_PHPBB', true); $phpbb_root_path = ''; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include($phpbb_root_path . 'phpBBFunctions.php'); $user->session_begin(); $auth->acl($user->data); $user->setup(); // Backup the details of the logged in user $backup = array( 'user' => $user, 'auth' => $auth, ); // Get the data for the System user $sql = "SELECT * FROM " . USERS_TABLE . " WHERE username = 'System'"; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($resu...
Комментарии
Отправить комментарий