OK ricerca versione x MP-STATS

This commit is contained in:
Samuele Locatelli
2021-05-27 18:15:28 +02:00
parent b172ef09bc
commit eec274ff3e
9 changed files with 37 additions and 6 deletions
+28
View File
@@ -15,6 +15,15 @@ namespace MP.Controllers
{
public class HomeController : Controller
{
#region Protected Fields
/// <summary>
/// Controller versioni e download autenticato
/// </summary>
protected UpdateMan updManAuth = new UpdateMan("SWDownloader", "viaD@nte16");
#endregion Protected Fields
#region Protected Methods
/// <summary>
@@ -60,6 +69,14 @@ namespace MP.Controllers
return string.Format("http://seriate.steamware.net:8083/SWS/MAPO/{0}/{1}/manifest.xml", package, memLayer.ML.CRS("appVers"));
}
/// <summary>
/// URL stringa di UPDATE su area nexus (protetta)...
/// </summary>
protected string updateUrlNexus(string package)
{
return string.Format("http://nexus.steamware.net/repository/SWS/{0}/{1}/0/manifest.xml", package, memLayer.ML.CRS("appVers"));
}
/// <summary>
/// Costruzione URL da base path + URL specifico finale
/// </summary>
@@ -330,6 +347,17 @@ namespace MP.Controllers
ViewBag.VersMpMag = "ND";
ViewBag.MagDisabled = "disabled";
}
// Recupero info CTRACK...
updArgs = updManAuth.getUpdateInfo(updateUrlNexus("MP-STATS"));
if (updArgs.IsUpdateAvailable)
{
ViewBag.VersMpStats = updArgs.CurrentVersion;
}
else
{
ViewBag.VersMpStats = "ND";
ViewBag.StatsDisabled = "disabled";
}
// salvo risultati...
ViewBag.Results = results;
using (var ctx = new MoonProEntities())
-6
View File
@@ -329,11 +329,9 @@
<Content Include="fonts\fontawesome-webfont.svg" />
<Content Include="images\LogoMapoFull.png" />
<Content Include="images\LogoSteamware.png" />
<Content Include="libzstd.dll" />
<Content Include="logs\PlaceHolder.file">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="mongocrypt.dll" />
<Content Include="Properties\PublishProfiles\IIS01.pubxml.user" />
<Content Include="Properties\PublishProfiles\IIS02.pubxml.user" />
<Content Include="Resources\ChangeLog.html">
@@ -366,8 +364,6 @@
<Content Include=".editorconfig" />
<Content Include="App_Readme\SteamWare_demo\example-NLog.config" />
<Content Include="App_Readme\SteamWare_demo\example-app.config" />
<Content Include="libmongocrypt.so" />
<Content Include="libmongocrypt.dylib" />
<Content Include="Scripts\bootstrap.min.js.map" />
<Content Include="Scripts\bootstrap.js.map" />
<Content Include="Scripts\bootstrap.bundle.min.js.map" />
@@ -462,8 +458,6 @@
<Content Include="Scripts\umd\popper-utils.min.js" />
<Content Include="Scripts\umd\popper.js" />
<Content Include="Scripts\umd\popper.min.js" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
<Content Include="steamware.ico" />
<Content Include="Global.asax" />
<None Include="compilerconfig.json" />
+9
View File
@@ -75,6 +75,15 @@
<strong>@ViewBag.VersMpTab</strong>
</a>
</div>
<div class="col-sm-6 col-md-4">
<h2 class="text-center">
MP-STATS
<i class="fa fa-download"></i>
</h2>
<a href="@Url.Action("Download", "Home", new { caller = "MP-STATS" })" class="btn btn-outline-secondary btn-lg fullWidth @ViewBag.StatsDisabled">
<strong>@ViewBag.VersMpStats</strong>
</a>
</div>
@{
if (ViewBag.CTrack_Enb)
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.