function redisplay(&$dbprefix, $err_message = "") { // global $_SERVER ; if (($phasesResult = getAllPhases(&$err_message)) === NULL) { do_html_header("Edit Phases Failed", &$err_message); $err_message .= " Could not execute \"getAllPhases\" in \"edit_phases.php\". <br>\n"; $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER['QUERY_STRING'] . "'>again</a>?"; do_html_footer(&$err_message); exit; } $array = array(); $r = 0; while ($phaseInfo = $phasesResult->FetchNextObj()) { $array["arrPhaseID"][$r] = $phaseInfo->PhaseID; $array["arrPhaseName"][$r] = $phaseInfo->PhaseName; $array["arrStartDate"][$r] = $phaseInfo->StartDate; $array["arrEndDate"][$r] = $phaseInfo->EndDate; $array["arrStatus"][$r] = $phaseInfo->Status; $r++; } //end of while loop return $array; }
$php_root_path = ".."; $privilege_root_path = "/admin"; require_once "includes/include_all_fns.inc"; session_start(); // extract ( $_SESSION , EXTR_REFS ) ; $err_message = " Unable to process your request due to the following problems: <br>\n"; do_html_header("View Phase"); //Establish connection with database $db = adodb_connect(); if (!$db) { echo "Could not connect to database server - please try later."; exit; } //Get Current Phase $currentPhaseInfo = getCurrentPhase(); if (($phasesResult = getAllPhases(&$err_message)) === NULL) { do_html_header("View Phases Failed", &$err_message); $err_message .= " Could not execute \"getAllPhases\" in \"view_phases.php\". <br>\n"; $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER['QUERY_STRING'] . "'>again</a>?"; do_html_footer(&$err_message); exit; } // Get settings info $settingsInfo = get_Conference_Settings(); ?> <form name="form1" method="post" action=""> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <?php if ($currentPhaseInfo != false) { // matches } noted below $result = is_date_expired($currentPhaseInfo->EndDate, format_date(), &$err_message, "date");