| 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 : |
<cfinclude template="header.cfm">
<Cfsetting requesttimeout="600">
<div id="content" style="margin-left:250px;">
<div id="content-header">
<h2> Manage NYMP Contests
</div>
<div class="container-fluid" >
<Cfif parameterexists(url.edit)>
<cfquery name="update" datasource="#ds#">
update mastercontestindex
set contestname = '#form.contestname#',
expiredate = '#form.expiredate#',
startdate = '#form.startdate#',
emailto = '#form.emailto#',
special = '#form.special#',
contestimage = '#form.contestimage#',
contestsite = '#form.contestsite#',
speciallink = '#form.speciallink#',
textonlyseo = '#form.textonlyseo#'
where id = #form.id#
</cfquery>
<Cfquery name="upter2" dataSource="#ds#">
update mastercontest
set contest = '#form.contestname#'
where contest = '#form.currentname#'
</cfquery>
<Cfelse>
<cfsavecontent variable="inset">
<table style="width: 528px; height: 65px;" border="0" cellpadding="10" align="center">
<tbody>
<tr>
<td>
<p><span style="font-size: x-large; font-family: arial,helvetica,sans-serif;">Thank you for entering our giveaway! </span></p>
<p><span style="font-size: medium; font-family: arial,helvetica,sans-serif;">For updates and other amazing giveaways, 'Like' us on <strong><a href="http://facebook.com/nymetroparents" target="_blank">Facebook</a></strong> and follow us on Twitter <strong><a href="http://twitter.com/nymetroparents" target="_blank">@NYMetroParents</a></strong>.</span></p>
</td>
</tr>
</tbody>
</table>
</cfsavecontent>
<CFSET CurrentDateTime = #CreateODBCDateTime(Now())#>
<cfparam name="form.speciallink" default="">
<CFQUERY NAME="Insert" datasource="#ds#">
INSERT INTO columntable
(title,Columnnum,blurb,copy,DateSubmitted)
VALUES ('New Contest #form.contestname# Main Page',589,'','',#CurrentDateTime#)
</CFQUERY>
<Cfquery name="Gett1" datasource="#ds#">
select id
from columntable
order by id desc
limit 0,1
</Cfquery>
<CFQUERY NAME="Insert" datasource="#ds#">
INSERT INTO columntable
(title,Columnnum,blurb,copy,DateSubmitted)
VALUES ('New Contest #form.contestname# Confirmation Page',589,'','#inset#',#CurrentDateTime#)
</CFQUERY>
<Cfquery name="Gett2" datasource="#ds#">
select id
from columntable
order by id desc
limit 0,1
</Cfquery>
<CFQUERY NAME="Insert" datasource="#ds#">
INSERT INTO columntable
(title,Columnnum,blurb,copy,DateSubmitted)
VALUES ('New Contest #form.contestname# Confirmation Email',589,'','#inset#',#CurrentDateTime#)
</CFQUERY>
<Cfquery name="Gett3" datasource="#ds#">
select id
from columntable
order by id desc
limit 0,1
</Cfquery>
<cfquery name=addphoto datasource="#ds#">
INSERT INTO mastercontestindex(contestname,expiredate,createdate,t1,t2,t3,textonlyseo,startdate,emailto,speciallink)
VALUES ('#form.contestname#','#form.expiredate#',#currentdatetime#,#gett1.id#,#gett2.id#, #gett3.id#,'#form.textonlyseo#','#form.startdate#','#form.emailto#','#form.speciallink#')
</cfquery>
</Cfif>
<cflocation url="addcontest.cfm" addtoken="no">