forgotten changes
authorSven Hecht <sven@sven-laptop.(none)>
Fri, 26 Jun 2009 07:18:54 +0000 (09:18 +0200)
committerSven Hecht <sven@sven-laptop.(none)>
Fri, 26 Jun 2009 07:18:54 +0000 (09:18 +0200)
web/php-tests/BuisnessLogicTest.php
web/php-tests/DatabaseTest.php
web/php/Controller.php
web/php/Database.php

index 3026876..cdfddc6 100644 (file)
@@ -1,9 +1,9 @@
 <?php
-       include("../php/User.php");
-       include("../php/Plant.php");
-       include("../php/Controller.php");
-       include("../php/Season.php");
-       include("../php/SeasonScore.php");
+       include("../User.php");
+       include("../Plant.php");
+       include("../Controller.php");
+       include("../Season.php");
+       include("../SeasonScore.php");
 
        class TestOfBuisnessLogic extends UnitTestCase
        {
index 949648c..757b7d0 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-       include("../php/Database.php");
+       include("../Database.php");
 
        class TestOfDataBase extends UnitTestCase
        {
index f70cf01..15bccd7 100644 (file)
                                                $res = "{ success: false, msg: \"Keine Pflanze mit dem Namen '".$plantname."' für den Nutzer '".$username."' gefunden.\" }";
                                        }
                                        break;
-
-                               default:
-                                       $res = "{ success : false, msg: \"Unkown RPC call '".$func."'\"}";
                        }
                
                        return new RPCAnswer($func, $res);
index 809372f..19e5abe 100644 (file)
@@ -2,14 +2,10 @@
        
        class DataBase
        {
-               private $m_Username = "lseed";
-               private $m_Password = "GCp:rtAaN8nwTFMP";
-               private $m_Server = "localhost";
-               private $m_Database = "lseed";
                public $m_Connection;
 
                public function __construct() {
-                       $this->m_Connection = @new mysqli( $this->m_Server, $this->m_Username, $this->m_Password, $this->m_Database );
+                       $this->m_Connection = @new mysqli( 'localhost', 'lseed', 'GCp:rtAaN8nwTFMP', 'lseed' );
                        if (mysqli_connect_errno() != 0) {
                                die( "Argh what did you do?->SERVERERR=0, ".mysqli_connect_error());
                        }