"; //$pathtoroot=""; if(!strlen($pathtoroot)) { $path=dirname(realpath(__FILE__)); if(strlen($path)) { /* determine the OS type for path parsing */ $pos = strpos($path,":"); if ($pos === false) { $gOS_TYPE="unix"; $pathchar = "/"; } else { $gOS_TYPE="win"; $pathchar="\\"; } $p = $path.$pathchar; /*Start looking for the root flag file */ while(!strlen($pathtoroot) && strlen($p)) { $sub = substr($p,strlen($pathchar)*-1); if($sub==$pathchar) { $filename = $p."root.flg"; } else $filename = $p.$pathchar."root.flg"; if(file_exists($filename)) { $pathtoroot = $p; } else { $parent = realpath($p.$pathchar."..".$pathchar); if($parent!=$p) { $p = $parent; } else $p = ""; } } if(!strlen($pathtoroot)) $pathtoroot = ".".$pathchar; } else { $pathtoroot = ".".$pathchar; } } $sub = substr($pathtoroot,strlen($pathchar)*-1); if($sub!=$pathchar) { $pathtoroot = $pathtoroot.$pathchar; } //echo $pathtoroot; require_once($pathtoroot."kernel/startup.php"); $rootURL="http://".ThisDomain().$objConfig->Get("Site_Path"); $admin = $objConfig->Get("AdminDirectory"); if(!strlen($admin)) $admin = "admin"; $localURL=$rootURL."kernel/"; $adminURL = $rootURL.$admin; $imagesURL = $adminURL."/images"; $browseURL = $adminURL."/browse"; $cssURL = $adminURL."/include"; $m_var_list_update["cat"] = 0; $homeURL = $_SERVER["PHP_SELF"]."?env=".BuildEnv(); unset($m_var_list_update["cat"]); $envar = "env=" . BuildEnv(); if($objCatList->CurrentCategoryID()>0) { $c = $objCatList->CurrentCat(); $upURL = $c->Admin_Parent_Link(); } else $upURL = $_SERVER["PHP_SELF"]."?".$envar; //admin only util $pathtolocal = $pathtoroot."kernel/"; require_once ($pathtoroot.$admin."/include/elements.php"); //require_once ($pathtoroot."kernel/admin/include/navmenu.php"); require_once ($pathtolocal."admin/include/navmenu.php"); require_once($pathtoroot.$admin."/browse/toolbar.php"); $m = GetModuleArray(); foreach($m as $key=>$value) { $path = $pathtoroot.$value."admin/include/parser.php"; if(file_exists($path)) { //echo ""; @include_once($path); } } //Set Section $section = 'in-portal:editcategory_relationselect'; $Selector = GetVar('Selector'); if(!$Selector) $Selector = 'checkbox'; //Set Environment Variable //echo $objCatList->ItemsOnClipboard()." Categories on the clipboard
\n"; //echo $objTopicList->ItemsOnClipboard()." Topics on the clipboard
\n"; //echo $objLinkList->ItemsOnClipboard()." Links on the clipboard
\n"; //echo $objArticleList->ItemsOnClipboard()." Articles on the clipboard
\n"; $SearchType = $objSession->GetVariable("SearchType"); if(!strlen($SearchType)) $SearchType = "Categories"; $SearchLabel = "la_SearchLabel"; /* page header */ $charset = GetRegionalOption('Charset'); print << In-portal END; require_once($pathtoroot.$admin."/include/mainscript.php"); load_module_styles(); print << END; int_SectionHeader(); ?>
" ImagePath=""> " ImagePath=""> "> " ImagePath=""> " ImagePath=""> "> " ImagePath="">
1) ); ?>
" NAME="admin_search" ID="admin_search"> "> ">
  /icon16_search.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/icon16_search_f2.gif'" onmouseout="this.src='/icon16_search.gif'" style="cursor:hand" width="22" width="22"><?php echo admin_language(" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" src="/arrow16.gif" onmouseover="this.src='/arrow16_f2.gif'" onmouseout="this.src='/arrow16.gif'" style="cursor:hand"> /icon16_search_reset.gif" alt="" align="absMiddle" onclick="this.action = this.getAttribute('action'); actionHandler(this);" onmouseover="this.src='/icon16_search_reset_f2.gif'" onmouseout="this.src='/icon16_search_reset.gif'" style="cursor:hand" width="22" width="22"> 

Clear(); $OrderBy = $objCatList->QueryOrderByClause(TRUE,TRUE,TRUE); if($SearchType=="categories" || $SearchType="all") { $list = $objSession->GetVariable("SearchWord"); $SearchQuery = $objCatList->AdminSearchWhereClause($list); if(strlen($SearchQuery)) { $SearchQuery = " (".$SearchQuery.") "; $objCatList->LoadCategories($SearchQuery.$CategoryFilter,$OrderBy); } else $objCatList->LoadCategories("ParentId=".$objCatList->CurrentCategoryID()." ".$CategoryFilter,$OrderBy); } else $objCatList->LoadCategories("ParentId=".$objCatList->CurrentCategoryID()." ".$CategoryFilter,$OrderBy); ?>
(QueryItemCount; ?>) 
 
CurrentCategoryID(),"cat_select_element.tpl"); ?>

TabRow(); ?>
$value) { $path = $pathtoroot.$value."admin/relation_select.php"; if(file_exists($path)) { echo "\n\n"; include_once($path); } } ?>
" name="viewmenu">