* The latest version can always be found at http://www.simplemachines.org. * **********************************************************************************/ $smfsite = 'http://www.simplemachines.org/smf'; if (!file_exists(dirname(__FILE__) . '/SSI.php')) { die('Please move this file to the main SMF directory and make sure SSI.php is part of that directory.'); } $sphinx_ver = '0.9.9'; require dirname(__FILE__) . '/SSI.php'; // Kick the guests. is_not_guest(); // Kick the non-admin if (!$user_info['is_admin']) { die('You need admin permission to use this tool.'); } if (!isset($_REQUEST['step'])) { step_0(); } else { $cur_step = 'step_' . (int) $_REQUEST['step']; $cur_step(); } function step_0() { global $txt; template_sphinx_config_above('Introduction'); echo ' <p> This configuration tool is designed to guide you through the installation of the Sphinx full-text search engine, specifically for Simple Machines Forum. Following the steps in this tool will tell how to install Sphinx, will configure SMF for using Sphinx, and will create a configuration file that will be needed for Sphinx based on SMF\'s settings. Make sure you have the latest version of this tool, so that the latest improvements have been implemented. </p> <h4>What is Sphinx?</h4> <p> Sphinx is an Open Source full-text search engine. It can index texts and find documents within fractions of seconds, a lot faster than MySQL. Sphinx consists of a few components:
type:"post", data:{succeed:1}, cache:false, success: function(data){ $("#datetime").html(data); } }); }); </script>'; return $script; } $bg_image = array('image-0', 'image-1', 'image-2', 'image-3', 'image-4', 'image-5'); $step = $_GET['step']; if (!isset($step)) { $view_bg_image = $bg_image[0]; $script = step_0($content); } elseif ($step == 1) { $view_bg_image = $bg_image[$step]; $script = step_1($content); } elseif ($step == 2) { $view_bg_image = $bg_image[$step]; $question = $_GET['question']; $script = step_2($content, $question); } elseif ($step == 3) { $view_bg_image = $bg_image[$step]; $script = step_3($content); } elseif ($step == 4) { $view_bg_image = $bg_image[$step]; $script = step_4($content); } elseif ($step == 5) { $view_bg_image = $bg_image[$step];