Cerrado

Making Coding Modifications To Website -- 2

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. I need someone to add the code that will. The code you are working in written in codeigniter framework, but you will have to access a database located in a wordpress database.

1) Check the following table postmeta for the license key. This is in the wordpress database. 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. This database is not part of the wordpress database

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 $50.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;

}

}

}

Habilidades: MySQL, PHP

Ver más: html/js: making webpages interactive answers, how to build an interactive website from scratch, interactive web page templates, how to make an interactive website using javascript, how to make an interactive website for free, interactive web page example, website using javascript examples, make an interactive website codecademy, how to research to determine the need of a particular product, i need someone to search for movie names through a website visit the link get the embed code and submit it on my website i need , i need someone to design website 2, i need someone to design website -- 2, i need a website for my company it has to very simple need 45 different pages homecontact about uscareer etc i need s, i need a website for my company it has to very simple need 4-5 different pages homecontact about uscareer ,etc i need s,, i need a new website i need you to design and build a landing page want a simple landing page with a

Información del empleador:
( 11 comentarios ) Richmond, Canada

ID de proyecto: #14891843

21 los freelancers están ofertando un promedio de $49 para este trabajo.

A2Design

Hello, We are a team of 30 developers based in Russia. We specialise in: PHP & PHP frameworks, WordPress & Woocommerce, Opencart, Magento, API development, HTML5, CSS, JavaScript, Bootstrap, MySQL, etc. Get to kno Más

$350 USD en 3 días
(99 comentarios)
8.5
richestuser

Hey I have successfully completed Codeigniter project .Please have a attached website link : [url removed, login to view] [url removed, login to view] [url removed, login to view] Please contact to discuss more.. Relevant Skills Más

$35 USD en 1 día
(173 comentarios)
6.9
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 Más

$30 USD en 2 días
(137 comentarios)
6.9
$25 USD en 1 día
(101 comentarios)
6.1
suraj2

similar experience Relevant Skills and Experience similar experience Proposed Milestones $30 USD - milestone

$30 USD en 1 día
(45 comentarios)
5.6
ankur1024

Hi, Can i talk to you..? i have checked your requirements regarding some minor coding changes. I'm ready to do it,because i have 7 + years exp. in Codeigniter with all php frameworks and also expert in Javascr Más

$75 USD en 2 días
(38 comentarios)
4.9
tsebro

Hello! I am professional Web Developer and co-owner of a web-development team with 17 years experience in custom PHP/SQL Development, I can do some minor coding and I can do this work fast and clean sa your instruc Más

$49 USD en 1 día
(2 comentarios)
4.5
imagicaworld

Hello Relevant Skills and Experience please have a look at our portfolio link:- [url removed, login to view] Proposed Milestones $25 USD - D

$25 USD en 1 día
(16 comentarios)
4.4
cuibeauty

Dear sir Thank you for your description,I have checked your project and understood all your requirements So I can help you Relevant Skills and Experience I have already developed many sites so that I have many top sk Más

$25 USD en 1 día
(3 comentarios)
4.6
oswebdevelopers

Hi, This is Jorden. I am available to work on this, right now. Would be great if you can initiate a chat with me, Looking forward to hear back from you. Thanks Relevant Skills and Experience I have hands on PHP/Frame Más

$70 USD en 1 día
(19 comentarios)
4.0
nbprince

Hi, dear [url removed, login to view] for posting your project and your attention, I read your project carefully. I can carry out your task with the lowest budgets than anybody. I have the WP and HTML5/Mobile Relevant Skills and E Más

$50 USD en 1 día
(16 comentarios)
4.2
sonukalra

Hi, Can you share me your Codeigniter website URL..? I know you need some minor coding. I have 10+ years Exps. in Codeigniterand all PHP framworks with javascript/jQ/Css3. [url removed, login to view] htt Más

$40 USD en 1 día
(8 comentarios)
3.5
$20 USD en 1 día
(6 comentarios)
2.9
originitsolution

Dear Sir, I am precisely fit for this job. I can do this [url removed, login to view] discuss with me in chat. warm regards Binod Relevant Skills and Experience We have worked on more than 200 websites / web portals , Apps for IP Más

$25 USD en 1 día
(4 comentarios)
2.8
JinYongbin

I have a lot of experinece in development of project like what you want. If you hire me, I will do my best to develop your project wonderfully in a short time! Relevant Skills and Experience php,html5, mysql, CSS, jq Más

$25 USD en 1 día
(2 comentarios)
2.8
poojamishra13

A proposal has not yet been provided

$30 USD en 2 días
(12 comentarios)
2.6
santazap

Need to create second instance of the database for Wordpress db in order to edit the WP table with get_meta_terms function. That has been changed a bit since last WP update. Available right now! Relevant Skills and Ex Más

$30 USD en 0 días
(1 comentario)
0.6
$25 USD en 1 día
(0 comentarios)
0.0
ManrajParmar

I have gone through all your code that you have posted and surely will complete it by the time. I am experienced enough to complete these kinds of tasks. Relevant Skills and Experience Please have look at my recet C Más

$45 USD en 1 día
(0 comentarios)
0.0
josmbogo

I am very excited to work with you and I am a really good php programmer and I will help you with what ever other projects or repairs you need. Relevant Skills and Experience PHP Expert Developer, JavaScript, HTML5, C Más

$10 USD en 2 días
(0 comentarios)
0.0