From: garvinhicking Date: Mon, 14 Aug 2006 08:55:30 +0000 (+0000) Subject: Prepare release X-Git-Tag: 1.1~138 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8b3efc67812dcc0abbdb6f81211c3692f5913695;p=s9y.git Prepare release --- diff --git a/docs/NEWS b/docs/NEWS index 4a78bb4..386d713 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -1,6 +1,6 @@ # $Id$ -Version 1.1-alpha7() +Version 1.1-beta1 (August 14th, 2006) ------------------------------------------------------------------------ * Fix multiple loading of $serendipity['smarty'] theme options when diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index db46b68..d2b429a 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -2,6 +2,12 @@ # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) # All rights reserved. See LICENSE file for licensing details +if (defined('S9Y_FRAMEWORK')) { + return; +} + +@define('S9Y_FRAMEWORK', true); + if (!headers_sent()) { session_start(); } @@ -18,13 +24,10 @@ if (IS_installed === true && !defined('IN_serendipity')) { define('IN_serendipity', true); } -include_once(S9Y_INCLUDE_PATH . 'include/compat.inc.php'); +include(S9Y_INCLUDE_PATH . 'include/compat.inc.php'); // The version string -$serendipity['version'] = '1.0.1'; - -// Name of folder for the default theme -$serendipity['defaultTemplate'] = 'carl_contest'; +$serendipity['version'] = '1.1-beta1'; // Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'. $serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true); @@ -64,8 +67,16 @@ if (!isset($serendipity['fetchLimit'])) { $serendipity['fetchLimit'] = 15; } +if (!isset($serendipity['RSSfetchLimit'])) { + $serendipity['RSSfetchLimit'] = 15; +} + +if (!isset($serendipity['mediaProperties'])) { + $serendipity['mediaProperties'] = 'DPI;COPYRIGHT;TITLE;COMMENT1:MULTI;COMMENT2:MULTI'; +} + if (!isset($serendipity['use_PEAR'])) { - $serendipity['use_PEAR'] = false; + $serendipity['use_PEAR'] = true; } // Should IFRAMEs be used for previewing entries and sending trackbacks? @@ -74,6 +85,9 @@ $serendipity['use_iframe'] = true; /* Default language for autodetection */ $serendipity['autolang'] = 'en'; +/* Name of folder for the default theme */ +$serendipity['defaultTemplate'] = 'carl_contest'; + /* Availiable languages */ $serendipity['languages'] = array('en' => 'English', 'de' => 'German', @@ -103,11 +117,12 @@ $serendipity['languages'] = array('en' => 'English', 'cn' => 'Simplified Chinese (UTF-8)', 'ja' => 'Japanese', 'ko' => 'Korean', + 'sa' => 'Arabic', 'ta' => 'Tamil'); /* Available Calendars */ $serendipity['calendars'] = array('gregorian' => 'Gregorian', - 'jalali-utf8' => 'Jalali (utf8)'); + 'persian-utf8' => 'Persian (utf8)'); /* * Load main language file @@ -135,19 +150,35 @@ if ( !defined('IN_installer') && IS_installed === false ) { serendipity_die(sprintf(SERENDIPITY_NOT_INSTALLED, 'serendipity_admin.php')); } -// Check whether local or global PEAR should be used. You can put a -// $serendipity['use_PEAR'] = true; -// in your serendipity_config_local.inc.php file to enable this. -// The required PEAR (and other) packages are mentioned in the file -// bundled-libs/.current_version -$old_include = @ini_get('include_path'); -if (@ini_set('include_path', $old_include . PATH_SEPARATOR . $serendipity['serendipityPath'] . PATH_SEPARATOR . $serendipity['serendipityPath'] . 'bundled-libs/') && $serendipity['use_PEAR']) { - @define('S9Y_PEAR', true); +/* Do the PEAR dance. If $serendipity['use_PEAR'] is set to FALSE, Serendipity will first put its own PEAR include path. + By default, a local PEAR will be used. */ +if (function_exists('get_include_path')) { + $old_include = @get_include_path(); +} else { + $old_include = @ini_get('include_path'); +} + + +$new_include = ($serendipity['use_PEAR'] ? $old_include . PATH_SEPARATOR : '') + . S9Y_INCLUDE_PATH . 'bundled-libs/' . PATH_SEPARATOR + . S9Y_INCLUDE_PATH . 'bundled-libs/Smarty/libs/' . PATH_SEPARATOR + . $serendipity['serendipityPath'] . PATH_SEPARATOR + . (!$serendipity['use_PEAR'] ? $old_include . PATH_SEPARATOR : ''); + +if (function_exists('set_include_path')) { + $use_include = @set_include_path($new_include); +} else { + $use_include = @ini_set('include_path', $new_include); +} + +if ($use_include) { + @define('S9Y_PEAR', true); @define('S9Y_PEAR_PATH', ''); } else { @define('S9Y_PEAR', false); @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/'); } +/* PEAR path setup inclusion finished */ if (defined('IN_installer') && IS_installed === false) { $serendipity['lang'] = $serendipity['autolang']; @@ -173,27 +204,33 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/se $local_config = S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php'; } -if (is_readable($local_config)) { - include_once($local_config); -} else { - serendipity_die(sprintf(INCLUDE_ERROR, $local_config)); +if (!is_readable($local_config)) { + $serendipity['lang'] = 'en'; + include(S9Y_INCLUDE_PATH . 'include/lang.inc.php'); + serendipity_die(sprintf(INCLUDE_ERROR . '
' . FILE_CREATE_YOURSELF, $local_config)); } +include($local_config); + define('IS_up2date', version_compare($serendipity['version'], $serendipity['versionInstalled'], '<=')); /* * Include main functions */ -include_once(S9Y_INCLUDE_PATH . 'include/functions.inc.php'); +include(S9Y_INCLUDE_PATH . 'include/functions.inc.php'); -if (serendipity_FUNCTIONS_LOADED!== true) { - serendipity_die(sprintf(INCLUDE_ERROR, 'include/functions.inc.php')); +if (serendipity_FUNCTIONS_LOADED !== true) { + $serendipity['lang'] = 'en'; + include(S9Y_INCLUDE_PATH . 'include/lang.inc.php'); + serendipity_die(sprintf(INCLUDE_ERROR . '
' . FILE_CREATE_YOURSELF, 'include/functions.inc.php')); } /* * Attempt to connect to the database */ if (!serendipity_db_connect()) { + $serendipity['lang'] = 'en'; + include(S9Y_INCLUDE_PATH . 'include/lang.inc.php'); serendipity_die(DATABASE_ERROR); } @@ -307,7 +344,6 @@ if (isset($_SESSION['serendipityUser'])) { if (isset($_SESSION['serendipityEmail'])) { $serendipity['email'] = $_SESSION['serendipityEmail']; } - serendipity_plugin_api::hook_event('frontend_configure', $serendipity); /* vim: set sts=4 ts=4 expandtab : */