\r\n"; $enabled_lang_array = explode(",",$enabled_lang); for ($a=0; $a\""\r\n"; } echo "\r\n"; } echo "
\r\n"; $a = 1; while ($sparte[$a][$lang] != "") { if (($tp == $a)&&($action != "add")&&($action != "verify")&&($action != "save")) { echo " " . $sparte[$a][$lang] . " |\r\n"; } else { echo " " . $sparte[$a][$lang] . " |\r\n"; } $a++; } if (($action == "add")||($action == "verify")) { echo " $makean\r\n"; } else { echo " $makean\r\n"; } echo "

\r\n"; echo "
\r\n"; echo "
\r\n"; if ($action == "save") { $result = mysql_query("select * from ad2_captcha where id='$id'", $mycon); $row = mysql_fetch_array($result); echo " "; if (($row["captcha"] == $captcha) || ($enablecaptcha != "yes")) { $result = mysql_query("update ad2_captcha set captcha='1' where id='$id'", $mycon); if (isset($_FILES['file']) and ! $_FILES['file']['error']) { if ($size = getimagesize($_FILES['file']['tmp_name'])) { $file_name = str_replace(".tmp", "", $_FILES['file']['tmp_name']); $file_name = str_replace(".jpg", "", $file_name); $file_name = str_replace(".gif", "", $file_name); $file_name = str_replace(".png", "", $file_name); $file_name .= ".jpg"; $file_name = str_replace("\\", "/", $file_name); $file_name_array = explode("/", $file_name); $file_name = $file_name_array[count($file_name_array) - 1]; $file_name = strtolower($file_name); while (file_exists("fotos/$file_name")) { $file_name = str_replace(".jpg", ++$extender.".jpg", $file_name); } $width_orig = $size[0]; $height_orig = $size[1]; if ($height_orig > $width_orig) { $height_small = $thumbmaxheight; $height_big = $maximageheight; if ($height_orig < $thumbmaxheight) { $height_small = $height_orig; $nobig = "yes"; } else if ($height_orig < $enlargeminheight) { $nobig = "yes"; } else if ($height_orig < $maximageheight) { $height_big = $height_orig; } $width_small = $height_small * $width_orig / $height_orig; $width_big = $height_big * $width_orig / $height_orig; } else { $width_small = $thumbmaxwidth; $width_big = $maximagewidth; if ($width_orig < $thumbmaxwidth) { $width_small = $width_orig; $nobig = "yes"; } else if ($width_orig < $enlargeminwidth) { $nobig = "yes"; } else if ($width_orig < $maximagewidth) { $width_big = $width_orig; } $height_small = $width_small * $height_orig / $width_orig; $height_big = $width_big * $height_orig / $width_orig; } $lupe = imagecreatefromgif ("grafik/lupe.gif"); if ($size[2] == 1) $src_im = imagecreatefromgif ($_FILES['file']['tmp_name']); if ($size[2] == 2) $src_im = imagecreatefromjpeg ($_FILES['file']['tmp_name']); if ($size[2] == 3) $src_im = imagecreatefrompng ($_FILES['file']['tmp_name']); $dst_small = imagecreatetruecolor($width_small, $height_small); imagecopyresized ($dst_small, $src_im, 0, 0, 0, 0, $width_small, $height_small, $width_orig, $height_orig); if ($nobig != "yes") { imagecopyresized ($dst_small, $lupe, ($width_small-35), ($height_small-23), 0, 0, 23, 23, 23, 23); $dst_big = imagecreatetruecolor($width_big, $height_big); imagecopyresized ($dst_big, $src_im, 0, 0, 0, 0, $width_big, $height_big, $width_orig, $height_orig); imagejpeg ($dst_big, "fotos/big/$file_name", 85); chmod("fotos/big/$file_name", 0777); imagedestroy($dst_big); } imagejpeg ($dst_small, "fotos/$file_name", 85); chmod("fotos/$file_name", 0777); imagedestroy($src_im); imagedestroy($dst_small); imagedestroy($lupe); $have_image = "yes"; } } if ($enableactivation == "yes") { $result=mysql_query("insert into $ad_tablename values('', '0', '".date("Y-m-d")."', '$cat', '$ueb', '$kont', '$file_name', '" . str_replace("","\"",$content) . "')", $mycon); echo " $responseok

"; } else { $result=mysql_query("insert into $ad_tablename values('', '1', '".date("Y-m-d")."', '$cat', '$ueb', '$kont', '$file_name', '" . str_replace("","\"",$content) . "')", $mycon); } echo " $suannuncio

