SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.16.49.213
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/public_html/admin/information/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/public_html/admin/information/setting.php
<?php

include("../../config/data.config.php");
if (!isset($_SESSION["SESS_v_adminLoggedIn"]))
{	header ("Location: $MAP_VROOT_FILE_PATH/admin/login.php"); 		
	exit;
}
//echo '<pre>';  print_r( $_SESSION );  echo '</pre>';   echo $target = "$DOCUMENT_ROOT$PIC_DIR/banner/$filename";  exit;
include("$LIB_DIR/functions.lib.php");
include("$LIB_DIR/db.php");
include("$LIB_DIR/db/mysqli.php");
include("$LIB_DIR/data.constant.php");
include("$LIB_DIR/sitemsgs.php");
include("$LIB_DIR/class.paging.php");
include("$LIB_DIR/functions.mailer.php");
global $SITE_URL, $IMG_DIR;  

$db	=	new Db( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME, $DB_REPORT_ERROR, $DB_PERSISTENT_CONN);

$img_preview  = '';
$img_name  = '';
$inactive_checked  = '';
$active_checked  = '';
$v_title  = '';
$i_settingID  = '';

if( true ){
		$img_preview  = '';
		$img_name  = '';
		$inactive_checked  = '';
		$active_checked  = '';
		$v_title  = '';
		$i_settingID  = $_REQUEST['i_settingID'];
		$sql = "SELECT * FROM tbl_setting  WHERE i_settingID = '1'  "; 
		$result=$db->query($sql);
		if($result->num_rows) {		
			foreach( $result->row AS $key=>$val){
					$$key  = stripslashes($val);
			}
			if( $c_status == 1 ){
				$inactive_checked  = '';
				$active_checked  = 'SELECTED';
			}else{
				$inactive_checked  = 'SELECTED';
				$active_checked  = '';			
			}
			$target = "$DOCUMENT_ROOT$PIC_DIR/$v_image";		
			if ( $v_image != ''  && file_exists("$target"))
			{	$todel_img_name  = $v_image;
				$img_preview = '<BR/><img src="'.$SITE_URL.'/pic/'.$v_image.'" class="img-responsive"  >';
			}
			
		}

}

if(($_POST['submitForm']) && ($_POST['submitForm'] == 'edit')  ){     
	 EditProduct( $db);
}
$sid7chld0  = 'actve';
$sid7chld1  = 'actve';
$sid7show  = 'show';

