Jump to content

jakebur01

Members
  • Content Count

    871
  • Joined

  • Last visited

Community Reputation

1 Neutral

About jakebur01

  • Rank
    Prolific Member
  • Birthday 06/23/1986

Profile Information

  • Gender
    Male
  • Location
    USA
  1. Yea. I guess I could add a button to the landing page. Click here to activate.
  2. There are two pages. auth_registration and auth_activate. I myself submit the form on auth_registration using one of my emails and immediately the auth_activate page is accessed. I'm suspect of these facebook and google ad trackers that track registration and purchase: <script async src="https://www.googletagmanager.com/gtag/js?id=AW-36573573"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-3763567'); </script> <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '36573737376'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=65474567&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code -->
  3. Yes. It is the full link with the variables in the url that is being run.
  4. The bot would have to be accessing the page at the moment the user is clicking the submit button on the register page. How does the bot know the page exists?
  5. The link just contains their id url encoded and the activation page checks to see if it’s already activated. This IP address is accessing the page the moment the user is registered and the email is sent out to them from the registration page. Another user signed up and a different ip address accessed the activation page the moment their check your email for verification email with the link was sent to them. I looked that address up and it was also from amazon data.
  6. I have a registration page that mails a link to the users email. The link in the email takes the user to the activation page which sends out a welcome email and updates the database as activated if the user is not already activated. For some reason, this page is being accessed by an Amazon ip address with multiple browsers in the user_agent. Whatever this is is automatically activating my users and sending them a welcome email without them even accessing the page. The only suspect I can think of is I have a javascript snippit for google ads and also facebook on some of my pages. I don't know if they could somehow be accessing the page or not. It must be following the activation link in the mail() script I have on the registration page. I'm mailing myself the following when the activation page is accessed. I get an amazon ip, multiple browsers, and no referer. $browser = $_SERVER['HTTP_USER_AGENT']; $ip = $_SERVER['REMOTE_ADDR']; $referer = $_SERVER['HTTP_REFERER'];
  7. No, I don't. But I'm learning. It has the x-www-form-urlencoded header. It then is json encoded and has the json header. So, I guess it used both.
  8. This did it: https://www.google.com/amp/s/www.geeksforgeeks.org/how-to-receive-json-post-with-php/amp/
  9. I have some data I'm posting from Swift to my php file via x-www-form-urlencoded. How can I decode this POST data?
  10. I’m getting ready to play around with swift and php. I want to do a basic login and send some data back and forth. It doesn’t look that complicated. Swift sends a request, php processes it and returns it in a json format. What about authentication. Has anyone had experience with this? When you POST via urlsession or alamofire a password for php to handle, is that post text not something someone could capture in between. What’s the best and simplest way to approach all of this?
  11. I believe I may have it. $originalstart = date("Y-m-d"); $originalstart = date("Y-m-d",strtotime('-24 months', strtotime($originalstart))); for( $i= 0 ; $i <= 25 ; $i++ ) { $start = date('Y-m-01',strtotime('+'."$i".' month', strtotime($originalstart))); $firstday = date('Y-m-d', strtotime('next Sunday', strtotime('last Friday', strtotime('first day of last month', strtotime($start))))); $lastday = date('Y-m-d', strtotime('next Saturday', strtotime('last Friday', strtotime('first day of this month', strtotime($start))))); echo "$firstday - $lastday<br />"; } 2017-10-01 - 2017-10-28 2017-10-29 - 2017-11-25 2017-11-26 - 2017-12-30 2017-12-31 - 2018-01-27 2018-01-28 - 2018-02-24 2018-02-25 - 2018-03-31 2018-04-01 - 2018-04-28 2018-04-29 - 2018-05-26 2018-05-27 - 2018-06-30 2018-07-01 - 2018-07-28 2018-07-29 - 2018-09-01 2018-09-02 - 2018-09-29 2018-09-30 - 2018-10-27 2018-10-28 - 2018-12-01 2018-12-02 - 2018-12-29 2018-12-30 - 2019-01-26 2019-01-27 - 2019-02-23 2019-02-24 - 2019-03-30 2019-03-31 - 2019-04-27 2019-04-28 - 2019-06-01 2019-06-02 - 2019-06-29 2019-06-30 - 2019-07-27 2019-07-28 - 2019-08-31 2019-09-01 - 2019-09-28 2019-09-29 - 2019-10-26 2019-10-27 - 2019-11-30
  12. That's exactly what I was looking for!! Thank you. That is awesome. @Barand Yes, for users to download. It's a lot cleaner to me than a php file name. And I'm using a variable as the filename.
  13. I don't know how to do exactly yet, but this is what I have in mind. Is this the right direction? $today = date("Y-m-d"); $originalstart = date("Y-m-d",strtotime('-24 months', strtotime($originalstart))); for( $i= 1 ; $i <= 24 ; $i++ ) { $start = date('Y-m-d',strtotime('+'."$i".' month', strtotime($originalstart))); //need to make day 01 somehow $firstday = new DateTime($start); $firstday->modify('first day of this month'); if(sunday){ //use sunday } elseif(tuesday thru thursday){ //use this past sunday } elseif(friday or saturday){ //use next Sunday } $lastday = new DateTime($start); $lastday->modify('+1 month'); $lastday->modify('last friday'); $lastday->modify('+1 day'); }
  14. I need to find the last Friday of each month and determine the start and end dates of each month based on the last Friday. So, for September, the last Friday was the 27th, that means Saturday the 28th will be the last day of September. September 29 will then start the first day of October.... October 25 is the last Friday in October, so Saturday October 26 will close out October..... Sun Oct 27 starts November, etc... 7/28 - 8/31 9/1 - 9/28 9/29 - 10/26 10/27 - 11/30 I can build a table and manually key in the start and end dates then query as needed, but if there is a way to do it on the fly, I'd rather do it in php to eliminate mistakes. Below is the code I'm currently using to find the first and last day of each calendar month, but I'll need to convert this to find the fiscal month based on the last Saturday of each month. And go back a few years in the option select. <select name="dateselect" id="dateselect"> <?php $today = date("Y-m-d"); $monthbegin = date("Y-m-d",strtotime('first day of this month', strtotime($today))); for( $i= 0 ; $i <= 52 ; $i++ ) { if($i == 0){ $monthselect = date('Y-m-d',strtotime($monthbegin)); $monthdisplay = date('F Y',strtotime($monthbegin)); echo '<option ' . ($i == 0 ? 'selected=\'selected\'' : '') . ' value="' . $monthselect . '" >' . $monthdisplay . '</option>'; } else{ $monthselect = date('Y-m-d',strtotime('-'."$i".' months',strtotime($monthbegin))); $monthdisplay = date('F Y',strtotime('-'."$i".' months',strtotime($monthbegin))); echo '<option ' . ($i == 0 ? 'selected=\'selected\'' : '') . ' value="' . $monthselect . '" >' . $monthdisplay . '</option>'; } } ?> </select> $begin_date = $_GET["dateselect"]; $end_date = date("Y-m-t", strtotime($begin_date));
  15. Is it possible to feed the browser a default save as name for the image when outputting to the browser, instead of it defaulting to the .php file name? So, instead of myimage.php I could use imagename.jpg or whatever I want.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.