2010-06-19 15:48:08 +00:00
< ? php defined ( " SYSPATH " ) or die ( " No direct script access. " ) ?>
2010-06-20 02:52:26 +00:00
2010-06-19 15:48:08 +00:00
2010-08-27 13:54:56 +00:00
< div id = " g-admin-moduleupdates " class = " g-block " >
2011-01-18 15:23:56 +00:00
< h1 > < ? = t ( " Module Updates v " . $mu_version . " .0 " ) ?> </h1>
2011-01-06 01:54:37 +00:00
< ? = t ( " Compares your installed module version against the ones stored in the GitHub and GalleryModules. " ) ?>
2010-08-27 13:54:56 +00:00
2010-06-19 15:48:08 +00:00
< div class = " g-block-content " >
2010-08-27 13:54:56 +00:00
< form method = " post " action = " <?= url::site( " admin / moduleupdates " ) ?> " id = " g-configure-moduleupdates-form " >
< input type = " hidden " name = " csrf " value = " <? echo $csrf ; ?> " />
< fieldset >
< legend > ModuleUpdates Information </ legend >
< ul >
< li >< ? = t ( " <font color=red>Red = Your version is older than the GitHub</font><br> " ) ?> </li>
< li >< ? = t ( " <font color=green>Green = Your version is newer than the GitHub</font><br> " ) ?> </li>
< li >< ? = t ( " <font color=orange>Orange = Your file version is newer than the installed version</font><br> " ) ?> </li>
< li >< ? = t ( " <font color=pink>Pink = Your installed version is newer than file version</font><br> " ) ?> </li>
< li >< ? = t ( " Outbound Status: " . $Google . " - GitHub Status: " . $GitHub . " <br> " ) ?> </li>
< li >< input type = " submit " value = " <?= t( " Check Modules for Updates " )?> " class = " submit " /> < ? if ( $update_time == " " ){ echo " - Last Scan: Unknown " ;} else { echo " - Last Scan: " . $update_time ;} ?> </li>
</ ul >
</ fieldset >
</ form >
< br >
< ul id = " g-action-status " class = " g-message-block " >
2011-01-06 01:54:37 +00:00
< li class = " g-warning " >< ? = t ( " Versions are compared from GitHub for Gallery Core (GC), Gallery Community Contributions (GCC), and GalleryModules.com (GM). Versions downloaded from the forums will not be shown. " ) ?> </li>
2010-08-27 13:54:56 +00:00
</ ul >
2011-01-15 02:35:23 +00:00
< fieldset >
< legend > Core Modules </ legend >
< table >
< tr >
< th > < ? = t ( " Module " ) ?> </th>
< th >< center > < ? = t ( " Local /<br>Installed " ) ?> </center></th>
< th width = 50 >< center > < ? = t ( " GC " ) ?> </center></th>
< th > < ? = t ( " Description " ) ?> </th>
</ tr >
2011-01-24 03:05:53 +00:00
< ? foreach ( $vars as $module_name ) : ?>
< ? if ( is_numeric ( $module_name [ 'core_version' ])) { ?>
< tr class = " <?= text::alternate( " g - odd " , " g - even " ) ?> " >
< td > < ? = t ( $module_name [ 'name' ]) ?> </td>
< td align = center > < ? echo " <font color= " . $module_name [ 'font_color_local' ] . " > " ; ?> <? if($module_name['font_color_local'] != "black"){ echo "<b><u>*"; } ?> <? if (is_numeric($module_name['code_version'])) echo $module_name['code_version']; ?><? if (is_numeric($module_name['version'])) echo " / ".$module_name['version']; ?> <? if($module_name['font_color_local'] != "black"){ echo "*</b></u>"; } ?> </td>
< td align = center > < ? echo " <font color= " . $module_name [ 'font_color_core' ] . " > " ; ?> <? if($module_name['font_color_core'] != "black" and $module_name['font_color_core'] != "" ){ echo "<b><u>*"; } ?> <? if(is_numeric($module_name['core_version'])) if($module_name['core_version'] > $module_name['code_version']) { echo "<a href=\"".$module_name['core_dlink']."\" target=\"_blank\">".$module_name['core_version']."</a>";} else { echo $module_name['core_version']; } ?> <? if($module_name['font_color_core'] != "black"){ echo "*</b></u>"; } ?> </font> </td>
< td > < ? = t ( $module_name [ 'description' ]) ?> </td>
</ tr >
< ? } ?>
2011-01-15 02:35:23 +00:00
< ? endforeach ?>
</ table >
</ fieldset >
< fieldset >
< legend > Community Contributed Modules </ legend >
< table >
< tr >
< th > < ? = t ( " Module " ) ?> </th>
< th >< center > < ? = t ( " Local /<br>Installed " ) ?> </center></th>
< th width = 50 >< center > < ? = t ( " GCC " ) ?> </center></th>
< th width = 85 >< center > < ? = t ( " GM " ) ?> </center></th>
< th > < ? = t ( " Description " ) ?> </th>
</ tr >
2011-01-24 03:05:53 +00:00
< ? foreach ( $vars as $module_name ) : ?>
< ? if ( is_numeric ( $module_name [ 'contrib_version' ]) or is_numeric ( $module_name [ 'gh_version' ])) { ?>
< tr class = " <?= text::alternate( " g - odd " , " g - even " ) ?> " >
< td > < ? = t ( $module_name [ 'name' ]) ?> </td>
< td align = center > < ? echo " <font color= " . $module_name [ 'font_color_local' ] . " > " ; ?> <? if($module_name['font_color_local'] != "black"){ echo "<b><u>*"; } ?> <? if (is_numeric($module_name['code_version'])) echo $module_name['code_version']; ?><? if (is_numeric($module_name['version'])) echo " / ".$module_name['version']; ?> <? if($module_name['font_color_local'] != "black"){ echo "*</b></u>"; } ?> </td>
< td align = center > < ? echo " <font color= " . $module_name [ 'font_color_contrib' ] . " > " ; ?> <? if($module_name['font_color_contrib'] != "black" and $module_name['font_color_contrib'] != "" ){ echo "<b><u>*"; } ?> <? if(is_numeric($module_name['contrib_version'])) if($module_name['contrib_version'] > $module_name['version'] or $module_name['core_version'] > $module_name['code_version']) { echo "<a href=\"".$module_name['contrib_dlink']."\" target=\"_blank\">".$module_name['contrib_version']."</a>";} else { echo $module_name['contrib_version']; } ?> <? if($module_name['font_color_contrib'] != "black"){ echo "*</b></u>"; } ?> </font> </td>
< td align = center > < ? echo " <font color= " . $module_name [ 'font_color_gh' ] . " > " ; ?> <? if($module_name['font_color_gh'] != "black" and $module_name['font_color_gh'] != "" ){ echo "<b><u>*"; } ?> <? if(is_numeric($module_name['gh_version'])) if($module_name['gh_version'] > $module_name['version'] or $module_name['core_version'] > $module_name['code_version']) { echo "<a href=\"".$module_name['gh_dlink']."\" target=\"_blank\">".$module_name['gh_version']."</a>";} else { echo $module_name['gh_version']; } ?> <? if($module_name['font_color_gh'] != "black"){ echo "*</b></u>"; } ?> </font> </td>
< td > < ? = t ( $module_name [ 'description' ]) ?> </td>
</ tr >
< ? } ?>
2011-01-15 02:35:23 +00:00
< ? endforeach ?>
</ table >
</ fieldset >
2010-06-19 15:48:08 +00:00
</ div >
2011-01-05 03:21:23 +00:00
</ div >