\n"; } return false; } $this->FHandle = $file; return true; } function fwWriteText($text) { if(empty($text)) { if(GetConfig('DEBUG')) {echo "fwWriteText: ".$lang9006."
\n"; } return false; } if(empty($this->FHandle)) { global $lang9007; if(GetConfig('DEBUG')) {echo "fwWriteText: ".$lang9007."
\n";} return false; } fputs($this->FHandle,$text); return true; } // Special fwWriteText to use for logfile writing function fwLogText($logtext,$ip) { $text = localTimeFormat(time())." - ".$logtext." - IP: ".$ip."\r\n"; return fwWriteText($text); } // Closes a file(-handle) function fwClose() { if(empty($this->FHandle)) {return true;} return flose($this->FHandle); } } class Debugger { // class used to debug php-scripts // essentially based on Hanser phpdebug var $LogFileName = ""; //////$LOGFILE; var $ErrorMessage = ""; var $ErrorLine = ""; var $strGlobals = ""; var $strGet = ""; var $strPost = ""; var $strCookie = ""; var $strError = ""; var $strLogFile = ""; // Methods function SetErrorMessage($ErrorMessage="") { $this->ErrorMessage = $ErrorMessage; } function SetErrorLine($ErrorLine="") { $this->ErrorLine = $ErrorLine; } function SetLogFile($LogFile="") { $this->strLogFile = $LogFile; } function BuildVarTable($dbg_globals=true,$dbg_get=true,$dbg_post=true,$dbg_cookie=true,$dbg_error=true) { // Log global variables if($dbg_globals==true) { $dbgglob = "
Globale Variablen:
"; if (is_array($GLOBALS)) { while (list($key, $val) = each($GLOBALS)) { if ($key!="dbgglob" & $key!="key" & $key!="val" & $key!="__dbg_trace") { $dbgglob .= "".$key." => ".$val."
"; } } } else { $dbgglob = "Keine ...
"; } $dbgglob .= "
"; } // Post Messages log if($dbg_post==true) { $dbgpost = "
Variablen per POST:
"; if (is_array($_POST)) { while (list($key, $val) = each($_POST)) { $dbgpost .= $key." => ".$val."
"; } } else { $dbgpost .= "Keine ...
"; } $dbgpost .= "
"; } // Get Messages log if($dbg_get==true) { $dbgget = "
Variablen per GET:
"; if (count($_GET)>0) { while (list($key, $val) = each($_GET)) { $dbgget .= $key." => ".$val."
"; } } else { $dbgget .= "Keine ...
"; } $dbgget .= "
"; } // Cookies log if($dbg_cookie==true) { $dbgcook = "
Cookies:
"; if (is_array($_COOKIE)) { while (list($key, $val) = each($_COOKIE)) { $dbgcook .= $key." => ".$val."
"; } } else { $dbgcook .= "Keine ...
"; } $dbgcook .= "
"; } // Error log if($dbg_error==true) { $dbgerr = "
Fehlermeldungen:
"; if (empty($php_errormsg)) { $dbgerr .= "Keine ...
"; } else { $dbgerr .= "".$php_errormsg."
"; } } // save to object attributes $this->strGlobals = dbg_globals; $this->strGet = dbg_get; $this->strPost = dbg_post; $this->strCookie = dbg_cookie; $this->strError = dbg_error; } // Main method - call this to write debug output function debug_me($LogToFile=true) { // Get variables' content $this->BuildVarTable(); $strDebugText = $this->strGlobals."

".$this->strGet."

".$this->strPost."

".$this->strCookie."

