<!-- ///// Output a WARNING if there are any Projects in Steps 1, 3, or 4 ///// --> <?php echo delayed_load_span(array(), create_function('', now_doc('DELAY'))); ?> <!-- ///// Repo Status ///// --> <h4>Repository Status</h4> Current Status: <?php echo delayed_load_span(array(), create_function('', now_doc('DELAY'))); ?> <!-- ///// Repo Diff from PROD TEST ///// --> <br/>Diff from PROD_TEST: <?php echo delayed_load_span(array(), create_function('', now_doc('DELAY'))); ?> <br/> <?php if ($stage->read_only_mode()) { ?> <h4>Actions</h4> Diff Entire PRODUCTION Repository from PROD_TEST<br> Tag Entire PRODUCTION Repository as PROD_TEST<br> <?php } else { ?> <h4>Actions</h4> <a href="actions/entire_repo_diff.php?diff=PROD_TEST">Diff Entire PRODUCTION Repository from PROD_TEST</a><br> <a href="javascript: confirmAction('TAG','actions/entire_repo_tag.php?tag=PROD_TEST')" >Tag Entire PRODUCTION Repository as PROD_TEST</a><br>
public function admin_page($ctl) { ### Read Command output $previous_command = $this->read_previous_command($ctl); # $repo->cache_logs( $files ); # $repo->cache_statuses( $files ); $locally_modified = false; $file_lines = array(); foreach ($ctl->stage->repo()->get_ls() as $file) { $file_line = array('file' => $file); ### Get Current Version $file_line['cur_vers'] = delayed_load_span(array($file), create_function('$file', now_doc('DELAY'))); ### Get PROD_TEST Version $file_line['prod_test_vers'] = delayed_load_span(array($file, $cur_rev), create_function('$file,$cur_rev', now_doc('DELAY'))); ### Get PROD_SAFE Version $file_line['prod_safe_vers'] = delayed_load_span(array($file, $cur_rev), create_function('$file,$cur_rev', now_doc('DELAY'))); $file_lines[] = $file_line; } return array('previous_command' => $previous_command, 'files' => $file_lines, 'locally_modified' => $locally_modified); }