".$field["edit_title"][$language].""; } else { echo "

".$field[$pagename."_title"][$language]."

".$field[$pagename."_content"][$language]."

"; } if (isset($_POST["post_data"]) && isset($_POST["captcha"])) { if (empty($_POST["contact_email"])) { $message = "
\"error\"

Please enter your e-mail address!

"; } elseif (empty($_POST["contact_name"])) { $message = "
\"error\"

Please enter your name!

"; } else { if ($comments_default == $comments) { $comments = ""; } $ip = getenv("REMOTE_ADDR"); $remote_host = gethostbyaddr($_SERVER['REMOTE_ADDR']); $postedvalues = "Posted values:\nIP: ".$ip."\nHost: ".$remote_host."\n"; $uri = substr($config_website,0,-1).$_SERVER['REQUEST_URI']; while (list ($key, $val) = each ($_POST)) { $postedvalues .= $key.": ".$val."\n"; } // captcha uitgeschakeld op iphone $browser = strtolower($_SERVER['HTTP_USER_AGENT']); if (stripos($browser,'iphone') == false && stripos($browser,'ipad') == false && ($_POST["captcha"] != $_SESSION["captcha"] OR $_SESSION["captcha"]=="")) { $message = "
\"Error\"

".$field["vercodeinvalid"][$language]."

"; $error=1; } // controleer of verborgen spam veld is ingevuld elseif (isset($_POST["mywebsite"]) && $_POST["mywebsite"] != "") { $message = "
\"error\"

".$field["checkspam"][$language]."

"; $error=2; } elseif (check_spam($postedvalues)) { $message = "
\"Error\"

".$field["checkspam"][$language]."

