Annulleret

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 $30.00

<?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;

}

}

}

Budget Range $30-50

Færdigheder: MySQL, PHP

Se mere: modifications to a website, Modifications to existing website, I need modifications to current Logo, ive bought a website need to design it, html coding for making website, html coding for making a website, does shopify website need coding, website need to be responsive, some edits to my website need it in 1 day, some edits to my website (need it in 1 day), coding making product page php, making modifications magento, making money coding html css, php coding site making, asp making modifications page, complete coding making point sales, coding integrate paypal website aspnet vbnet, coding integration paypal website aspnet vbnet, designed website need end help, website need password user, coldfusion website need help, website need video, commerce website need copy, hourly rate website design php coding, making online flash games multiplayer

Om arbejdsgiveren:
( 11 bedømmelser ) Richmond, Canada

Projekt-ID: #14787336

50 freelancere byder i gennemsnit $132 for dette job

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 Mere

$185 USD in 7 dage
(368 bedømmelser)
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 Mere

$200 USD in 4 dage
(204 bedømmelser)
7.2
$257 USD in 10 dage
(19 bedømmelser)
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 Mere

$257 USD in 3 dage
(52 bedømmelser)
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 Mere

$222 USD in 3 dage
(57 bedømmelser)
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 Mere

$48 USD in 2 dage
(150 bedømmelser)
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 –[url removed, login to view] Mere

$200 USD in 3 dage
(64 bedømmelser)
6.6
techwelfare

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

$200 USD in 12 dage
(136 bedømmelser)
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 dage
(133 bedømmelser)
6.3
$50 USD in 3 dage
(86 bedømmelser)
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 på 1 dag
(55 bedømmelser)
5.5
$155 USD in 3 dage
(44 bedømmelser)
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 [url removed, login to view] Mere

$250 USD in 3 dage
(51 bedømmelser)
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 Mere

$30 USD in 3 dage
(59 bedømmelser)
5.8
$155 USD in 3 dage
(66 bedømmelser)
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 Mere

$156 USD in 10 dage
(14 bedømmelser)
5.7
$30 USD in 3 dage
(78 bedømmelser)
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, [url removed, login to view] [url removed, login to view] Relevant Skills and Experi Mere

$150 USD in 3 dage
(73 bedømmelser)
6.0
WebXcellance

Hello Sir, please check my recent work [url removed, login to view] [url removed, login to view] [url removed, login to view] Thanks. Relevant Skills and Experience PHP Proposed Milestones $97 USD - Proje Mere

$97 USD in 3 dage
(54 bedømmelser)
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, Mere

$155 USD in 6 dage
(49 bedømmelser)
5.7