function EditProduct($db)
{  
		global $PROMPT, $ARR_GLOBAL_STATUS, $ARR_USERS, $ARR_STATUS, $HTTP_SESSION_VARS, $HTTP_POST_FILES, $HTTP_POST_VARS, $DOCUMENT_ROOT, $PIC_DIR, $BANNER_DIR, $TEMP_DIR;
        $userNameFlag = FALSE;
		$userEmailFlag = FALSE; 
		//echo '<pre>';   print_r( $_REQUEST);   echo '</pre>';   exit;   		
		$sqlIn = "UPDATE tbl_setting SET v_phone_number = '".addslashes($_POST['v_phone_number'])."', v_phone_number1 = '".addslashes($_POST['v_phone_number1'])."',v_address = '".addslashes($_POST['v_address'])."',why_choose_carivon = '".addslashes($_POST['why_choose_carivon'])."',v_email = '".addslashes($_POST['v_email'])."', txt_sale_your_rv = '".addslashes($_POST['txt_sale_your_rv'])."', v_footer_note = '".addslashes($_POST['v_footer_note'])."',v_footer_email = '".addslashes($_POST['v_footer_email'])."',v_youtube = '".addslashes($_POST['v_youtube'])."',v_instagramm = '".addslashes($_POST['v_instagramm'])."',v_whatsapp = '".addslashes($_POST['v_whatsapp'])."',v_twitter = '".addslashes($_POST['v_twitter'])."',v_facebook = '".addslashes($_POST['v_facebook'])."', quote_page_variable1 = '".addslashes($_POST['quote_page_variable1'])."', quote_page_variable2 = '".addslashes($_POST['quote_page_variable2'])."', quote_page_variable3 = '".addslashes($_POST['quote_page_variable3'])."', quote_page_variable4 = '".addslashes($_POST['quote_page_variable4'])."', contactus_page_variable1 = '".addslashes($_POST['contactus_page_variable1'])."', contactus_page_variable2 = '".addslashes($_POST['contactus_page_variable2'])."', contactus_page_variable3 = '".addslashes($_POST['contactus_page_variable3'])."', contactus_page_variable4 = '".addslashes($_POST['contactus_page_variable4'])."', contactus_page_variable5 = '".addslashes($_POST['contactus_page_variable5'])."', contactus_page_variable6 = '".addslashes($_POST['contactus_page_variable6'])."', contactus_page_variable7 = '".addslashes($_POST['contactus_page_variable7'])."', v_deleivery_charge = '".addslashes($_POST['v_deleivery_charge'])."', c_status = '".$_POST['c_status']."',dt_modifyDate = NOW()  WHERE  i_settingID = '1' ";
		$db->query($sqlIn);
		$PROMPT ='<div class="alert alert-success alert-dismissable"> 
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">X</button>
                                    <strong><i class="fa fa-check-circle"></i> Success :</strong>'.$v_title. ' '.$message.'update successfully.
                      </div>';

		$_SESSION['msg'] = $PROMPT;
		header('Location: '.SUB_DIR_PROJECT.'/admin/information/setting.php');
		exit;
}


