Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxium69 committed Apr 23, 2022
1 parent 27ba668 commit 6bad2ef
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 63 deletions.
39 changes: 1 addition & 38 deletions api/whmcs/connect.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php


/*var_dump($_POST);
$username = $_POST['username'];
$password = $_POST['password'];*/

/**
* WHMCS Sample Local API Call
*
Expand All @@ -16,44 +11,12 @@
* @link http://www.whmcs.com/
*/



function product(){
$command = 'GetProducts';
$postData = array(
'gid' => '1',
);
$postData = array();
$adminUsername = 'TheMaximeSan';

$results = localAPI($command, $postData, $adminUsername);

return $results['products'];
}








/*$command = 'ValidateLogin';
$postData = array(
'email' => $username,
'password2' => $password,
);
$results = localAPI($command, $postData);
var_dump($results);
print_r($results);
if ($results['result'] == "success"){
$_SESSION['user-id'] = $results['userid'];
$_SESSION['user-email'] = $username;
$_SESSION['user-passhash'] = $results['passwordhash'];
}
var_dump($_SESSION);*/
6 changes: 3 additions & 3 deletions app/env.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@

"vps" => 1,

"web" => 2,
"web" => 4,

"minecraft" => 3,
"minecraft" => 2,

"fivem" => 4,
"fivem" => 3,

"stockage" => 5

Expand Down
21 changes: 21 additions & 0 deletions css/hebergement.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@
color: var(--color-secondaire);
}

@media (max-width: 814px) {
#partenaire .col-4{
-ms-flex:unset;
flex: unset;
max-width: unset;
}

}

/*formule*/
#formule .desktop{
max-width: 1474px;
Expand Down Expand Up @@ -363,6 +372,18 @@
margin-left: unset;
}

#mc #formule h3 {
font-size: 13px;
}

#mc #formule ul {
font-size: 9px;
}

#mc #formule h2 {
font-size: 20px;
}