"; $error=3; $subject = stripslashes("Spamwords detected on ".$_SERVER["HTTP_HOST"]); $text = stripslashes("Spamword: ".check_spam($postedvalues)."\n\nIP: ".$ip."\nRemote host: ".$remote_host."\nURL: ".$uri."\n\n".$postedvalues); $eol="\r\n"; $headers="From: ".$contact_name." <".$contact_email.">".$eol."Content-Type: text/plain; charset=utf-8".$eol; mail("info@hoogmawebdesign.com", $subject, $text, $headers); } else { $chosencountry=""; if (!empty($country_id)) { $sql = "SELECT `country_en` as country FROM `countries` WHERE country_id = ".$db->sql_quote($country_id); if ($db->num_rows($sql) > 0) { $res=$db->query($sql); $chosencountry=$res->country; } } $maincat=""; if (!empty($main_category)) { $sql = "SELECT `maincategory_en` as maincat FROM `maincategories` WHERE id = ".$db->sql_quote($main_category); if ($db->num_rows($sql) > 0) { $res=$db->query($sql); $maincat=$res->maincat; } } $subcat=""; if (!empty($sub_category)) { $sql = "SELECT `subcategory_en` as subcat FROM `subcategories` WHERE id = ".$db->sql_quote($sub_category); if ($db->num_rows($sql) > 0) { $res=$db->query($sql); $subcat=$res->subcat; } } if (isset($_POST["process"]) && ($_POST["process"]=="edit" || $_POST["process"]=="add")) { class Foto_upload extends file_upload { var $x_size; var $y_size; var $x_max_size = 800; var $y_max_size = 800; var $x_max_medium_size = 300; var $y_max_medium_size = 300; var $x_max_thumb_size = 175; var $y_max_thumb_size = 150; var $thumb_folder; var $foto_folder; var $medium_folder; var $foto_number; var $larger_dim; var $larger_curr_value; var $larger_dim_value; var $larger_dim_thumb_value; var $larger_dim_medium_value; var $use_image_magick = true; // switch between true and false function process_image($landscape_only = false, $create_thumb = true, $create_medium = true, $delete_tmp_file = false, $watermark = true, $compression = 85) { $filename = $this->upload_dir.$this->file_copy; $this->check_dir($this->thumb_folder); $this->check_dir($this->foto_folder); $this->check_dir($this->medium_folder); $thumb = $this->thumb_folder.$this->file_copy; $foto = $this->foto_folder.$this->file_copy; $medium = $this->medium_folder.$this->file_copy; if ($landscape_only) { $this->get_img_size($filename); if ($this->y_size > $this->x_size) { $this->img_rotate($filename, $compression); } } $this->check_dimensions($filename); // check which size is longer then the max value if ($this->larger_curr_value > $this->larger_dim_value) { $this->thumbs($filename, $foto, $this->larger_dim_value, $compression); } else { copy($filename, $foto); } if ($create_thumb) { $this->check_thumb_dimensions($filename); // check which size is longer then the max value if ($this->larger_curr_thumb_value > $this->larger_dim_thumb_value) { $this->thumbs($filename, $thumb, $this->larger_dim_thumb_value, $compression); // finally resize the image } else { copy($filename, $thumb); } } // maak alleen van de eerste foto een medium if ($this->foto_number==0) { if ($create_medium) { $this->check_medium_dimensions($filename); // check which size is longer then the max value if ($this->larger_curr_medium_value > $this->larger_dim_medium_value) { $this->thumbs($filename, $medium, $this->larger_dim_medium_value, $compression); // finally resize the image } else { copy($filename, $medium); } } } // note if you delete the tmp file the check if a file exists will not work if ($delete_tmp_file) { $this->del_temp_file($filename); } // maak een copyright watermark over de resized foto if ($watermark) { $this->watermark($foto,$this->foto_folder.$this->file_copy,$this->upload_dir."copy.png"); } } function get_img_size($file) { $img_size = getimagesize($file); $this->x_size = $img_size[0]; $this->y_size = $img_size[1]; } function check_dimensions($filename) { $this->get_img_size($filename); // check langste kant van plaatje if ($this->x_size > $this->y_size) { // echo "Thumb X langer | "; $this->larger_dim = "x"; } else { // echo "Thumb Y langer | "; $this->larger_dim = "y"; } // x en y van plaatje zijn allebij kleiner dan de max afmetingen van de resized if (($this->x_size < $this->x_max_size) && ($this->y_size < $this->y_max_size)) { if ($this->x_size > $this->y_size) { $this->larger_curr_value = $this->x_size; $this->larger_dim_value = $this->x_max_size; } else { $this->larger_curr_value = $this->y_size; $this->larger_dim_value = $this->y_max_size; } } // x is groter en y is kleiner dan de max afmetingen van de resized elseif (($this->x_size > $this->x_max_size) && ($this->y_size < $this->y_max_size)) { $this->larger_curr_value = $this->x_size; $this->larger_dim_value = $this->x_max_size; } // y is groter en x is kleiner dan de max afmetingen van de resized elseif (($this->y_size > $this->y_max_size) && ($this->x_size < $this->x_max_size)) { $this->larger_curr_value = $this->y_size; $this->larger_dim_value = $this->y_max_size; } // x en y zijn allebij groter dan de max afmetingen van de resized else { // bereken welke kant naar verhouding groter is // $var_x = $this->x_size / $this->x_max_size; // $var_y = $this->y_size / $this->y_max_size; $var_x = $this->x_size - $this->x_max_size; $var_y = $this->y_size - $this->y_max_size; // als verhouding x groter of gelijk is dan y, dan is x de lange zijde if ($var_x >= $var_y) { $this->larger_curr_value = $this->x_size; $this->larger_dim_value = $this->x_max_size; } else { $this->larger_curr_value = $this->y_size; $this->larger_dim_value = $this->y_max_size; } } } function check_medium_dimensions($filename) { // x en y van plaatje zijn allebij kleiner dan de max afmetingen van de medium if (($this->x_size < $this->x_max_medium_size) && ($this->y_size < $this->y_max_medium_size)) { if ($this->x_size > $this->y_size) { $this->larger_curr_medium_value = $this->x_size; $this->larger_dim_medium_value = $this->x_max_medium_size; } else { $this->larger_curr_medium_value = $this->y_size; $this->larger_dim_medium_value = $this->y_max_medium_size; } } // x is groter en y is kleiner dan de max afmetingen van de medium elseif (($this->x_size > $this->x_max_medium_size) && ($this->y_size < $this->y_max_medium_size)) { $this->larger_curr_medium_value = $this->x_size; $this->larger_dim_medium_value = $this->x_max_medium_size; } // y is groter en x is kleiner dan de max afmetingen van de medium elseif (($this->y_size > $this->y_max_medium_size) && ($this->x_size < $this->x_max_medium_size)) { $this->larger_curr_medium_value = $this->y_size; $this->larger_dim_medium_value = $this->y_max_medium_size; } // x en y zijn allebij groter dan de max afmetingen van de medium else { // bereken welke kant naar verhouding groter is // $var_x = $this->x_size / $this->x_max_medium_size; // $var_y = $this->y_size / $this->y_max_medium_size; $var_x = $this->x_size - $this->x_max_medium_size; $var_y = $this->y_size - $this->y_max_medium_size; // als verhouding x groter of gelijk is dan y, dan is x de lange zijde if ($var_x >= $var_y) { $this->larger_curr_medium_value = $this->x_size; $this->larger_dim_medium_value = $this->x_max_medium_size; } else { $this->larger_curr_medium_value = $this->y_size; $this->larger_dim_medium_value = $this->y_max_medium_size; } } } function check_thumb_dimensions($filename) { // x en y van plaatje zijn allebij kleiner dan de max afmetingen van de thumbnail if (($this->x_size < $this->x_max_thumb_size) && ($this->y_size < $this->y_max_thumb_size)) { if ($this->x_size > $this->y_size) { $this->larger_curr_thumb_value = $this->x_size; $this->larger_dim_thumb_value = $this->x_max_thumb_size; } else { $this->larger_curr_thumb_value = $this->y_size; $this->larger_dim_thumb_value = $this->y_max_thumb_size; } } // x is groter en y is kleiner dan de max afmetingen van de thumbnail elseif (($this->x_size > $this->x_max_thumb_size) && ($this->y_size < $this->y_max_thumb_size)) { $this->larger_curr_thumb_value = $this->x_size; $this->larger_dim_thumb_value = $this->x_max_thumb_size; } // y is groter en x is kleiner dan de max afmetingen van de thumbnail elseif (($this->y_size > $this->y_max_thumb_size) && ($this->x_size < $this->x_max_thumb_size)) { $this->larger_curr_thumb_value = $this->y_size; $this->larger_dim_thumb_value = $this->y_max_thumb_size; } // x en y zijn allebij groter dan de max afmetingen van de thumbnail else { // bereken welke kant naar verhouding groter is // $var_x = $this->x_size / $this->x_max_thumb_size; // $var_y = $this->y_size / $this->y_max_thumb_size; $var_x = $this->x_size - $this->x_max_thumb_size; $var_y = $this->y_size - $this->y_max_thumb_size; // als verhouding x groter of gelijk is dan y, dan is x de lange zijde if ($var_x >= $var_y) { $this->larger_curr_thumb_value = $this->x_size; $this->larger_dim_thumb_value = $this->x_max_thumb_size; } else { $this->larger_curr_thumb_value = $this->y_size; $this->larger_dim_thumb_value = $this->y_max_thumb_size; } } } function img_rotate($wr_file, $comp) { $new_x = $this->y_size; $new_y = $this->x_size; if ($this->use_image_magick) { exec(sprintf("mogrify -rotate 90 -quality %d %s", $comp, $wr_file)); } else { $src_img = imagecreatefromjpeg($wr_file); $rot_img = imagerotate($src_img, 90, 0); $new_img = imagecreatetruecolor($new_x, $new_y); imageantialias($new_img, TRUE); imagecopyresampled($new_img, $rot_img, 0, 0, 0, 0, $new_x, $new_y, $new_x, $new_y); imagejpeg($new_img, $this->upload_dir.$this->file_copy, $comp); } } function thumbs($file_name_src, $file_name_dest, $target_size, $quality = 80) { //print_r(func_get_args()); $size = getimagesize($file_name_src); if ($this->larger_dim == "x") { $w = number_format($target_size, 0, ',', ''); $h = number_format(($size[1]/$size[0])*$target_size,0,',',''); } else { $h = number_format($target_size, 0, ',', ''); $w = number_format(($size[0]/$size[1])*$target_size,0,',',''); } if ($this->use_image_magick) { exec(sprintf("convert %s -resize %dx%d -quality %d %s", $file_name_src, $w, $h, $quality, $file_name_dest)); $cmd = "convert -colorspace sRGB -unsharp 1.5x1.2+1.0+0.10 ". $file_name_dest . " " . $file_name_dest; $results = exec($cmd); } else { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); $src = imagecreatefromjpeg($file_name_src); imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]); imagejpeg($dest, $file_name_dest, $quality); } } function watermark($file_name_src, $file_name_dest, $file_watermark){ $cmd = "composite -gravity SouthEast -geometry +0+0 ". $file_watermark . " " . $file_name_src ." ".$file_name_dest; $results = exec($cmd); } } ini_set("memory_limit", "64M"); set_time_limit(180); define("MAX_SIZE", $max_size); $totalFotos = 1; for ($i=0;$i<$totalFotos;$i++) { // alleen uitvoeren als upload mogelijk is if (isset($_FILES['filename'.$i]['name'])) { //check content type if(!empty($_FILES['filename'.$i]['type']) && !in_array(strtoupper($_FILES['filename'.$i]['type']), $validcontenttypes)) { echo "\"Error\" Invalid file type! ".$_FILES['filename'.$i]['name']; $error[$i] = "error"; } //check filesize elseif($_FILES['filename'.$i]['size'] > 5000000) { echo "\"Error\" File ".$_FILES['filename'.$i]['name']." is too big!"; $error[$i] = "error"; } else { $foto_upload = new Foto_upload; $arrFotos[$i]=$foto_upload; $foto_upload->foto_number = $i; $foto_upload->upload_dir = $uploaddir; // "files" is the folder for the uploaded files (you have to create these folder) $foto_upload->foto_folder = $resizeddir; $foto_upload->thumb_folder = $thumbdir; $foto_upload->medium_folder = $mediumdir; $foto_upload->language = "en"; $foto_upload->x_max_size = 800; $foto_upload->y_max_size = 800; $foto_upload->x_max_medium_size = 300; $foto_upload->y_max_medium_size = 300; $foto_upload->x_max_thumb_size = 175; $foto_upload->y_max_thumb_size = 150; $foto_upload->the_temp_file = $_FILES['filename'.$i]['tmp_name']; $foto_upload->the_file = $_FILES['filename'.$i]['name']; $foto_upload->http_error = $_FILES['filename'.$i]['error']; $foto_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true $foto_upload->do_filename_check = "n"; //$foto_upload->extensions = array(".jpg", ".jpeg", ".gif", ".tiff", ".png", ".bmp"); // specify the allowed extensions here $foto_upload->extensions = $validfiles; // specify the allowed extensions here // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!) $foto_upload->max_length_filename = 100; // change this value to fit your field length in your database (standard 100) $foto_upload->rename_file = true; if ($foto_upload->upload()) { $foto_upload->process_image(false, true, true, false, true, 80); $foto_upload->message[] = "Processed foto: ".$foto_upload->file_copy."!"; // "file_copy is the name of the foto" } } } } //$upload_error = $foto_upload->show_error_string(); ####### Eind foto upload class ###### for ($i=0;$i<$totalFotos;$i++) { $no = $i + 1; if (empty($error[$i])) { $pos=strpos($deletephotonum, "".$i); // als er op delete is geklikt en er geen nieuwe foto is geselecteerd (foto leeg maken) if ((!empty($_POST["deletephotonum"]) && !$pos==false) && (empty($_FILES["filename".$i]["name"]))) { if (file_exists($resizeddir.$_POST["dbfilename".$i])) unlink($resizeddir.$_POST["dbfilename".$i]); if (file_exists($thumbdir.$_POST["dbfilename".$i])) unlink($thumbdir.$_POST["dbfilename".$i]); if (file_exists($mediumdir.$_POST["dbfilename".$i])) unlink($mediumdir.$_POST["dbfilename".$i]); if (file_exists($uploaddir.$_POST["dbfilename".$i])) unlink($uploaddir.$_POST["dbfilename".$i]); $filename[$i] = ""; echo $field["file"][$language]." ".$no." ".$field["deleted"][$language]."
"; } // als er op delete is geklikt en er wel nieuwe foto is geselecteerd (wissen en nieuwe uploaden) elseif ((!empty($_POST["deletephotonum"]) && !$pos==false) && (!empty($_FILES["filename".$i]["name"]))) { if (file_exists($resizeddir.$_POST["dbfilename".$i])) unlink($resizeddir.$_POST["dbfilename".$i]); if (file_exists($thumbdir.$_POST["dbfilename".$i])) unlink($thumbdir.$_POST["dbfilename".$i]); if (file_exists($mediumdir.$_POST["dbfilename".$i])) unlink($mediumdir.$_POST["dbfilename".$i]); if (file_exists($uploaddir.$_POST["dbfilename".$i])) unlink($uploaddir.$_POST["dbfilename".$i]); $filename[$i] = $arrFotos[$i]->file_copy; echo $field["file"][$language]." ".$no." ".$field["delup"][$language]." ".$arrFotos[$i]->file_copy.")
"; } else { // als er geen nieuwe foto is en ook geen oude foto aanwezig is (leeg laten) if (empty($_FILES["filename".$i]["name"]) && empty($_POST["dbfilename".$i])) { $filename[$i] = ""; } // als er geen nieuwe foto is maar wel een oude foto (foto niet wijzigen) elseif ((empty($_FILES["filename".$i]["name"])) && (!$_POST["dbfilename".$i]=="")) { $filename[$i] = $_POST["dbfilename".$i]; echo $field["file"][$language]." ".$no." ".$field["notchanged"][$language]."
"; } // als er nieuwe foto is geselecteerd en er geen oude foto was (upload nieuwe) elseif ((!empty($_FILES["filename".$i]["name"])) && ($_POST["dbfilename".$i]=="")) { $filename[$i] = $arrFotos[$i]->file_copy; echo $field["file"][$language]." ".$no." ".$field["added"][$language]." ".$arrFotos[$i]->file_copy.")
"; } // als er een nieuwe foto is geselecteerd terwijl er een oude foto aanwezig was (verwijder oude en upload nieuwe) elseif ((!empty($_FILES["filename".$i]["name"])) && (!$_POST["dbfilename".$i]=="")) { if (file_exists($resizeddir.$_POST["dbfilename".$i])) unlink($resizeddir.$_POST["dbfilename".$i]); if (file_exists($thumbdir.$_POST["dbfilename".$i])) unlink($thumbdir.$_POST["dbfilename".$i]); if (file_exists($mediumdir.$_POST["dbfilename".$i])) unlink($mediumdir.$_POST["dbfilename".$i]); if (file_exists($uploaddir.$_POST["dbfilename".$i])) unlink($uploaddir.$_POST["dbfilename".$i]); $filename[$i] = $arrFotos[$i]->file_copy; echo $field["file"][$language]." ".$no." ".$field["changed"][$language]." ".$arrFotos[$i]->file_copy.")
"; } else { echo "I'm lost"; } } } } } echo $upload_error; if (isset($_POST["process"]) && ($_POST["process"]=="add")) { $ip = getenv("REMOTE_ADDR"); $remote_host = gethostbyaddr($_SERVER['REMOTE_ADDR']); if (empty($id)) { $sql1 = "SELECT id FROM `webcams` WHERE image_url = '".$db->sql_quote(geturl($image_url))."'"; $sql2 = "SELECT id FROM `webcams` WHERE title = '".$db->sql_quote(text_char($title))."'"; if ($db->num_rows($sql1)) { $message = "
\"Error\"".$field["webcamexists"][$language]."
"; } elseif ($db->num_rows($sql2)) { $message = "
\"Error\"".$field["titleexist"][$language]."
"; } else { $sql = "INSERT INTO `webcams` ( publish, title, url, image_url, streaming, continent, country_id, city, state, area, main_category, sub_category, description, contact_name, contact_email, keywords, filename1, ip, host, token, comments, date_added, date_mailing ) VALUES ( '1', '".$db->sql_quote(text_char($title))."', '".$db->sql_quote(geturl($url))."', '".$db->sql_quote(geturl($image_url))."', '".$db->sql_quote($streaming)."', '".$db->sql_quote($continent)."', '".$db->sql_quote($country_id)."', '".$db->sql_quote(text_char($city))."', '".$db->sql_quote(text_char($state))."', '".$db->sql_quote(text_char($area))."', '".$db->sql_quote($main_category)."', '".$db->sql_quote($sub_category)."', '".$db->sql_quote(text_char($description))."', '".$db->sql_quote(text_char($contact_name))."', '".$db->sql_quote($contact_email)."', '".$db->sql_quote(text_char($keywords))."', '".$db->sql_quote($filename[0])."', '".$db->sql_quote($ip)."', '".$db->sql_quote($remote_host)."', '".$db->sql_quote($token)."', '".$db->sql_quote(text_char($comments))."', '".$db->sql_quote($localtime)."', '".$db->sql_quote($localtime)."' )"; $db->insert_id($sql); // insert de rij $res=$db->query("SELECT `id` FROM `webcams` WHERE id = last_insert_id()"); $id=$res->id; $message = "
\"Added\"".$field["webcamadded"][$language]."
"; $subject_client = "Your webcam has been added to webcamsabroad.com"; $body_client = "Dear ".$contact_name.", Thank you very much for adding your webcam to Webcams Abroad. We are pleased to inform you that your webcam is listed without any costs on our international webcam directory. To view your webcam, see: http://www.webcamsabroad.com/en/".url_char($title." ".$city." ".$chosencountry)."-wbcm".$id." Please keep this e-mail, you will need it to modify your details. You can edit your details via this link: http://www.webcamsabroad.com/".$language."/edit/".$id."/".$token." Your webcam: ".$title." City: ".$city." Country: ".$chosencountry." Listed in category: ".$maincat." - ".$subcat." We appreciate a backlink from your website to www.webcamsabroad.com! If you have any questions, please let us know. With kind regards, Leo Hoogma Webcams Abroad Hoofdstraat 241 9686 PC Beerta The Netherlands Tel. +31 (0)597-855758 / +31 (0)6-45466932 E-mail: info@webcamsabroad.com www.webcamsabroad.com Webcams Abroad is part of: Hoogma Webdesign - custom made websites, domain registration, web hosting and SEO www.hoogmawebdesign.com ________________________________ End of e-mail "; require_once ($dir."/Mail-1.2.0/Mail.php"); require_once ($dir."/Mail_Mime-1.8.5/Mail/mime.php"); //$host = "ssl://mail.webcamsabroad.com"; //$port = "465"; $host = "localhost"; $smtp_usr = "info@webcamsabroad.com"; $smtp_pw = "Ttgb34*6"; $contenttype = "text/plain; charset=utf-8"; $from = "WebcamsAbroad "; if (!empty($contact_email)) { // stuur een mail naar de eigenaar van het bedrijf $to = $contact_email; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject_client, 'Content-Type' => $contenttype, 'Reply-To' => "WebcamsAbroad $smtp_usr, 'Errors-To' => $smtp_usr); $smtp = Mail::factory('smtp', array ('host' => $host, //'port' => $port, 'auth' => true, 'username' => $smtp_usr, 'password' => $smtp_pw)); // Send the email! $mail = $smtp->send($to, $headers, $body_client); //echo "Test: ".$mail; } $subject = "New webcam added on Webcams Abroad - ID ".$id.""; $body = "Link: http://www.webcamsabroad.com/".$language."/edit/".$id."/".$token."

