add travic ci
authorStricted <info@stricted.de>
Tue, 5 May 2015 23:58:23 +0000 (01:58 +0200)
committerStricted <info@stricted.de>
Tue, 5 May 2015 23:58:23 +0000 (01:58 +0200)
.travis.yml [new file with mode: 0644]
README.md
lib/system/DNS.class.php

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..d3464e5
--- /dev/null
@@ -0,0 +1,14 @@
+language: php
+php:
+  - 5.3
+  - 5.4
+  - 5.5
+  - 5.6
+before_install:
+  - pear install pear/PHP_CodeSniffer
+  - phpenv rehash
+before_script:
+  - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
+script:
+  - find files -type f -name '*.php' |xargs -I file php -l file
+  - phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" files
\ No newline at end of file
index 4481e8c6fe6016317fe3e741e3e459c135f74d1c..6cf833a7b6c004e2d689417e3f51ef5603c71c50 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
 Domain-Control-Panel
 ==================
 
+[![Build Status](https://travis-ci.org/Stricted/Domain-Control-Panel.svg?branch=master)](https://travis-ci.org/Stricted/Domain-Control-Panel)
+
 **Domain-Control-Panel** is powered by [Stricted](https://github.com/Stricted) for easy managing your dns server with MySQL databases. I'm testing my work just on linux (Debian 6/7) machines, so i don't know if it works without problems on Windows machines. Feel free to give me feedback.
 
 ### Requirements
index e005242d5dea60f16b185fbbd34abcfe5778024e..f0e111b4ef980dab557341012be7b561aa942bed 100644 (file)
@@ -201,10 +201,13 @@ class DNS {
                
                /* assign language variables */
                self::getTPL()->assign(array(
-                               "language" => $this->language,
-                               "isReseller" => User::isReseller(),
-                               "isAdmin" => User::isAdmin()
-                       ));
+                       "language" => $this->language,
+                       "isReseller" => User::isReseller(),
+                       "isAdmin" => User::isAdmin()
+               ));
+               
+               /*self::getTPL()->assign("version", mb_substr(sha1(DNS_VERSION), 0, 8));*/
+
        }
        
        /**