Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Silver Thoughts? filter_list
Author
Message
Thoughts? #1
So I added a couple new features to crimin4l.cc/proxies over the last week or so and I think the page is 100% complete now Biggrin
Let me know what you guys think: https://streamable.com/uc2q2i
Also before all this, I would get the date from a date.txt that I would have to update everytime I updated proxies.txt. Got very annoying and immediately was trying to figure out how to pull the last modified date from the proxies.txt file. Finally did and feels like a huge accomplishment because i really had minimal help/googling on this one Biggrin



(04-14-2020, 05:38 AM)Crimin4L Wrote: Thank you @mothered

I feel so accomplished relearning my old roots Biggrin It went from having a date.txt file where I would have to write the date in every time I updated the proxy list, to automatic Biggrin
I said goodbye to date.txt with these simple lines:
PHP Code:
$pfile "proxies.txt"//Declare file

$pfiletime date("U"filemtime($pfile)); //Formatting the file's last modified time into seconds <<Used again in second code box>>
$hoursToSubtract 4//UTC offset (In Hours) For me I am UTC-4
$secToSubtract = ($hoursToSubtract 60 60); //converts the $hoursToSubtract into seconds; 4 x 60 minutes x 60 seconds
$mytime $pfiletime $secToSubtract//Subtracting the 4 hours (in seconds) from the files time (to get UTC-4 timezone)

//Reformat the new UTC-4 time ($mytime) to a readable format (Because it's in seconds)
$time1 date("F j, Y"$mytime);
$time2 date("g:i"$mytime);
$time3 date(":s"$mytime);
$time4 date("A [e-4]"$mytime)
//You can also do this in 1 line. I just needed to display the date on two separate lines and make the seconds smaller, so I had to separate it all.
$example1line date("F j, Y g:i:s A [e-4]"$mytime); //pfile's last modified date and time in UTC-4 Timezone 

Then since having the the $pfiletime in seconds already, I grabbed the current time (also in UTC; where server is located) and subtract them to get the time of how long ago it was modified:
PHP Code:
$currenttime time(); //getting time in seconds
$updatedlast $currenttime $pfiletime//subtracting current time from $pfiletime 

//Then once again changing the time from seconds to a readable format, also can be done in 1 line but I separated it so it can be displayed separately in a sentence.
$uphrs date("G"$updatedlast);
$upmins date("i"$updatedlast);
$upsecs date("s"$updatedlast);

$example1line date("G:i:s"$updatedlast); //Will display as "Hours:Minutes:Seconds" 

Super easy, once I knew the date and filemtime functions I was able to really do it all by myself Biggrin
I hope someone finds this information useful Smile
(This post was last modified: 04-14-2020, 05:51 AM by Crimin4L.)
[Image: signature.png]

[+] 1 user Likes Crimin4L's post
Reply

RE: Thoughts? #2
Looks professional and very appealing Indeed.

A job well done.
[Image: AD83g1A.png]

[+] 2 users Like mothered's post
Reply

RE: Thoughts? #3
(04-14-2020, 03:38 AM)mothered Wrote: Looks professional and very appealing Indeed.

A job well done.

Thank you @mothered

I feel so accomplished relearning my old roots Biggrin It went from having a date.txt file where I would have to write the date in every time I updated the proxy list, to automatic Biggrin
I said goodbye to date.txt with these simple lines:
PHP Code:
$pfile "proxies.txt"//Declare file

$pfiletime date("U"filemtime($pfile)); //Formatting the file's last modified time into seconds <<Used again in second code box>>
$hoursToSubtract 4//UTC offset (In Hours) For me I am UTC-4
$secToSubtract = ($hoursToSubtract 60 60); //converts the $hoursToSubtract into seconds; 4 x 60 minutes x 60 seconds
$mytime $pfiletime $secToSubtract//Subtracting the 4 hours (in seconds) from the files time (to get UTC-4 timezone)

//Reformat the new UTC-4 time ($mytime) to a readable format (Because it's in seconds)
$time1 date("F j, Y"$mytime);
$time2 date("g:i"$mytime);
$time3 date(":s"$mytime);
$time4 date("A [e-4]"$mytime)
//You can also do this in 1 line. I just needed to display the date on two separate lines and make the seconds smaller, so I had to separate it all.
$example1line date("F j, Y g:i:s A [e-4]"$mytime); //pfile's last modified date and time in UTC-4 Timezone 

Then since having the the $pfiletime in seconds already, I grabbed the current time (also in UTC; where server is located) and subtract them to get the time of how long ago it was modified:
PHP Code:
$currenttime time(); //getting time in seconds
$updatedlast $currenttime $pfiletime//subtracting current time from $pfiletime 

//Then once again changing the time from seconds to a readable format, also can be done in 1 line but I separated it so it can be displayed separately in a sentence.
$uphrs date("G"$updatedlast);
$upmins date("i"$updatedlast);
$upsecs date("s"$updatedlast);

$example1line date("G:i:s"$updatedlast); //Will display as "Hours:Minutes:Seconds" 

Super easy, once I knew the date and filemtime functions I was able to really do it all by myself Biggrin
I hope someone finds this information useful Smile
(This post was last modified: 04-14-2020, 05:50 AM by Crimin4L.)
[Image: signature.png]

[+] 1 user Likes Crimin4L's post
Reply

RE: Thoughts? #4
Neat piece of coding. The comments will help members understand It quite clearly.