Webcam URL: ".$image_url."
Main category: ".$maincat."
Sub category: ".$subcat."
Webcam title: ".$title."
City: ".$city."
State: ".$state."
Country: ".$chosencountry."
Area: ".$area."
Website: ".$url."
Name: ".$contact_name."
E-mail: ".$contact_email."
Keywords: ".$keywords."
Token: ".$token."

Comments:
".$comments."



IP: ".$ip."
Remote host: ".$remote_host."
URI: ".$uri."
"; $sendto = "info@webcamsabroad.com"; $subject = stripslashes($subject); $text = stripslashes($body); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= "Content-type: text/html; charset=utf-8" . "\r\n"; $headers .= "Reply-To: ".$contact_name." <".$contact_email.">" . "\r\n"; $headers .= "Return-Path: <".$sendto.">" . "\r\n"; $headers .= "Errors-To: <".$sendto.">" . "\r\n"; $headers .= "From: ".$contact_name." <".$contact_email.">" . "\r\n"; mail($sendto, $subject, $text, $headers, "-f".$contact_email.""); //mail("hoogmawebdesign@gmail.com", $subject, $text, $headers, "-f".$email.""); } } elseif (!empty($id)) { // update gegevens $sql1 = "SELECT id FROM `webcams` WHERE id <> '".$db->sql_quote($id)."' AND image_url = '".$db->sql_quote($image_url)."'"; $sql2 = "SELECT id FROM `webcams` WHERE id <> '".$db->sql_quote($id)."' AND title = '".$db->sql_quote($title)."'"; if ($db->num_rows($sql1)) { echo "\"Error\"".$field["webcamexists"][$language].""; } elseif ($db->num_rows($sql2)) { echo "\"Error\"".$field["titleexist"][$language].""; } else { $sql = "UPDATE `webcams` SET title = '".$db->sql_quote(text_char($title))."', url = '".$db->sql_quote(geturl($url))."', image_url = '".$db->sql_quote(geturl($image_url))."', streaming = '".$db->sql_quote($streaming)."', continent = '".$db->sql_quote($continent)."', country_id = '".$db->sql_quote($country_id)."', city = '".$db->sql_quote(text_char($city))."', state = '".$db->sql_quote(text_char($state))."', area = '".$db->sql_quote(text_char($area))."', main_category = '".$db->sql_quote($main_category)."', sub_category = '".$db->sql_quote($sub_category)."', description = '".$db->sql_quote(text_char($description))."', contact_name = '".$db->sql_quote(text_char($contact_name))."', contact_email = '".$db->sql_quote($contact_email)."', keywords = '".$db->sql_quote(text_char($keywords))."', filename1 = '".$db->sql_quote($filename[0])."', ip = '".$db->sql_quote($ip)."', host = '".$db->sql_quote($remote_host)."', comments = '".$db->sql_quote(text_char($comments))."', date_updated = '".$db->sql_quote($localtime)."' WHERE id = '".$db->sql_quote($id)."' AND token = '".$db->sql_quote($token)."' LIMIT 1"; $db->affected_rows($sql); // update de rij $message = "
\"Added\"".$field["webcamupdated"][$language]."
"; $subject = "Webcam modified on Webcams Abroad - ID ".$id.""; $body = "Link: http://www.webcamsabroad.com/".$language."/edit/".$id."/".$token."

Webcam URL: ".$image_url."
Main category: ".$maincat."
Sub category: ".$subcat."
Webcam title: ".$title."
City: ".$city."
State: ".$state."
Country: ".$chosencountry."
Area: ".$area."
Website: ".$url."
Name: ".$contact_name."
E-mail: ".$contact_email."
Keywords: ".$keywords."
Token: ".$token."

Comments:
".$comments."



IP: ".$ip."
Remote host: ".$remote_host."
URI: ".$uri."
"; $sendto = "info@webcamsabroad.com"; $subject = stripslashes($subject); $text = stripslashes($body); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= "Content-type: text/html; charset=utf-8" . "\r\n"; $headers .= "Reply-To: ".$contact_name." <".$contact_email.">" . "\r\n"; $headers .= "Return-Path: <".$sendto.">" . "\r\n"; $headers .= "Errors-To: <".$sendto.">" . "\r\n"; $headers .= "From: ".$contact_name." <".$contact_email.">" . "\r\n"; mail($sendto, $subject, $text, $headers, "-f".$contact_email.""); //mail("hoogmawebdesign@gmail.com", $subject, $text, $headers, "-f".$email.""); } } } } } } if (!empty($message)) { echo "
".$message."
"; } if (isset($_GET["id"]) && isset($_GET["token"])) { $sql = "SELECT * FROM `webcams` WHERE id = '".$db->sql_quote($_GET["id"])."' AND token = '".$db->sql_quote($_GET["token"])."'"; if ($db->num_rows($sql) > 0) { $res=$db->query($sql); $id = $res->id; $title = $res->title; $url = $res->url; $image_url = $res->image_url; $streaming = $res->streaming; $continent = $res->continent; $country_id = $res->country_id; $city = $res->city; $state = $res->state; $area = $res->area; $main_category = $res->main_category; $sub_category = $res->sub_category; $description = text_unchar($res->description); $contact_name = $res->contact_name; $contact_email = $res->contact_email; $keywords = $res->keywords; $filename1 = $res->filename1; $comments = text_unchar($res->comments); $filename[0] = $res->filename1; } else { echo "\"Error\"".$field["novalidlink"][$language].""; } } ?>

Mijn website:

Hoofdcategorie:
Subcategorie:
URL webcam afbeelding:
Webcamtitel:
Plaats:
Provincie/staat:
Gebied:
Land:
Continent:
Website:
Uw naam:
E-mail:
Keywords:
Beschrijving:
Opmerkingen voor de webmaster:
Webcam voorvertoning (Max. 2 MB):
Typ de code:
Type de code refresh captcha

Laatst toegevoegde webcams

  • Woodworkers shop Nuremberg Duitsland - Webcams Abroad live beelden
  • Littlehook_s webcam Nuremberg Duitsland - Webcams Abroad live beelden
  • Lanzarote Webcam Cruise Ships Dock Live HD Streaming from Arrecife (Canary Islands - Spain) Arrecife de Lanzarote Spanje - Webcams Abroad live beelden

Webcam Oostgrunn.nl

The webcam of Oostgrunn.nl in the North of The Netherlands just changed direction! Previously it had a view on the clouds and the church of Beerta, but now it overlooks the Vredesplein, a small square with a super market... Lees meer »»

Webcam in The Netherland

Webcams Abroad has several webcams in the Netherlands. One of the webcams is in the North of the country and gives a impression of the weather.... Lees meer »»