You appear to be a bot. Output may be restricted
Description
Dialog to discover which site to clone and parameters to use
Usage
oik_clone_source_site();
Parameters
Returns
void
TO DO
Cache the data when we're talking to a remote site
TO DO
Implement different levels of Authentication: Basic, OAuth1 and Custom (e.g. oik-plugins authentication )
TO DO
Implement the page using tabs – so that MultiSite, WP-API and File import are separate pages.
Source
File name: oik-clone/admin/oik-clone-wp-api.php
Lines:
1 to 39 of 39
function oik_clone_source_site() { global $blog_urls; p( "Choose the source site to compare against." ); //$source = bw_array_get( $_REQUEST, "_oik_clone_source", null ); $source = oik_clone_source(); $timeout = bw_array_get( $_REQUEST, "_oik_api_timeout", null ); bw_form(); stag( "table" ); bw_textfield( "_oik_clone_source", 80, "Site URL", stripslashes( $source ) ); if ( is_multisite() ) { //p( "Or select a site from the list" ); oik_require( "admin/oik-clone-ms.php", "oik-clone" ); $blog_urls = bw_get_blog_urls(); bw_select( "_oik_ms_source", "Source blog", $oik_ms_source, array( '#options' => $blog_urls, '#optional' => true ) ); } else { //p( "Doh!" ); } bw_textfield( "_oik_api_timeout", 4, "Timeout (secs)", stripslashes( $timeout )); etag( "table" ); p( isubmit( "_oik_clone_list", "List content", null, "button-primary" ) ); //h3( "Basic authentication" ); //bw_textfield( "User name" ); //bw_textfield( "Password" ); //h3( "OAuth authentication" ); //bw_textfield( "thingummy" ); //p( "tbc" ); //h3( "oik-plugins authentication" ); etag( "form" ); }