| <?php |
| |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/home/categories/scripts/globals.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/projects/categoryList.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/smartconnection.class.php"); |
| |
| function pillar_page_info($category) |
| { |
| $categoryList = new CategoryList(); |
| $categoryList->selectCategoryList(); |
| $categoryIterator = new Category(); |
| $count = $categoryList->getCount(); |
| $i = 0; |
| while ($count > $i) |
| { |
| $categoryIterator = $categoryList->getItemAt($i++); |
| $catID = $categoryIterator->getCategoryID(); |
| if ($catID == $category) |
| { |
| $retval = $categoryIterator->getDescription(); |
| break; |
| } |
| |
| } |
| |
| return $retval; |
| } |
| |
| |
| ?> |