Changeset 1556990
- Timestamp:
- 12/18/2016 04:14:37 PM (9 years ago)
- Location:
- fenshop/trunk
- Files:
-
- 6 edited
-
FenShop.php (modified) (5 diffs)
-
assets/buy_choice.txt (modified) (1 diff)
-
assets/buy_paiement.txt (modified) (1 diff)
-
assets/buy_pseudo.txt (modified) (1 diff)
-
assets/buy_summary.txt (modified) (1 diff)
-
assets/buy_validation.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fenshop/trunk/FenShop.php
r1556967 r1556990 158 158 } 159 159 } 160 161 if (preg_match_all("/[{]FenShop:currency[}]/s", $content, $matches)) { 162 foreach ($matches[0] as $id => $match) { 163 $fenshop_info = self::getInfo(); 164 $content = str_replace($matches[0][$id], $fenshop_info->devises_text->credits, $content); 165 } 166 } 160 167 161 168 if (preg_match_all("/<!--[{]FenShop:history_begin:([^:]*):([^:]*)}-->(.*)<!--[{]FenShop:history_end[}]-->/sU", $content, $matches)) { … … 313 320 foreach ($matches_line as $id_line => $match_line) 314 321 $line = str_replace($matches_line[0][$id], $buyout->gain, $line); 322 if (preg_match_all("/[{]FenShop:buy:cost[}]/s", $line, $matches_line)) 323 foreach ($matches_line as $id_line => $match_line) 324 $line = str_replace($matches_line[0][$id], $buyout->cost, $line); 315 325 if (preg_match_all("/[{]FenShop:buy:link[}]/s", $line, $matches_line)) 316 326 foreach ($matches_line as $id_line => $match_line) … … 347 357 } 348 358 359 if (preg_match_all("/[{]FenShop:buy:cost[}]/", $content, $matches)) { 360 $fenshop_buyoutlist = self::getBuyoutList(); 361 foreach ($matches[0] as $id => $match) { 362 $content = str_replace($matches[0][$id], $fenshop_buyoutlist[FenSession::get("id")]->cost, $content); 363 } 364 } 365 366 if (preg_match_all("/[{]FenShop:buy:gain[}]/", $content, $matches)) { 367 $fenshop_buyoutlist = self::getBuyoutList(); 368 foreach ($matches[0] as $id => $match) { 369 $content = str_replace($matches[0][$id], $fenshop_buyoutlist[FenSession::get("id")]->gain, $content); 370 } 371 } 372 349 373 if (preg_match_all("/[{]FenShop:buy:description[}]/", $content, $matches)) { 350 374 $fenshop_buyoutlist = self::getBuyoutList(); … … 393 417 foreach ($matches[0] as $id => $match) { 394 418 $fenshop_validate = self::getValidate(); 395 if ($fenshop_validate->status == " ok")419 if ($fenshop_validate->status == "OK" || $fenshop_validate->status == "ok") 396 420 $content = str_replace($matches[0][$id], $matches[1][$id], $content); 397 421 else … … 616 640 'vote_validation' => 'Vote: Page de validation'/*, 617 641 'auth' => 'Page d\'authentification'*/); 618 if ( !$options["auth"]) {642 if ($options["auth"]) { 619 643 unset($res['buy_pseudo']); 620 644 unset($res['use_pseudo']); -
fenshop/trunk/assets/buy_choice.txt
r1556967 r1556990 8 8 <span class="dynamic-px-width"> 9 9 <div style="font-weight: bold; font-variant: small-caps; text-align: center; font-size: 2em;">{FenShop:buy:gain} tokens</div> 10 <div style="text-align: center; border-top: 1px solid #ddd">{FenShop:buy:cost}</div> 10 11 <div style="padding-top: 20px; text-align: center; border-top: 1px solid #ddd">{FenShop:buy:desc}</div> 11 12 <div style="padding-bottom: 10px; text-align: center;"><img style="height: 32px;" src="{FenShop:buy:icon}"/></div> -
fenshop/trunk/assets/buy_paiement.txt
r1539943 r1556990 1 Bonjour {FenShop:nick}, vous avez {FenShop:tokens} tokens 1 <center> 2 <img src="https://minotar.net/avatar/{FenShop:nick}/68"><br/> 3 {FenShop:nick}<br/> 4 {FenShop:tokens} tokens<br/> 5 <br/> 6 <b>Récapitulatif de votre achat :</b><br/> 7 {FenShop:buy:gain} {FenShop:currency} .................... {FenShop:buy:cost} <br/> 8 <br/> 9 <b>Clique ci-dessous pour payer et valider ton achat :</b><br/> 2 10 {FenShop:buy:payment} 11 </center> -
fenshop/trunk/assets/buy_pseudo.txt
r1539943 r1556990 1 <form action="{FenShop:buy:link_buy}" method="post"> 2 <input type="text" name="FenShop_nick" value="{FenShop:nick}"/> 3 <input type="submit" value="Valider"> 1 <center> 2 <b>Bienvenue sur notre boutique.</b><br/> 3 Pour commencer, veuillez renseigner votre pseudo ci-dessous.<br/> 4 <br/> 5 <form action="{FenShop:buy:link_buy}" method="post"> 6 <input style="width: 20em;" type="text" name="FenShop_nick" value="{FenShop:nick}"/><br/> 7 <input style="width: 23em;" type="submit" value="Continuer"> 4 8 </form> 9 </center> -
fenshop/trunk/assets/buy_summary.txt
r1545343 r1556990 1 1 Vous êtes connecté en tant que {FenShop:nick}.<br/> 2 2 Vous avez {FenShop:tokens} tokens.<br/> 3 Vous allez acheter {FenShop:buy:type} pour {FenShop:buy:gain} tokens.<br/>3 Vous allez acheter {FenShop:buy:type} pour {FenShop:buy:gain} {FenShop:currency}.<br/> 4 4 Description:<br/> 5 5 {FenShop:buy:description} -
fenshop/trunk/assets/buy_validation.txt
r1539943 r1556990 1 {FenShop:buy:validate_ifok} 2 Merci ! Achat ok ! Vous avez gagné {FenShop:buy:tokens} tokens ! 1 <center> 2 {FenShop:buy:validate_ifok} 3 <b>Achat confirmé.</b><br/> 4 Votre achat a bien été confirmé. Vous avez reçu {FenShop:buy:tokens} {FenShop:currency} ! 3 5 {FenShop:buy:validate_else} 4 Fail ! 6 Une erreur est survenue!<br/> 7 <br/> 8 Pour recommencer, veuillez renseigner votre pseudo ci-dessous. 9 <br/> 10 <form action="{FenShop:buy:link_buy}" method="post"> 11 <input style="width: 20em;" type="text" name="FenShop_nick" value="{FenShop:nick}"/><br/> 12 <input style="width: 23em;" type="submit" value="Continuer"> 13 </form> 5 14 {FenShop:buy:validate_end} 15 </center>
Note: See TracChangeset
for help on using the changeset viewer.