Annulé

Making Coding Modifications To Website

Need some to do some minor coding. At present the system queries a marketplace to activate, verify the license, I want to add additional code to verify license that are bought on the website. This is what the code looks like right now. I need someone to add the code that will

1) Check the following table ppstmeta for the license key. If there is no key then it will say invalid. If there is a key it will try to insert the key into the database connect.

2) If there is a key in the database “connect” it will say “This license key is currently activated on another site”

3) If there is no key in the database connect, it will insert the key into database “connect”.

There might be other changes that have to be made. Also you should backup all files before you make changes. I have attached [url removed, login to view] (the code is shown below. [url removed, login to view] code that will be useful into making queries into postmeta table

Budget $[url removed, login to view]

<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class Main extends CI_Controller {

protected $package_dir = '../ci-folder/product-packages/';

function __construct() {

parent::__construct();

$this->load->model('license_mdl');

$this->load->helper('download');

}

public function index() {

redirect('[url removed, login to view]');

}

public function license_verify( $key ) {

$this->load->database();

$verify = $this->envato_purchase( $key );

// Verify Envato purchase code

if ($verify) {

// Check DB for the key

$used = $this->license_mdl->where( 'code', $key )->get();

if ($used) {

$result = array(

'status' => FALSE,

'message' => "This license key is currently activated on another site."

);

}

else {

// Saved key to the DB and return true

$this->license_mdl->insert( array('code' => $key) );

$result = array(

'status' => TRUE,

'message' => "Valid License Key"

);

}

}

else {

$result = array(

'status' => FALSE,

'message' => "This license key is invalid."

);

}

// Return json result

$this->output

->set_content_type('application/json')

->set_output(json_encode( $result ));

}

public function license_deactivate( $key ) {

$this->load->database();

// Get the Code ID

$activated = $this->license_mdl->where( 'code', $key )->get();

// Delete the Code

$this->license_mdl->delete( $activated['id'] );

// Return json result

$result = array(

'status' => TRUE

);

$this->output

->set_content_type('application/json')

->set_output(json_encode( $result ));

}

public function download_woomobify( $key ) {

// Verify license and download file

$file_name = "" . $this->package_dir . "[url removed, login to view]";

force_download(''.$file_name.'', NULL);

}

/**

* Verify a purchase code using envato API

*/

private function envato_purchase($code) {

$this->load->helpers('curl');

$username = 'danthecoder';

$api_key = 'q3y7nynk7326uryiw0z896j47r4gm5za';

$verify_url = "[url removed, login to view]". $username ."/". $api_key ."/verify-purchase:". $code .".json";

$result = curl_api($verify_url);

if( isset($result['verify-purchase']['buyer']) ) {

return TRUE;

}

else {

return FALSE;

}

}

}

Compétences : MySQL, PHP

Voir plus : need modifications current logo, html coding making website, shopify website need coding, website need responsive, edits website need day, making modifications magento, php coding site making, asp making modifications page, coldfusion website need help, website need video, commerce website need copy, making fitness site, check php coding errors, lightbox modifications, making growing flower flash

Concernant l'employeur :
( 11 commentaires ) Richmond, Canada

N° du projet : #14787336

50 freelance ont fait une offre moyenne de 132 $ pour ce travail

mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks Relevant Skills and Experience MySQL, PHP Plus

185 $ USD en 7 jours
(368 Commentaires)
8.1
mascotindia123

Hey Friend, Myself having has 10 + years experience of web site development. Expert in Custom programming in php / Mysql / Jquery / Wordpress/ Joomla / OSC / Magento /OpenCart / Android / Mobile development / iPh Plus

200 $ USD en 4 jours
(204 Commentaires)
7.2
257 $ USD en 10 jours
(19 Commentaires)
6.8
prashushinde9

************************ API EXPERT ******************************* Hello, It's a pleasure to let you know that I've worked on several APIs Integrations before. All I am curious to know about your this project in Plus

257 $ USD en 3 jours
(52 Commentaires)
7.0
bhaveshkhatarani

I have a skill in PHP, Laravel, Codeigniter, wordpress, Mangento, Jquery, bootstrap, HTML5, AJAX. you can check my profile regarding our past work and reviews. Following are recent works Relevant Skills and Experien Plus

222 $ USD en 3 jours
(57 Commentaires)
6.6
yogeshssanwal

Greetings from Webs Cybernetics!! My name is Yogesh Sanwal, Can you please come over chat to discuss further regarding the project as I would love to hear more about the idea/concept? Thanking you! Stay tuned, I'm Plus

48 $ USD en 2 jours
(150 Commentaires)
6.6
spiretech

Hello, A satisfied client is like a billion dollar smile to us!!! I have gone through the post and yes; I will help you for sure to complete the project successfully on time and with quality. Past Work –www.allstage Plus

200 $ USD en 3 jours
(64 Commentaires)
6.6
techwelfare

Hi Let's clarify the requirement in details also if you want us to share our previous work let us know.we have a few questions about your project, please send us message so that we can discuss more. Thanks & regards Plus

200 $ USD en 12 jours
(136 Commentaires)
6.9
dustafo

I can get this done for you right away just let me know when you're ready to start.

82 $ USD en 0 jours
(133 Commentaires)
6.3
50 $ USD en 3 jours
(86 Commentaires)
6.2
WebSolutionssoft

i checked your given code and provided links of ,php files i am ready for it Relevant Skills and Experience wordpres php html css Proposed Milestones $55 USD - default

55 $ USD en 1 jour
(55 Commentaires)
5.5
155 $ USD en 3 jours
(44 Commentaires)
5.8
Meenutechnology

Hi , Greetings! from Meenutech We have read and understood your need. We have work with the similar type of project we are confident about the work Relevant Skills and Experience Our previous work http://travel.re Plus

250 $ USD en 3 jours
(51 Commentaires)
5.6
Brightinfotech3

I have more than 5 year experience in web development with PHP, as well as designing.I read your job description. you are looking good developer who has good experience in Development Relevant Skills and Experience Plus

30 $ USD en 3 jours
(59 Commentaires)
5.8
155 $ USD en 3 jours
(66 Commentaires)
6.1
hiretechexperts

Hi, Have gone through the details provided , but still need to clarify few things before proceeding. So please send a message when you are available to discuss. For now I am putting a placeholder bid amount as the am Plus

156 $ USD en 10 jours
(14 Commentaires)
5.7
30 $ USD en 3 jours
(78 Commentaires)
6.1
Brijrajs76

hello i am with 7 years experience in PHP, angular node and mongodb WordPress, WP pluagins,. expertise in the 3rd party API , shopping engines, https://www.jumia.co.tz/ https://yourdost.com Relevant Skills and Experi Plus

150 $ USD en 3 jours
(73 Commentaires)
6.0
WebXcellance

Hello Sir, please check my recent work http://hlmlogistics.co.in/ http://qualityofficeinteriors.com/Webxtest http://gharkiservices.com/ Thanks. Relevant Skills and Experience PHP Proposed Milestones $97 USD - Proje Plus

97 $ USD en 3 jours
(54 Commentaires)
5.6
sayootech

Hi, “Please give concern to our portfolios as they fit as per your description.” I am Lipika & I have gone through your project requirements for Build a websites. I have strong knowledge in { Website Design, PHP, Plus

155 $ USD en 6 jours
(49 Commentaires)
5.7