Bug #33146
PHP code displayed on the frontend pages
| Status: | Closed | Start date: | 2012-01-12 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Jacob | % Done: | 0% |
|
| Category: | - | Spent time: | 0.05 hour | |
| Target version: | - | |||
| Votes: | 0 |
Description
Hi,
After installation of Picasaweb Integrator I had PHP code displayed on the frontend of my site.
this code :
exec_SELECTquery("pi_flexform", "tt_content", "uid = '" . $config["row"]["uid"] . "'", '','',''); $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); $arr = t3lib_div::xml2array($row["pi_flexform"]); $user = $arr["data"]["sDEF"]["lDEF"]["album_owner"]["vDEF"]; //t3lib_div::debug($config["row"]["uid"],'Flexform'); // get Data with cURL $curl = curl_init(); $url = "http://picasaweb.google.com/data/feed/api/user/" . $user; curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec ($curl); curl_close ($curl); if($xml = new SimpleXMLElement($result)) { $i = 2; //echo t3lib_div::debug($xml,'Albums'); foreach($xml->entry as $entry) { $albumid = $entry->xpath("./gphoto:id"); $items[$i]["albumid"] = $albumid0; $items[$i]["title"] = $entry->title; $i++; } $optionList = array(); $optionList[] = array(0 => 'private album', 1 => '1'); if(is_array($items)) { foreach($items as $key => $value) { $optionList[$key] = array(0 => $value['title'], 1 => $value['albumid']); } } $config['items'] = array_merge($config['items'],$optionList); } else return $this->pi_getLL('nodata'); return $config; } } ?>
To solve the problem I had to change the oppening tag in