gzuncompress
Posted: Mon 22. Jan 2007, 17:06
hi
i'm having a problem with the map cnt part when i click open map in the admin i get the folowing error message
Warning: gzuncompress() [function.gzuncompress]: data error in /**cut**/www/include/inc_tmpl/content/cnt51.open.php on line 42
that is produces by the following code does any one know a solution to the problem
i'm having a problem with the map cnt part when i click open map in the admin i get the folowing error message
Warning: gzuncompress() [function.gzuncompress]: data error in /**cut**/www/include/inc_tmpl/content/cnt51.open.php on line 42
that is produces by the following code does any one know a solution to the problem
Code: Select all
<?php
//include('../../inc_conf/conf.inc.php');
include('../../../config/phpwcms/conf.inc.php');
$img = rawurlencode('../../../'.$phpwcms["templates"].'/inc_cntpart/map/map_img/'.$_GET['map']);
$map = '';
$p = array();
if(isset($_GET['points'])) {
$points = explode(':|:', gzuncompress(base64_decode($_GET['points'])));
if(count($points)) {
foreach($points as $value) {
$point = explode(':::', $value);
$map .= '<area shape="rect" coords="'.($point[0]-3).','.($point[1]-3);
$map .= ','.($point[0]+4).','.($point[1]+4).'" href="#" title="';
$map .= $point[2]."\">\n";
$p[] = $point[0].'x'.$point[1];