Installing WP through a custom installer via iFrame (1 post)

  1. msolution
    Posted 6 years ago #

    im trying to install WP through a custom file, via an iFrame in the parent directory.

    my website at http://www.domain.com
    WP files in http://www.domain.com/demo/

    -> http://www.domain.com/install.php my installer.
    |--> has an iFrame => http://www.domain.com/demo/wp-custom-install.php

    it gets installed alright, but when i log in thru admin, via the pwd so provided, i am getting an error:

    You do not have sufficient permissions to access this page.

    the following is the cut down version of the code im using:
    [stripped out all validations]

    	define('WP_DEBUG', true);
    	define('WP_INSTALLING', true);
    	if( !isset($_GET['wp_pbb_call']) || $_GET['wp_pbb_call']!='create-blog') wp_die(".");
    	$DATA = '';
    	$tt = '';
    	$result = wp_install($_GET['blog_title'], 'admin', $_GET['blog_email'], $_GET['blog_public']);
    	extract($result, EXTR_SKIP);
    // html follows //

Topic Closed

This topic has been closed to new replies.

About this Topic