?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>RV Way</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/fontastic.css">
    <!-- Google fonts - Roboto -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    <!-- jQuery Circle-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/grasp_mobile_progress_circle-1.0.0.min.css">
    <!-- Custom Scrollbar-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/vendor/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="<?php echo $SITE_URL;  ?>/admin/css/custom.css">
    <!-- Favicon-->
    <link rel="shortcut icon" href="img/favicon.ico">
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->

  </head>
  <body>
    <!-- Side Navbar -->

	<?php require_once(ABSPATH.'../admin/common/admin_sidebar.php'); ?>
    <div class="page">
      <!-- navbar-->
	  <?php require_once(ABSPATH.'../admin/common/admin_header_nav.php'); ?>
      <!-- Counts Section -->
      <section class="dashboard-counts section-padding">
        <div class="container-fluid">
          <div class="row">
            <!-- Count item widget-->
            <div class="col-xl-12 col-md-12 col-lg-12 card">
               <!-- Start Form  -->
				<div class="row">
					<div class="col-lg-12 col-sm-12">
					<form  method="post" enctype="multipart/form-data">
					  <div class="">
						<div class="card-header d-flex align-items-center">
						  <h4>Setting : <?php echo $v_code; ?></h4>
						</div>
						<div class="card-body">
						  <form class="form-horizontal">
							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Phone number 1</label>
							  <div class="col-sm-10">
								<input type="text" name="v_phone_number" value="<?php echo $v_phone_number; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Phone number 2</label>
							  <div class="col-sm-10">
								<input type="text" name="v_phone_number1" value="<?php echo $v_phone_number1; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Address</label>
							  <div class="col-sm-10">
								<input type="text" name="v_address" value="<?php echo $v_address; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Why Choose Carivon</label>
							  <div class="col-sm-10">
								<input type="text" name="why_choose_carivon" value="<?php echo $why_choose_carivon; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div> 
							
							<div class="form-group row"> 
							  <label class="col-sm-2 form-control-label">Email</label>
							  <div class="col-sm-10">
								<input type="text" name="v_email" value="<?php echo $v_email; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row"> 
							  <label class="col-sm-2 form-control-label">Sale Your RV</label>
							  <div class="col-sm-10">
								<input type="text" name="txt_sale_your_rv" value="<?php echo $txt_sale_your_rv; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Footer Note</label>
							  <div class="col-sm-10">
								<input type="text" name="v_footer_note" value="<?php echo $v_footer_note; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Footer Email</label>
							  <div class="col-sm-10">
								<input type="text" name="v_footer_email" value="<?php echo $v_footer_email; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Youtube</label>
							  <div class="col-sm-10">
								<input type="text" name="v_youtube" value="<?php echo $v_youtube; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Instagramm</label>
							  <div class="col-sm-10">
								<input type="text" name="v_instagramm" value="<?php echo $v_instagramm; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Whatsapp</label>
							  <div class="col-sm-10">
								<input type="text" name="v_whatsapp" value="<?php echo $v_whatsapp; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Twitter</label>
							  <div class="col-sm-10">
								<input type="text" name="v_twitter" value="<?php echo $v_twitter; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Facebook</label>
							  <div class="col-sm-10">
								<input type="text" name="v_facebook" value="<?php echo $v_facebook; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Title</label>
							  <div class="col-sm-10">
								<input type="text" name="v_title" value="<?php echo $v_title; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>
							

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Quote page variabe 1</label>
							  <div class="col-sm-10">
								<input type="text" name="quote_page_variable1" value="<?php echo $quote_page_variable1; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>
							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Quote page variabe 2</label>
							  <div class="col-sm-10">
								<input type="text" name="quote_page_variable2" value="<?php echo $quote_page_variable2; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Quote page variabe 3</label>
							  <div class="col-sm-10">
								<input type="text" name="quote_page_variable3" value="<?php echo $quote_page_variable3; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Quote page variabe 4</label>
							  <div class="col-sm-10">
								<input type="text" name="quote_page_variable4" value="<?php echo $quote_page_variable4; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 1</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable1" value="<?php echo $contactus_page_variable1; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 2</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable2" value="<?php echo $contactus_page_variable2; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>
							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 3</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable3" value="<?php echo $contactus_page_variable3; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 4</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable4" value="<?php echo $contactus_page_variable4; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 5</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable5" value="<?php echo $contactus_page_variable5; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 6</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable6" value="<?php echo $contactus_page_variable6; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>
							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Contact Us page variabe 7</label>
							  <div class="col-sm-10">
								<input type="text" name="contactus_page_variable7" value="<?php echo $contactus_page_variable7; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>

							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Deleivery Charge</label>
							  <div class="col-md-3 col-lg-3 col-sm-12">
								<input type="text" name="v_deleivery_charge" value="<?php echo $v_deleivery_charge; ?>" class="form-control">
							  </div>
							</div>
							<div class="line"></div>
							
							<div class="line"></div>
							<div class="form-group row">
							  <label class="col-sm-2 form-control-label">Status</label>
							  <div class="col-sm-6">
								<select name="c_status" class="form-control">
								  <option value="1" <?php echo $active_checked; ?> >Active</option>
								  <option value="0" <?php echo $inactive_checked; ?> >Inactive</option>
								</select>
							  </div>
							</div>
							<div class="line"></div>							
							
							<div class="form-group row">
							  <div class="col-sm-5 offset-sm-2"> 
								<input type="hidden" name="submitForm" value="edit"  class="form-control">
								<input type="hidden" name="todel_img_name" value="<?php echo $todel_img_name; ?>"  class="form-control">
								<input type="hidden" name="i_settingID" value="1"  class="form-control">
								
								<button type="submit" class="btn btn-primary">Update</button>
								<button type="reset" class="btn btn-secondary">Cancel</button>
							  </div>
							</div>
						  </form>
						</div>
					  </div>
					</form>
					</div>
					
				</div>
			   <!-- End Form  -->
            </div>
          </div>
        </div>
      </section>
      <!-- Header Section-->
	  <?php require_once(ABSPATH.'../admin/common/admin_footer.php'); ?>
    </div>
	 <?php require_once(ABSPATH.'../admin/common/admin_footer_js.php'); ?>
  </body>
</html>

Anon7 - 2022
SCDN GOK