Testing Ground

Avert your eyes! Crazy experiments are happening here!

Text doubles

akatsuki05, aquakonosuba15, ayamikage04, byakuyatogami08, bycandlelight18, casca08, chihayakisaragi04, childsplay19, christmascake07, chrisyukine11, chrollolucilfer06, classviigirls01, clovers10, coldpilgrimage13, coloredshirts01, company04, coupleofallcosmos20, cvjunichisuwabe17, daichishijima02, desertriversenshi19, dinnerprep18, dirtymother05, dirtymother05, dowry12, dragonshiryu18, dragonsong20, elizabethliones20, endrance14, erenjaeger06, eschamalier18, estherblanchett04, estherblanchett06, eternals01, fangyunoerba11, five08, fragmentsoflove03, gajeelredfox11, genjosanzo16, georgekoizumi06, girlfromtheotherside04, girlfromtheotherside20, glassslipper05, glassslipper08, gran13, grandopening06, guitarists02, haji04, hakunokishinamimale10, hamtaro11, hanafef17, hanonhoushou11, hanonhoushou12, haroldberselius20, harukashimazaki8th12, hayatoaozora15, hazukifujiwara10, heeroyuy09, herekitty15, hiromiyuasa01, hisokamorow04, historiareiss09, historiareiss13, hotarumaru02, humptydumpty05, idolsinwonderland03, idolsinwonderland07, ikutotsukiyomi14, index01, index05, inoyamanaka08, itsukikatagiri05, itsukikoizumi14, japanesemanner13, jibril03, jinamamiya14, josukehigashikata20, juri14, juvialockser19, kaedehiga07, kanakomimura07, kanamimashita12, kanamimashita15, kanatashinonome02, kanatashinonome20, karamatsumatsuno02, karamatsumatsuno02, karamatsumatsuno12, karna10, karnevalinwonderland17, kazukifuuchouin16, kazukishiranui04, kenpachizaraki18, kingaof10, kintaroutooyama10, kirikaakatsuki04, kiyokazufujimoto16, kratosaurion06, kukaisouma14, kurapika19, kurotsuki01, kururusumeragi14, kyoheirikudoh04, kyousukeiwaki17, kyousukekamijou16, kyoyaasahina04, lagielnagil15, landofdragons03, laphicetnumbertwo09, larg19, leinavance11, leoaiolia05, lilyshirogane19, lokilaevatein12, londonstreets04, lostgirls09, lotus04, loveaquarium01, lucyheartfilia02, lunafreyanoxfleuret02, lunaluna06, lunaluna18, maa19, madokakaname12, magenanashiro05, magilou03, mayoras11, megumishimizu09, megumishimizu12, meimisaki09, mercedes10, minakoaino17, mineoenomoto04, miraikuriyama09, missionpreparations07, missionpreparations11, mitsuki03, mokaakashiya15, mokona05, moonpride05, morningstretch05, mutsukikurama01, nanakodojima03, nanasakurai20, natsukikimura17, natsunoyuuki04, nerds14, noctisluciscaelum09, noellesilva16, noiz03, noiz03, noiz05, nuiharime03, osomatsumatsuno04, ougioshino15, oursongforyou10, pandora04, pandora05, papermasks09, peacefulfuture17, petraral16, phoenixikki18, pichiduet17, popsong06, rainbowdays02, rainbowdays03, ranshibuki09, reinerbraun02, reiryugazaki08, relaxingbreak12, rengehoushakuji04, rikafurude04, rikafurude16, rikajougasaki15, rinafujimoto08, riotakeuchi05, rohankishibe06, rokurourangetsu17, rosesinthewind15, rosetlod06, rosetlod13, rosetlod13, ruiminazuki06, ruiminazuki20, ryokohakubi05, ryoukaniwa11, saintgermain09, saitama14, sakihyuuga10, salo-mon08, sango05, sarahikari17, sarahikari18, saruhikofushimi13, satsukikiryuuin14, satsukikusakabe11, sayakamiki06, sayakamiki06, scathach04, schneizelelbritannia03, schneizelelbritannia18, scorpio14, seishirousakurazuka03, seishirousakurazuka03, selphietilmitt08, senrichitose18, sentaroukawabuchi06, separatesouls19, serpico05, shiemimoriyama06, shirabetsukuyomi01, shirongnl15, shuichirokudo13, shunkazama01, simca13, sisters18, sleepover06, soranaegino12, soranaegino17, souseitachibana03, souseitachibana09, spikespiegel05, spiritfriends18, springproposal05, sprinklesplease13, starconception16, starryskyinwinter01, stephaniedola13, stride07, stride09, stride10, stride13, sweetmorning11, sweetpotato08, swordsong07, taichimashima14, takashinemugasa09, takashinemugasa20, takumimukai04, takumiusui05, temari16, tetoranagumo09, tetoranagumo17, tetsuyakuroko05, tetsuyakuroko15, thewindwaker10, tideofchaos02, tohru07, tombokopoli06, tooruichii01, torihimemiya04, trainingcampsleepover15, triplecccservants04, tsubaki13, tsubasakashiwagi06, tsubomikido18, tsukumomurasame09, tsumugukihara08, tsumugukihara14, tsuyuasui20, twinkleblue04, twodudesinaforest02, twofalchions01, umetarounozaki04, umetarounozaki20, unwelcomechange02, utapridebut07, utapridebut09, vegeta10, victorianball04, violette12, weddingdaychase15, werewolfandvampire13, westwardjourney16, wetshirts11, wisteria13, worldsdespair12, yamatoishida15, yamimarik11, yayoikise02, yayoikise10, ymir14, ymir17, yourname19, yourname19, yuihirasawa15, yukiohansvorarlberna10, yukitoorikasa02, yusukeasahina18, yuukicross07, yuutokigai02, yuzuruakie12, zidanetribal07, zweiwing02

How to use

Add the following snippet to 'func.php':

    function show_doubles_text( $tcg, $category ) {

      $database = new Database;
      $sanitize = new Sanitize;
      $tcg = $sanitize->for_db($tcg);
      $category = $sanitize->for_db($category);
      $altname = strtolower(str_replace(' ','',$tcg));
      
      $tcginfo = $database->get_assoc("SELECT * FROM `tcgs` WHERE `name`='$tcg' LIMIT 1");
      $tcgid = $tcginfo['id'];
      $cardsurl = $tcginfo['cardsurl'];
      $format = $tcginfo['format'];
      
      $cards = $database->get_assoc("SELECT `cards`, `format` FROM `cards` WHERE `tcg`='$tcgid' AND `category`='$category' LIMIT 1");
      if ( $cards['format'] != 'default' ) { $format = $cards['format']; }
      
      if ( $cards['cards'] === '' ) { echo '

There are currently no cards under this category.

'; } else { $cards = explode(',',$cards['cards']); $cards = array_map(trim, $cards); $doubles = array_diff_assoc($cards, array_unique($cards)); if ( !empty($doubles) ) { $numdoubles = count($doubles); $i=0; foreach ( $doubles as $double ) { echo $double; if($i !== $numdoubles-1) { echo ', '; } $i++; } } else { echo '

There are currently no cards under this category.

'; } } }

And to use it on a page, call this:

<?php show_doubles_text(TCG NAME HERE, CATEGORY ID HERE); ?>