403Webshell
Server IP : 103.119.228.120  /  Your IP : 18.117.158.124
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : nobody ( 99)
PHP Version : 5.6.40
Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime
MySQL : ON |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /home/hendraso/public_html/Templates/Admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/hendraso/public_html/Templates/Admin/html_preview_detail - Copy.html
<div class="portlet" id="template1">
	<form method="POST" name="fTemplate" id="fTemplate" onsubmit="return(false);">
		<input type="hidden" name="fid" id="fid" value="{$fid}">
		<div class="custom_template">
			<div class="h6 font-weight-bold text-secondary">
			{$field_variable1}
			</div>
			<div class="h6 font-weight-bold text-secondary">
			{$field_variable2}
			</div>
			<div class="h6 font-weight-bold text-secondary">
			{$field_variable3}
			</div>
			<div class="h6 font-weight-bold text-secondary">
			{$field_variable4}
			</div>
			<div class="h6 font-weight-bold text-secondary">
			{$field_variable5}
			</div>
		</div>
		<div class="btn btn-sm btn-outline-success font-weight-bold mt-4" onclick="saveTemplate('template1')"><i class="fa fa-floppy-o mr-1"></i>Save Template</div>
	</form>
</div>
<script type="text/javascript">{if isset($pathcustom)} var custom_path = '{$pathcustom}';{else}var custom_path = '{$path}';{/if}var menuAccess = '{$menu}', livepath = '{$livepath}', ajaxFile = "{$path}", ajaxParam = "{$param}", device = "{$device}", pathupload = "{if isset($pathupload)}{$pathupload}{/if}", addFilterTable = '{if isset($addFilter)}{$addFilter}{/if}{$slFilter}';</script>
<script type="text/javascript">
	var arr = [], arrVal = JSON.parse('{$temp_value}'), prefix = '{$prefix}', d = "template1";
	$("#"+d+" select").on("change", function(e) {
		var name_id = $(this).attr("id");
		if($(this).val() != "") {
			$("#"+d+" select[id!='"+name_id+"'] option[value='"+$(this).val()+"']").remove();
		}
		
		if(typeof arrVal[name_id] != 'undefined' && arrVal[name_id] != '' && arrVal[name_id] != '0|||') {
			var optionText 	= $("#"+d+" #" + name_id + " option[value='" + arrVal[name_id] + "']").text();
			$("#"+d+" select[id='"+name_id+"'] option[value='"+arrVal[name_id]+"']").remove();
			var optionTemp 		= "<option value='"+arrVal[name_id]+"'>"+optionText+"</option>";
			arr[name_id] = optionTemp;
		}
		
		if(arr[name_id] != 'undefined' && arr[name_id] != '') {
			$("#"+d+" select").append(arr[name_id]);
		}

		$.each($("#"+d+" select"), function(key, val){
			var elId = $(val).attr("id");

			var optionValue = $(val).val();
			var optionText 	= $("#"+d+" #" + elId + " option[value='" + $(val).val() + "']").text();
			var option 		= "";
			if(optionValue != '' && optionValue != null) {
				var option 		= "<option value='"+optionValue+"'>"+optionText+"</option>";
				arrVal[elId]    = optionValue;
			}else{
				arrVal[elId]    = "";
			}
			arr[elId] 		= option;
		});
	});
	
	function saveTemplate(d) {
		//======= Save Template ==============
			{literal}
			//$("#saveTemplate_"+d).on("click", function() {
				// Create Temporary Template
				$("body").append("<div class='custom_temp_"+d+"' style='display:none'>");
				$(".custom_temp_"+d).html($("#"+d+" .custom_template").html());
				$.each($(".custom_temp_"+d+" select"), function(key, val) {
					var id_temp = $(val).attr("id");
					var name = id_temp + "_temp_"+d;
					$(val).parent().html("<div id='"+name+"'>");
				});
				// ========================

				// Set Variable In Temporary Template
				$.each($("#"+d+" .custom_template select"), function(key, val) {
					var id = $(val).attr("id");
					var value = $(val).val();
					var pecah = value.split('|');
					var variable = pecah[1];
					if(typeof pecah[1] != 'undefined') {
						$("#"+id+"_temp_"+d).parent().html("{$e_var."+pecah[1]+"}");
					}else{
						$("#"+id+"_temp_"+d).parent().html("");
					}
				});

				// == FOR TITLE & IMAGE DEFAULT == 
				$(".custom_temp_"+d+" .defcust_title").html("{$e_var."+prefix+"Name}");
				$(".custom_temp_"+d+" .defcust_title").removeClass("defcust_title");
				$(".custom_temp_"+d+" .devcust_url").attr("href", "{$e_var."+prefix+"Url}");
				$(".custom_temp_"+d+" .devcust_url").removeClass("devcust_url");
				$(".custom_temp_"+d+" img").attr("src", "{$path}/Assets/Img/{$e_var."+prefix+"Image}");
				$(".custom_temp_"+d+" img").attr("title", "{$e_var."+prefix+"Name}");
				// ===== END Set Variable In Temporary Template =======
				console.log("aa", $(".custom_temp_"+d).length);
				// Ajax nya jalan disini
				$.ajax({
					url:custom_path+"/generate",
					type:"POST",
					dataType:"JSON",
					data:{
						"themes" : d + "_" + $("#"+d+" #fid").val(),
						"form" : $("#"+d+" #fTemplate").serialize(),
						"content" : $(".custom_temp_"+d).html()
					},
					success:function(obj) {
						if (obj.status != 'ok') {

							Lobibox.notify('error', {
								msg		: obj.error,
								width       : '100%',
								size		: 'mini',
								delay       : 3500,
								showClass   : 'bounceIn',
								hideClass   : 'bounceOut'
							});

						} else {
							Lobibox.notify('success', {
								msg		: 'Save Successfully',
								width       : '100%',
								size		: 'mini',
								delay       : 3500,
								showClass   : 'bounceIn',
								hideClass   : 'bounceOut'
							});
							
							$("div[class^='template'] .addForm").removeClass("btn-outline-danger").addClass("btn-outline-primary").html('<i class="fa fa-paint-brush mr-1"></i>Use');
							$("."+d+" .addForm").removeClass("btn-outline-primary").addClass("btn-outline-danger").html('<i class="fa fa-paint-brush mr-1"></i> Edit');
							$(".active").removeClass("active");
							$("."+d).addClass("active");
							gr.show();
							fr.hide();

						}
					}
				});
				// =====================

				// Remove temporary Template
				$(".custom_temp_"+d).remove();
				// ====================
			//});
			{/literal}
			//====================================
	}
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit