comicpress-manager-1.4/pages/comicpress_first_run.php

42 lines
1.1 KiB
PHP
Raw Normal View History

2009-06-13 12:07:36 +00:00
<?php
/**
* The main manager screen.
*/
function cpm_manager_first_run($target_page) {
2009-08-10 14:48:09 +00:00
global $cpm_config, $wpmu_version;
2009-06-13 12:07:36 +00:00
$target_page = "?page=${target_page}";
2009-08-10 14:48:09 +00:00
$is_wpmu = $wpmu_version;
2009-06-13 12:07:36 +00:00
ob_start();
?>
<h2>ComicPress Manager First Run</h2>
<p><strong>Thank you for using ComicPress Manager.</strong> I can attempt to create your starting comic directories for you.
<?php if (!$is_wpmu) { ?>
I'll be creating them in <?php echo CPM_DOCUMENT_ROOT ?>.
<?php } ?>
</p>
<form action="<?php echo $target_page ?>" method="post">
<input type="hidden" name="action" value="do-first-run" />
<input class="button" type="submit" value="Yes, try and make my comic directories" />
</form>
<?php if (!$is_wpmu) { ?>
<form action="<?php echo $target_page ?>" method="post">
<input type="hidden" name="action" value="skip-first-run" />
<input class="button" type="submit" value="No, I'll make them myself" />
</form>
<?php } ?>
<?php
$activity_content = ob_get_clean();
cpm_wrap_content(null, $activity_content);
}