Thread: [Phpbbkb-checkins] SF.net SVN: phpbbkb: [5] phpBB2/root
Status: Alpha
Brought to you by:
markthedaemon
From: <mar...@us...> - 2006-07-26 21:47:22
|
Revision: 5 Author: markthedaemon Date: 2006-07-26 08:51:44 -0700 (Wed, 26 Jul 2006) ViewCVS: http://svn.sourceforge.net/phpbbkb/?rev=5&view=rev Log Message: ----------- Some of the very first code commits. Please note that a lot of this is subject to change ;) Added Paths: ----------- phpBB2/root/includes/ phpBB2/root/includes/kb_addarticle.php phpBB2/root/includes/kb_viewcategories.php phpBB2/root/kb.php Added: phpBB2/root/includes/kb_addarticle.php =================================================================== --- phpBB2/root/includes/kb_addarticle.php (rev 0) +++ phpBB2/root/includes/kb_addarticle.php 2006-07-26 15:51:44 UTC (rev 5) @@ -0,0 +1,12 @@ +<?php +/** +* +* @package: kb +* @version: $Id: index.php,v 1.1.1.1 2006/02/24 02:28:06 markthedaemon Exp $ +* @copyright: (c) 2006 phpBB Knowledge Base +* @license: http://opensource.org/licenses/gpl-license.php GNU Public License +* +*/ + + +?> \ No newline at end of file Added: phpBB2/root/includes/kb_viewcategories.php =================================================================== --- phpBB2/root/includes/kb_viewcategories.php (rev 0) +++ phpBB2/root/includes/kb_viewcategories.php 2006-07-26 15:51:44 UTC (rev 5) @@ -0,0 +1,25 @@ +<?php +/** +* +* @package: kb +* @version: $Id: index.php,v 1.1.1.1 2006/02/24 02:28:06 markthedaemon Exp $ +* @copyright: (c) 2006 phpBB Knowledge Base +* @license: http://opensource.org/licenses/gpl-license.php GNU Public License +* +*/ + +if ( !defined('IN_PHPBB') ) +{ + die("Hacking attempt"); + exit; +} + +$sql = 'SELECT kb_category_name, kb_category_id, kb_category_desc + FROM ' . KB_CATEGORY_TABLE; + +if( !($result = $db->sql_query($sql)) ) +{ + message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); +} + +?> \ No newline at end of file Added: phpBB2/root/kb.php =================================================================== --- phpBB2/root/kb.php (rev 0) +++ phpBB2/root/kb.php 2006-07-26 15:51:44 UTC (rev 5) @@ -0,0 +1,44 @@ +<?php +/** +* +* @package: kb +* @version: $Id: index.php,v 1.1.1.1 2006/02/24 02:28:06 markthedaemon Exp $ +* @copyright: (c) 2006 phpBB Knowledge Base +* @license: http://opensource.org/licenses/gpl-license.php GNU Public License +* +*/ + +define('IN_PHPBB', true); +$phpbb_root_path = './'; +include($phpbb_root_path . 'extension.inc'); +include($phpbb_root_path . 'common.'.$phpEx); + +// +// Start session management +// +$userdata = session_pagestart($user_ip, PAGE_KB); +init_userprefs($userdata); +// +// End session management +// +if( isset($HTTP_GET_VARS['mode']) ) +{ + switch( $HTTP_GET_VARS['mode'] ) + { + case 'add': + include($phpbb_root_path . 'includes/kb_addarticle.'.$phpEx); + exit; + default: + include($phpbb_root_path . 'includes/kb_viewcategories.'.$phpEx); + exit; + } +} +else +{ + include($phpbb_root_path . 'includes/kb_viewcategories.'.$phpEx); + exit; +} + +redirect(append_sid("index.$phpEx", true)); + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2006-08-28 00:25:54
|
Revision: 6 Author: markthedaemon Date: 2006-08-27 17:25:46 -0700 (Sun, 27 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpbbkb/?rev=6&view=rev Log Message: ----------- Adding the start for a administration section for the KB Added Paths: ----------- phpBB2/root/admin/ phpBB2/root/admin/admin_kb.php Added: phpBB2/root/admin/admin_kb.php =================================================================== --- phpBB2/root/admin/admin_kb.php (rev 0) +++ phpBB2/root/admin/admin_kb.php 2006-08-28 00:25:46 UTC (rev 6) @@ -0,0 +1,42 @@ +<?php +/*************************************************************************** + * admin_kb.php + * ------------------- + * begin : Thursday, Jul 12, 2001 + * copyright : (C) 2001 phpBB Knowledge Base + * URL : http://www.phpbbknowledgebase.com + * + * $Id: admin_kb.php,v 1.0.0.0 2006/08/28 21:55:09 markthedaemon Exp $ + * + ***************************************************************************/ + +/*************************************************************************** + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + ***************************************************************************/ + +define('IN_PHPBB', 1); + +if( !empty($setmodules) ) +{ + $file = basename(__FILE__); + $module['Forums']['Manage'] = $file; + return; +} + +// +// Load default header +// +$phpbb_root_path = "./../"; +require($phpbb_root_path . 'extension.inc'); +require('./pagestart.' . $phpEx); +include($phpbb_root_path . 'includes/functions_admin.'.$phpEx); + + +include('./page_footer_admin.'.$phpEx); + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |