Jump to content


  • Posts

  • Joined

  • Last visited

About Jonnym53

  • Birthday 08/27/1965

Profile Information

  • Location
    Sheffield United kingdom

Recent Profile Visitors

1,824 profile views

Jonnym53's Achievements


Newbie (1/7)



  1. Hi all. Not been here for a while but I'm now in need of some help. I'm trying to understand what and how to replace some code in a squeeze page. the code i'm trying to replace with new is because I have found the page is being spammed by a spam bot and I have new code to add a capcha addition to the sequence which should stop it. The page is hosted, along with lots more, at Hostgator, the code comes from I-Contact form builder. I have it saved on my desktop. The page code, currently, looks like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Secrets to professional dog training</title> <meta name="description" content="Comprehensive website detailing the secrets that professional dog trainers use to get dogs to behave just the way they wish."> <meta name="keywords" content="dog,dogs,training,dogtraining,secrets,professional dog training,dog behaviour,train your dog."> <meta name="robot" content="index,follow"> <meta name="copyright" content="Copyright &copy; 2012 my-dogtrainingsecrets. All Rights Reserved."> <meta name="generator" content="www.onlinemetatag.com"> <!-- MetaTags - Online Meta Tag http://www.onlinemetatag.com --> <!-- Create your meta tag and increase your website position on search engines! --> <style type="text/css"> .auto-style25 { background-color: #FFFFFF; } .auto-style35 { text-align: center; font-family: Verdana; font-weight: 700; font-style: italic; font-size: medium; } .auto-style36 { font-style: normal; font-weight: normal; } .auto-style37 { text-align: center; font-size: x-small; } .auto-style38 { border: 1px solid #000000; text-align: center; background-color: #FFFFE8; } .auto-style39 { text-align: left; } .auto-style40 { font-size: x-small; } </style> </head> <body leftmargin="190" topmargin="70" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" alink="#00ffff" link="#0000ee" marginheight="0" marginwidth="0" vlink="#551a8b"> <center> <p style="margin-top: 0pt; margin-bottom: 0pt;">&nbsp;</p> </center> <table style="text-align: left; margin-left: auto; margin-right: auto; width: 890px; height: 592px;" border="12"> <tbody> <tr> <td> <center> <p style="margin-top: 0pt; margin-bottom: 0pt;" align="center"><font style="background-color: rgb(255, 255, 255); font-size: 21pt;" face="Impact">&nbsp;Need to Train Your Dog?&nbsp; </font> </p> <font color="#000000"> </font> <p style="margin-top: 7px; margin-bottom: 10px;" align="center"><font color="#000000"><font style="font-size: 32pt;" face="Impact">"Learn How to Train Your Dog Like a Professional in No Time At All"</font></font></p> </center> <table class="auto-style25" style="width: 669px; height: 348px;" align="center" cellpadding="7"> <tbody> <tr> <td valign="top"> <table style="width: 90%;" align="center"> <tbody> <tr> <td class="auto-style35" style="width: 592px;" valign="top"> <font color="#000000" face="Verdana, Arial, Helvetica"> <strong>"That's right. You Too Can Learn To Train Your Dog To Be As Obedient as a Crufts Champion. This <big style="font-weight: bold; color: rgb(255, 0, 0);">Free!</big> Report will Show You How!"<br> <br> </strong> <span class="auto-style36">Simply enter your primary email address in the form<br> below to <strong>get instant access</strong>...<br> </span><strong><br> </strong><strong> </strong> <table style="width: 90%;" class="auto-style25" align="center"> <tbody> <tr> <td class="auto-style25"> <img src="images/s3-green_l.png" style="float: right;" height="129" width="120"></td> <td class="auto-style38" style="width: 257px;"> <form method="post" action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup1839" accept-charset="UTF-8" onsubmit="return verifyRequired1839();"><input name="redirect" value="http://my-dogtrainingsecrets.com/articles/how-to-train-your-dog-quickly-and-effectively/" type="hidden"> <input name="errorredirect" value="http://my-dogtrainingsecrets.com/articles/how-to-train-your-dog-quickly-and-effectively/" type="hidden"><input name="listid" value="44525" type="hidden"><input name="specialid:44525" value="CUIP" type="hidden"><input name="clientid" value="871932" type="hidden"><input name="formid" value="3813" type="hidden"> <input name="reallistid" value="1" type="hidden"><input name="doubleopt" value="0" type="hidden"> <table class="signupframe" border="0" cellpadding="5" cellspacing="0" width="260"> <tbody> <tr> <td valigh="top" class="auto-style39" style="width: 101px;">First Name </td> <td align="left"> <input name="fields_fname" type="text"></td> </tr> <tr> <td aligh="top" class="auto-style39" style="width: 101px;"> <span class="required">*</span> Email </td> <td align="left"> <input name="fields_email" type="text"></td> </tr> <tr> <td style="width: 101px;"> </td> <td class="auto-style40">* = Required Field</td> </tr> <tr> <td style="width: 110px;"> </td> <td><input name="Submit" value="Get Instant Access" type="submit"></td> </tr> </tbody> </table> </form> <script type="text/javascript"> var icpForm1839 = document.getElementById('icpsignup1839'); if (document.location.protocol === "https:") icpForm1839.action = "https://app.icontact.com/icp/signup.php"; function verifyRequired1839() { if (icpForm1839["fields_email"].value == "") { icpForm1839["fields_email"].focus(); alert("The Email field is required."); return false; } return true; } </script></td> <td class="auto-style25"> <img src="images/s3-green_r.png" style="float: left;" height="129" width="120"></td> </tr> </tbody> </table> <br> <table style="width: 63%;" align="center"> <tbody> <tr> <td> <img src="images/nospaming.png" height="17" width="40"></td> <td class="auto-style37">Your privacy is protected. Your information will never be shared.&nbsp; We hate spam too! </td> </tr> </tbody> </table> <br> </font></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html> The Code I'm trying to add has 2 versions. I think the long one is meant to be posted as HTML on a web page. The short version is: <script type="text/javascript" src="//app.icontact.com/icp/core/mycontacts/signup/designer/form/automatic?id=102&cid=871932&lid=7416"></script> The long version is: <script type="text/javascript" src="//app.icontact.com/icp/static/form/javascripts/validation-captcha.js"></script> <script type="text/javascript" src="//app.icontact.com/icp/static/form/javascripts/tracking.js"></script> <link rel="stylesheet" type="text/css" href="//app.icontact.com/icp/static/human/css/signupBuilder/formGlobalStyles.css"> <style type="text/css" id="signupBuilderAdvancedStyles"> </style> <style type="text/css" id="signupBuilderStyles"> #ic_signupform .elcontainer { background: #ffffff; text-align: left; max-width: 300px; padding: 10px 10px; border-radius: 0px; border: 1px solid #000000; font-size: 12px; color: #226699; font-family: arial; } #ic_signupform .elcontainer.center-aligned .formEl { margin-right: auto; margin-left: auto; } #ic_signupform .elcontainer.right-aligned .formEl { margin-left: auto; } #ic_signupform .form-header { display: none; background: #ffffff; margin-top: -10px; margin-left: -10px; margin-right: -10px; margin-bottom: 10px; /* using padding on purpose */ padding-top: 30px; padding-right: 10px; padding-bottom: 30px; padding-left: 10px; border-radius: calc(0px - 1px) calc(0px - 1px) 0 0; text-align: center; font-size: 150%; color: #333333; border-bottom: 1px solid #dddddd; } #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-input label, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-input label, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox h3 { width: 30%; } #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 3em; } #ic_signupform .elcontainer.tight.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.tight.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.tight.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.tight.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 2em; } #ic_signupform .elcontainer.generous.inline-label-left .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.generous.inline-label-left .formEl.fieldtype-checkbox h3, #ic_signupform .elcontainer.generous.inline-label-right .formEl.fieldtype-radio h3, #ic_signupform .elcontainer.generous.inline-label-right .formEl.fieldtype-checkbox h3 { line-height: 4em; } #ic_signupform .elcontainer.inline-label-left .formEl input[type="text"], #ic_signupform .elcontainer.inline-label-left .formEl select, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-radio .option-container, #ic_signupform .elcontainer.inline-label-left .formEl.fieldtype-checkbox .option-container, #ic_signupform .elcontainer.inline-label-right .formEl input[type="text"], #ic_signupform .elcontainer.inline-label-right .formEl select, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-radio .option-container, #ic_signupform .elcontainer.inline-label-right .formEl.fieldtype-checkbox .option-container { width: 70%; } #ic_signupform .elcontainer.hidden-label .formEl.required:before { color: #000000; } #ic_signupform .elcontainer .formEl { font-size: 1em; } #ic_signupform .elcontainer .formEl.fieldtype-input label, #ic_signupform .elcontainer .formEl.fieldtype-dropdown label, #ic_signupform .elcontainer .formEl.fieldtype-radio h3, #ic_signupform .elcontainer .formEl.fieldtype-checkbox h3 { font-size: 100%; font-weight: bold; color: #226699; } #ic_signupform .elcontainer .formEl.fieldtype-input input[type="text"], #ic_signupform .elcontainer .formEl.fieldtype-dropdown select { background-color: #ffffff; border: 1px solid #666666; border-radius: 0px; } #ic_signupform .elcontainer .formEl.fieldtype-input input[type="text"], #ic_signupform .elcontainer .formEl.fieldtype-dropdown select, #ic_signupform .elcontainer .formEl.fieldtype-radio label, #ic_signupform .elcontainer .formEl.fieldtype-checkbox label { font-size: 100%; } #ic_signupform .elcontainer .formEl input[type="text"]::-moz-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"]::-webkit-input-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"]:-ms-input-placeholder { color: #bdbdbf; font-family: inherit; } #ic_signupform .elcontainer .formEl input[type="text"], #ic_signupform .elcontainer .formEl select, #ic_signupform .elcontainer .formEl .option-container label { color: #000000; font-family: inherit; } #ic_signupform .elcontainer.inline-button .submit-container { display: inline-block; box-sizing: border-box; right: -.5em; padding: 0 1em 0 0; position: relative; vertical-align: bottom; margin-bottom: 1em; } #ic_signupform .elcontainer.inline-button.tight .sortables { margin-bottom: -.5em; } #ic_signupform .elcontainer.inline-button .sortables { margin-bottom: -1em; } #ic_signupform .elcontainer.inline-button.generous .sortables { margin-bottom: -1.5em; } #ic_signupform .elcontainer .submit-container { text-align: center; } #ic_signupform .elcontainer .submit-container input[type="submit"] { background: #ffffff; border: 1px solid #666666; border-radius: 0px; line-height: 1em; padding: 9px 53px; color: #666666; font-size: 100%; font-family: inherit; width: auto; }</style> <form id="ic_signupform" captcha-key="6Leg3ykTAAAAAOl-32RMwHSsbwyZA5j84VGnmfnV" captcha-theme="light" method="POST" action="https://app.icontact.com/icp/core/mycontacts/signup/designer/form/?id=102&cid=871932&lid=7416"><div class="elcontainer tight inline-label-right left-aligned inline-button"><div class="form-header"><h3>Form Heading</h3></div><div class="sortables"><div class="formEl fieldtype-input" style="display: inline-block; width: 100%;" data-validation-type="1" data-label="First Name"><label>First Name<span class="indicator required">*</span></label><input placeholder="" name="data[fname]" type="text"></div><div class="formEl fieldtype-input required" style="display: inline-block; width: 100%;" data-validation-type="1" data-label="Email"><label>Email<span class="indicator required">*</span></label><input placeholder="" name="data" type="text"></div><div class="formEl fieldtype-checkbox required" dataname="listGroups" style="display: none; width: 100%;" data-validation-type="1" data-label="Lists"><h3>Lists<span class="indicator required">*</span></h3><div class="option-container"><label class="checkbox"><input alt="" name="data[listGroups][]" value="44525" checked="checked" type="checkbox">My-dogtrainingsecrets.com</label></div></div><div class="submit-container"><input value="Submit" class="btn btn-submit" type="submit"></div></div><div class="hidden-container"></div></div></form><img src="//app.icontact.com/icp/core/signup/tracking.gif?id=102&cid=871932&lid=7416"/> The page can be viewed at http://www.my-dogtrainingsecrets.com I really am lost as HTML is not my forte so I could do with some help to understand and implement . Look forward to hearing from someone soon. Thanks J Morris UK.
  2. Thanks for the reply. I'll give it a go and see if it works. regards John M.
  3. Hi all. I have a sticky one here as I am having problems with a paypal button which is in the wrong place and I can't move it. Firstly, I am trying to manipulate the code inside an editor on a hosting account. I have N-Vue on my PC but don't know weather I want to go about downloading the code to my editor via FileZilla or not. If I can do it where it is I'd prefer. Anyway. The page looks like this: http://thekitchentablemillionaire.co.uk//index.html As you can see, if you scroll down to the middle of the page there is a picture of a product set with a paypal button to the lower left of it. I want to move the button to be directly under the picture. The current code looks like this: style="text-align: center;" align="center"><font color="#000000"><font style="font-size: 14pt;" size="4"><font color="#000000"><a text-align="" left="" align="left"><font color="#000000"><br> </font></a><font color="#000000"><b><font style="font-size: 20pt;" size="10" color="#0000ff">"The kitchen Table Millionaire" <p style="text-align: center;" align="center"><font color="#000000"><img style="border: 1px solid rgb(0, 0, 0); width: 188px; height: 162px;" alt="The Kitchen Table Millionaire" src=http://thekitchentablemillionaire.co.uk/Images/Kitchen%20Table%20productimage.jpg align="middle" border="0" height="152" hspace="0" width="178"></a></font></font></font></p><P><form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="QGF5P9TN7L74U"><input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_paynowCC_LG.gif" border="0" align=Center" name="submit" alt="PayPal – The safer, easier way to pay online."><img alt="" border="0" align="Center" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" align="absolute Center"></form></p>What I can't understand is the "align" commands are all "centre" or absolute centre so why is the button only showing to the left of the page and how do I code to move it? I'm not fluent in HTML but can follow instructions. If someone can help??? Thanks John M.
  4. Hi. If you just click on the links in the above message you get to the pages I am trying to explain about. The url was correct when I pasted it in, you don't think I wrote it in long hand?I've just tried by clicking on both lonks and I can get to the pages just fine.Hope you can too.RegardsJ.M.
  5. Hi all. I'm still trying to make sense of a problem I have with a web page which does not function as it should. It is a squeeze page and should be linked to an auto responder.The auto responder package is not held on the same server as the squeeze page but I uploaded some files into the same folder to give the 'look' of the page, which was successful and, I thought, the function.To illustrate.This is the page in question.http://www.canwork-fromhome.com/Cash-inIn the header there is a line that mentions source= function.js, or something similar. So, I copied to the holding folder the function.js file, thinking it would work but it does not. I believe there must be more going on that I thought.Now, if you visit;http://www.yourfuture2012.co.uk/future/register.php?list_id=3this is the original page which I copied over. This one is held on the same server as the whole auto responder package, and it works as it should.So, my problem is, do I try and find out if the function.js file is actually linked to more files in the auto responder package, copy them over to my holding folder and see if that works or could there be some way to link the page in the 1st url above with the second so I have the look and the functionality that I am striving to achieve.You'll have to go to each page and use so you can see what I mean.Hope someone can make sense of this.ThanksJ.M.
  6. Hi again. I need a little help as I did as instructed in recent posts in this string but the web page does not function. I added the function.js file to the folder index_files and have checked the code in the page against the code in the original page this one is supposed to mirror. The code is exactly the same but still the page function is not active. It's supposed to do something after you enter your name and email etc but I get no response.Is there something else I need to consider, something else I need to add or implement that will make this function as it should.The original page is on my PC at home and the original files for the auto responder are on a remote server so I would not imagine this is a distance thing, maybe something in the code points to a problem I'm not aware of.Please help as I just don't know what is wrong.ThanksJ.M.
  7. Ok Thanks. I'll do again and see what my results are.Great help.J.M.
  8. Would that be similar to link to the functions.js?I tried the code you suggested above and the page still looks the same, no color or design. This is really awkward.If you want to get into the page held on the server to see what is really going on let me know.ThanksJ.M.
  9. Hi again. I did as suggested and made the folder, added the files to it and I still get the white page with black test and no functionality.It's as though the code on the page is still looking for the code in it's original place rather than the code in the folder in it's new location.The original page was generated from a package which has a numerous amount of files and folders, all contained with the index, I think it would be difficult to copy the right files to make this work properly as I don't altogether know which files are connected to which. There is a mix of PHP, HTML and CSS and it does work but it seems the page code is not easily transportable, somehow.Not sure how to approach this further.Any suggestions?ThanksJ.M.
  10. OK, Thanks. Now I think it through, it makes sense.I''l give it a try and see how it goes.J.M.
  11. Hi. I'm just looking for clarification on something.I have a page which I uploaded to a folder on a server. The page has associated with it a style sheet (CSS) and other files. Currently I believe the code in the page is looking for the associated items in the wrong place as it is coded thus:<link href="index_files/style.css" rel="stylesheet" type="text/css"><script src="index_files/functions.js" language="javascript"></script>the folder these items are now placed in is a totally different place than the addresses aboveas they are in www.canwork-fromhome.com/Cash-in (the 'Cash-in' part is the holding folder)I have the style sheet and the functions.js in the same folder but the index page does notfind them addressed in the current way.I'm not sure how to write the address in after the"href=" to allow the code in the index page to find the code in the style sheet and fuctions.jsCan anyone point me in the right direction?ThanksJohn M.
  12. Hi all. I have a problem with a squeeze page. If you take a look at the attached file you'll see what my page looks like on my PC. It's a mixture of HTML,PHP and a style sheet.I wanted to upload it to a hosting account I have (not push button) to be an addition to a website which I need to develop further, based on wordpress.Now, I thought that if I uploaded the page as index.html, along with the html,php and style sheet the page would look as it does onmy pc.Not a bit of it, take a look:http://www.canwork-fromhome.com/Cash-inWhat you see there is just a whilte page with black text. I tried to see if it works but it has lost all it's functionality as well, if you add your details into the fields and press the button nothing happens.So, I'm stuck as I just don't know what to do next.Does anyone have an idea how to solve this problem??Hope you can helpThanksJohn. Squeeze page look.pdf
  13. I have just managed to alter some of the visual effects on the page via the style sheet contained in the files of this auto responder package. I have changed the font size etc by editing the details between the <h1> and </h1> tags (also the <h2></h2> but I can't seem to be able to change the color. I have done as I did before oin my test page but it won't take it. I also am not sure about getting the border effect as on my test page. It seems the way the pages are put together is a mixture of php/css/style sheet and html. Very complicated. Whoever wrote this has a very comprehensive understanding of coding and building websites.I know I'm probably back tracking a bit but now we seem to be working on a style sheet external to the page to be styled, it's slightly different to working on the page with css.Any suggestions?ThanksJohn.
  14. What I don't understand clearly is this "autostyle=" as this crops up in different places. The style sheet that seems to drive the look of all the pages seen in the sequence starts with a,a:visited{. Looking at it is un familiar territory to me as I'm not sure which bits to change to get the pages to look as I want. I could do with a few pointers, if anyone can take the time to give me an idea.Sorry if I seem dim (just don't understand coding so much)John.
  15. Oh, if you really did want the php code, look here:<?php//authorisation block$logged=$_SESSION[newsadmin];if(!$logged&∅($_POST['enter'])){ require_once($path.'templates/a_login.html'); exit;}if(!$logged and !empty($_POST[enter])){ //log admin $q="SELECT id FROM $T_SETTINGS WHERE name='adminpass' AND value='$_POST[password]'"; $valid=$DB->oq($q); if(!$valid) { msg_die("Wrong admin password"); } else { $_SESSION[newsadmin]=$valid; $logged=$_SESSION[newsadmin]; }}//end authorization block?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('lib/user.php');session_cache_limiter('none');session_start();require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('a_authorize.php');// end includes$_GET['action']=!empty($_GET['action'])?$_GET['action']:"main";if(!is_file("modules/a_$_GET[action].php")){ msg_die("Wrong input parameter");}require("modules/a_$_GET[action].php");require_once('templates/a_master.html');?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('models/basic.php');require_once('models/list.php');// end includes//see if valid user$q="SELECT * FROM $T_USERS WHERE id='$_GET[id]' AND code=\"$_GET \"";$member=$DB->sq($q);if($member['id']){ $q="UPDATE $T_USERS SET active=1 WHERE id='$member[id]'"; $DB->q($q); $_list=new MailList(); $_list->notify($member['list_id'], $member); send_immediate_mails($member['id']); $mainmsg="Thank you!"; $msg="Your account is now confirmed,You are now being re-directed"; }else{ $mainmsg="Error!"; $msg="The link appears to be invalid";}$template="templates/message.html";require_once('templates/master.html');?><meta http-equiv="refresh" content=" 5;url=http://www.thecompetitive-edge.co.uk"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><style type="text/css">.auto-style1 { text-align: center;}.auto-style2 { font-family: Arial, Helvetica, sans-serif; font-size: x-large;}.auto-style3 { font-family: Arial, Helvetica, sans-serif; font-size: large;}.auto-style8 { font-family: Arial, Helvetica, sans-serif; font-size: xx-large; color: #808080;}.auto-style9 { font-family: Arial, Helvetica, sans-serif; font-size: xx-large; color: #4B4444;}.auto-style10 { font-family: Arial, Helvetica, sans-serif; font-size: large; color: #4B4444;}</style></head><body><table align="center" style="width: 700px"> <tr><td class="auto-style1"><strong><span class="auto-style9">Thank you,You are now being re-directed.</span><span class="auto-style8"> <br /> </span><span class="auto-style3"><em><br /> <br /> </em></span> <img height="21" src="ProgressBar.gif" width="417" /><br /> <br /> <span class="auto-style10"><em>(please wait while page loads...)</em></span><br /> <br class="auto-style2" /> <span class="auto-style3"><em><br /> </em></span></strong></td> </tr></table></body></html>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');require_once('models/basic.php');require_once('models/list.php');// end includes$q="SELECT value FROM $T_SETTINGSWHERE name='register'";$register=$DB->oq($q);$optin=get_setting("optin");// select custom fields if any$q="SELECT * FROM $T_FIELDS WHERE list_id='$_GET[list_id]'ORDER BY id";$efields=$DB->aq($q);if(!empty($_POST[ok])){ //duplicate email? $q="SELECT id FROM $T_USERS WHERE email=\"$_POST[email]\" AND list_id='$_GET[list_id]'"; $exists=$DB->oq($q); if($exists) { msg_die("This email is already registered in the system."); } $active=$optin?0:1; // people often enter names in stupid ways. This will make them better $_POST['name']=prepare_name($_POST['name']); $q="INSERT INTO $T_USERS (name,email,active,list_id,date) VALUES (\"$_POST[name]\",\"$_POST[email]\",'$active','$_GET[list_id]',CURDATE())"; $DB->q($q); $mid=$DB->lid(); // add extra fields foreach($efields as $field) { $q="INSERT INTO $T_DATAS (field_id,user_id,data, list_id) VALUES ('$field[id]','$mid',\"".$_POST["field_".$field['id']]."\",'$_GET[list_id]')"; $DB->q($q); } $mainmsg="Thank you"; $msg="You have been signed up in our system."; if($optin) { //generate code $code=substr(md5($_POST[email].time()),0,8); //update member $q="UPDATE $T_USERS SET code=\"$code\" WHERE id='$mid'"; $DB->q($q); $msg.="However confirmation of your email address is required. Please check your email and click on the link in it to confirm your address"; $subject="Please confirm your email for ".get_setting("site"); $message="Please click on the link below to confirm your email address:<a href=\"".SITE_URL."confirm.php?id=$mid&code=$code\">".SITE_URL."confirm.php?id=$mid&code=$code</a>"; send_mail(get_setting("sender"),$_POST[email],$subject,$message); } else { $_list=new MailList(); $_list->notify($_GET['list_id'], array("email"=>$_POST['email'], "name"=>$_POST['name'])); send_immediate_mails($mid); } $template="templates/message.html";}else{ $template="templates/register.html";}require_once('templates/master.html');?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includes################# SEND NEWSLETTER MAILS ####################//select mails per run$q="SELECT value FROM $T_SETTINGS WHERE name='mph'";$mph=$DB->oq($q);$mph=$mph?$mph:100;//select mails$q="SELECT * FROM $T_SMAILS WHERE receiver!='' ORDER BY id LIMIT $mph";$mails=$DB->aq($q);foreach($mails as $mail){ // echo $mail[receiver]."<br>"; send_mail($mail[sender],$mail[receiver],$mail[subject],$mail[message],$mail[mailtype]); $q="DELETE FROM $T_SMAILS WHERE id='$mail[id]'"; $DB->q($q);}################# SEND AUTORESONDER MAILS ####################// first select fixed dates mails for today$q="SELECT tM.days as days, tR.list_id as list, tM.id as id, tM.date as date, tM.subject as subject, tM.message as message,tR.sender as sender, tM.responder_id as responder_idFROM $T_MAILS tM, $T_RESPONDERS tRWHERE tM.responder_id=tR.id AND tR.artype='Fixed dates'AND tM.date=CURDATE()";$mails=$DB->aq($q);foreach($mails as $mail){ //select receivers $q="SELECT tU.email as email, tU.id as id, tU.name as name FROM $T_USERS tU, $T_RESPONDERS tR WHERE tU.list_id=tR.list_id AND tR.id=$mail[responder_id] AND tU.active=1"; $receivers=$DB->aq($q); //customize and send ar_customize($mail,$receivers); }// now select all sequential mails no matter the date they have to be sent at$q="SELECT tM.id as id, tM.subject as subject, tM.message as message, tM.days as days, tM.then_do as then_do, tR.id as rid, tR.list_id as list_id,tR.sender as senderFROM $T_MAILS tM, $T_RESPONDERS tRWHERE tM.responder_id=tR.id AND tR.artype!='Fixed dates'ORDER BY tM.id";$mails=$DB->aq($q);$ar_offsets=array(); // keep the day offset for each autoresponderforeach($mails as $mail){ // calculate offset $off=$mail["days"]; // select receivers $q="SELECT * FROM $T_USERS WHERE list_id='$mail[list_id]' AND date=CURDATE() - INTERVAL $off DAY AND active=1 ORDER BY id"; $receivers=$DB->aq($q); ar_customize($mail,$receivers); // update offset - no longer used #$ar_offsets[$mail[rid]]+=$mail[days];}?>Next;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includes//update openings$q="UPDATE $T_SMAILS SET`read`=`read`+1WHERE id='$_GET[id]'";$DB->q($q);?>Last;<?php// includesrequire_once('inc/db_wrapper.php');require_once('inc/db_login.inc.php');require_once('lib/user.php');session_cache_limiter('none');session_start();require_once('inc/defines.inc.php');require_once('lib/functions.php');require_once('lib/framework.php');require_once('lib/specific.php');require_once('lib/table_editor.php');// end includesif(!empty($_POST[ok])){ $q="DELETE FROM $T_USERS WHERE email=\"$_POST[email]\""; $DB->q($q); $mainmsg="Thank you"; $msg="You have been unsubscribed"; $template="templates/message.html";}else{ $template="templates/unsubscribe.html";}require_once('templates/master.html');?>That's all the PHP for all the pages in this package.John.
  • Create New...