| 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">
<cfif parameterexists(url.savecaption)>
<cfquery name="del" dataSource="cityguide">
update adopstrackingscreenshots set caption = '#form.caption#' where id = #url.savecaption#
</cfquery>
<cflocation url="adslistscreenshots.cfm?id=#url.id#" addtoken="no">
</cfif>
<cfif parameterexists(url.id)>
<cfquery name="getclient" datasource="cityguide">
SELECT * from adopstrackingclient
where id = #url.id#
</cfquery>
</cfif>
<div id="content" style="margin-left:250px;">
<div id="content-header"><br>
<h2 style="line-height:15pt;font-size:12pt;"> Ad System - Screenshots <cfif parameterexists(url.id)> for
<Cfoutput>#getclient.clientname# #getclient.campaignname#</Cfoutput></cfif> <br>
<Cftry>
<br>
<Cfoutput><small>
<a href="https://admin.nymetroparents.com/adslist.cfm?editclient=<cfif parameterexists(url.id)>#url.id#<cfelse>#url.editsaveclient#</cfif>">Back to Client</a></small>
</Cfoutput>
</small>
</h2></a>
</div>
<cfif parameterexists(url.save )>
<Cfset utime = #DateDiff("s", CreateDate(1970,1,1), now())#>
<cfquery name="upds" dataSource="cityguide">
update adopstrackingclient
set
screenshottext = 'yes',
screenshotneeded = 0
where id = #url.editsaveclient#
</cfquery>
<br>
Saved ! <Br> <Br>
<cfelse>
<cfif parameterexists(url.delete)>
<cfquery name="del" dataSource="cityguide">
delete from adopstrackingscreenshots where id = #url.delete#
</cfquery>
</cfif>
<cfquery name="getpics" dataSource="cityguide">
select * from adopstrackingscreenshots
<cfif parameterexists(url.id)>
where clientid = #url.id#
<cfelse>
where clientid = #url.editsaveclient#
</cfif>
</cfquery>
<p>
<div style="padding:10px;">
<h2>Uploaded Screenshots</h2>
</p>
<TAble id="example23" class="table color-table primary-table table-bordered table-striped table-hover">
<cfoutput query="getpics">
<tr>
<td><img src="https://admin.nymetroparents.com/screenshots/#filename#" style="max-width:200px;"></td>
<td>
<form name=log action="adslistscreenshots.cfm?savecaption=<Cfoutput>#id#&id=#url.id#</cfoutput>" method="post">
<input type="Text" name="caption" value="#caption#">
<input type="submit" Value="Save">
</form>
</td>
<td>
<a href="https://admin.nymetroparents.com/adslistscreenshots.cfm?delete=#id#&id=<cfif parameterexists(url.id)>#url.id#<cfelse>#url.editsaveclient#</cfif>" onclick="return confirm('Are you sure?');">delete</a>
</td>
<td>
<a href="https://admin.nymetroparents.com/screenshots/#filename#">click to enlarge</a>
</td>
</tr>
</cfoutput>
</table>
<h2>Add Screenshots</h2>
<table style="width:100%"><Tr><Td valign="top" style="width:300px;">
<FORM action="adslistscreenshots.cfm?save=on&editsaveclient=<cfoutput>#url.id#</cfoutput>" method="post" enctype="multipart/form-data">
<Cfset imagetemp =randrange(1,100000)>
<!-- UniversalUploader css style file -->
<link rel="stylesheet" href="universaluploader2/universal/style.css">
<!-- Examples css file -->
<!-- UniversalUploader JavaScript code file -->
<script type="text/javascript" src="universaluploader2/universal/universaluploader.js"></script>
<!-- PlaceHolder for UniversalUploader User Interface. Existing content will not be removed.
UniversalUpload will append own content to the end of this div-->
<div id="universalUploader_holder" >
<noscript><form id="myform" name="myform" action="uploadfiles.php?colid=<?php echo $_GET['colid'];?>%26thesize=<?php echo $_GET['thesize'];?>" method="post" enctype="multipart/form-data">
<input name="Filedata" type="file"><br>
<input type="submit" value="Upload" />
</form>
</noscript>
</div>
<!-- Initialization of UniversalUploader object -->
<script type="text/javascript">
universalUploader.init({
//Your serialNumber
serialNumber: "00813315924382181212425172175150247912723810191",
//List of uploaders to render
uploaders: "drag-and-drop, flash, silverlight, classic",
//First of correctly initialized uploader will be rendered
singleUploader : true,
//determines whether tab header should be displayed. Only for singleUploader mode
renderTabHeader: false,
//Id of html element where universalUploader should be rendered
//If not set, document body used
holder: "universalUploader_holder",
//Url to the swf file
flash_swfUrl : "ElementITMultiPowUpload.swf",
//Url to the xap file
silverlight_xapUrl : "universaluploader2/universal/uploaders/UltimateUploader.xap",
//Path to the folder with images (status icons, remove icon) By default images subfolder is used (relative to the html page base path)
//In these examples we place icons inside universal/images subfolder.
imagesPath : "universaluploader2/universal/images/",
//Url to the file processing script
url: "adslistupload.cfm?id=<Cfoutput>#url.id#</cfoutput>"
});
//File upload complete
universalUploader.bindEventListener("FileUploadComplete", function (uploaderId, file){
var responselable = document.getElementById("serverresponse");
if(file.serverResponse) responselable.innerHTML += "<strong>" + file.serverResponse + "</strong>";
});
//File upload error handler
universalUploader.bindEventListener("FileUploadError", function (uploaderId, file, status, msg){
var responselable = document.getElementById("serverresponse");
responselable.innerHTML += "File Upload error "+file.name+" status "+status+" message "+msg;
});
universalUploader.bindEventListener("Init", function (inited){
if(!inited)
alert("UniversalUploader failed to init!");
});
</script>
<div id="serverresponse"></div>
<!---
<cffileupload
url="uploadfiles.cfm?id=#imagetemp#"
progressbar="true"
name="myupload"
addButtonLabel = "Add File"
clearButtonlabel = "Clear it"
hideUploadButton = "false"
width=600
height=400
title = "File Upload"
maxuploadsize="30"
extensionfilter="*.jpg"
BGCOLOR="##FFFFFF"
MAXFILESELECT=10
UPLOADBUTTONLABEL="Upload now"/>
--->
When *all* items get to 100%, press 'next' to save!
<strong>
<div align="left"><font size=+1><a href="adslistscreenshots.cfm?save=on&editsaveclient=<cfoutput>#url.id#</cfoutput>">NEXT >>></a></font></strong>
</td><td>
<cfoutput> <iframe src="adslistframe.cfm?clientid=#url.id#&rand=#utime#" style="width: 100%;height:700px;" frameborder="0" scrolling="yes"></iframe></cfoutput>
</td></tr></table>
<br>
</div>
</div>
</center>
</form>
</cfif>
</div>
</div> </div>
<!--Footer-part-->
<br><br><br><br>
<cfcatch type="any">
<cfoutput>
Error occured....<br /><br />
Message: <b>#cfcatch.Message#</b><br />
Detail: <b>#cfcatch.Detail#</b><br />
Type: <b>#cfcatch.Type#</b><br />
<cfinclude template="/footer.cfm">
</cfoutput>
</cfcatch>
</cftry>
<cfinclude template="/footer.cfm">