0){ $returnvalue['error']=curl_error($ch); } else $returnvalue['error']=false; curl_close ($ch); if ($header_file) fclose ($header_file); if ($content_file) fclose ($content_file); if (file_exists($header_filename)){ $returnvalue['headercontent']=file($header_filename); unlink ($header_filename); } if (@filesize ($content_filename) > 0){ if (empty($content)) $content=file_get_contents($content_filename); $returnvalue['sitecontent']=preg_split(";\\r\\n|\\n;", $content); unlink($content_filename); } else $returnvalue['sitecontent']=false; return $returnvalue; } } require_once('clsDatabase.inc'); require_once('clsHotspots.inc'); $db = new database(); $hotspots = new hotspots($db); if (!empty($_REQUEST['action']) && $_REQUEST['action'] == "addspot") { $hotspots->addSpot($_REQUEST['image'],$_REQUEST['spotcoords'],$_REQUEST['label'],$_REQUEST['tooltip']); } if (!empty($_REQUEST['action']) && $_REQUEST['action'] == "delspot") { $hotspots->deleteSpot($_REQUEST['image'],$_REQUEST['spotcoords']); } $erezurl = 'http://erez.jupiter/erez4'; $listtemplate = 'fsi/image_list_fileinfo.xml'; if (!empty($_REQUEST['image'])) $_REQUEST['image'] = $_REQUEST['image']; else if(empty( $_REQUEST['image'] )) $_REQUEST['image'] = 'Samples/Coffecup.jpg'; if (!empty($_REQUEST['folder'])) $_REQUEST['folder'] = rawurlencode($_REQUEST['folder']); elseif(empty( $_REQUEST['folder'] )) $_REQUEST['folder'] = rawurlencode("Samples"); $listurl = $erezurl.'/erez?cmd=list&src='.$_REQUEST['folder'].'&vtl='.$listtemplate.'&page=1&rows=512&cols=4'; $v = get_site($listurl); $imagesInShowcase = Array(); foreach( $v['sitecontent'] as $x => $line ) { if( $line != '' ) { if (strstr($line,' Hotspots authoring '; echo ''; echo ''; echo ''; echo '

Hotspots Coordinates:

Image
Coords
Label
Tooltip
getList($_REQUEST['image']); if (!empty($list)) { ?>

Available Hotspots:
'; foreach( $list as $void => $spot) { echo''; } echo ''; echo ' 
'; } ?>
  
Select Folder:'; echo '
'; echo ''; echo ''; echo ' 
   Select Image:'; echo '
'; echo ''; echo ''; echo ' 
'; ?>