:: **Zploit** v1.0 | Current Path: **/home/bbbncs7/amtechint.com/admin/**
:: Editing File: new-home.php
<?php include "param.php"; include "func.php"; include "chk_login.php"; ?> <?php $conn=mysqli_connect('106.0.62.85','bbbncs7_newamtech',']se$}HOiVeP$','bbbncs7_newamtech'); if (!$conn) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> <html> <head> <title> <?=$web_title?> </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="chk_frm.js"></script> <script language="JavaScript"> function chk_form() { if (checkempty(document.frm_add.pname, ":.. Please enter Page Name.:") == false) return false; return true; } </script> <script src="//cdn.ckeditor.com/4.7.3/full/ckeditor.js"></script> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> <style> .btn:hover { width: 5em !important; height: 2.5em !important; font-size:15px; padding:0px; } </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="21" align="center" valign="top"> <?php include("top_cp.php"); ?> </td> </tr> <tr> <td align="center" valign="top"> <table width="990" height="100%" border="0" cellpadding="0" cellspacing="0" class="base"> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> <tr> <td width="190" valign="top"> <?php include("left_cp.php"); ?> </td> <td width="800" valign="top"> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="681" height="29" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="home.php" class="left_menu_head">Home</a> | Content Pages</td> <td width="119" align="right" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="content.php" class="btn">Back</a></td> </tr> <tr><td> <?php $user_id = 1; $sql = "SELECT * FROM about_sec WHERE id ={$user_id}"; $result = mysqli_query($conn, $sql) or die("Query Unsuccessful."); if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_assoc($result)){ ?> <form method="post" enctype="multipart/form-data" action="new-home-update.php"> <div class="row p3"> <div class="mb-12 col-md-12 mt-3"> <label class="form-label">About us sub heading</label> <input type="hidden" name="id" value="<?php echo $row['id']?>"/> <input type="text" class="form-control" name="sub_heading" value="<?php echo $row['sub_heading']?>" placeholder="Sub Heading"> </div> <div class="mb-12 col-md-12 mt-3"> <label class="form-label">About Us Heading</label> <input type="text" class="form-control" name="heading" value="<?php echo $row['heading']?>" placeholder="Heading"> </div> <div class="mb-12 col-md-12 mt-3"> <label class="form-label">About Us Description</label> <textarea class="form-txtarea form-control" name="about_description" rows="3" id="description"><?php echo $row['about_description']?></textarea> </div> <div class="mb-12 col-md-12 mt-3"> <label class="form-label">Video Link</label> <input type="text" class="form-control" name="video_link" value="<?php echo $row['video_link']?>" placeholder="Video Link"> </div> <div class="mb-3 col-md-6"> <label for="formFileMultiple" class="form-label">About Sec First Img</label> <input class="form-control" type="file" name="imgone" multiple=""> <input class="form-control" type="hidden" name="imgone_old" value="<?php echo $row['img_one']?>" multiple=""> </div> <div class="mb-3 col-md-6"> <label for="formFileMultiple" class="form-label">About Sec Second Img</label> <input class="form-control" type="file" name="imgtwo" multiple=""> <input class="form-control" type="hidden" name="imgtwo_old" value="<?php echo $row['img_two']?>" multiple=""> </div> <div class="mb-3 col-md-6"> <label for="formFileMultiple" class="form-label">Upload Footer Img/ Video</label> <input class="form-control" type="file" name="chosefile" multiple=""> <input class="form-control" type="hidden" name="chosefile_old" value="<?php echo $row['img_three']?>" multiple=""> </div> <!--<div class="mb-3 col-md-6 mt-3">--> <!-- <label for="formFileMultiple" class="form-label">Bottom Banner</label>--> <!-- <input class="form-control" type="file" name="chosefile" multiple="">--> <!--<input class="form-control" type="hidden" name="chosefile_old" value=" <?php echo $row['img_three']?> " multiple="">--> <!-- </div>--> </div> <button type="submit" name="submit" class="btn btn-primary">Update</button> </form> <?php }; }; ?> </td> </tr> </table> </td> </tr> <tr> <td height="2" colspan="2"><img src="imgs/cp/spacer.gif" width="8" height="8"></td> </tr> </table> </td> </tr> <tr> <td height="29" align="center" background="imgs/cp/btm_bg22.jpg"> <?php include("btm_cp.php"); ?> </td> </tr> </table> </body> </html>