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/activityplanneredit.cfm
<cfinclude template="header.cfm">


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

<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#>




<cfquery name="getseo" datasource="#ds#" >
select id, name,datestart,dateend
from ActivityPlanner
where (seo_friendly is null or seo_friendly = '')
and id <> 9939 and id <> 171250 and id <> 174319 and id <> 116527 and name <> ''
and id <> 276497 
and datestart !='0000-00-00'
and dateend !='0000-00-00'

</cfquery>


<cfoutput query="getseo">
<cfset seodate = '#dateformat(datestart,"yyyy-mm-dd")#-#dateformat(datestart,"yyyy-mm-dd")#'>
<cfset moveurl = reReplace(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>

<cfset moveurl = '#moveurl#-#seodate#'>

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

<Cfif #checkmove.recordcount# gt 0>
<cfset moveurl = '#moveurl#-#dateformat(currentdatetime,'mmdd')#'>
</cfif>

<Cfquery name="upds" datasource="#ds#">
update ActivityPlanner
set seo_friendly = '#moveurl#'
where id = #id#
</cfquery>

</cfoutput>

<cfparam name="form.arrivedate" default="#dateformat(currentdatetime,'yyyy-mm-dd')#">
<cfif #form.arrivedate# eq ''>
<cfset form.arrivedate = #dateformat(currentdatetime,'yyyy-mm-dd')#>
</cfif>

<cfset newdeparturedate = #dateadd('d',380,CurrentDateTime)#>

<cfparam name="form.departuredate" default="#dateformat(newdeparturedate,'yyyy-mm-dd')#">
<cfif #form.departuredate# eq ''>
<cfset form.departuredate = #dateformat(currentdatetime,'yyyy-mm-dd')#>
</cfif>


<Table><Tr><Td  valign="top">
<!---<cfquery name="geteventscount" datasource="#ds#">
select count(id) as counter
from ActivityPlanner
where 1=1
<cfif parameterexists(url.mag) and #url.mag# eq '5'>
and (catid3 > 0 or catid4 > 0)
<!---and (pk = 'on' or pkq = 'on' or pkb = 'on' or pkw = 'on')--->
</cfif>
<cfif  parameterexists(url.mag) and  #url.mag# eq '1'>
and (cg= 'on' or ml = 'on')
</cfif>
and status=0

<cfif parameterexists(form.cg)>
and cg = 'on'
</cfif>
<cfif parameterexists(form.ml)>
and ml = 'on'
</cfif>
<cfif parameterexists(form.pk)>
and  nympregion = 'manhattan'
</cfif>
<cfif parameterexists(form.pkq)>
and  nympregion = 'queens'
</cfif>
<cfif parameterexists(form.pkb)>
and  nympregion = 'brooklyn'
</cfif>
<cfif parameterexists(form.pkw)>
and  nympregion = 'westchester'
</cfif>
<cfif parameterexists(form.pkr)>
and  nympregion = 'rockland'
</cfif>


<cfif parameterexists(form.pkbronx)>
and  nympregion = 'bronx'
</cfif>
<cfif parameterexists(form.pkstaten)>
and  nympregion = 'Staten Island'
</cfif>
<cfif parameterexists(form.pkessex)>
and  nympregion = 'Essex'
</cfif>
<cfif parameterexists(form.pknassau)>
and  nympregion = 'Nassau'
</cfif>
<cfif parameterexists(form.pkfairfield)>
and  nympregion = 'Fairfield'
</cfif>
<cfif parameterexists(form.pkbergen)>
and  nympregion = 'Bergen'
</cfif>
<cfif parameterexists(form.pksuffolk)>
and  nympregion = 'Suffolk'
</cfif>

<cfif parameterexists(form.mainpage) and form.mainpage is not 'all'>
and mainpage = #form.mainpage#
</cfif>


  <cfif parameterexists (form.hasphoto) and form.hasphoto eq 'Yes'>
	and photo <> ''
</cfif>
  <cfif parameterexists (form.hasphoto) and form.hasphoto eq 'No'>
	and photo = ''
</cfif>


<cfif parameterexists(form.catid3) and form.catid3 is not 0>
and (catid3 = #form.catid3# or catid4 = #form.catid3#)
</cfif>


<cfif parameterexists (form.searchterm) and #form.searchterm# is not ''>
and (name like '%#form.searchterm#%' or description like '%#form.searchterm#%' or activityname like '%#form.searchterm#%')
</cfif>


<cfif parameterexists (form.newsletterpickup) and form.newsletterpickup is not 'All'>
	and newsletterpickup = '#form.newsletterpickup#'
</cfif>
<cfif parameterexists (form.ArriveDate)>
and
(
(datestart between '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and '#dateformat(form.departuredate,'yyyy-mm-dd')#')
or
(dateend  between '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and '#dateformat(form.departuredate,'yyyy-mm-dd')#')
or
datestart = '#dateformat(form.arrivedate,'yyyy-mm-dd')#'
or
dateend = '#dateformat(form.arrivedate,'yyyy-mm-dd')#'
or
(datestart < '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and dateend > '#dateformat(form.departuredate,'yyyy-mm-dd')#')
<cfif #form.arrivedate# eq  #form.departuredate#>
or

(datestart <= '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and dateend >= '#dateformat(form.arrivedate,'yyyy-mm-dd')#')

</cfif>
)

</cfif>
</cfquery>

---->
<cfquery name="getevents" datasource="#ds#">
select
id,updatedby,dateend,datestart,activityname,name,hours,address,address2,state,city,zip,phone,website,pk,pkb,pkq,pkw,pkr,phonex,enhanceddescription
from ActivityPlanner
where 1=1
<cfif parameterexists(url.mag) and #url.mag# eq '5'>
and ((pk = 'on' or pkq = 'on' or pkb = 'on' or pkw = 'on') or nympregion <> '')
</cfif>
<cfif  parameterexists(url.mag) and  #url.mag# eq '1'>
and (cg= 'on' or ml = 'on')
</cfif>
and status=0

<cfif parameterexists(form.cg)>
and cg = 'on'
</cfif>
<cfif parameterexists(form.ml)>
and ml = 'on'
</cfif>
<cfif parameterexists(form.pk)>
and  nympregion = 'manhattan'
</cfif>
<cfif parameterexists(form.pkq)>
and  nympregion = 'queens'
</cfif>
<cfif parameterexists(form.pkb)>
and  nympregion = 'brooklyn'
</cfif>
<cfif parameterexists(form.pkw)>
and  nympregion = 'westchester'
</cfif>
<cfif parameterexists(form.pkr)>
and  nympregion = 'rockland'
</cfif>


<cfif parameterexists(form.pkbronx)>
and  nympregion = 'bronx'
</cfif>
<cfif parameterexists(form.pkstaten)>
and  nympregion = 'Staten Island'
</cfif>
<cfif parameterexists(form.pkessex)>
and  nympregion = 'Essex'
</cfif>
<cfif parameterexists(form.pknassau)>
and  nympregion = 'Nassau'
</cfif>
<cfif parameterexists(form.pkfairfield)>
and  nympregion = 'Fairfield'
</cfif>
<cfif parameterexists(form.pkbergen)>
and  nympregion = 'Bergen'
</cfif>
<cfif parameterexists(form.pksuffolk)>
and  nympregion = 'Suffolk'
</cfif>

<cfif parameterexists(form.mainpage) and form.mainpage is not 'all'>
and mainpage = #form.mainpage#
</cfif>

  <cfif parameterexists (form.isweekend) and form.isweekend eq 'Yes'>
	and isweekend = 1
</cfif>
  <cfif parameterexists (form.isweekend) and form.isweekend eq 'No'>
	and isweekend = 0
</cfif>


  <cfif parameterexists (form.hasphoto) and form.hasphoto eq 'Yes'>
	and photo <> ''
</cfif>
  <cfif parameterexists (form.hasphoto) and form.hasphoto eq 'No'>
	and photo = ''
</cfif>


<cfif parameterexists(form.catid3) and form.catid3 is not 0>
and (catid3 = #form.catid3# or catid4 = #form.catid3#)
</cfif>


<cfif parameterexists (form.searchterm) and #form.searchterm# is not ''>
and (name like '%#form.searchterm#%' or enhanceddescription like '%#form.searchterm#%' or activityname like '%#form.searchterm#%')
</cfif>


<cfif parameterexists (form.newsletterpickup) and form.newsletterpickup is not 'All'>
	and newsletterpickup = '#form.newsletterpickup#'
</cfif>
<cfif parameterexists (form.ArriveDate)>
and
(
(datestart between '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and '#dateformat(form.departuredate,'yyyy-mm-dd')#')
or
(dateend  between '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and '#dateformat(form.departuredate,'yyyy-mm-dd')#')
or
datestart = '#dateformat(form.arrivedate,'yyyy-mm-dd')#'
or
dateend = '#dateformat(form.arrivedate,'yyyy-mm-dd')#'
or
(datestart < '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and dateend > '#dateformat(form.departuredate,'yyyy-mm-dd')#')
<cfif #form.arrivedate# eq  #form.departuredate#>
or

(datestart <= '#dateformat(form.arrivedate,'yyyy-mm-dd')#' and dateend >= '#dateformat(form.arrivedate,'yyyy-mm-dd')#')

</cfif>
)

</cfif>
order by datestart
limit 0,400
</cfquery>


<center>
<font face=verdana size=+1><b>Calendar Admin</b></font><Br /><font face=verdana size=-1>
<Cfoutput>#getevents.recordcount# Records Found
<br />
<Cfif parameterexists(url.mag)>
<a href="addcalendarcategory.cfm?id=#url.mag#">Manage Calendar Categories</a>
</Cfif>
</Cfoutput>
</center>

<Cfoutput><FORM action="activityplanneredit.cfm?mag=5" method="post" name="MyForm" ></cfoutput>
<table class="table color-table inverse-table table-hover table-striped">
<tr><td width="60%">
<Table><tr><Td>
<font face=verdana size=-2><strong>Start:</strong></td><td>
<cf_calendar form="MyForm" name="ArriveDate" calendardir="."  value="#form.arrivedate#" FORMAT="DD-MMM-YY">
</td><td>
<font face=verdana size=-2>&nbsp;
<strong>End:</strong></td><Td>
<Cfif parameterexists(form.departuredate)>
<cf_calendar form="MyForm" name="DepartureDate" calendardir="." value="#form.departuredate#"  FORMAT="DD-MMM-YY">
<cfelse>
<cf_calendar form="MyForm" name="DepartureDate" calendardir="." value="01-Jan-09" FORMAT="DD-MMM-YY">
</Cfif>
</Td></tr></table>

</td>
<td  width="50%"><font face=verdana size=-2>
<strong>Search Listings:</strong> <input name="searchterm" size="15" />
</td>
</tr>
<Tr>
<Td>
<Font face=verdana size=-2><strong>Narrow By:</strong><br />
<input name="pk" type="checkbox" <cfif parameterexists(form.pk)>checked</cfif>>&nbsp;Manhattan<br>
<input name="pkb" type="checkbox" <cfif parameterexists(form.pkb)>checked</cfif>>&nbsp;Brooklyn<br>
<input name="pkq" type="checkbox" <cfif parameterexists(form.pkq)>checked</cfif>>&nbsp;Queens<br>
<input name="pkw" type="checkbox" <cfif parameterexists(form.pkw)>checked</cfif>>&nbsp;Westchester<br />
<input name="pkr" type="checkbox" <cfif parameterexists(form.pkr)>checked</cfif>>&nbsp;Rockland<br />



<input name="pkbronx" type="checkbox" <cfif parameterexists(form.pkbronx)>checked</cfif>>&nbsp;Bronx<br />
<input name="pkstaten" type="checkbox" <cfif parameterexists(form.pkstaten)>checked</cfif>>&nbsp;Staten Island<br />
<input name="pkessex" type="checkbox" <cfif parameterexists(form.pkessex)>checked</cfif>>&nbsp;Essex
<br />
<input name="pknassau" type="checkbox" <cfif parameterexists(form.pknassau)>checked</cfif>>&nbsp;Nassau<br />
<input name="pksuffolk" type="checkbox" <cfif parameterexists(form.pksuffolk)>checked</cfif>>&nbsp;Suffolk<br />
<input name="pkfairfield" type="checkbox" <cfif parameterexists(form.pkfairfield)>checked</cfif>>&nbsp;Fairfield<br />
<input name="pkbergen" type="checkbox" <cfif parameterexists(form.pkbergen)>checked</cfif>>&nbsp;Bergen<br />



</td>
<td><Font face=verdana size=-1>

	  <b><font SIZE="-1" FACE="verdana">Category:</font></b>

	    <select NAME="catid3" size="1">
        		     <option value="0">None</option> <option value=""></option>
		     <option value="0">None</option>


        <option value="68">Arts & Crafts</option>

        <option value="88">Black History Month</option>

        <option value="20">Classes for Kids</option>

        <option value="21">Classes for Parents</option>

        <option value="27">Dance</option>

        <option value="73">Earth Day</option>

        <option value="71">Easter</option>

        <option value="36">Fairs/Festivals</option>

        <option value="77">Father's Day</option>

        <option value="78">Fourth of July</option>

        <option value="82">Fundraisers</option>

        <option value="92">Halloween</option>

        <option value="30">Historical/Cultural</option>

        <option value="89">Holiday</option>

        <option value="100">Labor Day</option>

        <option value="32">Library Events</option>

        <option value="76">Memorial Day</option>

        <option value="75">Mother's Day</option>

        <option value="69">Movies</option>

        <option value="23">Museums/Art Galleries</option>

        <option value="24">Nature/Outdoors</option>

        <option value="70">Open Houses</option>

        <option value="101">Parent Groups</option>

        <option value="72">Passover</option>

        <option value="22">Shows</option>

        <option value="98">Special Needs</option>

        <option value="74">Sports</option>

        <option value="87">St. Patrick's Day</option>

        <option value="25">Story Hours</option>

        <option value="93">Thanksgiving</option>

        <option value="26">Theater</option>

        <option value="86">Valentine's Day</option>

        <option value="99">Volunteer Opportunities</option>

		</select>

<p>
<strong>Pull Up a Single Event by ID#</strong> <input name="singleevent" size="5" />
<p>



	  <b><font SIZE="-1" FACE="verdana">Highlight Entry:</font></b>

<select name="mainpage">
<option value="All">All
<option value="0">No
<option value="4">Main Page - Non Sponsor
<option value="3">Main Page - Sponsor
<option value="2">Main Page + Newsletter
<option value="1">Newsletter



</select>


<br><br>
	  <b><font SIZE="-1" FACE="verdana">Mark for Newsletter?:</font></b>


<select name="newsletterpickup">
<option value="All">All</option>

<option value="Yes">Yes</option>
<option value="No">No</option>
  </select>


  <br><br>
	  <b><font SIZE="-1" FACE="verdana">Has Photo?:</font></b>


<select name="hasphoto">
<option value="All">All</option>

<option value="Yes">Yes</option>
<option value="No">No</option>
  </select>

  <br><br>
	  <b><font SIZE="-1" FACE="verdana">Is a Weekend?:</font></b>


<select name="isweekend">
<option value="All">All</option>

<option value="Yes">Yes</option>
<option value="No">No</option>
  </select>



<Center><INPUT type=submit value="Generate Results">
</td>
</tr></table>
</form>



<Table width="650"><tr><td valign="top">



<p>

<table class="table color-table inverse-table table-hover table-striped">
<cfoutput query="getevents">
<Tr><td><CenteR><b>
<font face=verdana size=-2>
<cfif parameterexists(getuser.accesslevel) and getuser.accesslevel eq 100><br /><a href="editcalendar.cfm?id=#id#" target="new">edit entry</a></cfif>

<cfif #updatedby# is not ''><p><strong>EDITED</strong></p></cfif>
</td><td>
<font face=verdana size=-1>
<em><cfif #datediff('d',dateend,datestart)# eq 0>#dateformat(datestart,'mm/dd/yy')#<cfelse> #dateformat(datestart,'mm/dd/yy')#  through #dateformat (dateend,'mm/dd/yy')#</cfif> </em><br /><b><Cfif #activityname# is not '' and #activityname# is not '#name#'>#activityname#:</Cfif> #name#</b> <br />

#enhanceddescription# <br />
<CFIF #hours# is not ''>#hours#<br /></CFIF>
<cfif #address# is not ''>#address#<br /></cfif>
<cfif #address2# is not ''>#address2# <br />  </cfif>
<cfif #city# is not ''>#city# #state#  </cfif>
<cfif #zip# is not ''>#zip# <br />  </cfif>
<cfif #phone# is not ''>#phone# <cfif #phonex# is not ''>x#phonex#</cfif> <br /> </cfif>
<cfif #website# is not ''>#left(website,60)#</a> <br></cfif>
<Cfif (#pk# eq 'on' or pkb eq 'on'
or pkq eq 'on' or pkw eq 'on' or pkr eq 'on') or parameterexists(url.mag) and #url.mag# eq 5>

<a href="https://www.nymetroparents.com/2015neweventinfo.cfm?id=#id#" target="_new">http://www.nymetroparents.com/2015neweventinfo.cfm?id=#id#</a></cfif>
</td></tr>

</cfoutput>
</table>
</Td></Tr></Table>

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

<cfinclude template="footer.cfm">





Youez - 2016 - github.com/yon3zu
LinuXploit