\r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; for ($a=2;$a<=$colsperpage;$a++) { echo " \r\n"; } echo " \r\n"; echo "
\r\n"; echo " $typ: " . $sparte[$cat][$lang] . "\r\n"; echo "
\r\n"; if (($fotoposition == "left")||($fotoposition == "right")) { if (($have_image == "yes") && ($displayfotos[$tp] == "yes")) { if ($nobig != "yes") { echo " \"$ueb\"\r\n"; } else { echo " \"$ueb\"\r\n"; } } } else if ($fotoposition == "top") { if (($have_image == "yes") && ($displayfotos[$tp] == "yes")) { if ($nobig != "yes") { echo "
\"$ueb\"
\r\n"; } else { echo "
\"$ueb\"
\r\n"; } } } echo " $ueb
" . str_replace("","\"",$content) . "\r\n"; if (ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.([a-zA-Z0-9-]{2,4})$",$kont)) { $email = unicoder($kont); echo " $kontakt: $email
\r\n"; } else { echo " $kontakt: $kont
\r\n"; } if ($fotoposition == "bottom") { if (($have_image == "yes") && ($displayfotos[$tp] == "yes")) { if ($nobig != "yes") { echo "
\"$ueb\"
\r\n"; } else { echo "
\"$ueb\"
\r\n"; } } } echo "
 

\r\n"; echo " \"\"
\r\n"; if ($activateemail == "yes") { $emailtext = "$newad\n\n"; $emailtext.= "$editentry:\n"; $emailtext.= "$absPath/admin/index.php\n\n"; $emailtext.= "Username: $adminuser\n"; $emailtext.= "Passwort: $adminpassword\n"; @mail ($emailadress, "ad2Xmarket: $newad", $emailtext, "From: $emailadress\nReply-To: $emailadress\r\n"); } } else { echo " $spamfailed

"; echo " \r\n"; echo "

\"\"

\r\n"; } } else if ($action == "verify") { $ueb = str_replace("\"","",stripslashes(trim(strip_tags($ueb)))); $kont = str_replace("\"","",stripslashes(trim(strip_tags($kont)))); if ($allowhtml != "yes") { $content = trim(strip_tags($content)); } else { if ($allowscript != "yes") { $content = quitarscript($content); } if ($allowiframe != "yes") { $content = quitartag($content,"iframe"); } if ($allowlinks != "yes") { $content = quitartag($content,"a"); } } $content = str_replace("\"","",stripslashes($content)); echo " $suannuncio

\r\n"; echo "
\r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; for ($a=2;$a<=$colsperpage;$a++) { echo " \r\n"; } echo " \r\n"; echo "
\r\n"; echo " $typ: " . $sparte[$cat][$lang] . "\r\n"; echo "
\r\n"; if (($fotoposition == "left")||($fotoposition == "right")) { echo " \"$ueb\"\r\n"; } else if ($fotoposition == "top") { echo "
\"$ueb\"
\r\n"; } echo " $ueb
" . str_replace("","\"",$content) . "\r\n"; if (ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.([a-zA-Z0-9-]{2,4})$",$kont)) { $email = unicoder($kont); echo " $kontakt: $email
\r\n"; } else { echo " $kontakt: $kont
\r\n"; } if ($fotoposition == "bottom") { echo "
\"$ueb\"
\r\n"; } echo "
 

\r\n"; echo " \r\n"; if ($enablefotupl[$cat] == "yes") { echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; } if ($enablecaptcha == "yes") { echo " \r\n"; $id= ""; srand((double)microtime()*1000000); for ($a=1;$a<=6;$a++) { $zahl .= rand(2,9); } for ($a=1;$a<=12;$a++) { $zuf = rand(48, 109); $zufClean = $zuf; if ($zufClean > 57) $zufClean += 7; if ($zufClean > 90) $zufClean += 6; $id .= chr($zufClean); } $result = mysql_query("insert into ad2_captcha values('$id', '$zahl')", $mycon); echo " \r\n"; echo " \r\n"; echo " \r\n"; } echo "
$foto:
$antispam:
$spamdescr
\r\n"; echo "

\r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo "
\r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo "
\r\n"; echo "
\r\n"; } else if ($action == "add") { echo " $suannuncio

\r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo " \r\n"; echo "
$typ:\r\n"; echo " \r\n"; echo "
$ueberschrift:
$cont:
$kontakt:
\r\n"; echo "
$kontaktdecr
 \r\n"; echo " \r\n"; echo " \r\n"; echo "
\r\n"; } else { $result = mysql_query("select count(*) from $ad_tablename where sparte = '$tp' and status = '1'", $mycon); $row = mysql_fetch_array($result); $gesamtItems = $row["count(*)"]; $anzahlSeiten = ceil($gesamtItems / $perpage); if ($page > $anzahlSeiten) $page = $anzahlSeiten; $limiter = ($page-1) * $perpage; if ($limiter < 0) $limiter = 0; $vorherige = $page - 1; $naechste = $page + 1; if ($vorherige > 0) { echo " $vorher \r\n"; } else { echo " $vorher \r\n"; } for ($a=1;$a<=$anzahlSeiten;$a++) { if ($a == $page) { echo " $a \r\n"; } else { echo " $a \r\n"; } } if ($naechste <= $anzahlSeiten) { echo " $nacher\r\n"; } else { echo " $nacher\r\n"; } echo "

\r\n"; echo " \r\n"; $result = mysql_query("select * from $ad_tablename where sparte = '$tp' and status = '1' order by datum desc limit $limiter, $perpage", $mycon); echo " \r\n"; echo " \r\n"; echo " \r\n"; if (mysql_num_rows($result) == 0) { echo " \r\n"; echo " \r\n"; echo " \r\n"; } else { echo " \r\n"; $tablecolcounter = 0; while ($row = mysql_fetch_array($result)) { if ($tablecolcounter == $colsperpage) { echo " \r\n"; echo " \r\n"; $tablecolcounter = 0; } echo " \r\n"; $tablecolcounter++; } for ($a=$tablecolcounter+1;$a<=$colsperpage;$a++) { echo " \r\n"; } echo " \r\n"; } echo "
\r\n"; echo " $typ: " . $sparte[$tp][$lang] . "\r\n"; echo "
\r\n"; echo " \"\"
\r\n"; echo "
$noitems
\r\n"; echo " \"\"
\r\n"; echo "
\r\n"; if (($fotoposition == "left")||($fotoposition == "right")) { if (($row["foto"] != "") && ($displayfotos[$tp] == "yes")) { $foto_big = "fotos/big/" . $row["foto"]; $foto_small = "fotos/" . $row["foto"]; $size_small=getimagesize($foto_small); if (file_exists($foto_big)) { $size=getimagesize($foto_big); echo " \""\r\n"; } else { echo " \""\r\n"; } } } else if ($fotoposition == "top") { if (($row["foto"] != "") && ($displayfotos[$tp] == "yes")) { $foto_big = "fotos/big/" . $row["foto"]; $foto_small = "fotos/" . $row["foto"]; $size_small=getimagesize($foto_small); if (file_exists($foto_big)) { $size=getimagesize($foto_big); echo "
\""
\r\n"; } else { echo "
\""
\r\n"; } } } echo " " . $row["headline"] . "
" . $row["text"] . "\r\n"; if (ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+\.([a-zA-Z0-9-]{2,4})$",$row["email"])) { $email = unicoder($row["email"]); echo " $kontakt: $email
\r\n"; } else { echo " $kontakt: " . $row["email"] . "
\r\n"; } if ($fotoposition == "bottom") { if (($row["foto"] != "") && ($displayfotos[$tp] == "yes")) { $foto_big = "fotos/big/" . $row["foto"]; $foto_small = "fotos/" . $row["foto"]; $size_small=getimagesize($foto_small); if (file_exists($foto_big)) { $size=getimagesize($foto_big); echo "
\""
\r\n"; } else { echo "
\""
\r\n"; } } } echo "
 
\r\n"; echo "
\r\n"; echo "      \r\n"; if ($vorherige > 0) { echo " $vorher \r\n"; } else { echo " $vorher \r\n"; } for ($a=1;$a<=$anzahlSeiten;$a++) { if ($a == $page) { echo " $a \r\n"; } else { echo " $a \r\n"; } } if ($naechste <= $anzahlSeiten) { echo " $nacher\r\n"; } else { echo " $nacher\r\n"; } echo "    \"\"\r\n"; echo "
\r\n"; } echo "
\r\n"; echo "
\r\n"; echo "
\r\n"; echo "
\r\n"; echo " $title\r\n"; echo "
\r\n"; mysql_close($mycon); //------------------ End ad2Xmarket script ---------------------------------------------------- ?>