Server IP : 103.53.40.154 / Your IP : 13.59.111.183 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/adisgauges.com/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php ob_start(); require_once("../includes/dbsmain.inc.php"); if(isset($_POST['FeatureSubmit'])){ @extract($_POST); if($admin_is_meta_fb_id!='Yes'){ $admin_meta_fb_id=''; } if($admin_is_meta_alexa_id!='Yes'){ $admin_meta_alexa_id=''; } if($admin_is_meta_msvalidate_id!='Yes'){ $admin_meta_msvalidate_id=''; } if(is_uploaded_file($_FILES['site_map_xml']['tmp_name'])){ if($_FILES['site_map_xml']['name']=="sitemap.xml" && $_FILES['site_map_xml']['type']=="text/xml"){ $site_map_xml=$_FILES['site_map_xml']['name']; $temp=$_FILES['site_map_xml']['tmp_name']; $cur="../".$site_map_xml; move_uploaded_file($temp,$cur); }else{?> <script>alert("Please upload correct sitemap.xml file");</script> <?php } } if(is_uploaded_file($_FILES['robots_txt']['tmp_name'])){ if($_FILES['robots_txt']['name']=="robots.txt" && $_FILES['robots_txt']['type']=="text/plain"){ $robots_txt=$_FILES['robots_txt']['name']; $temp2=$_FILES['robots_txt']['tmp_name']; $cur2="../".$robots_txt; move_uploaded_file($temp2,$cur2); }else{?> <script>alert("Please upload correct robots.txt file");</script> <?php } } if(is_uploaded_file($_FILES['favicon']['tmp_name'])){ $old_file=db_scalar("select admin_favicon from tbl_admin where admin_user_type='Admin'"); @unlink("../$old_file"); if(preg_match("/\.(gif|png|jpg|jpeg)$/",$_FILES['favicon']['name']) && $_FILES['favicon']['name']=="favicon.gif" || $_FILES['favicon']['name']=="favicon.png" || $_FILES['favicon']['name']=="favicon.jpg" || $_FILES['favicon']['name']=="favicon.jpeg"){ $favicon=$_FILES['favicon']['name']; $temp3=$_FILES['favicon']['tmp_name']; $cur3="../".$favicon; move_uploaded_file($temp3,$cur3); }else{?> <script>alert("Please upload correct image");</script> <?php } db_query("update tbl_admin set admin_favicon='$favicon' where admin_user_type='Admin'"); } $sql="update tbl_admin set admin_index_follow='$admin_index_follow', admin_is_meta_fb_id='$admin_is_meta_fb_id', admin_meta_fb_id='$admin_meta_fb_id', admin_site_map_xml='$site_map_xml', admin_robots_txt='$robots_txt', admin_is_meta_alexa_id='$admin_is_meta_alexa_id', admin_meta_alexa_id='$admin_meta_alexa_id', admin_google_analytic_code='$admin_google_analytic_code', admin_site_verification_code='$admin_site_verification_code', admin_is_meta_msvalidate_id='$admin_is_meta_msvalidate_id', admin_meta_msvalidate_id='$admin_meta_msvalidate_id' where admin_user_type='Admin'"; db_query($sql); $arr_error_msgs[] = "Features Added Successfully !"; } if(isset($_POST['FollowUsUpdate'])){ @extract($_POST); db_query("update tbl_admin set admin_facebook_link='$admin_facebook_link', admin_twitter_link='$admin_twitter_link', admin_linkedin_link='$admin_linkedin_link', admin_instagram_link='$admin_instagram_link', admin_pinterest_link='$admin_pinterest_link', admin_live_chat_code='$admin_live_chat_code', admin_youtube_link='$admin_youtube_link' where admin_user_type='Admin'"); $arr_error_msgs[]="Follow Us Link updated successfully !"; } $found_del=mysqli_fetch_array(db_query("select * from tbl_admin where 1 and admin_user_type='Admin'")); ?> <?php include ('top.inc.php'); ?> <link href="styles.css" rel="stylesheet" type="text/css"> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td id="pageHead" ><div id="txtPageHead">Manage Social Link </div></td></tr></table> <div align="center"><b> <?php include('error_msgs.inc.php');?> </b></div> <form name="form1" method="post" enctype="multipart/form-data"> <table border="0" width="48%"align="left" cellpadding="2" cellspacing="3" class="tableSearch" style="margin-left:20px; border:2px outset #fff; padding-bottom:133px; margin-top:15px;"> <tr><td colspan='4' bgcolor="#004080" class='tdLabel' style="padding:10px;"><b style="color:#FFFFFF; font-size:14px;">Manage Follow Us Links</b></td></tr> <tr> <td class="tdLabel" style="padding:5px; padding-top:25px;"><b>Facebook</b> :</td> <td style="padding:5px; padding-top:25px;"><input type="text" name="admin_facebook_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_facebook_link']?>"> <img src="images/fac.gif" width="24" height="24" style="vertical-align:middle;"> </td> </tr> <tr> <td class="tdLabel" style="padding:5px;"><b>Twitter</b> :</td> <td style="padding:5px;"><input type="text" name="admin_twitter_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_twitter_link']?>"> <img src="images/twi.gif" width="24" height="24" style="vertical-align:middle;"> </td> </tr> <!-- <tr> <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Google Plus</span> :</td> <td style="padding:5px;"><input type="text" name="admin_gplus_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_gplus_link']?>"> <img src="images/g+.gif" width="24" height="24" style="vertical-align:middle;"></td> </tr>--> <tr> <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Linkedin</span> :</td> <td style="padding:5px;"><input type="text" name="admin_linkedin_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_linkedin_link']?>"> <img src="images/in.gif" width="24" height="24" style="vertical-align:middle;"> </td> </tr> <tr> <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Instagram</span> :</td> <td style="padding:5px;"><input type="text" name="admin_instagram_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_instagram_link']?>"> <img src="images/instagram.png" width="24" height="24" style="vertical-align:middle;"> </td> </tr> <tr> <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">Pinterest</span> :</td> <td style="padding:5px;"><input type="text" name="admin_pinterest_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_pinterest_link']?>"> <img src="images/pinterest.png" width="24" height="24" style="vertical-align:middle;"> </td> </tr> <tr> <td class="tdLabel" style="padding:5px;"><span style="font-weight: bold">You Tube</span> :</td> <td style="padding:5px;"><input type="text" name="admin_youtube_link" class="textfield" style="width:363px; height:28px; padding-left:4px; border:1px solid #CCCCCC; color:#5D5D5D" value="<?=$found_del['admin_youtube_link']?>"> <img src="images/youtube.gif" width="28" height="28" style="vertical-align:middle;"> </td> </tr> <tr> <td class="label"> </td> <td align="center"><p style="margin-top:5px;"></p> <input type="submit" class="button" style="font-size:14px; font-weight:bold; height:31px; background-color:#7F7F7F; border-radius:4px; cursor:pointer; width:105px;" value="Submit" name="FollowUsUpdate" /> </td> </tr> <tr><td class="label"> </td><td align="center"><p style="margin-top:150px;"></p></td></tr> </table> </form> <?php include ('bottom.inc.php'); ?>