Server IP : 51.89.169.208 / Your IP : 216.73.216.9 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/yellowleaf/public_html/members/ |
Upload File : |
<?php $path = $_SERVER['DOCUMENT_ROOT']; include_once $path.'/connect_db.php'; include 'accesscontrol.php'; $styleSubmit = 'color:#ff6131;background-color:#fff;border-top:1px solid #c9c9c9;font-weight:bold;'; $adid=$_GET['adid']; if(advert_check($adid,$memberid)===false){header('Location: index.html');exit();} if(isset($_POST['submit'])){ $description=$_POST['description']; $services=$_POST['services']; $refund=$_POST['refund']; $establishment=$_POST['establishment']; $areas_cover=$_POST['areas_cover']; echo $description; $fieldname = 'image_upload_box'; if(is_uploaded_file($_FILES[$fieldname]['tmp_name'])){ $fieldname = 'image_upload_box'; $image_temp = $_FILES[$fieldname]["tmp_name"]; $allowed_ext = array('jpeg','jpg','png','gif'); $image_ext = strtolower(end(explode('.', $_FILES[$fieldname]['name']))); $destination = 'uploads/logo/'; $image_file = $adid.'.'.$image_ext; if (in_array($image_ext, $allowed_ext) === false) {$errors[] = '<div class="error_list">- Your photo must be either a JPG, PNG or GIF file format. Other file types are not allowed.</div>';} if($_FILES[$fieldname]["size"] > 4000000){$errors[]='<div class="error_list">- Image file size must be less than 4 MB.</div>';} if(empty($errors)){ include "img_upload.class.php"; $image = new UploadImage(); $image->load($image_temp); $image->resizeToWidthMaxHeight(300,150); $image->save($destination.$image_file); $imageExist=", image = '{$image_file}'"; }else{ $error = TRUE; } } $connect->query("UPDATE ads SET description='$description' {$imageExist} WHERE `adid` = '$adid' AND `memberid` = '{$memberid}'"); if($error!=TRUE){ echo "<script>location.href='postad3.html?adid={$adid}';</script>";exit; // header('Location: postad3.html?adid='.$adid);exit; } } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>YellowLeaf UK</title> <link href="style.css" rel="stylesheet" type="text/css"> <script language="javascript"> function CheckPostAd(){ if(document.RegForm.description.value==""){ window.alert('Please enter your business description.'); document.RegForm.description.focus(); return false; } } var current_element=10; </script> <style> .gd{background:rgb(249,249,249);background:-moz-linear-gradient(top, rgba(249,249,249,1) 0%, rgba(243,243,243,1) 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(249,249,249,1)), color-stop(100%,rgba(243,243,243,1)));background:-webkit-linear-gradient(top, rgba(249,249,249,1) 0%,rgba(243,243,243,1) 100%);background:-o-linear-gradient(top, rgba(249,249,249,1) 0%,rgba(243,243,243,1) 100%);background:-ms-linear-gradient(top, rgba(249,249,249,1) 0%,rgba(243,243,243,1) 100%);background:linear-gradient(to bottom, rgba(249,249,249,1) 0%,rgba(243,243,243,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9f9f9', endColorstr='#f3f3f3',GradientType=0 );} .pg{line-height:19px;margin-bottom:11px;padding:2px 5px;border-color:transparent;border-width:1px 0 1px 1px;border-style:dashed;} .pg_info{background:#fafafa;border-width:0px 0px 0px 1px;border-style:dashed;border-color:#ddd;padding:0px !important;} .pg_info div{padding:10px;} .pg_ylw, .ylw:hover{background:#fffae1;border-color:#efd085;} .pg_grn, .grn:hover{background:#e4ffe1;border-color:#8eef85;} .pg_blu, .blu:hover{background:#e1efff;border-color:#85a5ef;} .pg_prp, .prp:hover{background:#F9E8FF;border-color:#c45eea;} .pg_red, .red:hover{background:#ffe1e5;border-color:#ef8585;} .default {position:relative;background:#e4ffe1;border:1px solid #8eef85;} .default:after, .default:before {right:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;} .default:after {border-color:rgba(228, 255, 225, 0);border-right-color:#e4ffe1;border-width:10px;margin-top:-10px;} .default:before {border-color:rgba(142, 239, 133, 0);border-right-color:#8eef85;border-width:11px;margin-top:-11px;} .other b{display:block;margin-bottom:9px;font-size:11pt;} </style> <script src="js/add_service.js"></script> </head> <body> <? include 'header.php'; ?> <table class="tbwdth"> <tr> <td valign="top" style="width:210px;"> <? include 'member_menu.php'; ?> </td> <td valign="top" class="cnGrad"> <div class="cnHead">Submit Advert</div> <div style="position:relative;margin-bottom:70px"> <hr class="stpBar" noshade size="1" color="#cccccc"> <img class="nav stepflat1 subPos1" src="/img/img_trans.gif" width="1" height="1" /> <img class="nav sel2 subPos2" src="/img/img_trans.gif" width="1" height="1" /> <img class="nav stepflat3 subPos3" src="/img/img_trans.gif" width="1" height="1" /> <img class="nav stepflat4 subPos4" src="/img/img_trans.gif" width="1" height="1" /> <img class="nav stepflat5 subPos5" src="/img/img_trans.gif" width="1" height="1" /> <img class="nav stepflat7 subPos7" src="/img/img_trans.gif" width="1" height="1" /> </div> <form name="RegForm" action="postad2.html?adid=<?=$adid?>" method="POST" enctype="multipart/form-data" onsubmit="return CheckPostAd();" autocomplete="off"> <table class="cnTbl" width="100%"> <tr> <td valign="top" class="cnTitle" style="padding-left:25px">Upload logo (optional):<br> <div class="cnTitleDesc">Please upload the logo of your business.<br> <b>NOTE:</b> Your logo must be in the dimensions of '300 pixels' in width by '150 pixels' in height (300x150).</div> <?if($error==TRUE){ echo '<div class="errorDvBx"><b>ERROR:</b><br>'; foreach($errors as $error_msg){ echo $error_msg; } echo '</div>'; }?> <input name="image_upload_box" class="nostyle" type="file" /> </td> </tr> <tr> <td> <hr noshade color="#C9C9C9" size="1"> </td> </tr> <tr> <td align="left" valign="top" class="cnTitle" style="padding-left:25px" > Description For Your Business*:<br> <div class="cnTitleDesc">Please enter a brief description about your business. <br> <i>(Providing more information will give your more search engine exposure)</i></div> <textarea id="description" name="description" rows="8" style="width:590px"></textarea> <br> <font color="#FF0000">BUSINESSES WITH MULTIPLE BRANCHES: If your business has more than 1 branch. It MUST not contain a duplicate description of the other branches.<br> <br> NOTE: The description of the business listing being submitted MUST not be "copy and pasted" from another website (including the business listing's website).<br> <br> YellowLeaf's Approval Team reserve the right to decline a listing if a duplicate description is found.</font></td> </tr> <tr> <td style="padding:15px 0 10px 25px;"> <div class="curv3" style="border:1px solid #dfdfdf;"> <div class="gd" style="border-bottom:1px solid #dfdfdf;font-weight:bold;padding:7px 10px;"> Description Guide </div> <table style="width:100%;"> <tr> <td style="padding:5px 0px 5px 5px;"> <div class="pg ylw" data-default="pg_ylw">Italian Taste is a family run business serving Italian food at the heart of Birmingham. We have been established since 1975 and have successfully opened many branches accross the UK.</div> <div class="pg grn" data-default="pg_grn">At Italian Taste, we hope that you enjoy and relish the combination of Italian cuisine and find the environment to be an intoxicating mixture of Italian culture. It is our passion and our urge to deliver the perfect blend of sophisticated dining experience and captivating food with great taste.<br><br>We also hope sincerely that the significance of such diverse and colourful culture with a pleasing mixture of hospitality and delectable fare is an equally memorable and charming experience for you.</div> <div class="pg blu" data-default="pg_blu">Whether you are planning to have a birthday party, engagement party, office party or looking for any outside catering, Italian Taste will cater for you. For any further details please contact us.<br><br>At Italian Taste we try our best to cater all possible needs. We provide disabled car parking, we welcome guide dogs, assistance is always available, push-along wheelchairs are available, we have a wide checkout & portable chip/pin and also a baby highchairs with safety belt.</div> <div class="pg prp" data-default="pg_prp">If you are not completely satisfied with any of our food, we will refund and replace the food for you. Also, if your delivery arrives more than 15 minutes later than its expected time, we will provide a 10% discount on your order.</div> <div class="pg red" data-default="pg_red">Italian Taste covers the entire Birmingham and Sandwell region. We deliver all orders for FREE that are within a 3.5 miles radius. For any further details please contact us.</div> </td> <td class="pg_info" style="width:35%;vertical-align:top;"> <div class="default" style="background:#e4ffe1;border:1px solid #8eef85;border-right:0;color:#444;font-weight:bold;text-align:center;margin-top:10px;border-right:0;margin-left:-1px;">Hover over a paragraph on the left to show further details.</div> <div class="other" id="pg_ylw" style="display:none;"><b>Business Establishment</b>Stating the location of your business is very crucial for users, this is to allow your customers to recognise where you are located and how far your business is from them.<br><br>Also, mentioning how long your business has been running for can build a sign of trust and recognition. Regardless if you are a new or an old business, stating when you have launched your business can bring a general acceptance from your consumers.</div> <div class="other" id="pg_grn" style="display:none;"><b>Business Description</b>In order to attain good exposure, a very good business description must be formed. Simply writing a single sentence describing your business can indicate that the business can be of poor-quality and has a very low dedication towards providing its services. Therefore, it is encouraged to write as much as you can about your business.<br><br><b>Aims & Objectives</b>A great to way to describe you business is by stating the aims and objectives that your business entails. Aims, end of year goals, objectives, and etc. can really involve your customers towards your business.</div> <div class="other" id="pg_blu" style="display:none;"><b>Facilities & Services</b>Stating what services and facilities that your business provides can allow your customers to develop an understanding on how relevant and convenient your business is to them. This can possibly also boost your reputation by stating the services and facilities that your business delivers.</div> <div class="other" id="pg_prp" style="display:none;"><b>Guarantees / Refund Policy</b>Stating the policies that your business has, can define the richness and integrity that your business holds. This can display the reliability of your business and can bring comfort towards your customers.</div> <div class="other" id="pg_red" style="display:none;"><b>Areas Your Business Covers</b>If your business covers specific areas. It would be appropriate to state them to allow your customers to understand on which areas your business serves, this can avoid your customers from confusion.</div> </td> </tr> </table> </div> </td> </tr> <tr> <td> <hr noshade color="#C9C9C9" size="1"> </td> </tr> <tr> <td> <span style="font-size:9pt;color:#666;">* mandatory fields that must be filled in.</span> </td> </tr> </table> <input class="blueBtn fancyBtn" style="border:0px;float:left;" type="submit" value="Next >" name="submit"> </form> </td> </tr> </table> <? include 'footer.php'; ?> <script type="text/javascript"> function getScript(e,t){var n=document.createElement("script");n.src=e;var r=document.getElementsByTagName("head")[0],i=false;n.onload=n.onreadystatechange=function(){if(!i&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){t();n.onload=n.onreadystatechange=null;r.removeChild(n)}};r.appendChild(n)} getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js',function(){ $(document).ready(function(){ var $ta = $('#description'); $ta.autosize(); document.body.offsetWidth; // force a reflow before the class gets applied $ta.addClass('textarea-transition'); }); $('.pg').hover( function(){ var clr = $(this).attr('data-default'); $('.pg_info').attr('class','pg_info '+ clr); $('.default').hide(0); $('#'+clr).show(); }, function(){ $('.pg_info').attr('class','pg_info'); $('.other').hide(); $('.default').delay(100).show(0); } ); //jQuery Autosize (function(e){var t,o={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},i='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',n=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],s=e(i).data("autosize",!0)[0];s.style.lineHeight="99px","99px"===e(s).css("lineHeight")&&n.push("lineHeight"),s.style.lineHeight="",e.fn.autosize=function(i){return this.length?(i=e.extend({},o,i||{}),s.parentNode!==document.body&&e(document.body).append(s),this.each(function(){function o(){var t,o=window.getComputedStyle?window.getComputedStyle(u,null):!1;o?(t=u.getBoundingClientRect().width,(0===t||"number"!=typeof t)&&(t=parseInt(o.width,10)),e.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,i){t-=parseInt(o[i],10)})):t=p.width(),s.style.width=Math.max(t,0)+"px"}function a(){var a={};if(t=u,s.className=i.className,s.id=i.id,d=parseInt(p.css("maxHeight"),10),e.each(n,function(e,t){a[t]=p.css(t)}),e(s).css(a).attr("wrap",p.attr("wrap")),o(),window.chrome){var r=u.style.width;u.style.width="0px",u.offsetWidth,u.style.width=r}}function r(){var e,n;t!==u?a():o(),s.value=!u.value&&i.placeholder?(p.attr("placeholder")||"")+i.append:u.value+i.append,s.style.overflowY=u.style.overflowY,n=parseInt(u.style.height,10),s.scrollTop=0,s.scrollTop=9e4,e=s.scrollTop,d&&e>d?(u.style.overflowY="scroll",e=d):(u.style.overflowY="hidden",c>e&&(e=c)),e+=w,n!==e&&(u.style.height=e+"px",f&&i.callback.call(u,u))}function l(){clearTimeout(h),h=setTimeout(function(){var e=p.width();e!==g&&(g=e,r())},parseInt(i.resizeDelay,10))}var d,c,h,u=this,p=e(u),w=0,f=e.isFunction(i.callback),z={height:u.style.height,overflow:u.style.overflow,overflowY:u.style.overflowY,wordWrap:u.style.wordWrap,resize:u.style.resize},g=p.width(),y=p.css("resize");p.data("autosize")||(p.data("autosize",!0),("border-box"===p.css("box-sizing")||"border-box"===p.css("-moz-box-sizing")||"border-box"===p.css("-webkit-box-sizing"))&&(w=p.outerHeight()-p.height()),c=Math.max(parseInt(p.css("minHeight"),10)-w||0,p.height()),p.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word"}),"vertical"===y?p.css("resize","none"):"both"===y&&p.css("resize","horizontal"),"onpropertychange"in u?"oninput"in u?p.on("input.autosize keyup.autosize",r):p.on("propertychange.autosize",function(){"value"===event.propertyName&&r()}):p.on("input.autosize",r),i.resizeDelay!==!1&&e(window).on("resize.autosize",l),p.on("autosize.resize",r),p.on("autosize.resizeIncludeStyle",function(){t=null,r()}),p.on("autosize.destroy",function(){t=null,clearTimeout(h),e(window).off("resize",l),p.off("autosize").off(".autosize").css(z).removeData("autosize")}),r())})):this}})(window.jQuery||window.$); }); </script> </body> </html>