Skip to content

Commit

Permalink
Merge branch 'master' into NET8
Browse files Browse the repository at this point in the history
  • Loading branch information
bassmaster187 committed Apr 16, 2024
2 parents e85303f + 8a094a9 commit af37a69
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
4 changes: 2 additions & 2 deletions TeslaLogger/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.57.11.0")]
[assembly: AssemblyFileVersion("1.57.11.0")]
[assembly: AssemblyVersion("1.57.12.0")]
[assembly: AssemblyFileVersion("1.57.12.0")]
[assembly: InternalsVisibleTo("UnitTestsTeslaloggerNET8")]
[assembly: InternalsVisibleTo("UnitTestsTeslalogger")]
Binary file modified TeslaLogger/bin/TeslaLogger.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions TeslaLogger/bin/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Version 1.57.12
- Bugfixes

# Version 1.57.11
- Rollback code to 1.57.9

Expand Down
34 changes: 19 additions & 15 deletions TeslaLogger/www/admin/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,14 @@ function GetTokensFromURL()
<thead>
<tr>
<th><?php t("ID"); ?></th>
<th><?php t("Email"); ?></th>
<th>#</th>
<th><?php t("Name"); ?></th>
<th><?php t("Model"); ?></th>
<th><?php t("VIN"); ?></th>
<th><?php t("Tasker Token"); ?></th>
<th style='text-align:center;'><?php t("Free SUC"); ?></th>
<th style='text-align:center;'>FleetAPI</th>
<th style='text-align:center;'>Fleet API</th>
<th style='text-align:center;'>Virtual Key</th>
<th style='text-align:center;'>Access Type</th>
<th><?php t("Edit"); ?></th>
</tr>
</thead>
Expand All @@ -435,34 +435,29 @@ function GetTokensFromURL()
//var_dump($url);

foreach ($jcars as $k => $v) {
$email = $v->{"tesla_name"};
$display_name = $v->{"display_name"};
$tasker_token = $v->{"tasker_hash"};
$car = $v->{"model_name"};
$id = $v->{"id"};
$vin = $v->{"vin"};
$tesla_carid = $v->{"tesla_carid"};
$access_type = $v->{"access_type"};

$freesuc = $v->{"freesuc"};
$freesuccheckbox = '<input type="checkbox" readonly valign="center" />';
if ($freesuc == "1")
$freesuccheckbox = '<input type="checkbox" checked="checked" readonly valign="center" />';

$fleetAPI = $v->{"fleetAPI"};
$fleetAPICheckBox = '<input type="checkbox" readonly valign="center" />';
if ($fleetAPI == "1")
$fleetAPICheckBox = '<input type="checkbox" checked="checked" readonly valign="center" />';

$freesuccheckbox = GetCheckbox($v->{"freesuc"});
$fleetAPICheckBox = GetCheckbox($v->{"fleetAPI"});
$virtualKeyCheckBox = GetCheckbox($v->{"virtualkey"});

echo(" <tr>\r\n");
echo(" <td>$id</td>\r\n");
echo(" <td>$email</td>\r\n");
echo(" <td>$tesla_carid</td>\r\n");
echo(" <td>$display_name</td>\r\n");
echo(" <td>$car</td>\r\n");
echo(" <td>$vin</td>\r\n");
echo(" <td>$tasker_token</td>\r\n");
echo(" <td style='text-align:center;'>$freesuccheckbox</td>\r\n");
echo(" <td style='text-align:center;'>$fleetAPICheckBox</td>\r\n");
echo(" <td style='text-align:center;'>$virtualKeyCheckBox</td>\r\n");
echo(" <td style='text-align:center;'>$access_type</td>\r\n");
echo(" <td><a href='password.php?id=$id&vin=$vin'>");
echo t("Edit");
echo("</a></td>\r\n");
Expand All @@ -478,3 +473,12 @@ function GetTokensFromURL()
}
?>
</div>

<?php
function GetCheckbox($v)
{
if ($v == "1")
return '<input type="checkbox" checked="checked" readonly valign="center" />';

return '<input type="checkbox" readonly valign="center" />';
}

0 comments on commit af37a69

Please sign in to comment.