Added files - test
git-svn-id: https://svn.pioder.pl/uf-svn/uF@11 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
38
includes/admin/class_forum.php
Normal file
38
includes/admin/class_forum.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Dynamic Script Forum
|
||||
* @file includes/admin/class_forum.php
|
||||
* @version 1.0.x, 17-05-2007, 19:59
|
||||
* @copyright 2008(c) PioDer <pioder@wp.pl>
|
||||
* @link http://pioder.gim2przemysl.int.pl/dsf.html
|
||||
* @license GNU GPL v3
|
||||
**/
|
||||
if ( !defined('IN_uF') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
}
|
||||
class Admin_Forum
|
||||
{
|
||||
function AddCats($fid)
|
||||
{
|
||||
global $forum_config;
|
||||
$cat = Forum::ForumInformation($fid,'c_id');
|
||||
$all='';
|
||||
$query = DataBase::sql_query("SELECT `name`, `c_id` FROM `".CATS_TABLE."`",'GENERAL','Could not obtain category information');
|
||||
while($t = @mysql_fetch_array($query))
|
||||
{
|
||||
|
||||
if ($t['c_id']==$cat)
|
||||
{
|
||||
$all .= '<option value="'.$t['c_id'].'" selected="selected">'.$t['name'].'</option>'."\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$all .= '<option value="'.$t['c_id'].'">'.$t['name'].'</option>'."\n";
|
||||
}
|
||||
}
|
||||
return $all;
|
||||
unset($t, $all);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user