| 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 : |
<cfcontent type="text/html;charset=iso-8859-1">
<cfprocessingDirective pageencoding="iso-8859-1">
<cfset setEncoding("Form", "ISO-8859-15")>
<cfif not parameterexists(url.runme)>
<cfinclude template="header.cfm">
</cfif>
<div id="content">
<div id="content-header">
</div>
<div class="container-fluid" style="margin-left:200px;">
<table border="0" cellpadding="8" cellspacing="0" width="100%">
<tr>
<td style="padding:4px;" valign="top">
<span class="header">Calendar Articles Admin</span></strong><br>
<cfoutput><table width=100% cellspacing=0 cellpadding=0 bgcolor=#color#><tr><td style="padding:4px;"></td></tr></table></cfoutput>
<Cfif parameterexists(getuser.email) and getuser.accesslevel eq 100>
<br><br> <a href="calendararticles.cfm?runme=on&requesttimeout=5000">GO!</a><br><br>
</Cfif>
<Cfif parameterexists(url.save)>
<cfquery name="upds" dataSource="#ds#">
update activityplannerarticles
set headline = '#form.headline#',blurb = '#form.blurb#',subtitle = '#form.subtitle#',
toptext = '#form.toptext#',
bottomtext = '#form.bottomtext#'
where id = #url.save#
</cfquery>
</Cfif>
<Cfif parameterexists(url.edit)>
<Cfquery name="Gets" dataSource="#ds#">
select * from activityplannerarticles
where id = #url.edit#
</cfquery>
<cfFORM action="calendararticles.cfm?save=#url.edit#" method="post" name="MyForm" enctype="multipart/form-data">
<table>
<tr><td style="padding:4px;">
<b><font SIZE="-1" FACE="verdana">Headline:</font></b>
</td><td style="padding:4px;"><Cfoutput>
<input NAME="headline" SIZE="100" value="#Gets.Headline#">
</td></tr>
<tr><td style="padding:4px;">
<b><font SIZE="-1" FACE="verdana">Subtitle:</font></b>
</td><td style="padding:4px;">
<input NAME="Subtitle" SIZE="100" value="#Gets.Subtitle#">
</td></tr>
</Cfoutput>
<tr><td style="padding:4px;">
<b><font SIZE="-1" FACE="verdana">Blurb:</font></b>
</td><td style="padding:4px;">
<Textarea name="blurb" style="width:100%;height:100px;"><Cfoutput>#gets.blurb#</Cfoutput></Textarea>
</td></tr>
<tr><td style="padding:4px;">
<b><font SIZE="-1" FACE="verdana">Top Text:</font></b>
</td><td style="padding:4px;">
<Textarea name="toptext" style="width:100%;height:100px;"><Cfoutput>#gets.toptext#</Cfoutput></Textarea>
</td></tr>
<tr><td style="padding:4px;">
<b><font SIZE="-1" FACE="verdana">Bottom Text:</font></b>
</td><td style="padding:4px;">
<script src="//cdn.ckeditor.com/4.15.0/standard/ckeditor.js"></script>
<textarea name="bottomtext"><Cfoutput>#gets.bottomtext#</Cfoutput></textarea>
<script>
CKEDITOR.replace( 'bottomtext' );
</script>
<script>
CKEDITOR.replace( 'toptext' );
</script>
</td></tr>
</table><input name="entry" type="submit" Value="Update ">
</cfFORM>
<cfelse>
<Cfquery name="Gets" dataSource="#ds#">
select * from activityplannerarticles
where id <> 72 and id <> 87
and region <> 'Fairfield'
order by region,ID
</cfquery>
<table cellpadding="2" cellspacing="0" border="1">
<Cfoutput query="Gets">
<tr>
<td style="padding:4px;"><A href="calendararticles.cfm?edit=#id#"><cfif parameterexists(url.Showurls)>
#id#<cfelse>edit</cfif></A></td>
<td style="padding:4px;"><b>#region#</b></td>
<td style="padding:4px;"><b>#categoryname#</b></td>
<td style="padding:4px;"><b><Cfif #catid# eq 0 and #categoryname# is not 'Top Events'>NO MATCH</Cfif></b></td>
<td style="padding:4px;">#headline#</b></td>
<td style="padding:4px;">#blurb#</b></td>
<td style="padding:4px;"><A href="https://www.nymetroparents.com/activityplannerprintnewcatsprintarticleweekend.cfm?region=#region#&catid=#catid#&id=#id#&preview=on">preview</A></td>
<!---
<cfquery name="inset" dataSource="#ds#">
INSERT INTO regionstable (colid,regionsid)
VALUES (#colid#,490)
</cfquery>--->
<td style="padding:4px;"><A href="https://www.nymetroparents.com/2011va.cfm?colid=#colid#">view live article</A></td>
<cfif parameterexists(url.Showurls)>
<!--- <td style="padding:4px;">
<Cfquery name="getcount" dataSource="#ds#">
select count(distinct(newmastertrack.id)) as views
from newmastertrack
where newmastertrack.typer = 'article'
and idnumber = #colid#
and (newmastertrack.datetime BETWEEN '2018-02-01' AND '2018-02-28')
group by newmastertrack.idnumber
order by views desc
</cfquery>
#getcount.views#
</Td> --->
<cfif parameterexists(url.Showurls)>
<Td>
#colid#</Td>
</cfif>
<cfquery name="geturl" datasource="#ds#">
select seo_friendly from columntable where id = #colid#
</cfquery>
<td style="padding:4px;"><A href="https://www.nymetroparents.com/article/#geturl.seo_friendly#">https://www.nymetroparents.com/article/#geturl.seo_friendly#</A></td>
</cfif>
<Cfif parameterexists(url.runme)>
run!
<cfobjectcache action="clear">
<cfhttp url="https://www.nymetroparents.com/activityplannerprintnewcatsprintarticlerocklandvolunteers.cfm?region=Rockland"
method="GET" resolveurl="YES" timeout="50000">
</cfhttp>
<Cfquery name="upds" dataSource="#ds#">
update columntable
set copy = '#cfhttp.filecontent#', dateposted = '#dateformat(now(),'yyyy-mm-dd')#',datesubmitted = '#dateformat(now(),'yyyy-mm-dd')#',lastedit = '#dateformat(now(),'yyyy-mm-dd')#', postedby = 'System', Editedby = 'System'
where id = 157006
</cfquery>
<cfhttp url="https://www.nymetroparents.com/activityplannerprintnewcatsprintarticleweekend.cfm?region=#region#&catid=#catid#&id=#id#"
method="GET" resolveurl="YES" timeout="50000">
</cfhttp>
<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#>
<cfset monthvar = '#dateformat(currentdatetime,'MMMM')#'>
<Cfset newheadline = '#rereplace(Headline,'MONTHNAME','#monthvar#')#'>
<Cfset newblurb = '#rereplace(blurb,'MONTHNAME','#monthvar#')#'>
<cftry>
<Cfquery name="upds" dataSource="#ds#">
update columntable
set title = '#newheadline#', blurb = '#newblurb#', copy = '#cfhttp.filecontent#', dateposted = '#dateformat(now(),'yyyy-mm-dd')#',datesubmitted = '#dateformat(now(),'yyyy-mm-dd')#',lastedit = '#dateformat(now(),'yyyy-mm-dd')#', postedby = 'System', Editedby = 'System'
where id = #colid#
</cfquery>
<cfcatch>
error
<cfscript>
charEncoding="iso-8859-1"
chardecode=CharsetDecode(#cfhttp.filecontent#, charEncoding);
</cfscript> <cfset chardecode=reReplace(chardecode, "[^\x20-\x7E]", " ", "ALL")>
<Cfquery name="upds" dataSource="#ds#">
update columntable
set title = '#newheadline#', blurb = '#newblurb#', copy = '#chardecode#', dateposted = '#dateformat(now(),'yyyy-mm-dd')#',datesubmitted = '#dateformat(now(),'yyyy-mm-dd')#',lastedit = '#dateformat(now(),'yyyy-mm-dd')#', postedby = 'System', Editedby = 'System'
where id = #colid#
</cfquery>
</cfcatch>
run
</cftry>
runrun
</Cfif>
</tr>
</Cfoutput>
</table>
</Cfif>
<!---
<Cfoutput query="Gets">
<cfquery name="Getcatnympprint" datasource="cityguide">
SELECT cat,catid
FROM CatActivityPlanner
where mag = 55
and cat = '#categoryname#'
</cfquery>
<cfif #Getcatnympprint.recordcount# gt 0>
<Cfquery name="udps" dataSource="#ds#">
update activityplannerarticles
set catid = #Getcatnympprint.catid#
where id = #gets.id#</cfquery>
</cfif>
<Cfquery name="getheadline" dataSource="#ds#">
select title,blurb
from columntable
where id = #colid#
</cfquery>
<Cfquery name="udps" dataSource="#ds#">
update activityplannerarticles
set headline = '#getheadline.title#',
blurb = '#getheadline.blurb#'
where id = #gets.id#</cfquery>
</Cfoutput>
--->
</td></tr></table>
</div>
<!--Footer-part-->
<br><br><br><br>
<cfinclude template="footer.cfm">