CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #33146

PHP code displayed on the frontend pages

Added by Rebetez Martin over 1 year ago. Updated 11 months ago.

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

History

Updated by Jacob 11 months ago

  • Status changed from New to Closed
  • Assignee set to Jacob

See new version 0.4.2 in TER

Also available in: Atom PDF