The Name Of The Project Is Love Calculator Prank It is Written in PHP by me. It is a clone of https://quiz.playing.com I have taken the frontend from there site and implemented the backend in core PHP using the basic or advance PHP skills which I know at my best. It is just a game don't take it seriously XD.
1-When User Enter His Her Name In Input Field There Is Two Hidden Input Field Which Has Randomly Generated Value I Call This Value Known As secreted and userid, when user submits the data, got inserted into DB in the corresponding column with name, secretid,userid .
2- After Submitting The Data In DB The Page sends the get request to https://example.com/index.php?userid=genrateduserid now it's an interesting page this page has two views
2.1 authorized view
2.2 unauthorized view
3-The Cookie Has Also Been Created With The Values Of secretid and userid to differentiate in these views a person having these cookies gonna have authorized view as long as they have a cookie in their browser also the page renders a short link which users can share with their friends the short link has been created using a third party API the API uses $finalurl.'?'.$_COOKIE['userid'] these variables to create a short link
4-When User Share The Link & Victim Visits The Link Name Of Ther Person(WHo Created The Link) Will Be Reflected (Because Of Get Paramterer In User Id)In Unauthorized View Where Victim Can ENter His Crush Name & His Name
5- There Are Three Fields In Total & one submit button
5.1-Your Name- It Is Visible Field Victim Can Enter His Name
5.2-Crush Name - It is Visibile Field Victim Can Enter His Crush Name
5.3-secretid- it is not visible field and it has default value fetched from get parameter in the request by which this unauth page has been rendered and that parameter is userid
5.4-Calculate Love Button- This Button Sends Data In Another Table Having Two Columns Secretid and message in which every secret id has one corresponding column named messages
5- Now If Authorized Users Go To https://example.com/ the PHP script checks for a cookie if it is there then it redirects to https://example.com/index.php?userid=genrateduserid and there as he is authorized there the messages having secret id he generated will be rendered hence the Victim Name & Crush Name Will Be Rendered
1-Cookies & Session
2-Dealing With Database
2.1 - Storing Data In Database
2.2 - Fetching Data From Database
2.3 - Creating Relational Database & Using In Php
3-Authorization & Authentication logic
4-Get & Post Requests
5-API Fetching For Shortlinks
6-MIND (Most Important)
Step 1- Simply Upload The Files Onto Server Using FTP
Step 2- Create Database & Import The File db.sql
Step 3- Edit The db.php file and check the connection with DB
Step 4- Edit The app.php file and find if there is any URL like example.com replace with your site URL (Maybe You Have To Change Or Maybe Not The Code May Get Updated Soon)
Step 5- It You Setup Your Own Love Calculator
Live Url - https://playlovegame.ml/
Please Contact -
blogwithvansh@gmail.com (Primary)
vanshdevgans@gmail.com
Enjoy!!
Facebook - LUCIFER
Twitter - LUCIFER
Instagram - LUCIFER
Linkedin - LUCIFER
VanshDevgan