Skip to content

Instantly share code, notes, and snippets.

<?php
$tables_array = array();
$tables_array[] = array('table_db_name' => '_0_Identification', 'table_app_name' => '0. Identification');
$tables_array[] = array('table_db_name' => '_1_HouseholdMember', 'table_app_name' => '01. Household Members');
$tables_array[] = array('table_db_name' => '_2_Parcel_Details_Apcnf', 'table_app_name' => '2.0 Parcel Details');
$tables_array[] = array('table_db_name' => '_2_Plot_Apcnf', 'table_app_name' => '2.0.1 Plot Details');
$tables_array[] = array('table_db_name' => '_2_1_FarmerPlot', 'table_app_name' => '2.1 Information on all the land currently cultivating');
$tables_array[] = array('table_db_name' => '_3_1_FarmerPlotCrop', 'table_app_name' => '3.1 Crop wise seed, seedlings and baby plants');
$tables_array[] = array('table_db_name' => '_3_2_LabourForPreparation', 'table_app_name' => '3.2 Details on Labour and implements used in crop production');
2022-05-13 22:37:05.171 8353-30172/com.survey_apcnf D/OkHttp: --> POST https://ids.parishkaar.com/cceschedule/webservice/api/_0_identification
2022-05-13 22:37:05.171 8353-30172/com.survey_apcnf D/OkHttp: Content-Type: application/json; charset=UTF-8
2022-05-13 22:37:05.171 8353-30172/com.survey_apcnf D/OkHttp: Content-Length: 1332
2022-05-13 22:37:05.171 8353-30172/com.survey_apcnf D/OkHttp: Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYzZkNjhkNmEzZDZhNTFlYmZmY2U0Mjk3NjdlZDUzMmNlODE0ZmQ3NzViYmMzODFkMjNmZjc3NTg4ZTc5MzA2MjFlMjJjMTE3OTU0NDFjMjkiLCJpYXQiOjE2NTI0NTcwMjUsIm5iZiI6MTY1MjQ1NzAyNSwiZXhwIjoxNjgzOTkzMDI1LCJzdWIiOiI3Iiwic2NvcGVzIjpbXX0.Pay13pUdAJQeZTd4n-ye6UWp_o83_oSoJcmvDdGJYOZqfnWA1kUt88_hVou3gQYnF6BGX75eMHHzODFW4OZO5Kcq6LhVm4IbGKTpWyPQNKj9Fe4PrcwYcdseura97iecymgEX0O1L-CEd8shl2aApp-3D6GTRAWSvBO1Vn374fLaE2tu_xSfhsv0AI48_moopx_rkbSUFGWTXms7Yanocu083fejgCeMzfxPgZspnEyr1tiXXw1hFnJJrSRAqMA8dHDPo4NFW5L3TjauhTWw30WRbAuj2_fj3EV33c3BxE-gVFFsnOO9ciRNHgwRFTkIUwHLil6t_GvTVpJwn
@knaveenchand
knaveenchand / excel2post.php
Created May 4, 2022 06:18 — forked from ganmahmud/excel2post.php
Excel file (.csv) to WP post Plugin
<?php
add_action('admin_menu', 'excel2post_plugin_setup_menu');
function excel2post_plugin_setup_menu(){
add_menu_page('Shoppers Mag CSV Import Page', 'Shoppers Mag CSV Import', 'manage_options', 'csv-import', 'e2p', "dashicons-image-rotate-right", 2);
}
function e2p(){
/*
Theme Name: Twenty Twelve
Theme URI: http://wordpress.org/extend/themes/twentytwelve
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
/*
* Copyright (c) 2009 Simo Kinnunen.
* Licensed under the MIT license.
*
* @version 1.09i
*/
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.conv
@knaveenchand
knaveenchand / wp_nav_menu_twitter_bootstrap
Created January 13, 2013 05:08
To integrate wp_nav_menu into Twitter bootstrap, a custom walker function need to be adopted. This code helps in fixing the attributes, classes to the wp_nav_menu.
<?php
class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu {
21
function start_lvl( &$output, $depth ) {
//In a child UL, add the 'dropdown-menu' class
$indent = str_repeat( "\t", $depth );
$output .= "\n$indent<ul class=\"dropdown-menu\">\n";