Made quite a few changes so that the code works in the server
[vanilla-miry.git] / themes / settings_update_check_validpostback.php
blob75e42787d26e29f4a275861e627c911b8e5be069
1 <?php
2 // Note: This file is included from the library/Framework/Framework.Control.UpdateCheck.php control.
4 echo '<div id="Form" class="Account UpdateCheck Extensions">
5 <fieldset>
6 <legend>'.$this->Context->GetDefinition('UpdateCheck').'</legend>
7 <form id="frmUpdateCheck" method="post" action="">
8 <input type="hidden" id="FormPostBackKey" name="FormPostBackKey" value="'.$this->Context->Session->GetCsrfValidationKey().'" />
9 <div class="Errors Invisible" id="UpdateCheckErrors"></div>
10 <ul id="UpdateCheckItems">
11 <li id="Core" class="UpdateChecking">
12 <div id="CoreName" class="Name">'.APPLICATION.' '.APPLICATION_VERSION.'</div>
13 <div id="CoreDetails" class="Details">'.$this->Context->GetDefinition('CheckingForUpdates').'</div>
14 </li>';
15 if (is_array($this->Extensions)) {
16 $ExtensionList = '';
17 while (list($ExtensionKey, $Extension) = each($this->Extensions)) {
18 $ExtensionList .= '<li id="'.$ExtensionKey.'" class="UpdateChecking">
19 <div id="'.$ExtensionKey.'Name" class="Name">'.$Extension->Name.' '.$Extension->Version.'</div>
20 <div id="'.$ExtensionKey.'Details" class="Details">'.$this->Context->GetDefinition('CheckingForUpdates').'</div>
21 </li>';
23 echo $ExtensionList;
24 } else {
25 echo '<li><p>'.$this->Context->GetDefinition('NoExtensions').'</p></li>';
27 echo '</ul>
28 </form>
29 </fieldset>
30 </div>';