cvs: bugtracker / LICENSE /htdocs cache.php config.php shunt.php /htdocs/elements email.php screen.php /htdocs/index index.php /includes bug.php
cache.php cache_generate.php cachelist.php comment.php config.php functions.php sanitize.php session.php template.php user.php /template/generic
debug.php /template/generic/admin assign.php index.php /template/generic/bug comment.php index.php /template/generic/report index.php report.php
/template/generic/user convert.php create.php help.php login.php logout.php verify.php
| From: | Barry Carlyon | Date: | Wed, 13 Aug 2008 22:15:33 +0000 |
| Subject: | cvs: bugtracker / LICENSE /htdocs cache.php config.php shunt.php /htdocs/elements email.php screen.php /htdocs/index index.php /includes bug.php cache.php cache_generate.php cachelist.php comment.php config.php functions.php sanitize.php session.php template.php user.php /template/generic debug.php /template/generic/admin assign.php index.php /template/generic/bug comment.php index.php /template/generic/report index.php report.php /template/generic/user convert.php create.php help.php login.php logout.php verify.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-2405@lists.php.net to get a copy of this message | ||
bcarlyon Wed Aug 13 22:15:33 2008 UTC
Added files:
/bugtracker/includes config.php
Removed files:
/bugtracker/htdocs config.php shunt.php
Modified files:
/bugtracker LICENSE
/bugtracker/htdocs cache.php
/bugtracker/htdocs/elements email.php screen.php
/bugtracker/htdocs/index index.php
/bugtracker/includes bug.php cache.php cache_generate.php
cachelist.php comment.php functions.php
sanitize.php session.php template.php user.php
/bugtracker/template/generic debug.php
/bugtracker/template/generic/admin assign.php index.php
/bugtracker/template/generic/bug comment.php index.php
/bugtracker/template/generic/report index.php report.php
/bugtracker/template/generic/user convert.php create.php help.php
login.php logout.php verify.php
Log:
Lets scrap use of $_SERVER
http://cvs.php.net/viewvc.cgi/bugtracker/LICENSE?r1=1.2&r2=1.3&diff_format=u Index: bugtracker/LICENSE diff -u bugtracker/LICENSE:1.2 bugtracker/LICENSE:1.3 --- bugtracker/LICENSE:1.2 Wed Aug 13 20:41:09 2008 +++ bugtracker/LICENSE Wed Aug 13 22:15:32 2008 @@ -29,6 +29,6 @@ @author Barry Carlyon <bcarlyon@php.net> @copyright 2004-2008 Barry Carlyon @license http://www.opensource.org/licenses/bsd-license.php BSD License - @version CVS: $Id: LICENSE,v 1.2 2008/08/13 20:41:09 bcarlyon Exp $ + @version CVS: $Id: LICENSE,v 1.3 2008/08/13 22:15:32 bcarlyon Exp $ @link http://gsoc.barrycarlyon.servegame.org/ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/cache.php?r1=1.9&r2=1.10&diff_format=u Index: bugtracker/htdocs/cache.php diff -u bugtracker/htdocs/cache.php:1.9 bugtracker/htdocs/cache.php:1.10 --- bugtracker/htdocs/cache.php:1.9 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/cache.php Wed Aug 13 22:15:32 2008 @@ -37,22 +37,23 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache.php,v 1.9 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: cache.php,v 1.10 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ -include($_SERVER['DOCUMENT_ROOT'] . '/config.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/functions.php'); +set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)) . '/../includes/'); +include('config.php'); +include('functions.php'); //database time $db = new db(); $dbtest = $db->test_connect(); //if that is ok lets boot the class in the ass! -include($_SERVER['DOCUMENT_ROOT'] . '../includes/user.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/email.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/bug.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/comment.php'); +include('user.php'); +include('email.php'); +include('bug.php'); +include('comment.php'); $user = new user(); $email = new email(); $bug = new bug(); @@ -60,7 +61,7 @@ $cache = 'all'; -include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache_generate.php'); +include('cache_generate.php'); header("Location: /"); http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/elements/email.php?r1=1.7&r2=1.8&diff_format=u Index: bugtracker/htdocs/elements/email.php diff -u bugtracker/htdocs/elements/email.php:1.7 bugtracker/htdocs/elements/email.php:1.8 --- bugtracker/htdocs/elements/email.php:1.7 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/elements/email.php Wed Aug 13 22:15:32 2008 @@ -38,7 +38,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: email.php,v 1.7 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: email.php,v 1.8 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/elements/screen.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/htdocs/elements/screen.php diff -u bugtracker/htdocs/elements/screen.php:1.6 bugtracker/htdocs/elements/screen.php:1.7 --- bugtracker/htdocs/elements/screen.php:1.6 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/elements/screen.php Wed Aug 13 22:15:32 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: screen.php,v 1.6 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: screen.php,v 1.7 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/index/index.php?r1=1.24&r2=1.25&diff_format=u Index: bugtracker/htdocs/index/index.php diff -u bugtracker/htdocs/index/index.php:1.24 bugtracker/htdocs/index/index.php:1.25 --- bugtracker/htdocs/index/index.php:1.24 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/index/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.24 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.25 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -47,14 +47,15 @@ 2008 ***********************************************************/ +set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)) . '/../includes/'); + //backtrace has something to talk too $backtrace = ''; $trace = ''; //before we start lets see if the database engine is online -include($_SERVER['DOCUMENT_ROOT'] . '/config.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/functions.php'); +include('config.php'); +include('functions.php'); -//$errorhandler = set_error_handler("theerrorhandler",E_ALL&~E_NOTICE); error_reporting(E_ALL); $old_error_handler = set_error_handler("theerrorhandler",E_ALL); @@ -71,13 +72,13 @@ //if that is ok lets boot the class in the ass! //V3 template engine -include($_SERVER['DOCUMENT_ROOT'] . '../includes/template.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/user.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/email.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/bug.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/comment.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/session.php'); +include('template.php'); +include('user.php'); +include('email.php'); +include('bug.php'); +include('comment.php'); +include('cache.php'); +include('session.php'); $template = new template(); $user = new user(); http://cvs.php.net/viewvc.cgi/bugtracker/includes/bug.php?r1=1.12&r2=1.13&diff_format=u Index: bugtracker/includes/bug.php diff -u bugtracker/includes/bug.php:1.12 bugtracker/includes/bug.php:1.13 --- bugtracker/includes/bug.php:1.12 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/bug.php Wed Aug 13 22:15:33 2008 @@ -38,7 +38,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: bug.php,v 1.12 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: bug.php,v 1.13 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -81,7 +81,7 @@ if (!$dest) { //get logged in users email - include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/users.php'); + include('/cache/users.php'); $dest = $users[$user->handle]['email']; } http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache.php?r1=1.16&r2=1.17&diff_format=u Index: bugtracker/includes/cache.php diff -u bugtracker/includes/cache.php:1.16 bugtracker/includes/cache.php:1.17 --- bugtracker/includes/cache.php:1.16 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cache.php Wed Aug 13 22:15:33 2008 @@ -38,26 +38,27 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache.php,v 1.16 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cache.php,v 1.17 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ class cache{ function load_cache() { - if ($handle = opendir($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/')) + if ($handle = opendir('/cache/')) { while (FALSE !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $ref = explode(".",$file); + $ref[1] = isset($ref[1]) ? $ref[1] : 'txt'; if ($ref[1] == 'php') { $thiscache = $ref[0]; $cacher = array(); //trace('loading cache: ' . $file); - include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/' . $file); + include('/cache/' . $file); $generated_cache = array(); foreach ($cacher as $ref => $data) http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache_generate.php?r1=1.7&r2=1.8&diff_format=u Index: bugtracker/includes/cache_generate.php diff -u bugtracker/includes/cache_generate.php:1.7 bugtracker/includes/cache_generate.php:1.8 --- bugtracker/includes/cache_generate.php:1.7 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cache_generate.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache_generate.php,v 1.7 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cache_generate.php,v 1.8 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -77,7 +77,7 @@ $users .= "\n"; - $timetowrite = fopen($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/users.php',"w+"); + $timetowrite = fopen('/cache/users.php',"w+"); fwrite($timetowrite,$users); fclose($timetowrite); } @@ -126,7 +126,7 @@ //// $cachetext .= '\?\>'; // } - $timetowrite = fopen($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/' . $data . '.php',"w+"); + $timetowrite = fopen('cache/' . $data . '.php',"w+"); fwrite($timetowrite,$cachetext); fclose($timetowrite); } http://cvs.php.net/viewvc.cgi/bugtracker/includes/cachelist.php?r1=1.8&r2=1.9&diff_format=u Index: bugtracker/includes/cachelist.php diff -u bugtracker/includes/cachelist.php:1.8 bugtracker/includes/cachelist.php:1.9 --- bugtracker/includes/cachelist.php:1.8 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cachelist.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cachelist.php,v 1.8 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cachelist.php,v 1.9 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/comment.php?r1=1.16&r2=1.17&diff_format=u Index: bugtracker/includes/comment.php diff -u bugtracker/includes/comment.php:1.16 bugtracker/includes/comment.php:1.17 --- bugtracker/includes/comment.php:1.16 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/comment.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: comment.php,v 1.16 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: comment.php,v 1.17 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/functions.php?r1=1.26&r2=1.27&diff_format=u Index: bugtracker/includes/functions.php diff -u bugtracker/includes/functions.php:1.26 bugtracker/includes/functions.php:1.27 --- bugtracker/includes/functions.php:1.26 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/functions.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: functions.php,v 1.26 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: functions.php,v 1.27 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -73,7 +73,7 @@ //function tpl_process($file, $text, $jsscripts = FALSE, $meta_refresh = FALSE) { /* -include($_SERVER['DOCUMENT_ROOT'] . '../includes/sanitize.php'); +include('sanitize.php'); function tpl_process($file, $jsscripts = FALSE, $meta_refresh = FALSE) { $ext = explode(".",$file); //base it on the file extension @@ -86,7 +86,7 @@ if ($ext == 'html') { trace('file_get_contents ' . $file); - $html = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '../template/' . $file); + $html = file_get_contents('../template/' . $file); } else { @@ -105,8 +105,6 @@ trace('form error where there should be nonw'); //sanitize -// $file = $_SERVER['DOCUMENT_ROOT'] . '../template/' . $file; -// $html = api_helpers_html::renderTemplate($file,$display_data,'html'); foreach ($display_data as $ref => $replace) { trace($$ref); http://cvs.php.net/viewvc.cgi/bugtracker/includes/sanitize.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/includes/sanitize.php diff -u bugtracker/includes/sanitize.php:1.6 bugtracker/includes/sanitize.php:1.7 --- bugtracker/includes/sanitize.php:1.6 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/sanitize.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: sanitize.php,v 1.6 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: sanitize.php,v 1.7 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/session.php?r1=1.5&r2=1.6&diff_format=u Index: bugtracker/includes/session.php diff -u bugtracker/includes/session.php:1.5 bugtracker/includes/session.php:1.6 --- bugtracker/includes/session.php:1.5 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/session.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: session.php,v 1.5 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: session.php,v 1.6 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -116,7 +116,7 @@ if (!$user->fetch_handle($session_data['handle'])) { - $template->template_file = $_SERVER['DOCUMENT_ROOT'] . '../template/generic/user/logout.php'; + $template->template_file = '../template/generic/user/logout.php'; $this->end_session(); return FALSE; } http://cvs.php.net/viewvc.cgi/bugtracker/includes/template.php?r1=1.21&r2=1.22&diff_format=u Index: bugtracker/includes/template.php diff -u bugtracker/includes/template.php:1.21 bugtracker/includes/template.php:1.22 --- bugtracker/includes/template.php:1.21 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/template.php Wed Aug 13 22:15:33 2008 @@ -48,7 +48,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: template.php,v 1.21 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: template.php,v 1.22 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/user.php?r1=1.19&r2=1.20&diff_format=u Index: bugtracker/includes/user.php diff -u bugtracker/includes/user.php:1.19 bugtracker/includes/user.php:1.20 --- bugtracker/includes/user.php:1.19 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/user.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: user.php,v 1.19 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: user.php,v 1.20 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -248,7 +248,7 @@ $message .= "\n\r" . 'Click the following link, or copy and paste it into your browser'; $message .= "\n\r\n\r"; - $message .= 'http://' . $_SERVER['HTTP_HOST'] . '/user/verify/'; + $message .= 'http://' . $cookie['host'] . '/user/verify/'; $message .= $dest . '/'; $message .= md5( md5($dest) . '_' . md5 ($user_data['password']) ); http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/debug.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/template/generic/debug.php diff -u bugtracker/template/generic/debug.php:1.6 bugtracker/template/generic/debug.php:1.7 --- bugtracker/template/generic/debug.php:1.6 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/debug.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: debug.php,v 1.6 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: debug.php,v 1.7 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/assign.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/admin/assign.php diff -u bugtracker/template/generic/admin/assign.php:1.3 bugtracker/template/generic/admin/assign.php:1.4 --- bugtracker/template/generic/admin/assign.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/admin/assign.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: assign.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: assign.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/index.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/admin/index.php diff -u bugtracker/template/generic/admin/index.php:1.3 bugtracker/template/generic/admin/index.php:1.4 --- bugtracker/template/generic/admin/index.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/admin/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/bug/comment.php?r1=1.11&r2=1.12&diff_format=u Index: bugtracker/template/generic/bug/comment.php diff -u bugtracker/template/generic/bug/comment.php:1.11 bugtracker/template/generic/bug/comment.php:1.12 --- bugtracker/template/generic/bug/comment.php:1.11 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/bug/comment.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: comment.php,v 1.11 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: comment.php,v 1.12 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/bug/index.php?r1=1.33&r2=1.34&diff_format=u Index: bugtracker/template/generic/bug/index.php diff -u bugtracker/template/generic/bug/index.php:1.33 bugtracker/template/generic/bug/index.php:1.34 --- bugtracker/template/generic/bug/index.php:1.33 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/bug/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.33 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.34 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/report/index.php?r1=1.19&r2=1.20&diff_format=u Index: bugtracker/template/generic/report/index.php diff -u bugtracker/template/generic/report/index.php:1.19 bugtracker/template/generic/report/index.php:1.20 --- bugtracker/template/generic/report/index.php:1.19 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/report/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.19 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.20 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/report/report.php?r1=1.15&r2=1.16&diff_format=u Index: bugtracker/template/generic/report/report.php diff -u bugtracker/template/generic/report/report.php:1.15 bugtracker/template/generic/report/report.php:1.16 --- bugtracker/template/generic/report/report.php:1.15 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/report/report.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: report.php,v 1.15 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: report.php,v 1.16 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/convert.php?r1=1.13&r2=1.14&diff_format=u Index: bugtracker/template/generic/user/convert.php diff -u bugtracker/template/generic/user/convert.php:1.13 bugtracker/template/generic/user/convert.php:1.14 --- bugtracker/template/generic/user/convert.php:1.13 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/convert.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: convert.php,v 1.13 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: convert.php,v 1.14 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/create.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/user/create.php diff -u bugtracker/template/generic/user/create.php:1.3 bugtracker/template/generic/user/create.php:1.4 --- bugtracker/template/generic/user/create.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/create.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: create.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: create.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/help.php?r1=1.5&r2=1.6&diff_format=u Index: bugtracker/template/generic/user/help.php diff -u bugtracker/template/generic/user/help.php:1.5 bugtracker/template/generic/user/help.php:1.6 --- bugtracker/template/generic/user/help.php:1.5 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/help.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: help.php,v 1.5 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: help.php,v 1.6 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/login.php?r1=1.10&r2=1.11&diff_format=u Index: bugtracker/template/generic/user/login.php diff -u bugtracker/template/generic/user/login.php:1.10 bugtracker/template/generic/user/login.php:1.11 --- bugtracker/template/generic/user/login.php:1.10 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/login.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: login.php,v 1.10 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: login.php,v 1.11 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/logout.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/user/logout.php diff -u bugtracker/template/generic/user/logout.php:1.3 bugtracker/template/generic/user/logout.php:1.4 --- bugtracker/template/generic/user/logout.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/logout.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: logout.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: logout.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/verify.php?r1=1.8&r2=1.9&diff_format=u Index: bugtracker/template/generic/user/verify.php diff -u bugtracker/template/generic/user/verify.php:1.8 bugtracker/template/generic/user/verify.php:1.9 --- bugtracker/template/generic/user/verify.php:1.8 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/verify.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: verify.php,v 1.8 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: verify.php,v 1.9 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/config.php?view=markup&rev=1.1 Index: bugtracker/includes/config.php +++ bugtracker/includes/config.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:*/ /** * htdocs/config.php * Defines some basic varibles * Also includes the required database functions * * Copyright (c) 2008, Barry Carlyon <bcarlyon@php.net> * All rights reserved. * * PHP versions 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @category BugTracking * @package GSoC Bugtracker * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version CVS: $Id: config.php,v 1.1 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ //system shunt $database = array( 'type' => 'mysqli', 'host' => 'localhost', 'name' => 'gsoc_bugtracker', 'user' => 'gsoc', 'password' => 'cakedoesrock' ); define('CONFIG_ARRAY','configuration'); define('USER_TABLE', 'user'); define('TEMP_USER_TABLE', 'temp_account'); define('SESSION_TABLE', 'sessions'); define('KARMA_TABLE', 'karma'); // partial implemneted define define('BUG_TABLE', 'bug'); define('COMMENT_TABLE', 'bug_comment'); $recaptcha_key = '6LdlXwAAAAAAAA_SQn5B7hqK8bd3mrBERvmbvsZO'; $recaptcha_prv = '6LdlXwAAAAAAAD5Tvwhyk0I2GKVgJE5UonW3oYDY'; $cookie = array(); $cookie['name'] = 'phpbugz'; //$cookie['host'] = str_replace('www.','',$_SERVER['HTTP_HOST']); $cookie['host'] = 'http://gsoc.barrycarlyon.servegame.org/'; $cookie['script_path'] = '/'; $cookie['secure'] = 0; include('database/'. $database['type'] . '.php');
http://cvs.php.net/viewvc.cgi/bugtracker/LICENSE?r1=1.2&r2=1.3&diff_format=u Index: bugtracker/LICENSE diff -u bugtracker/LICENSE:1.2 bugtracker/LICENSE:1.3 --- bugtracker/LICENSE:1.2 Wed Aug 13 20:41:09 2008 +++ bugtracker/LICENSE Wed Aug 13 22:15:32 2008 @@ -29,6 +29,6 @@ @author Barry Carlyon <bcarlyon@php.net> @copyright 2004-2008 Barry Carlyon @license http://www.opensource.org/licenses/bsd-license.php BSD License - @version CVS: $Id: LICENSE,v 1.2 2008/08/13 20:41:09 bcarlyon Exp $ + @version CVS: $Id: LICENSE,v 1.3 2008/08/13 22:15:32 bcarlyon Exp $ @link http://gsoc.barrycarlyon.servegame.org/ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/cache.php?r1=1.9&r2=1.10&diff_format=u Index: bugtracker/htdocs/cache.php diff -u bugtracker/htdocs/cache.php:1.9 bugtracker/htdocs/cache.php:1.10 --- bugtracker/htdocs/cache.php:1.9 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/cache.php Wed Aug 13 22:15:32 2008 @@ -37,22 +37,23 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache.php,v 1.9 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: cache.php,v 1.10 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ -include($_SERVER['DOCUMENT_ROOT'] . '/config.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/functions.php'); +set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)) . '/../includes/'); +include('config.php'); +include('functions.php'); //database time $db = new db(); $dbtest = $db->test_connect(); //if that is ok lets boot the class in the ass! -include($_SERVER['DOCUMENT_ROOT'] . '../includes/user.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/email.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/bug.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/comment.php'); +include('user.php'); +include('email.php'); +include('bug.php'); +include('comment.php'); $user = new user(); $email = new email(); $bug = new bug(); @@ -60,7 +61,7 @@ $cache = 'all'; -include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache_generate.php'); +include('cache_generate.php'); header("Location: /"); http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/elements/email.php?r1=1.7&r2=1.8&diff_format=u Index: bugtracker/htdocs/elements/email.php diff -u bugtracker/htdocs/elements/email.php:1.7 bugtracker/htdocs/elements/email.php:1.8 --- bugtracker/htdocs/elements/email.php:1.7 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/elements/email.php Wed Aug 13 22:15:32 2008 @@ -38,7 +38,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: email.php,v 1.7 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: email.php,v 1.8 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/elements/screen.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/htdocs/elements/screen.php diff -u bugtracker/htdocs/elements/screen.php:1.6 bugtracker/htdocs/elements/screen.php:1.7 --- bugtracker/htdocs/elements/screen.php:1.6 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/elements/screen.php Wed Aug 13 22:15:32 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: screen.php,v 1.6 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: screen.php,v 1.7 2008/08/13 22:15:32 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/htdocs/index/index.php?r1=1.24&r2=1.25&diff_format=u Index: bugtracker/htdocs/index/index.php diff -u bugtracker/htdocs/index/index.php:1.24 bugtracker/htdocs/index/index.php:1.25 --- bugtracker/htdocs/index/index.php:1.24 Wed Aug 13 20:41:09 2008 +++ bugtracker/htdocs/index/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.24 2008/08/13 20:41:09 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.25 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -47,14 +47,15 @@ 2008 ***********************************************************/ +set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)) . '/../includes/'); + //backtrace has something to talk too $backtrace = ''; $trace = ''; //before we start lets see if the database engine is online -include($_SERVER['DOCUMENT_ROOT'] . '/config.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/functions.php'); +include('config.php'); +include('functions.php'); -//$errorhandler = set_error_handler("theerrorhandler",E_ALL&~E_NOTICE); error_reporting(E_ALL); $old_error_handler = set_error_handler("theerrorhandler",E_ALL); @@ -71,13 +72,13 @@ //if that is ok lets boot the class in the ass! //V3 template engine -include($_SERVER['DOCUMENT_ROOT'] . '../includes/template.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/user.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/email.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/bug.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/comment.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache.php'); -include($_SERVER['DOCUMENT_ROOT'] . '../includes/session.php'); +include('template.php'); +include('user.php'); +include('email.php'); +include('bug.php'); +include('comment.php'); +include('cache.php'); +include('session.php'); $template = new template(); $user = new user(); http://cvs.php.net/viewvc.cgi/bugtracker/includes/bug.php?r1=1.12&r2=1.13&diff_format=u Index: bugtracker/includes/bug.php diff -u bugtracker/includes/bug.php:1.12 bugtracker/includes/bug.php:1.13 --- bugtracker/includes/bug.php:1.12 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/bug.php Wed Aug 13 22:15:33 2008 @@ -38,7 +38,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: bug.php,v 1.12 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: bug.php,v 1.13 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -81,7 +81,7 @@ if (!$dest) { //get logged in users email - include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/users.php'); + include('/cache/users.php'); $dest = $users[$user->handle]['email']; } http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache.php?r1=1.16&r2=1.17&diff_format=u Index: bugtracker/includes/cache.php diff -u bugtracker/includes/cache.php:1.16 bugtracker/includes/cache.php:1.17 --- bugtracker/includes/cache.php:1.16 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cache.php Wed Aug 13 22:15:33 2008 @@ -38,26 +38,27 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache.php,v 1.16 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cache.php,v 1.17 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ class cache{ function load_cache() { - if ($handle = opendir($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/')) + if ($handle = opendir('/cache/')) { while (FALSE !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $ref = explode(".",$file); + $ref[1] = isset($ref[1]) ? $ref[1] : 'txt'; if ($ref[1] == 'php') { $thiscache = $ref[0]; $cacher = array(); //trace('loading cache: ' . $file); - include($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/' . $file); + include('/cache/' . $file); $generated_cache = array(); foreach ($cacher as $ref => $data) http://cvs.php.net/viewvc.cgi/bugtracker/includes/cache_generate.php?r1=1.7&r2=1.8&diff_format=u Index: bugtracker/includes/cache_generate.php diff -u bugtracker/includes/cache_generate.php:1.7 bugtracker/includes/cache_generate.php:1.8 --- bugtracker/includes/cache_generate.php:1.7 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cache_generate.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cache_generate.php,v 1.7 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cache_generate.php,v 1.8 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -77,7 +77,7 @@ $users .= "\n"; - $timetowrite = fopen($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/users.php',"w+"); + $timetowrite = fopen('/cache/users.php',"w+"); fwrite($timetowrite,$users); fclose($timetowrite); } @@ -126,7 +126,7 @@ //// $cachetext .= '\?\>'; // } - $timetowrite = fopen($_SERVER['DOCUMENT_ROOT'] . '../includes/cache/' . $data . '.php',"w+"); + $timetowrite = fopen('cache/' . $data . '.php',"w+"); fwrite($timetowrite,$cachetext); fclose($timetowrite); } http://cvs.php.net/viewvc.cgi/bugtracker/includes/cachelist.php?r1=1.8&r2=1.9&diff_format=u Index: bugtracker/includes/cachelist.php diff -u bugtracker/includes/cachelist.php:1.8 bugtracker/includes/cachelist.php:1.9 --- bugtracker/includes/cachelist.php:1.8 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/cachelist.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: cachelist.php,v 1.8 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: cachelist.php,v 1.9 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/comment.php?r1=1.16&r2=1.17&diff_format=u Index: bugtracker/includes/comment.php diff -u bugtracker/includes/comment.php:1.16 bugtracker/includes/comment.php:1.17 --- bugtracker/includes/comment.php:1.16 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/comment.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: comment.php,v 1.16 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: comment.php,v 1.17 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/functions.php?r1=1.26&r2=1.27&diff_format=u Index: bugtracker/includes/functions.php diff -u bugtracker/includes/functions.php:1.26 bugtracker/includes/functions.php:1.27 --- bugtracker/includes/functions.php:1.26 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/functions.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: functions.php,v 1.26 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: functions.php,v 1.27 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -73,7 +73,7 @@ //function tpl_process($file, $text, $jsscripts = FALSE, $meta_refresh = FALSE) { /* -include($_SERVER['DOCUMENT_ROOT'] . '../includes/sanitize.php'); +include('sanitize.php'); function tpl_process($file, $jsscripts = FALSE, $meta_refresh = FALSE) { $ext = explode(".",$file); //base it on the file extension @@ -86,7 +86,7 @@ if ($ext == 'html') { trace('file_get_contents ' . $file); - $html = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '../template/' . $file); + $html = file_get_contents('../template/' . $file); } else { @@ -105,8 +105,6 @@ trace('form error where there should be nonw'); //sanitize -// $file = $_SERVER['DOCUMENT_ROOT'] . '../template/' . $file; -// $html = api_helpers_html::renderTemplate($file,$display_data,'html'); foreach ($display_data as $ref => $replace) { trace($$ref); http://cvs.php.net/viewvc.cgi/bugtracker/includes/sanitize.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/includes/sanitize.php diff -u bugtracker/includes/sanitize.php:1.6 bugtracker/includes/sanitize.php:1.7 --- bugtracker/includes/sanitize.php:1.6 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/sanitize.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: sanitize.php,v 1.6 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: sanitize.php,v 1.7 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/session.php?r1=1.5&r2=1.6&diff_format=u Index: bugtracker/includes/session.php diff -u bugtracker/includes/session.php:1.5 bugtracker/includes/session.php:1.6 --- bugtracker/includes/session.php:1.5 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/session.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: session.php,v 1.5 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: session.php,v 1.6 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -116,7 +116,7 @@ if (!$user->fetch_handle($session_data['handle'])) { - $template->template_file = $_SERVER['DOCUMENT_ROOT'] . '../template/generic/user/logout.php'; + $template->template_file = '../template/generic/user/logout.php'; $this->end_session(); return FALSE; } http://cvs.php.net/viewvc.cgi/bugtracker/includes/template.php?r1=1.21&r2=1.22&diff_format=u Index: bugtracker/includes/template.php diff -u bugtracker/includes/template.php:1.21 bugtracker/includes/template.php:1.22 --- bugtracker/includes/template.php:1.21 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/template.php Wed Aug 13 22:15:33 2008 @@ -48,7 +48,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: template.php,v 1.21 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: template.php,v 1.22 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/user.php?r1=1.19&r2=1.20&diff_format=u Index: bugtracker/includes/user.php diff -u bugtracker/includes/user.php:1.19 bugtracker/includes/user.php:1.20 --- bugtracker/includes/user.php:1.19 Wed Aug 13 20:41:10 2008 +++ bugtracker/includes/user.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: user.php,v 1.19 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: user.php,v 1.20 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ @@ -248,7 +248,7 @@ $message .= "\n\r" . 'Click the following link, or copy and paste it into your browser'; $message .= "\n\r\n\r"; - $message .= 'http://' . $_SERVER['HTTP_HOST'] . '/user/verify/'; + $message .= 'http://' . $cookie['host'] . '/user/verify/'; $message .= $dest . '/'; $message .= md5( md5($dest) . '_' . md5 ($user_data['password']) ); http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/debug.php?r1=1.6&r2=1.7&diff_format=u Index: bugtracker/template/generic/debug.php diff -u bugtracker/template/generic/debug.php:1.6 bugtracker/template/generic/debug.php:1.7 --- bugtracker/template/generic/debug.php:1.6 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/debug.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: debug.php,v 1.6 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: debug.php,v 1.7 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/assign.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/admin/assign.php diff -u bugtracker/template/generic/admin/assign.php:1.3 bugtracker/template/generic/admin/assign.php:1.4 --- bugtracker/template/generic/admin/assign.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/admin/assign.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: assign.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: assign.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/admin/index.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/admin/index.php diff -u bugtracker/template/generic/admin/index.php:1.3 bugtracker/template/generic/admin/index.php:1.4 --- bugtracker/template/generic/admin/index.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/admin/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/bug/comment.php?r1=1.11&r2=1.12&diff_format=u Index: bugtracker/template/generic/bug/comment.php diff -u bugtracker/template/generic/bug/comment.php:1.11 bugtracker/template/generic/bug/comment.php:1.12 --- bugtracker/template/generic/bug/comment.php:1.11 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/bug/comment.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: comment.php,v 1.11 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: comment.php,v 1.12 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/bug/index.php?r1=1.33&r2=1.34&diff_format=u Index: bugtracker/template/generic/bug/index.php diff -u bugtracker/template/generic/bug/index.php:1.33 bugtracker/template/generic/bug/index.php:1.34 --- bugtracker/template/generic/bug/index.php:1.33 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/bug/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.33 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.34 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/report/index.php?r1=1.19&r2=1.20&diff_format=u Index: bugtracker/template/generic/report/index.php diff -u bugtracker/template/generic/report/index.php:1.19 bugtracker/template/generic/report/index.php:1.20 --- bugtracker/template/generic/report/index.php:1.19 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/report/index.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: index.php,v 1.19 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: index.php,v 1.20 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/report/report.php?r1=1.15&r2=1.16&diff_format=u Index: bugtracker/template/generic/report/report.php diff -u bugtracker/template/generic/report/report.php:1.15 bugtracker/template/generic/report/report.php:1.16 --- bugtracker/template/generic/report/report.php:1.15 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/report/report.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: report.php,v 1.15 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: report.php,v 1.16 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/convert.php?r1=1.13&r2=1.14&diff_format=u Index: bugtracker/template/generic/user/convert.php diff -u bugtracker/template/generic/user/convert.php:1.13 bugtracker/template/generic/user/convert.php:1.14 --- bugtracker/template/generic/user/convert.php:1.13 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/convert.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: convert.php,v 1.13 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: convert.php,v 1.14 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/create.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/user/create.php diff -u bugtracker/template/generic/user/create.php:1.3 bugtracker/template/generic/user/create.php:1.4 --- bugtracker/template/generic/user/create.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/create.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: create.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: create.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/help.php?r1=1.5&r2=1.6&diff_format=u Index: bugtracker/template/generic/user/help.php diff -u bugtracker/template/generic/user/help.php:1.5 bugtracker/template/generic/user/help.php:1.6 --- bugtracker/template/generic/user/help.php:1.5 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/help.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: help.php,v 1.5 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: help.php,v 1.6 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/login.php?r1=1.10&r2=1.11&diff_format=u Index: bugtracker/template/generic/user/login.php diff -u bugtracker/template/generic/user/login.php:1.10 bugtracker/template/generic/user/login.php:1.11 --- bugtracker/template/generic/user/login.php:1.10 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/login.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: login.php,v 1.10 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: login.php,v 1.11 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/logout.php?r1=1.3&r2=1.4&diff_format=u Index: bugtracker/template/generic/user/logout.php diff -u bugtracker/template/generic/user/logout.php:1.3 bugtracker/template/generic/user/logout.php:1.4 --- bugtracker/template/generic/user/logout.php:1.3 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/logout.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: logout.php,v 1.3 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: logout.php,v 1.4 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/verify.php?r1=1.8&r2=1.9&diff_format=u Index: bugtracker/template/generic/user/verify.php diff -u bugtracker/template/generic/user/verify.php:1.8 bugtracker/template/generic/user/verify.php:1.9 --- bugtracker/template/generic/user/verify.php:1.8 Wed Aug 13 20:41:10 2008 +++ bugtracker/template/generic/user/verify.php Wed Aug 13 22:15:33 2008 @@ -37,7 +37,7 @@ * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License -* @version CVS: $Id: verify.php,v 1.8 2008/08/13 20:41:10 bcarlyon Exp $ +* @version CVS: $Id: verify.php,v 1.9 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ http://cvs.php.net/viewvc.cgi/bugtracker/includes/config.php?view=markup&rev=1.1 Index: bugtracker/includes/config.php +++ bugtracker/includes/config.php <?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:*/ /** * htdocs/config.php * Defines some basic varibles * Also includes the required database functions * * Copyright (c) 2008, Barry Carlyon <bcarlyon@php.net> * All rights reserved. * * PHP versions 5 * * LICENSE: Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * @category BugTracking * @package GSoC Bugtracker * @author Barry Carlyon <bcarlyon@php.net> * @copyright 2008-2008 Barry Carlyon * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version CVS: $Id: config.php,v 1.1 2008/08/13 22:15:33 bcarlyon Exp $ * @link http://gsoc.barrycarlyon.servegame.org/ */ //system shunt $database = array( 'type' => 'mysqli', 'host' => 'localhost', 'name' => 'gsoc_bugtracker', 'user' => 'gsoc', 'password' => 'cakedoesrock' ); define('CONFIG_ARRAY','configuration'); define('USER_TABLE', 'user'); define('TEMP_USER_TABLE', 'temp_account'); define('SESSION_TABLE', 'sessions'); define('KARMA_TABLE', 'karma'); // partial implemneted define define('BUG_TABLE', 'bug'); define('COMMENT_TABLE', 'bug_comment'); $recaptcha_key = '6LdlXwAAAAAAAA_SQn5B7hqK8bd3mrBERvmbvsZO'; $recaptcha_prv = '6LdlXwAAAAAAAD5Tvwhyk0I2GKVgJE5UonW3oYDY'; $cookie = array(); $cookie['name'] = 'phpbugz'; //$cookie['host'] = str_replace('www.','',$_SERVER['HTTP_HOST']); $cookie['host'] = 'http://gsoc.barrycarlyon.servegame.org/'; $cookie['script_path'] = '/'; $cookie['secure'] = 0; include('database/'. $database['type'] . '.php');