Give us the few lines before 26 as well.
Also, nice to see you using my tutorial and putting it to good use :p :D
Thanks for writing it Gary... I am hoping it will make this work, I really want this to look like the rest of my board.
Ok... here is 1-50 on the code
[PHP]<?php
/**
* $Id: index.php,v 1.20 2004/11/13 12:31:42 yrtimd Exp $
*/
/**
* Glossword - glossary compiler (http://glossword.info/dev/)
* © 2002-2004 Dmitry N. Shilnikov
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* (see `glossword/support/license.html' for details)
*/
/* ------------------------------------------------------- */
/**
* Website
*/
/* ------------------------------------------------------- */
if (!defined('IN_GW'))
{
define('IN_GW', true);
}
/* ------------------------------------------------------- */
/* Load configuration */
$sys['path_include'] = 'inc';
$sys['is_prepend'] = 1;
include_once('./db_config.php');
include_once($sys['path_include'] . '/config.inc.php');
/* ------------------------------------------------------- */
/* Append system settings */
$sys = array_merge($sys, getSettings());
/* --------------------------------------------------------
* mod_rewrite configuration
* ------------------------------------------------------- */
$oHtml = new gw_html;
$oHtml->setVar('ar_url_append', $sys['ar_url_append']);
$oHtml->setVar('is_htmlspecialchars', 0);
$oHtml->setVar('is_mod_rewrite', $sys['is_mod_rewrite']);
$oHtml->setVar('mod_rewrite_suffix', ',xhtml');
$oHtml->setVar('server_dir', $sys['server_dir']);
$oHtml->setVar('mod_rewrite_rule',
array('a=t' => '/a/d/q', 'a=term' => '/a/r/t,d', 'a=list' => '/a/d/p,w1,w2', 'a='.A_PRINT => '/a/q,t,d', 'a=srch' => '', '/a/t')
);
if (($sys['is_mod_rewrite']) && (!preg_match("/\.php/", REQUEST_URI)))
{
parse_str($oHtml->url_dir2str(REQUEST_URI), $_GET);
}[/PHP]