".$this->strError; // Log to screen or log to file if(LogToFile==true) { // Write to file $WriteFile = new FileWriter; $WriteFile->fwWriteText($strDebugText); $WriteFile->fwClose(); } else { // Write to screen! // Attention! This function only works properly with Javascript turned on! $JS=""; echo $JS; // *** To be continued... } } } // Class: ImageConvert // based on: Thumbnail-Class by Hidayet Dogan class Thumbnail { var $errmsg = ""; var $error = false; var $format = ""; var $file = ""; var $version2 = false; var $allowupsizing = true; var $max_width = 0; var $max_height = 0; var $percent = 0; var $bHighQuality = FALSE; var $arrInfo = array(); /* Constructor */ function Thumbnail($file, $max_width = 0, $max_height = 0, $percent = 0,$version = false,$upsizing=true) { if(!function_exists("gd_info")) { // No GD library installed, should throw an exception $this->errmsg = "GD library not installed"; return FALSE; } if (!file_exists($file)) { $this->errmsg = "File doesn't exists"; $this->error = true; } elseif (!is_readable($file)) { $this->errmsg = "File is not readable"; $this->error = true; } $this->allowupsizing = $upsizing; // Get GD info $this->arrInfo = gd_info(); $this->version2 = (preg_match("/(2.)/i",$this->arrInfo['GD Version'])==0?FALSE:TRUE); if (strstr(strtolower($file), ".jpg") || strstr(strtolower($file), ".jpeg") || strstr(strtolower($file), ".jpe")) { $this->format = "JPEG"; } elseif (strstr(strtolower($file), ".png")) { $this->format = "PNG"; } elseif (strstr(strtolower($file), ".gif")) { $this->errmsg = "We are sorry! But there is no longer support for GIF-Files in PHP4"; $this->error = true; } else { $this->errmsg = "We are sorry! Unknown file format"; $this->error = true; } if ($max_width == 0 && $max_height == 0 && $percent == 0) $percent = 100; $this->max_width = $max_width; $this->max_height = $max_height; $this->percent = $percent; $this->file = $file; } function SetVersion($version=false) { $this->version2 = $version; } function SetUpsizing($upsizing=true) { $this->allowupsizing = $upsizing; } function SetSize($MaxWidth=600, $MaxHeight=600) { $this->max_width = $MaxWidth; $this->max_height = $MaxHeight; } function SetHighQuality($bHigh=TRUE) { $this->bHighQuality = $bHigh; return TRUE; } function calc_width($width, $height) { $new_width = $this->max_width; $new_wp = (100 * $new_width) / $width; $new_height = ($height * $new_wp) / 100; return array($new_width, $new_height); } function calc_height($width, $height) { $new_height = $this->max_height; $new_hp = (100 * $new_height) / $height; $new_width = ($width * $new_hp) / 100; return array($new_width, $new_height); } function calc_percent($width, $height) { $new_width = ($width * $this->percent) / 100; $new_height = ($height * $this->percent) / 100; return array($new_width, $new_height); } function return_value($array) { $array[0] = intval($array[0]); $array[1] = intval($array[1]); return $array; } function calc_image_size($width, $height) { $new_size = array($width, $height); if((!$this->allowupsizing) && ($width<=($this->max_width) && ($height<=$this->max_height))) { // Check, if preferred size is bigger than acutal size return $this->return_value($new_size); } if ($this->max_width > 0) { $new_size = $this->calc_width($width, $height); if ($this->max_height > 0) { if ($new_size[1] > $this->max_height) { $new_size = $this->calc_height($new_size[0], $new_size[1]); } } return $this->return_value($new_size); } if ($this->max_height > 0) { $new_size = $this->calc_height($width, $height); return $this->return_value($new_size); } if ($this->percent > 0) { $new_size = $this->calc_percent($width, $height); return $this->return_value($new_size); } return 0; } function show_error_image() { header("Content-type: image/png"); $err_img = ImageCreate(220, 25); $bg_color = ImageColorAllocate($err_img, 0, 0, 0); $fg_color1 = ImageColorAllocate($err_img, 255, 255, 255); $fg_color2 = ImageColorAllocate($err_img, 255, 0, 0); ImageString($err_img, 3, 6, 6, "ERROR:", $fg_color2); ImageString($err_img, 3, 55, 6, $this->errmsg, $fg_color1); ImagePng($err_img); ImageDestroy($err_img); } function show_error_message() { echo "An error occured: ".$this->errmsg; } function saveImage($FileName="") { if(empty($FileName) || ($this->error)) { $this->error=true; $this->show_error_message(); return false; } $size = GetImageSize($this->file); $new_size = $this->calc_image_size($size[0], $size[1]); if($this->version2) { $new_image = ImageCreateTrueColor($new_size[0], $new_size[1]); } else { $new_image = ImageCreate($new_size[0], $new_size[1]); } switch ($this->format) { case "GIF": $old_image = ImageCreateFromGif($this->file); break; case "JPEG": $old_image = ImageCreateFromJpeg($this->file); break; case "PNG": $old_image = ImageCreateFromPng($this->file); break; } if($this->bHighQuality) { ImageCopyResampled($new_image, $old_image, 0, 0, 0, 0, $new_size[0], $new_size[1], $size[0], $size[1]); } else { ImageCopyResized($new_image, $old_image, 0, 0, 0, 0, $new_size[0], $new_size[1], $size[0], $size[1]); if(function_exists("imagefilter")) { imagefilter($new_image,IMG_FILTER_SMOOTH,20); } } switch ($this->format) { case "GIF": ImageGif($new_image,$FileName); break; case "JPEG": ImageJpeg($new_image,$FileName,70); break; case "PNG": ImagePng($new_image,$FileName); break; } ImageDestroy($new_image); ImageDestroy($old_image); return; } function show() { if ($this->error) { $this->show_error_message(); return; } $size = GetImageSize($this->file); $new_size = $this->calc_image_size($size[0], $size[1]); $new_image = ImageCreate($new_size[0], $new_size[1]); switch ($this->format) { case "GIF": $old_image = ImageCreateFromGif($this->file); break; case "JPEG": $old_image = ImageCreateFromJpeg($this->file); break; case "PNG": $old_image = ImageCreateFromPng($this->file); break; } ImageCopyResized($new_image, $old_image, 0, 0, 0, 0, $new_size[0], $new_size[1], $size[0], $size[1]); switch ($this->format) { case "GIF": header("Content-type: image/gif"); ImageGif($new_image); break; case "JPEG": header("Content-type: image/jpeg"); ImageJpeg($new_image); break; case "PNG": header("Content-type: image/png"); ImagePng($new_image); break; } ImageDestroy($new_image); ImageDestroy($old_image); return; } } class NetworkConnect { // Connects to a network server via TCP/IP // $host serveraddress to connect // $port port to connect (Standard: 80 for HTTP) // $path path to connect to (i.E. /scripts/index.php) // $referer referer // $databody data to send // Properties var $host=""; var $port=80; var $path=""; var $referer=""; var $databody=""; var $TimeOut = 5; var $Conn=""; // Methods function NetworkConnect($host="",$port=80,$path="",$referer="",$databody="") { $this->host = $host; $this->port = $port; $this->path = $path; $this->referer = $referer; $this->databody = $databody; } function NetworkError($errorNo="",$errorMsg="") { if(GetConfig('DEBUG')) { echo "
Network Error occured!
"; echo "Err-No.: ".$errorNo." (Msg: ".$errorMsg.")"; } } function NetworkOpen() { $Conn = @fsockopen($this->host,$this->port,$errno,$errstr,$this->TimeOut); if(!$Conn) { $this->NetworkError($errno,$errstr); return false; } $this->Conn = $Conn; return true; } function NetworkPostData() { if(!$this->Conn) { return false; } $RetVal = ""; $ReqHeader = "POST ".$this->path." HTTP/1.1\n". "Host: ".$this->host." \n"; if(isset($this->referer)) { $ReqHeader.= "Referer: ".$this->referer."\n"; } $ReqHeader.= "Content-type: application/x-www-form-urlencoded\n". "Content-length: ".strlen($this->databody)."\n". "Connection: close\n\n". $this->databody."\n"; // Send header & post data fputs($this->Conn,$ReqHeader); // Read data while(!feof($this->Conn)) { $RetVal .= fgets($this->Conn, 128); } return $RetVal; } function NetworkClose() { if(!$this->Conn) { return false; } fclose($this->Conn); } } } ?> whomp Kleinanzeigen umsonst annonvieren

 

Kleinanzeigen-Details

Terracotta aus Geschäftsaufgabe

Angebot · Anzeige-Nr. 26 vom 13.11.2010 · 2876-mal angesehen

Terracotta aus Geschäftsaufgabe div. Töpfe Gefässe und Vasen günstig abzugeben ab Wachtberg Niederbachem bei Bonn, kommen Sie einfach vorbei oder Terminabsprache! Heinroth GmbH Konrad Adenauer Str. 15 Wachtberg Niederbachem

Weitere Informationen

Keine weiteren Informationen verfügbar

Bilder (5 Bilder)

Terracotta
Terracotta
Terracotta
Terracotta
Terracotta

Inserent

Heinroth
D-53343 Wachtberg
Deutschland

Kommunikation

Telefon: 0228857053
Mobilfunk: 017610007075
Telefax: 0228/342759
Homepage: www.heinroth.de