separated admin module

This commit is contained in:
Harald Milz 2019-03-27 13:49:02 +01:00
parent 88f11001a4
commit 1e290a3af1

20
gcal-import-admin.php Normal file
View file

@ -0,0 +1,20 @@
/**
* Display the admin table
* may go to a separate file eventually
*
* @since 0.1.0
*
*/
function gcal_import_admin()
{
global $wpdb;
$table = $wpdb->prefix.GCAL_TABLE;
// we MUST protect queries,
// see https://codex.wordpress.org/Class_Reference/wpdb#Protect_Queries_Against_SQL_Injection_Attacks
// $sql = $wpdb->prepare( 'INSERT INTO $table ... ' , value_parameter[, value_parameter ... ] );
}