holy shit

寺夺喜从天降

模块修改-column_left.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_left_display= $db->Execute("select layout_box_name from " . TABLE_LAYOUT_BOXES . " where layout_box_location = 0 and layout_box_status= '1' and layout_template ='" . $template_dir . "'" . ' order by layout_box_sort_order');

while(! $column_left_display->EOF){
	if(file_exists(DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name']) or file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name'])){
		if(file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name'])){
			require (DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $column_left_display->fields['layout_box_name']);
		} else{
			require (DIR_WS_MODULES . 'sideboxes/' . $column_left_display->fields['layout_box_name']);
		}
	}
	$column_left_display->MoveNext();
}
?>
posted @ 2011-07-18 10:40  潜水鱼  阅读(371)  评论(0编辑  收藏  举报

holy shit on foot