Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1311 | Rev 1313 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1311 Rev 1312
Line 99... Line 99...
99
            $json = file_get_contents($this->plantuseurl.$this->parametres['masque']);
99
            $json = file_get_contents($this->plantuseurl.$this->parametres['masque']);
100
            if ($json != false) {
100
            if ($json != false) {
101
                $tableau = json_decode($json, TRUE);
101
                $tableau = json_decode($json, TRUE);
102
                if (isset($tableau['parse']['wikitext']['*'])) {
102
                if (isset($tableau['parse']['wikitext']['*'])) {
103
                    $texte = $tableau['parse']['wikitext']['*'];
103
                    $texte = $tableau['parse']['wikitext']['*'];
104
                    $retour = substr($texte, strpos($texte, "{{Encadré\n|color=lightgreen\n|titre=Résumé des usages\n|texte="+63), -2);
104
                    $retour = substr($texte, strpos($texte, "{{Encadr")+63, -2);
Line 105... Line 105...
105
                    
105
                    
106
                }
106
                }
107
            }
107
            }
108
        }
108
        }