00001 <?php 00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00003 * This file is part of Travelsized CMS 00004 * A content management system with modules, based on wiki syntax 00005 * 00006 * Author: Dan Jensen <admin@leinir.dk> 00007 * Copyright 2003/2004 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License is available at: http://www.gnu.org/copyleft/ 00015 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00016 00017 class discuss_importer_phpbb2 00018 { 00019 var $globalID; 00020 00021 var $users; 00022 var $posts; 00023 00024 var $threads; 00025 00026 var $mysqlConnection; 00027 var $tablePrefix; 00028 00029 function discuss_importer_phpbb2() 00030 { 00031 } 00032 00033 function get_users() 00034 { 00035 } 00036 00037 function get_posts() 00038 { 00039 } 00040 00041 function get_threads() 00042 { 00043 } 00044 00050 function render() 00051 { 00052 global $theModuleAction; 00053 switch($theModuleAction) 00054 { 00055 // Posts 00056 case "doit": 00057 // Load all sections and forums 00058 if( $errorhandler->handled ) 00059 // Show the errors... 00060 else 00061 header("Location: " . globalIDtoURL("setup/discuss") ); 00062 break; 00063 // Users 00064 case "users": 00065 $nextCommand = drawCommand( i18n("Next ##0##", array("»")), i18n("Go to the next step"), globalIDtoURL( "setup/discuss/import/phpbb2/doit" ) ); 00066 break; 00067 // Database details 00068 default: 00069 $nextCommand = drawCommand( i18n("Next ##0##", array("»")), i18n("Go to the next step"), globalIDtoURL( "setup/discuss/import/phpbb2/users" ) ); 00070 break; 00071 } 00072 00073 return $renderedContent; 00074 } 00075 } 00076 00077 ?>