İptal Edildi

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;

}

}

}

Beceriler: MySQL, PHP

Daha fazlasını görün: 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

İşveren Hakkında:
( 11 değerlendirme ) Richmond, Canada

Proje NO: #14787336

50 freelancer bu iş için ortalamada 132$ teklif veriyor

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 Daha fazlası

in 7 gün içinde185$ USD
(368 Değerlendirme)
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 Daha fazlası

in 4 gün içinde200$ USD
(204 Değerlendirme)
7.2
in 10 gün içinde257$ USD
(19 Değerlendirme)
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 Daha fazlası

in 3 gün içinde257$ USD
(52 Değerlendirme)
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 Daha fazlası

in 3 gün içinde222$ USD
(57 Değerlendirme)
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 Daha fazlası

in 2 gün içinde48$ USD
(150 Değerlendirme)
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 Daha fazlası

in 3 gün içinde200$ USD
(64 Değerlendirme)
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 Daha fazlası

in 12 gün içinde200$ USD
(136 Değerlendirme)
6.9
dustafo

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

in 0 gün içinde82$ USD
(133 Değerlendirme)
6.3
in 3 gün içinde50$ USD
(86 Değerlendirme)
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

1 gün içinde 55$ USD
(55 Değerlendirme)
5.5
in 3 gün içinde155$ USD
(44 Değerlendirme)
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 Daha fazlası

in 3 gün içinde250$ USD
(51 Değerlendirme)
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 Daha fazlası

in 3 gün içinde30$ USD
(59 Değerlendirme)
5.8
in 3 gün içinde155$ USD
(66 Değerlendirme)
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 Daha fazlası

in 10 gün içinde156$ USD
(14 Değerlendirme)
5.7
in 3 gün içinde30$ USD
(78 Değerlendirme)
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 Daha fazlası

in 3 gün içinde150$ USD
(73 Değerlendirme)
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 Daha fazlası

in 3 gün içinde97$ USD
(54 Değerlendirme)
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, Daha fazlası

in 6 gün içinde155$ USD
(49 Değerlendirme)
5.7