From: Stricted Date: Tue, 5 May 2015 23:58:23 +0000 (+0200) Subject: add travic ci X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cd67909e566e413fbe0027ea020232451693364b;p=GitHub%2FStricted%2FDomain-Control-Panel.git add travic ci --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d3464e5 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 4481e8c..6cf833a 100644 --- 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 diff --git a/lib/system/DNS.class.php b/lib/system/DNS.class.php index e005242..f0e111b 100644 --- a/lib/system/DNS.class.php +++ b/lib/system/DNS.class.php @@ -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));*/ + } /**