| $x=0; |
| switch($opt) |
| { |
| case 0: // User's imgas |
| case 0: // User's images |
| $getId = $this->requestXML(CACHEDIR."/".IMGCACHE, $GLOBALS['getPubImg'], "user_id=" . $id); |
| break; |
| case 1: // Sets imagas |
| case 1: // Sets images |
| $getId = $this->requestXML(CACHEDIR."/flickrmyg_".$id.".xml", $GLOBALS['getSetImg'], "photoset_id=" . $id); |
| break; |
| } |
| $xml = new SimpleXMLElement($getId); |
| $str = $xml->photoset->children(); |
| switch($opt) |
| { |
| case 0: // User's images |
| $str = $xml->photos->children(); |
| break; |
| case 1: // Set's images |
| $str = $xml->photoset->children(); |
| break; |
| } |
| $i=0; |
| foreach($str AS $data) |