<?php

/*
# ---------------------------------------------------------
# COPY MAXMIND LICENSE KEY TO TELEPHONE VERIFICATION PLUGIN
# ---------------------------------------------------------
*/

$query = "SELECT value FROM `setting` WHERE name = 'plugin_maxmind_MaxMind License Key'";
$result = mysql_query($query) or die("ERROR in query: $query");
list($maxmindLicense) = mysql_fetch_row($result);
$maxmindLicense = mysql_real_escape_string($maxmindLicense);

$query = "INSERT INTO `setting` (id, name, value, value_alternate, description, type, isrequired, istruefalse, istextarea, issmalltextarea, isfromoptions, myorder, helpid, plugin, ispassword, ishidden) VALUES (NULL, 'plugin_maxmindphone_MaxMind License Key', '$maxmindLicense', '', 'Enter your MaxMind License Key here.<br>You can obtain a license at <br><a href=http://www.maxmind.com/app/ccv_buynow?rId=clientexec target=_blank>http://www.maxmind.com/app/ccv_buynow</a>', 16, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)";
$result = mysql_query($query) or die("ERROR in query: $query");

?>
