3 define('AT_INCLUDE_PATH', '../../../include/');
4 require (AT_INCLUDE_PATH.'vitals.inc.php');
5 //require (AT_INCLUDE_PATH.'header.inc.php');
7 $forum_id = $_GET['fid'];
8 $forum_title = $_GET['title'];
10 require('forum_post.php');
11 require(AT_INCLUDE_PATH.'classes/zipfile.class.php');
15 $zipfile = new zipfile();
16 $zipfile->add_file(file_get_contents(AT_CONTENT_DIR.'/exported_forum.html'), 'exported_forum.html');
18 foreach($filearr as $val) {
19 $zipfile->add_file(file_get_contents(AT_CONTENT_DIR.'/'.$val), $val);
20 unlink(AT_CONTENT_DIR.'/'.$val);
23 $zipfile->add_file(file_get_contents(AT_CONTENT_DIR.'/styles.css'), 'styles.css');
24 unlink(AT_CONTENT_DIR.'/styles.css');
26 // replaces spaces with underscores
27 if (strpos($forum_title, chr(32)) != false) {
28 $forum_title = str_replace(chr(32), chr(95), $forum_title);
30 $zipfile->send_file($forum_title);
35 <?php //require (AT_INCLUDE_PATH.'footer.inc.php'); ?>