-
MasterPro
| .
|
"Da un semplice Uomo sono diventato un Possente Dio"
- Group
- Founder
- Posts
- 2,264
- Status
- Offline
|
|
Ecco il primo pezzo dello script che serve per capire se la carta che sta guardando è un mostro, magia o trappola e se è un mostro se è fusione, synchro, xyz o altro
CODICE <?php $yugiohwikia_page = file_get_contents('http://yugioh.wikia.com/wiki/'.$_GET['n']);; $mostro_normale = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #FF3; color: #000;">'; $mostro_effetto = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #F93; color: #000;">'; $mostro_rituale = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #66F; color: #000;">'; $mostro_fusione = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #96C; color: #FFF;">'; $mostro_synchro = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #FFF; color: #000;">'; $mostro_xyz = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #000; color: #FFF;">'; $mostro_pendulum = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: ; color: ;">'; $magia = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #396; color: #FFF;">'; $trappola = '<th class="cardtable-header" colspan="3" style="font-size: 1.5em; line-height: 1.5em; background-color: #F36; color: #FFF;">'; if (strpos($yugiohwikia_page, $mostro_normale) !== false) { $tipo = 'mostro_normale'; } if (strpos($yugiohwikia_page, $mostro_effetto) !== false) { $tipo = 'mostro_effetto'; } if (strpos($yugiohwikia_page, $mostro_rituale) !== false) { $tipo = 'mostro_rituale'; } if (strpos($yugiohwikia_page, $mostro_fusione) !== false) { $tipo = 'mostro_fusione'; } if (strpos($yugiohwikia_page, $mostro_synchro) !== false) { $tipo = 'mostro_synchro'; } if (strpos($yugiohwikia_page, $mostro_xyz) !== false) { $tipo = 'mostro_xyz'; } if (strpos($yugiohwikia_page, $mostro_pendulum) !== false) { $tipo = 'mostro_pendulum'; } if (strpos($yugiohwikia_page, $magia) !== false) { $tipo = 'magia'; } if (strpos($yugiohwikia_page, $trappola) !== false) { $tipo = 'trappola'; }
Edited by MasterPro - 25/4/2014, 21:06
|
|
| .
|
48 replies since 24/4/2014, 21:06 735 views
.