holy shit

寺夺喜从天降

模块修改-column_right.php

<?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();
}
?>
posted @ 2011-07-18 10:41  潜水鱼  阅读(209)  评论(0编辑  收藏  举报

holy shit on foot