Viewing Paste 413
Formated Paste
<?php require("SSI.php"); require("Sources/Subs-Post.php"); require("Sources/Subs-Boards.php"); ); foreach($copy as $item) { // 'from' required. { { // We need to make this board, baby! $request = $smcFunc['db_query']('', ' SELECT name, description, id_board, id_cat FROM {db_prefix}boards WHERE id_board = {int:id_board} LIMIT 1', 'id_board' => $item['from'], ) ); if ($smcFunc['db_num_rows']($request)) { while ($row = $smcFunc['db_fetch_assoc']($request)) { 'target_board' => $item['child'], 'board_name' => $row['name'], 'target_category' => $row['id_cat'], 'description' => $row['description'], 'move_to' => 'child', ); } $new_id = createBoard($board); $item['to'] = $new_id; $created[] = $item['child']; } } $topics = ssi_recentTopics(5, null, $item['from'], 'array'); foreach($topics as $topic) { 'body' => $topic['preview'], 'subject' => $topic['subject'], ); 'board' => $item['to'], 'mark_as_read' => false, ); 'name' => 'SMF Doc Team', 'email' => 'docs@simplemachines.org', 'id' => 1, ); createPost($msgOptions, $topicOptions, $posterOptions); } } } ?>
