assign("LANG_SKIN_SELECT",$lang['skin']['select']); $path = CC_ROOT_DIR.CC_DS.'skins'; foreach (glob($path.CC_DS.'*') as $skinpath) { $folder = basename($skinpath); if (is_dir($skinpath) && !preg_match('#^\.#iuU', $folder)) { $selected = ($folder==SKIN_FOLDER) ? ' selected="selected"': ''; if (file_exists($skinpath.CC_DS.'config.php')) { include $skinpath.CC_DS.'config.php'; } else { $skinName = $folder; } $box_content->assign("SKIN_NAME", $skinName); $box_content->assign("SKIN_VAL", $folder); $box_content->assign('SKIN_SELECTED', $selected); $box_content->assign("VAL_CURRENT_PAGE", $returnPage); $box_content->parse("skin.option"); } } $box_content->parse("skin"); $box_content = $box_content->text("skin"); } else { $box_content = NULL; } ?>