Cancelado

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;

}

}

}

Habilidades: MySQL, PHP

Ver mais: 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

Acerca do Empregador:
( 11 comentários ) Richmond, Canada

ID do Projeto: #14787336

50 freelancers estão ofertando em média $132 para este trabalho

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 Mais

$185 USD in 7 dias
(368 Comentários)
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 Mais

$200 USD in 4 dias
(204 Comentários)
7.2
$257 USD in 10 dias
(19 Comentários)
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 Mais

$257 USD in 3 dias
(52 Comentários)
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 Mais

$222 USD in 3 dias
(57 Comentários)
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 Mais

$48 USD in 2 dias
(150 Comentários)
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 Mais

$200 USD in 3 dias
(64 Comentários)
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 Mais

$200 USD in 12 dias
(136 Comentários)
6.9
dustafo

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

$82 USD in 0 dias
(133 Comentários)
6.3
$50 USD in 3 dias
(86 Comentários)
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 em 1 dia
(55 Comentários)
5.5
$155 USD in 3 dias
(44 Comentários)
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 Mais

$250 USD in 3 dias
(51 Comentários)
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 Mais

$30 USD in 3 dias
(59 Comentários)
5.8
$155 USD in 3 dias
(66 Comentários)
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 Mais

$156 USD in 10 dias
(14 Comentários)
5.7
$30 USD in 3 dias
(78 Comentários)
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 Mais

$150 USD in 3 dias
(73 Comentários)
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 Mais

$97 USD in 3 dias
(54 Comentários)
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, Mais

$155 USD in 6 dias
(49 Comentários)
5.7