The date, filemtime and time functions are quite powerful, but must be used In the proper context. On a similar principle but different task, I deal with the DATETIME, TIMESTAMP, DATE & YEAR data types (the caps Is how they're represented) on almost a daily basis, when manipulating databases In SQL during exploitation. The execution must correspond with each one accordingly.

I like your site's theme- simple and very attractive. I see that anon.city will be up soon. I'll keep an eye out for It.
[Image: AD83g1A.png]

[+] 1 user Likes mothered's post
Reply

RE: Thoughts? #5
(04-14-2020, 06:05 AM)mothered Wrote: Neat piece of coding. The comments will help members understand It quite clearly.

The date, filemtime and time functions are quite powerful, but must be used In the proper context. On a similar principle but different task, I deal with the DATETIME, TIMESTAMP, DATE & YEAR data types (the caps Is how they're represented) on almost a daily basis, when manipulating databases In SQL during exploitation. The execution must correspond with each one accordingly.

I like your site's theme- simple and very attractive. I see that anon.city will be up soon. I'll keep an eye out for It.

Thank you Smile and I hope, I tried to be as thorough as possible when making the comments Tongue

I've never done anything like manipulating databases, or even used SQL before. I never gotten that far with my experience but SQL is definitely on the bucket list Tongue Pretty Funny though that you use almost the same functions everyday that I used here but a different language

Also thank you once again! I'm hoping I found the right partner for anon.city but he worked on it with me for the first day then kinda ghosted me for a week.. Then hits me up saying he was busy with other peoples projects that hes also accepted. Then also has the nerve to ask me if the logo he requested in the beginning was done xD (I agreed to make him a logo for building most of the websites back-end). I simply said "when the website is actually getting worked on and progress is being made I will work on the logo, I am just not gonna make a free logo and then never hear from you again". So this project might be taking longer than I expected Sad
[Image: signature.png]

[+] 1 user Likes Crimin4L's post
Reply

RE: Thoughts? #6
(04-14-2020, 06:30 AM)Crimin4L Wrote: and I hope, I tried to be as thorough as possible when making the comments
I don't believe you could've explained It any better.

(04-14-2020, 06:30 AM)Crimin4L Wrote: I've never done anything like manipulating databases, or even used SQL before. I never gotten that far with my experience but SQL is definitely on the bucket list Tongue Pretty Funny though that you use almost the same functions everyday that I used here but a different language
SQL Is very simple to learn.

I'm probably saying this because I've been using It for so long, that It's become second nature. When you decide to take It on board, don't hesitate to shoot me a PM with any questions you may have.

(04-14-2020, 06:30 AM)Crimin4L Wrote: Also thank you once again! I'm hoping I found the right partner for anon.city but he worked on it with me for the first day then kinda ghosted me for a week.. Then hits me up saying he was busy with other peoples projects that hes also accepted. Then also has the nerve to ask me if the logo he requested in the beginning was done xD (I agreed to make him a logo for building most of the websites back-end). I simply said "when the website is actually getting worked on and progress is being made I will work on the logo, I am just not gonna make a free logo and then never hear from you again". So this project might be taking longer than I expected Sad
You're most welcome.

Unless you're working to a deadline, do remember that there's no rush when creating a website. I have many sites up and running, with the latest (work In progress) being a social engineering blog. As long as I add "some" content each day toward Its completion, then I'm happy with that.
[Image: AD83g1A.png]

Reply

RE: Thoughts? #7
(04-14-2020, 06:44 AM)mothered Wrote: I don't believe you could've explained It any better.
Haha thank you Smile

(04-14-2020, 06:44 AM)mothered Wrote: SQL Is very simple to learn.

I'm probably saying this because I've been using It for so long, that It's become second nature. When you decide to take It on board, don't hesitate to shoot me a PM with any questions you may have.
I tried explaining all that code to my parents and they didn't get any of it xD I just kept saying "its soo simple, just use common sense" xD
You just reminded me of that whole convo I had with them! When things come easy for us we don't understand what others find hard about it xD
But I honestly never even tried to look into it, so I can't really say if I find it difficult or not; but when/if I get started in it i'll definitely keep that in mind my friend Biggrin

(04-14-2020, 06:44 AM)mothered Wrote: You're most welcome.

Unless you're working to a deadline, do remember that there's no rush when creating a website. I have many sites up and running, with the latest (work In progress) being a social engineering blog. As long as I add "some" content each day toward Its completion, then I'm happy with that.
That's awesome mate! Always good to have multiple projects to keep your mind busy (especially in times like this). But yea that's what I've been thinking so I haven't been stressing it too much because I know it best; that everyone has their own life and may not always be able to be there. So I'm just letting him rock until he's ready Smile
(This post was last modified: 04-14-2020, 07:04 AM by Crimin4L.)
[Image: signature.png]

[+] 1 user Likes Crimin4L's post
Reply

RE: Thoughts? #8
(04-14-2020, 07:02 AM)Crimin4L Wrote: That's awesome mate! Always good to have multiple projects to keep your mind busy (especially in times like this). But yea that's what I've been thinking so I haven't been stressing it too much because I know it best; that everyone has their own life and may not always be able to be there. So I'm just letting him rock until he's ready Smile

I'm Inundated with computing tasks each and every day, and can't seem to catch up. In my world, there's never enough time In a day.

It's good to read you're not stressing to complete your website. There's no rush whatsoever, so there's no purpose In being mentally exhausted.
[Image: AD83g1A.png]

[+] 2 users Like mothered's post
Reply







Users browsing this thread: 1 Guest(s)