/*************************
fivem
*************************/
Expand Down
14 changes: 9 additions & 5 deletions fivem.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
if ($product['gid'] == $env_gid['fivem']){
/*echo "GOOD : " . $product['pid'];*/
/*var_dump($product); */
$isExist = true;
?>
<div class="col">

Expand All @@ -36,11 +37,11 @@

<h3><?= $product['pricing']['EUR']['monthly'] ?>€/Mois</h3>

<p><?= $product['description'] ?></p>
<ul><?= $product['description'] ?></ul>

<div>

<button id="btn-commande" class="tyrobutton" data-url="http://localhost/SolidServ-WebSite/panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>
<button id="btn-commande" class="tyrobutton" data-url="panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>

</div>

Expand All @@ -52,7 +53,7 @@
$isHere = "no";
}
} }
if ($isHere == "no"){
if ($isHere == "no" && $isExist != true){
echo "<p class='err'>Indiponible pour le moment</p>";
} ?>
</div>
Expand Down Expand Up @@ -163,12 +164,12 @@
<ul>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Notre support est disponible <strong>24h/24</strong> et <strong>7J/7</strong> sur notre site mais aussi sur Discord, par téléphone et par mail, nous répondrons à toutes vos problématiques.
</p>
</li>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Suivez les potentielles pannes ou problèmes technique directement sur le site ou sur vos réseaux préférés comme Discord et Twitter, en temps réel avec vos services.
</p>
</li>
</ul>
Expand All @@ -183,4 +184,7 @@
</main>


<script src="https://tyrolium.fr/javascript/tyrobtn.js"></script>


<?php footer($page); ?> </body> </html>
15 changes: 9 additions & 6 deletions minecraft.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
if ($product['gid'] == $env_gid['minecraft']){
/*echo "GOOD : " . $product['pid'];*/
/*var_dump($product); */
$isExist = true;
?>
<div class="col">

Expand All @@ -36,11 +37,11 @@

<h3><?= $product['pricing']['EUR']['monthly'] ?>€/Mois</h3>

<p><?= $product['description'] ?></p>
<ul><?= $product['description'] ?></ul>

<div>

<button id="btn-commande" class="tyrobutton" data-url="http://localhost/SolidServ-WebSite/panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>
<button id="btn-commande" class="tyrobutton" data-url="panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>

</div>

Expand All @@ -52,8 +53,8 @@
$isHere = "no";
}
} }
if ($isHere == "no"){
echo "<p class='err'>Indiponible pour le moment</p>";
if ($isHere == "no" && $isExist != true){
echo "<p class='err'>Indiponible pour le moment</p>";
} ?>
</div>
</section>
Expand Down Expand Up @@ -163,12 +164,12 @@
<ul>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Notre support est disponible <strong>24h/24</strong> et <strong>7J/7</strong> sur notre site mais aussi sur Discord, par téléphone et par mail, nous répondrons à toutes vos problématiques.
</p>
</li>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Suivez les potentielles pannes ou problèmes technique directement sur le site ou sur vos réseaux préférés comme Discord et Twitter, en temps réel avec vos services.
</p>
</li>
</ul>
Expand All @@ -182,4 +183,6 @@
</main>


<script src="https://tyrolium.fr/javascript/tyrobtn.js"></script>

<?php footer($page); ?> </body> </html>
14 changes: 9 additions & 5 deletions siteweb.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
if ($product['gid'] == $env_gid['web']){
/*echo "GOOD : " . $product['pid'];*/
/*var_dump($product); */
$isExist = true;
?>
<div class="col">

Expand All @@ -36,11 +37,11 @@

<h3><?= $product['pricing']['EUR']['monthly'] ?>€/Mois</h3>

<p><?= $product['description'] ?></p>
<ul><?= $product['description'] ?></ul>

<div>

<button id="btn-commande" class="tyrobutton" data-url="http://localhost/SolidServ-WebSite/panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>
<button id="btn-commande" class="tyrobutton" data-url="panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>

</div>

Expand All @@ -52,7 +53,7 @@
$isHere = "no";
}
} }
if ($isHere == "no"){
if ($isHere == "no" && $isExist != true){
echo "<p class='err'>Indiponible pour le moment</p>";
} ?>
</div>
Expand Down Expand Up @@ -144,12 +145,12 @@
<ul>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Notre support est disponible <strong>24h/24</strong> et <strong>7J/7</strong> sur notre site mais aussi sur Discord, par téléphone et par mail, nous répondrons à toutes vos problématiques.
</p>
</li>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Suivez les potentielles pannes ou problèmes technique directement sur le site ou sur vos réseaux préférés comme Discord et Twitter, en temps réel avec vos services.
</p>
</li>
</ul>
Expand All @@ -160,4 +161,7 @@
</main>


<script src="https://tyrolium.fr/javascript/tyrobtn.js"></script>


<?php footer($page); ?> </body> </html>
14 changes: 8 additions & 6 deletions vps.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@

$produitAll = product();

foreach ($produitAll as $productCompresse) { foreach ($productCompresse as $product){
foreach ($produitAll as $productCompresse) {foreach ($productCompresse as $product){

if ($product['gid'] == $env_gid['vps']){
/*echo "GOOD : " . $product['pid'];*/
/*var_dump($product); */
$isExist = true;
?>
<div class="col">

Expand All @@ -38,11 +40,11 @@

<h3><?= $product['pricing']['EUR']['monthly'] ?>€/Mois</h3>

<p><?= $product['description'] ?></p>
<ul><?= $product['description'] ?></ul>

<div>

<button id="btn-commande" class="tyrobutton" data-url="http://localhost/SolidServ-WebSite/panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>
<button id="btn-commande" class="tyrobutton" data-url="panel/cart.php?a=add&pid=<?= $product['pid'] ?>">commandé</button>

</div>

Expand All @@ -54,7 +56,7 @@
$isHere = "no";
}
} }
if ($isHere == "no"){
if ($isHere == "no" && $isExist != true){
echo "<p class='err'>Indiponible pour le moment</p>";
} ?>
</div>
Expand Down Expand Up @@ -147,12 +149,12 @@
<ul>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Notre support est disponible <strong>24h/24</strong> et <strong>7J/7</strong> sur notre site mais aussi sur Discord, par téléphone et par mail, nous répondrons à toutes vos problématiques.
</p>
</li>
<li>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
Suivez les potentielles pannes ou problèmes technique directement sur le site ou sur vos réseaux préférés comme Discord et Twitter, en temps réel avec vos services.
</p>
</li>
</ul>
Expand Down

0 comments on commit 6bad2ef

Please sign in to comment.