コード例 #1
0
ファイル: site.php プロジェクト: BackupTheBerlios/hpt-obm-svn
                    }
                }
                $full_publish_path = $root_publish_path;
                $dirs = explode($GO_CONFIG->slash, $publish_path);
                while ($dir = array_shift($dirs)) {
                    $full_publish_path = $full_publish_path . $dir . $GO_CONFIG->slash;
                    if (!file_exists($full_publish_path)) {
                        @mkdir($full_publish_path);
                    }
                    if (!is_writable($full_publish_path)) {
                        $feedback = '<p class="Error">' . $cms_path_not_writable . ': \'' . $full_publish_path . '\'</p>';
                        break;
                    }
                }
                if ($full_publish_path == $root_publish_path . $publish_path) {
                    $cms->set_publishing($site_id, $publish_style, addslashes($publish_path));
                    require $GO_CONFIG->class_path . 'cms_site.class.inc';
                    $cms_site = new cms_site($site_id);
                    $cms_site->publish();
                    if ($close == 'true') {
                        header('Location: ' . $return_to);
                        exit;
                    }
                }
            }
        }
    }
}
if ($site_id > 0) {
    //create a tab window
    $site = $cms->get_site($site_id);