push final pentru astazi
This commit is contained in:
3
www/app_php/index.php
Normal file
3
www/app_php/index.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
phpinfo();
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"Version":1,"ManifestType":"Build","Endpoints":[]}
|
||||
@@ -1,7 +1,5 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb = true
|
||||
build_property.ProjectTypeGuids =
|
||||
@@ -19,5 +17,3 @@ build_property.SupportLocalizedComponentNames =
|
||||
build_property.GenerateRazorMetadataSourceChecksumAttributes =
|
||||
build_property.MSBuildProjectDirectory = /app
|
||||
build_property._RazorSourceGeneratorDebug =
|
||||
build_property.EffectiveAnalysisLevelStyle = 8.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// <auto-generated/>
|
||||
global using Microsoft.AspNetCore.Builder;
|
||||
global using Microsoft.AspNetCore.Hosting;
|
||||
global using Microsoft.AspNetCore.Http;
|
||||
global using Microsoft.AspNetCore.Routing;
|
||||
global using Microsoft.Extensions.Configuration;
|
||||
global using Microsoft.Extensions.DependencyInjection;
|
||||
global using Microsoft.Extensions.Hosting;
|
||||
global using Microsoft.Extensions.Logging;
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.IO;
|
||||
global using System.Linq;
|
||||
global using System.Net.Http;
|
||||
global using System.Net.Http.Json;
|
||||
global using System.Threading;
|
||||
global using System.Threading.Tasks;
|
||||
global using global::Microsoft.AspNetCore.Builder;
|
||||
global using global::Microsoft.AspNetCore.Hosting;
|
||||
global using global::Microsoft.AspNetCore.Http;
|
||||
global using global::Microsoft.AspNetCore.Routing;
|
||||
global using global::Microsoft.Extensions.Configuration;
|
||||
global using global::Microsoft.Extensions.DependencyInjection;
|
||||
global using global::Microsoft.Extensions.Hosting;
|
||||
global using global::Microsoft.Extensions.Logging;
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Net.Http.Json;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
78e56dd823ebe82c5116b011dea1d4f07d11c07a6cbca67c3b275ceeafa27f13
|
||||
e9330eaf0428b40e8599ac23a52ec780ad006a9006d294392fe6cc89c2049101
|
||||
|
||||
@@ -16,11 +16,8 @@
|
||||
/app/obj/Debug/net8.0/programDotNet.pdb
|
||||
/app/obj/Debug/net8.0/programDotNet.genruntimeconfig.cache
|
||||
/app/obj/Debug/net8.0/ref/programDotNet.dll
|
||||
/app/bin/Debug/net8.0/programDotNet.staticwebassets.endpoints.json
|
||||
/app/obj/Debug/net8.0/rpswa.dswa.cache.json
|
||||
/app/obj/Debug/net8.0/rjimswa.dswa.cache.json
|
||||
/app/obj/Debug/net8.0/rjsmrazor.dswa.cache.json
|
||||
/app/obj/Debug/net8.0/rjsmcshtml.dswa.cache.json
|
||||
/app/obj/Debug/net8.0/staticwebassets.build.json.cache
|
||||
/app/obj/Debug/net8.0/staticwebassets.build.endpoints.json
|
||||
/app/obj/Debug/net8.0/swae.build.ex.cache
|
||||
/app/obj/Debug/net8.0/staticwebassets/msbuild.programDotNet.Microsoft.AspNetCore.StaticWebAssets.props
|
||||
/app/obj/Debug/net8.0/staticwebassets/msbuild.build.programDotNet.props
|
||||
/app/obj/Debug/net8.0/staticwebassets/msbuild.buildMultiTargeting.programDotNet.props
|
||||
/app/obj/Debug/net8.0/staticwebassets/msbuild.buildTransitive.programDotNet.props
|
||||
/app/obj/Debug/net8.0/staticwebassets.pack.json
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
{"GlobalPropertiesHash":"fLV7naKvKWbTYVUHjkIjTJtm/olHDr/EnsWwdgzzqYA=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["bzO0TEjhBVNhYEvqtsf/ty9AgBtGHyRIrjLs/G4sxxw="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
||||
@@ -1 +0,0 @@
|
||||
{"GlobalPropertiesHash":"MMRCzYhPUzk/dvjkevA6gVPm5Xq+/bKRMXBsywen2EU=","FingerprintPatternsHash":"gq3WsqcKBUGTSNle7RKKyXRIwh7M8ccEqOqYvIzoM04=","PropertyOverridesHash":"8ZRc1sGeVrPBx4lD717BgRaQekyh78QKV9SKsdt638U=","InputHashes":["bzO0TEjhBVNhYEvqtsf/ty9AgBtGHyRIrjLs/G4sxxw="],"CachedAssets":{},"CachedCopyCandidates":{}}
|
||||
@@ -1 +0,0 @@
|
||||
{"Version":1,"ManifestType":"Build","Endpoints":[]}
|
||||
@@ -1 +1,11 @@
|
||||
{"Version":1,"Hash":"R9B4kODIeQ+F5JrbWKZU4XVNo0G1PgbmB01uJL2Dn04=","Source":"programDotNet","BasePath":"/","Mode":"Root","ManifestType":"Build","ReferencedProjectsConfiguration":[],"DiscoveryPatterns":[],"Assets":[],"Endpoints":[]}
|
||||
{
|
||||
"Version": 1,
|
||||
"Hash": "iKrrIYpJZohPz31GBVLhzn4bAYo7qnEuRFes2tPKNgE=",
|
||||
"Source": "programDotNet",
|
||||
"BasePath": "_content/programDotNet",
|
||||
"Mode": "Default",
|
||||
"ManifestType": "Build",
|
||||
"ReferencedProjectsConfiguration": [],
|
||||
"DiscoveryPatterns": [],
|
||||
"Assets": []
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
R9B4kODIeQ+F5JrbWKZU4XVNo0G1PgbmB01uJL2Dn04=
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="Microsoft.AspNetCore.StaticWebAssets.props" />
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="../build/programDotNet.props" />
|
||||
</Project>
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="../buildMultiTargeting/programDotNet.props" />
|
||||
</Project>
|
||||
@@ -37,8 +37,7 @@
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
@@ -54,20 +53,6 @@
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.linux-arm64",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.AspNetCore.App": {
|
||||
"privateAssets": "none"
|
||||
@@ -76,7 +61,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/root/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/root/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.1</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/root/.nuget/packages/" />
|
||||
|
||||
@@ -43,8 +43,7 @@
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "10.0.100"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
@@ -60,20 +59,6 @@
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Host.linux-arm64",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[8.0.22, 8.0.22]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.AspNetCore.App": {
|
||||
"privateAssets": "none"
|
||||
@@ -82,7 +67,7 @@
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/10.0.101/PortableRuntimeIdentifierGraph.json"
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.416/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "83bfm2dKkvU=",
|
||||
"dgSpecHash": "A0EP6Bndszc=",
|
||||
"success": true,
|
||||
"projectFilePath": "/app/programDotNet.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/root/.nuget/packages/microsoft.netcore.app.ref/8.0.22/microsoft.netcore.app.ref.8.0.22.nupkg.sha512",
|
||||
"/root/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.22/microsoft.aspnetcore.app.ref.8.0.22.nupkg.sha512",
|
||||
"/root/.nuget/packages/microsoft.netcore.app.host.linux-arm64/8.0.22/microsoft.netcore.app.host.linux-arm64.8.0.22.nupkg.sha512"
|
||||
],
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Rulare:
|
||||
* php script.php --name=Daniel --amount=125.50
|
||||
*/
|
||||
|
||||
function usage(): void {
|
||||
echo "Usage: php script.php --name=NAME --amount=NUMBER\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$options = getopt("", ["name:", "amount:"]);
|
||||
$name = $options["name"] ?? null;
|
||||
$amount = $options["amount"] ?? null;
|
||||
|
||||
if ($name === null || $amount === null) {
|
||||
usage();
|
||||
}
|
||||
|
||||
if (!is_numeric($amount)) {
|
||||
fwrite(STDERR, "Error: --amount must be numeric.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$amount = (float)$amount;
|
||||
$vatRate = 0.19; // TVA 19%
|
||||
$vat = round($amount * $vatRate, 2);
|
||||
$total = round($amount + $vat, 2);
|
||||
|
||||
$result = [
|
||||
"name" => $name,
|
||||
"amount" => $amount,
|
||||
"vat" => $vat,
|
||||
"total" => $total,
|
||||
"time" => date("c"),
|
||||
];
|
||||
|
||||
echo json_encode($result, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . PHP_EOL;
|
||||
|
||||
// scrie și un log local
|
||||
$logLine = $result["time"] . " | {$name} | amount={$amount} | vat={$vat} | total={$total}\n";
|
||||
file_put_contents(__DIR__ . "/script.log", $logLine, FILE_APPEND);
|
||||
Reference in New Issue
Block a user