mail[Wesnoth-commits] r28388 - in /trunk/utils/tests: autotester/run_unit_tests.php htdocs/index.php include/config.php include/settup.php.template


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 08, 2008 - 21:29:
Author: suokko
Date: Fri Aug  8 21:11:55 2008
New Revision: 28388

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28388&view=rev
Log:
Renamed config.php to settup.php

Added:
    trunk/utils/tests/include/settup.php.template
      - copied unchanged from r28385, trunk/utils/tests/include/config.php
Removed:
    trunk/utils/tests/include/config.php
Modified:
    trunk/utils/tests/autotester/run_unit_tests.php
    trunk/utils/tests/htdocs/index.php

Modified: trunk/utils/tests/autotester/run_unit_tests.php
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/tests/autotester/run_unit_tests.php?rev=28388&r1=28387&r2=28388&view=diff
==============================================================================
--- trunk/utils/tests/autotester/run_unit_tests.php (original)
+++ trunk/utils/tests/autotester/run_unit_tests.php Fri Aug  8 21:11:55 2008
@@ -6,7 +6,7 @@
 }
 $root_dir = $argv[1];
 
-require_once $root_dir . '../include/config.php';
+require_once $root_dir . '../include/settup.php';
 
 // used to show all queries to db when debuging;
 //$db->debug = true;

Modified: trunk/utils/tests/htdocs/index.php
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/tests/htdocs/index.php?rev=28388&r1=28387&r2=28388&view=diff
==============================================================================
--- trunk/utils/tests/htdocs/index.php (original)
+++ trunk/utils/tests/htdocs/index.php Fri Aug  8 21:11:55 2008
@@ -1,7 +1,7 @@
 <?php
 $root_dir = './';
 
-require_once($root_dir . '../include/config.php');
+require_once($root_dir . '../include/settup.php');
 
 $header = new Header('index');
 

Removed: trunk/utils/tests/include/config.php
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/tests/include/config.php?rev=28387&view=auto
==============================================================================
--- trunk/utils/tests/include/config.php (original)
+++ trunk/utils/tests/include/config.php (removed)
@@ -1,50 +1,0 @@
-<?php
-
-// debug
-error_reporting(E_ALL | E_STRICT);
-
-// production error_loging to system log
-//ini_set('syslog');
-
-// settup auto class loader
-function __autoload($class)
-{
-       global $root_dir;
-       require_once($root_dir . '../include/'.$class .'.php');
-}
-
-// initialize database connection
-
-$adodb_dir = $root_dir . '../adodb_lite/';
-
-
-include($adodb_dir . "adodb-exceptions.inc.php"); 
-require_once($adodb_dir . 'adodb.inc.php');
-
-$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
-$driver = 'mysqli';
-$username = 'username';
-$password = 'password';
-$hostname = 'localhost';
-$database = 'wesnoth_unit_test';
-$flags = MYSQL_CLIENT_COMPRESS;
-
-$extra_options = '';
-//$debug = 'debug&persit&'
-$modules = '#date:transaction';
-try {
-$db = 
ADONewConnection("$driver://$username:$password@$hostname/$database?${extra_options}${modules}");
-}
-catch(exception $e)
-{
-       echo "Connection to database failed!";
-       exit;
-}
-
-// initialize tempalte parser
-
-$smarty_dir = $root_dir . '../smarty_workdir/';
-
-$smarty = new WesnothSmarty($smarty_dir);
-
-?>




Related Messages


Powered by MHonArc, Updated Fri Aug 08 22:02:26 2008