How to initialize s9y outside of s9y itself
Posted: Tue Jul 05, 2005 5:14 pm
I was working on a portal type page that would display a couple of posts from my s9y blog, and wrote the following code that worked with 8.1
Now that I have updated to 8.2, the first include of serendipity_config.inc.php now tries to redirect to the admin page.
Anyone have any other ideas how I can do this now?
Code: Select all
$serendipity_directory = '/var/www/localhost/htdocs/serendipity/';
define('S9Y_INCLUDE_PATH', $serendipity_directory);
include_once(S9Y_INCLUDE_PATH . 'serendipity_config.inc.php');
include_once(S9Y_INCLUDE_PATH . 'include/functions.inc.php');
serendipity_smarty_init();
$entries = serendipity_fetchEntries( null, true, 5 );
Anyone have any other ideas how I can do this now?