Code Monkey home page Code Monkey logo

e-cards's Introduction

E-Cards

Fully Responsive Digital Card Contact (E-Cards) Website. With QR Scanner and QR code for each profile Get all your Business contacts where ever when ever you want.

Website Testing

Download the latest database.sql file. Few Accouts have already been created for Testing and Demo purpose.

Step 1: Create a database called e-cards and import everything from database.sql file. Next check your db.php file for database connection configuration

Step2: Now you login as candidate with following details

Email: [email protected]
Password: testtest

Sign-In

When you try to Sign-in with your Email-Id A Email will be sent to your Registered E-mail to activate your account.

Candidates Email Confirmation:

You CANNOT send emails from localhost server. So when you create a new candidate account it will not send any emails. So you must go to database, find that user and set active=1 in order to make that account login. If you are testing on real server then you can uncomment the following code from adduser.php.

		// Send Email

			// $to = $email;

			// $subject = "E-Cards - Confirm Your Email Address";

			// $message = '
			
			// <html>
			// <head>
			// 	<title>Confirm Your Email</title>
			// <body>
			// 	<p>Click Link To Confirm</p>
			// 	<a href="yourdomain/verify.php?hash='.$hash.'">Verify Email</a>
			// 	<br>
			// 	<p>Or else click on this Link</p>
			// 	<a href="yourdomain/verify.php?hash='.$hash.'">yourdomain/verify.php?hash='.$hash.'</a>
			 		
			// </body>
			// </html>
			// ';

			// $headers[] = 'MIME-VERSION: 1.0';
			// $headers[] = 'Content-type: text/html; charset=iso-8859-1';
			// $headers[] = 'To: '.$to;
			// $headers[] = 'From: [email protected]';
			 //you add more headers like Cc, Bcc;

			// $result = mail($to, $subject, $message, implode("\r\n", $headers)); // \r\n will return new line. 

			// if($result === TRUE) {

			 	//If data inserted successfully then Set some session variables for easy reference and redirect to login
			// 	$_SESSION['registerCompleted'] = true;
			// 	header("Location: login.php");
		//	 	exit();

		//	 }

Make sure to change the mail ID {[email protected]} and {yourdomain} to the credentials you want. then comment the following code below from adduser.php.

$_SESSION['registerCompleted'] = true;
  		 	header("Location: login.php");
  		exit();

Along with adduser.php, When you are testing on real server go to updateforgotpassword and email_link.php to change the from address {[email protected]} and {yourdomain} to your email-id and your domain path.

QR Code

The QR right now will be pointing to "http://localhost/test/view-profile.php" . So you wont be able to load it, Go to dashboard.php and change the following code.

 <img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=http://localhost/test/view-profile.php?id=<?php echo $row['id_user']; ?>&choe=UTF-8" class="card-img" id="myImg" alt="QR Code"  style="float:right;margin-right:15px;"  />

possibly on line no:123 change http://localhost/test/ to the path where you have downloaded the code.

Also go to view-profile.php and change the same line of code at line no:110

QR Scanner

We have used a HTML5 QR Scanner which works with most of the browsers using webcam. credits to instascan https://github.com/schmich/instascan.

e-cards's People

Contributors

praneethavvari avatar mehaksachdeva20 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.