<?php
require("SSI.php");
require("Sources/Subs-Post.php");
require("Sources/Subs-Boards.php");
array('from' =>
5,
'to' =>
117),
array('from' =>
29,
'child' =>
119),
array('from' =>
30,
'child' =>
119),
array('from' =>
31,
'child' =>
119),
array('from' =>
32,
'child' =>
119),
array('from' =>
33,
'child' =>
119),
array('from' =>
16,
'child' =>
117),
array('from' =>
17,
'child' =>
117),
array('from' =>
18,
'child' =>
117),
array('from' =>
19,
'child' =>
117),
array('from' =>
20,
'child' =>
117),
array('from' =>
21,
'child' =>
117),
array('from' =>
22,
'child' =>
117),
array('from' =>
23,
'child' =>
117),
array('from' =>
6,
'to' =>
118),
);
foreach($copy as $item)
{
// 'from' required.
{
if (isset($item['child']) && !
in_array($item['child'],
$created)) {
// 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);
}
}
}
?>