<?php
/**
* module - column_right.php
* output all the right sidebox
* require(DIR_WS_MODULES . zen_get_module_directory('column_right.php'));
*/
?>
<?php
if(! defined('IS_ADMIN_FLAG')){
die('Illegal Access');
}
$column_right_display = $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location=1 and layout_box_status=1 and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order');
while(! $column_right_display->EOF){
if(file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_right_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name'])){
if(file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name'])){
require (DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_right_display->fields['layout_box_name']);
} else{
require (DIR_WS_MODULES . 'sideboxes/' . $column_right_display->fields['layout_box_name']);
}
}
$column_right_display->MoveNext();
}
?>