get_results("delete from ${table_prefix}options where option_name like 'lp_opt_%'"); $cache_settings = get_alloptions(); } ?> %s'; require_once 'LightPressOptions.php'; $lp_opts = new LightPressOptions(); if ($lp_opts->htaccess_changed) echo '

mod_rewrite rules saved

'; ?>

LightPress Console

critical === null) { ?>

You have not configured LightPress yet

Please check the folder where you have unpacked LightPress and set your installation type.



Testing (LP runs from its own URL, WP manages your blog's default URL)
Root (LP manages your blog's default URL, and syncs with WP options and .htaccess)

'; echo 'Change Installation Type'; echo '
'; echo ''; echo 'Testing (LP runs from its own URL, WP manages your blog\'s default URL)'; echo "
\n"; echo ''; echo 'Root (LP manages your blog\'s default URL, and syncs with WP options and .htaccess)'; echo "
\n"; echo ''; echo '
'; echo "\n"; if (get_option('lp_opt_install_type') == 'testing') { // output rewrite rules if we are in 'testing' mode echo '
'; echo 'Testing Installation Additional Steps'; echo '
    '; // config.php echo '
  1. edit ' . dirname(dirname(__FILE__)) . '/config.php so that it contains the following lines:'; echo '
    ';
            echo $lp_opts->getConfig();
            echo '
    '; echo '
  2. '; // public web folder echo '
  3. create a public web folder for LightPress'; if (strstr(get_option('lp_opt_url'), get_option('home')) === false) { echo ' (cannot detect the appropriate path as WP and LP URLs have different roots)'; } else { echo ' in '; echo dirname(dirname(dirname(dirname(dirname(__FILE__))))) . str_replace(get_option('home'), '', get_option('lp_opt_url')); echo ''; } // .htaccess echo '
  4. create the .htaccess file inside the LightPress public web folder, with the following content'; echo '
    ';
            
            require_once 'LightPressModRewrite.php';
            $lightpress_rewrite_helper =& new LightPressModRewrite();
            echo htmlentities($lightpress_rewrite_helper->buildHtaccess());
            
            echo '
    '; echo '
  5. '; // test blog echo '
  6. test your LightPress powered blog
  7. '; echo '
'; echo "
\n"; } else { // output rewrite rules if .htaccess is not writable echo '
'; echo 'Root Installation Additional Steps'; echo '
    '; // config.php echo '
  1. edit ' . dirname(dirname(__FILE__)) . '/config.php so that it contains the following lines:'; echo '
    ';
            echo $lp_opts->getConfig();
            echo '
    '; echo '
  2. '; // .htaccess require_once 'LightPressModRewrite.php'; $lightpress_rewrite_helper =& new LightPressModRewrite(); $lp_htaccess = dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . '.htaccess'; if (!is_file($lp_htaccess) || !is_writable($lp_htaccess)) { echo '
  3. create or modify ' . $lp_htaccess . ' if you are using Apache with mod_rewrite support so that it contains'; echo '
    ';
                echo "\n# BEGIN WordPress\n";
                echo htmlentities($lightpress_rewrite_helper->buildHtaccess());
                echo "\n# END WordPress\n";
                echo '
    '; echo '
  4. '; } // lighttpd /* echo '
  5. if you are using lighttpd, add the following rules to your configuration'; echo '
    ';
            echo htmlentities($lightpress_rewrite_helper->buildLightHttpd());
            echo '
    '; echo '
  6. '; */ echo '
'; echo "
\n"; } echo '
'; echo 'Reset LightPress Options'; echo '

All your existing LightPress Options will be removed from the database

'; echo '
' . "\n"; echo ''; echo '
'; echo ''; echo "
\n"; echo '

this screen is a placeholder and will change in the final release

'; ?>

Checking Required Options

Checking Secondary Options

We only check a few of them here

Checking plugins

plugin folder not found in the LightPress installation directory, please check the folder where you have install LightPress
'; } else if (!get_option('lp_opt_plugins')) { echo '
plugin options not set, please review and save default configuration
'; } else { echo '
plugins ok
'; } } ?>