Fixed naming (phpci -> php-censor)

This commit is contained in:
Dmitry Khomutov 2016-07-21 23:02:11 +06:00
parent 4fee89fb80
commit 31f92327c1
76 changed files with 357 additions and 348 deletions

View file

@ -3,11 +3,11 @@ b8:
servers: servers:
read: localhost read: localhost
write: localhost write: localhost
name: phpci name: php-censor-db
username: root username: php-censor-user
password: root password: php-censor-password
phpci: php-censor:
url: 'http://phpci.local' url: 'http://php-censor.local'
worker: worker:
host: localhost host: localhost
queue: phpci queue: php-censor-queue

View file

@ -22,8 +22,8 @@ $conf = [
], ],
'environments' => [ 'environments' => [
'default_migration_table' => 'migration', 'default_migration_table' => 'migration',
'default_database' => 'phpci', 'default_database' => 'php-censor',
'phpci' => [ 'php-censor' => [
'adapter' => 'mysql', 'adapter' => 'mysql',
'host' => end($writeServers), 'host' => end($writeServers),
'name' => $config->get('b8.database.name'), 'name' => $config->get('b8.database.name'),

View file

@ -59,7 +59,7 @@ if (file_exists($configFile)) {
} }
if (!defined('APP_URL') && !empty($config)) { if (!defined('APP_URL') && !empty($config)) {
define('APP_URL', $config->get('phpci.url', '') . '/'); define('APP_URL', $config->get('php-censor.url', '') . '/');
} }
if (!defined('IS_CONSOLE')) { if (!defined('IS_CONSOLE')) {

View file

@ -1,7 +1,7 @@
Adding PHP Censor Support to Your Projects Adding PHP Censor Support to Your Projects
------------------------------------------ ------------------------------------------
Similar to Travis CI, to support PHP Censor in your project, you simply need to add a `phpci.yml` file to the root of Similar to Travis CI, to support PHP Censor in your project, you simply need to add a `.php-censor.yml` (`phpci.yml` for backward compatibility with PHPCI) file to the root of
your repository. The file should look something like this: your repository. The file should look something like this:
```yml ```yml

View file

@ -3,11 +3,11 @@ Configuring PHP Censor
The PHP Censor configuration on the server is automatically generated into the `config.yml` file during installation. One might need to also edit the file manually. The PHP Censor configuration on the server is automatically generated into the `config.yml` file during installation. One might need to also edit the file manually.
For example, one could log into phpci and go into the settings to disable it. But if you have already set up a username/password pair and have forgotten the password, and if the server is on a local network, and it's not sending the `forgot password` email, then editing the config file manually would be handy. To do so, just edit the `phpci` section in the config file (which is in [yaml format](https://en.wikipedia.org/wiki/YAML)), and add For example, one could log into PHP Censor and go into the settings to disable it. But if you have already set up a username/password pair and have forgotten the password, and if the server is on a local network, and it's not sending the `forgot password` email, then editing the config file manually would be handy. To do so, just edit the `php-censor` section in the config file (which is in [yaml format](https://en.wikipedia.org/wiki/YAML)), and add
phpci: php-censor:
authentication_settings: authentication_settings:
state: 1 state: 1
user_id: 1 user_id: 1
where you can get the user_id by logging into the mysql database and selecting your user ID from the `users` table in the `phpci` database. where you can get the user_id by logging into the mysql database and selecting your user ID from the `users` table in the PHP Censor database.

View file

@ -19,7 +19,7 @@ Installing PHP Censor from Composer
* Download Composer if you haven't already: `curl -sS https://getcomposer.org/installer | php` * Download Composer if you haven't already: `curl -sS https://getcomposer.org/installer | php`
* Download PHP Censor: `./composer.phar create-project corpsee/php-censor php-censor --keep-vcs --no-dev` * Download PHP Censor: `./composer.phar create-project corpsee/php-censor php-censor --keep-vcs --no-dev`
* Go to the newly created PHP Censor directory, and install Composer dependencies: `cd php-censor && ../composer.phar install` * Go to the newly created PHP Censor directory, and install Composer dependencies: `cd php-censor && ../composer.phar install`
* Run the PHP Censor installer: `./console phpci:install` * Run the PHP Censor installer: `./console php-censor:install`
* [Add a virtual host to your web server](virtual_host.md), pointing to the `public` directory within your new PHP Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor. * [Add a virtual host to your web server](virtual_host.md), pointing to the `public` directory within your new PHP Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor.
* [Set up the PHP Censor Worker](workers/worker.md), or you can run builds using the [daemon](workers/daemon.md) or [a cron-job](workers/cron.md) to run PHP Censor builds. * [Set up the PHP Censor Worker](workers/worker.md), or you can run builds using the [daemon](workers/daemon.md) or [a cron-job](workers/cron.md) to run PHP Censor builds.
@ -30,6 +30,6 @@ Installing PHP Censor Manually
* [Download PHP Censor](https://github.com/corpsee/php-censor/releases/latest) and unzip it. * [Download PHP Censor](https://github.com/corpsee/php-censor/releases/latest) and unzip it.
* Go to the PHP Censor directory: `cd /var/www/php-censor` * Go to the PHP Censor directory: `cd /var/www/php-censor`
* Install dependencies using Composer: `composer install` * Install dependencies using Composer: `composer install`
* Install PHP Censor itself: `php ./console phpci:install` * Install PHP Censor itself: `./console php-censor:install`
* [Add a virtual host to your web server](virtual_host.md), pointing to the `public` directory within your new PHP Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor. * [Add a virtual host to your web server](virtual_host.md), pointing to the `public` directory within your new PHP Censor directory. You'll need to set up rewrite rules to point all non-existent requests to PHP Censor.
* [Set up the PHP Censor Worker](workers/worker.md), or you can run builds using the [daemon](workers/daemon.md) or [a cron-job](workers/cron.md) to run PHP Censor builds. * [Set up the PHP Censor Worker](workers/worker.md), or you can run builds using the [daemon](workers/daemon.md) or [a cron-job](workers/cron.md) to run PHP Censor builds.

View file

@ -4,7 +4,7 @@ Setting up Logging
Basics Basics
====== ======
The phpci codebase makes use of the [psr3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) logging standard. By default we use [Monolog](https://github.com/Seldaek/monolog) to handle the actual work implementing this standard. The PHP Censor codebase makes use of the [PSR3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) logging standard. By default we use [Monolog](https://github.com/Seldaek/monolog) to handle the actual work implementing this standard.
How to Setup Logging (For people running a PHP Censor instance) How to Setup Logging (For people running a PHP Censor instance)
=============================================================== ===============================================================
@ -22,9 +22,9 @@ return array(
} }
); );
``` ```
This file should return an array of key value pairs. Each key tells phpci which command to attach the logger to (the underscore is a special value which matches all commands). For each command an array of [Monolog](https://github.com/Seldaek/monolog) handlers should be returned. In the example above we've used one that simply writes to the file system but in practise this could be any handler written for monolog. This file should return an array of key value pairs. Each key tells PHP Censor which command to attach the logger to (the underscore is a special value which matches all commands). For each command an array of [Monolog](https://github.com/Seldaek/monolog) handlers should be returned. In the example above we've used one that simply writes to the file system but in practise this could be any handler written for monolog.
Once this file is created all plugins and core phpci functionality should start writing to the configured handlers. Once this file is created all plugins and core PHP Censor functionality should start writing to the configured handlers.
How to write to the Log (For people creating a new plugin) How to write to the Log (For people creating a new plugin)
========================================================== ==========================================================

View file

@ -10,7 +10,7 @@ Configuration
* **config** - Required - Can be either a single string pointing to a Codeception configuration file, or an array of configuration file paths. By default this is called `codeception.yml` and will be in the root of your project. * **config** - Required - Can be either a single string pointing to a Codeception configuration file, or an array of configuration file paths. By default this is called `codeception.yml` and will be in the root of your project.
* **args** - Optional - The string of arguments to be passed to the run command. **Important**, due to the assumption made on line [132](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L132) regarding the value of `--xml` being the next argument which will not be correct if the user provides arguments using this config param, you must specify `report.xml` before any user input arguments to satisfy the report processing on line [146](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L146) * **args** - Optional - The string of arguments to be passed to the run command.**Important**, due to the assumption made on line [132](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L132) regarding the value of `--xml` being the next argument which will not be correct if the user provides arguments using this config param, you must specify `report.xml` before any user input arguments to satisfy the report processing on line [146](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L146)
* **path** - Optional - The path from the root of your project to the root of the codeception _output directory * **path** - Optional - The path from the root of your project to the root of the codeception _output directory

View file

@ -11,7 +11,7 @@ Configuration
| Field | Required? | Description | | Field | Required? | Description |
|-------|-----------|-------------| |-------|-----------|-------------|
| `webhook_url` | Yes | The URL to your Slack WebHook | | `webhook_url` | Yes | The URL to your Slack WebHook |
| `room` | No | Your Slack room name. Default - #phpci | | `room` | No | Your Slack room name. Default - #php-censor |
| `username` | No | The name to send the message as. Default - PHP Censor | | `username` | No | The name to send the message as. Default - PHP Censor |
| `icon` | No | The URL to the user icon or an emoji such as :ghost:. Default - The value configured on Slack's WebHook setup | | `icon` | No | The URL to the user icon or an emoji such as :ghost:. Default - The value configured on Slack's WebHook setup |
| `message` | No | The message to send to the room. Default - `<%PROJECT_URI%|%PROJECT_TITLE%> - <%BUILD_URI%|Build #%BUILD%> has finished for commit <%COMMIT_URI%|%SHORT_COMMIT% (%COMMIT_EMAIL%)> on branch <%BRANCH_URI%|%BRANCH%>` | | `message` | No | The message to send to the room. Default - `<%PROJECT_URI%|%PROJECT_TITLE%> - <%BUILD_URI%|Build #%BUILD%> has finished for commit <%COMMIT_URI%|%SHORT_COMMIT% (%COMMIT_EMAIL%)> on branch <%BRANCH_URI%|%BRANCH%>` |

View file

@ -10,7 +10,7 @@ Installation
============ ============
1. On debian system (for example) use aptitude command to install sendxmpp 1. On debian system (for example) use aptitude command to install sendxmpp
2. Add XMPP plugin in "complete" section of your phpci.yml 2. Add XMPP plugin in "complete" section of your `php-censor.yml`
Configuration Configuration
============= =============

View file

@ -5,7 +5,7 @@ Updating PHP Censor to the latest release, or even dev-master updates is somethi
1. Go to your PHP Censor root folder in a Terminal. 1. Go to your PHP Censor root folder in a Terminal.
2. Pull the latest code. This would look like this: `git pull` 2. Pull the latest code. This would look like this: `git pull`
3. Update the PHP Censor database: `./console phpci:update` 3. Update the PHP Censor database: `./console php-censor:update`
4. Update the composer and its packages: `composer self-update && composer update` 4. Update the composer and its packages: `composer self-update && composer update`
5. Return to the PHP Censor admin screens and check your desired plugins are still installed correctly. 5. Return to the PHP Censor admin screens and check your desired plugins are still installed correctly.
7. Run a build to make sure everything is working as expected. 7. Run a build to make sure everything is working as expected.

View file

@ -11,7 +11,10 @@ Setting up the Cron Job
You'll want to set up PHP Censor to run as a regular cronjob, so run `crontab -e` and enter the following: You'll want to set up PHP Censor to run as a regular cronjob, so run `crontab -e` and enter the following:
```sh ```sh
* * * * * /usr/bin/php /path/to/phpci/console php-censor:run-builds
# For backward compatibility with PHPCI
* * * * * /usr/bin/php /path/to/phpci/console phpci:run-builds * * * * * /usr/bin/php /path/to/phpci/console phpci:run-builds
``` ```
**Note:** Make sure you change the `/path/to/phpci` to the directory in which you installed PHP Censor, and update the PHP path if necessary. **Note:** Make sure you change the `/path/to/php-censor` to the directory in which you installed PHP Censor, and update the PHP path if necessary.

View file

@ -18,13 +18,13 @@ Setting up the PHP Censor worker
### On a new installation ### On a new installation
Setting up the worker on a new installation of PHP Censor is as simple as entering the appropriate values for your Beanstalkd server hostname and queue name when running the PHP Censor installer. By default, the installer assumes that you'll be using beanstalkd on `localhost` and will use the queue name `phpci`. Setting up the worker on a new installation of PHP Censor is as simple as entering the appropriate values for your Beanstalkd server hostname and queue name when running the PHP Censor installer. By default, the installer assumes that you'll be using beanstalkd on `localhost` and will use the queue name `php-censor-queue`.
![PHP Censor Worker Installer](https://www.phptesting.org/media/render/f48f63699a04444630352643af18b643) ![PHP Censor Worker Installer](https://www.phptesting.org/media/render/f48f63699a04444630352643af18b643)
### On an existing installation ### On an existing installation
On an existing installation, to set up the worker, you simply need to add the beanstalkd host and queue names directly into your `config.yml` file. You should add a `worker` key beneath the `phpci` section, with the properties `host` and `queue` as outlined in the screenshot below: On an existing installation, to set up the worker, you simply need to add the beanstalkd host and queue names directly into your `config.yml` file. You should add a `worker` key beneath the `php-censor` section, with the properties `host` and `queue` as outlined in the screenshot below:
![PHP Censor Worker Config](https://www.phptesting.org/media/render/9a88e9298670f2913f5798e68b94c9ed) ![PHP Censor Worker Config](https://www.phptesting.org/media/render/9a88e9298670f2913f5798e68b94c9ed)
@ -33,7 +33,7 @@ Running the PHP Censor worker
Once you've set up PHP Censor to add your jobs to a beanstalkd queue, you need to start the worker so that it can pick up and run your builds. On most servers, it is best to manage this using supervisord. The following instructions work on Ubuntu, but will need slight amendments for other distributions. Once you've set up PHP Censor to add your jobs to a beanstalkd queue, you need to start the worker so that it can pick up and run your builds. On most servers, it is best to manage this using supervisord. The following instructions work on Ubuntu, but will need slight amendments for other distributions.
Using your preferred text editor, create a file named `phpci.conf` under `/etc/supervisor/conf.d`. In it, enter the following config: Using your preferred text editor, create a file named `php-censor.conf` under `/etc/supervisor/conf.d`. In it, enter the following config:
``` ```
[program:phpci] [program:phpci]
@ -48,9 +48,9 @@ environment=HOME="/home/phpci",USER="phpci"
numprocs=2 numprocs=2
``` ```
You'll need to edit the '/path/to/phpci', the `user` value and the `environment` value to suit your server. The user needs to be an actual system user with suitable permissions to execute PHP and PHP Censor. You'll need to edit the '/path/to/php-censor', the `user` value and the `environment` value to suit your server. The user needs to be an actual system user with suitable permissions to execute PHP and PHP Censor.
Once you've created this file, simply restart supervisord using the command `service supervisor restart` and 2 instances of PHP Censor's worker should start immediately. You can verify this by running the command `ps aux | grep phpci`, which should give you output as follows: Once you've created this file, simply restart supervisord using the command `service supervisor restart` and 2 instances of PHP Censor's worker should start immediately. You can verify this by running the command `ps aux | grep php-censor`, which should give you output as follows:
``` ```
➜ ~ ps aux | grep phpci ➜ ~ ps aux | grep phpci

View file

@ -1,4 +1,4 @@
.phpci .main-header .logo, .phpci .main-header .logo:hover { .app-layout .main-header .logo, .app-layout .main-header .logo:hover {
background-image: url('/assets/img/php-censor-logo.png'); background-image: url('/assets/img/php-censor-logo.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 40%; background-size: 40%;

View file

@ -56,28 +56,28 @@ var PHPCensor = {
}, },
updateHeaderBuilds: function (data) { updateHeaderBuilds: function (data) {
$('.phpci-pending-list').empty(); $('.app-pending-list').empty();
$('.phpci-running-list').empty(); $('.app-running-list').empty();
if (!data.pending.count) { if (!data.pending.count) {
$('.phpci-pending').hide(); $('.app-pending').hide();
} else { } else {
$('.phpci-pending').show(); $('.app-pending').show();
$('.phpci-pending .header').text(Lang.get('n_builds_pending', data.pending.count)); $('.app-pending .header').text(Lang.get('n_builds_pending', data.pending.count));
$.each(data.pending.items, function (idx, build) { $.each(data.pending.items, function (idx, build) {
$('.phpci-pending-list').append(build.header_row); $('.app-pending-list').append(build.header_row);
}); });
} }
if (!data.running.count) { if (!data.running.count) {
$('.phpci-running').hide(); $('.app-running').hide();
} else { } else {
$('.phpci-running').show(); $('.app-running').show();
$('.phpci-running .header').text(Lang.get('n_builds_running', data.running.count)); $('.app-running .header').text(Lang.get('n_builds_running', data.running.count));
$.each(data.running.items, function (idx, build) { $.each(data.running.items, function (idx, build) {
$('.phpci-running-list').append(build.header_row); $('.app-running-list').append(build.header_row);
}); });
} }

View file

@ -116,13 +116,13 @@ var Build = Class.extend({
renderOrder.push($(this).attr('id')); renderOrder.push($(this).attr('id'));
}); });
localStorage.setItem('phpci-plugin-order', JSON.stringify(renderOrder)); localStorage.setItem('app-plugin-order', JSON.stringify(renderOrder));
}, },
renderPlugins: function() { renderPlugins: function() {
var self = this; var self = this;
var rendered = []; var rendered = [];
var renderOrder = localStorage.getItem('phpci-plugin-order'); var renderOrder = localStorage.getItem('app-plugin-order');
if (renderOrder) { if (renderOrder) {
renderOrder = JSON.parse(renderOrder); renderOrder = JSON.parse(renderOrder);
@ -135,7 +135,7 @@ var Build = Class.extend({
// Plugins have changed, clear the order. // Plugins have changed, clear the order.
if (typeof self.plugins[key] == 'undefined') { if (typeof self.plugins[key] == 'undefined') {
localStorage.setItem('phpci-plugin-order', []); localStorage.setItem('app-plugin-order', []);
} }
self.renderPlugin(self.plugins[key]); self.renderPlugin(self.plugins[key]);

View file

@ -16,7 +16,7 @@ $(function () {
}); });
function bindAppDeleteEvents () { function bindAppDeleteEvents () {
$('.phpci-app-delete-build').on('click', function (e) { $('.app-delete-build').on('click', function (e) {
e.preventDefault(); e.preventDefault();
confirmDelete(e.target.href, 'Build').onClose = function () { confirmDelete(e.target.href, 'Build').onClose = function () {
@ -26,7 +26,7 @@ function bindAppDeleteEvents () {
return false; return false;
}); });
$('.phpci-app-delete-user').on('click', function (e) { $('.app-delete-user').on('click', function (e) {
e.preventDefault(); e.preventDefault();
confirmDelete(e.target.href, 'User', true); confirmDelete(e.target.href, 'User', true);

View file

@ -37,15 +37,15 @@ class Application extends b8\Application
// Inlined as a closure to fix "using $this when not in object context" on 5.3 // Inlined as a closure to fix "using $this when not in object context" on 5.3
$validateSession = function () { $validateSession = function () {
if (!empty($_SESSION['phpci_user_id'])) { if (!empty($_SESSION['php-censor-user-id'])) {
$user = b8\Store\Factory::getStore('User')->getByPrimaryKey($_SESSION['phpci_user_id']); $user = b8\Store\Factory::getStore('User')->getByPrimaryKey($_SESSION['php-censor-user-id']);
if ($user) { if ($user) {
$_SESSION['phpci_user'] = $user; $_SESSION['php-censor-user'] = $user;
return true; return true;
} }
unset($_SESSION['phpci_user_id']); unset($_SESSION['php-censor-user-id']);
} }
return false; return false;
@ -62,7 +62,7 @@ class Application extends b8\Application
$response->setResponseCode(401); $response->setResponseCode(401);
$response->setContent(''); $response->setContent('');
} else { } else {
$_SESSION['phpci_login_redirect'] = substr($request->getPath(), 1); $_SESSION['php-censor-login-redirect'] = substr($request->getPath(), 1);
$response = new RedirectResponse($response); $response = new RedirectResponse($response);
$response->setHeader('Location', APP_URL . 'session/login'); $response->setHeader('Location', APP_URL . 'session/login');
} }
@ -156,15 +156,15 @@ class Application extends b8\Application
protected function shouldSkipAuth() protected function shouldSkipAuth()
{ {
$config = b8\Config::getInstance(); $config = b8\Config::getInstance();
$state = (bool)$config->get('phpci.authentication_settings.state', false); $state = (bool)$config->get('php-censor.authentication_settings.state', false);
$userId = $config->get('phpci.authentication_settings.user_id', 0); $userId = $config->get('php-censor.authentication_settings.user_id', 0);
if (false !== $state && 0 != (int)$userId) { if (false !== $state && 0 != (int)$userId) {
$user = b8\Store\Factory::getStore('User') $user = b8\Store\Factory::getStore('User')
->getByPrimaryKey($userId); ->getByPrimaryKey($userId);
if ($user) { if ($user) {
$_SESSION['phpci_user'] = $user; $_SESSION['php-censor-user'] = $user;
return true; return true;
} }
} }

View file

@ -136,7 +136,7 @@ class Builder implements LoggerAwareInterface
public function setConfigArray($config) public function setConfigArray($config)
{ {
if (is_null($config) || !is_array($config)) { if (is_null($config) || !is_array($config)) {
throw new \Exception(Lang::get('missing_phpci_yml')); throw new \Exception(Lang::get('missing_app_yml'));
} }
$this->config = $config; $this->config = $config;
@ -429,7 +429,7 @@ class Builder implements LoggerAwareInterface
$pluginFactory->registerResource( $pluginFactory->registerResource(
function () use ($self) { function () use ($self) {
$factory = new MailerFactory($self->getSystemConfig('phpci')); $factory = new MailerFactory($self->getSystemConfig('php-censor'));
return $factory->getSwiftMailerFromConfig(); return $factory->getSwiftMailerFromConfig();
}, },
null, null,

View file

@ -44,7 +44,7 @@ class CreateAdminCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:create-admin') ->setName('php-censor:create-admin')
->setDescription(Lang::get('create_admin_user')); ->setDescription(Lang::get('create_admin_user'));
} }

View file

@ -53,7 +53,7 @@ class CreateBuildCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:create-build') ->setName('php-censor:create-build')
->setDescription(Lang::get('create_build_project')) ->setDescription(Lang::get('create_build_project'))
->addArgument('projectId', InputArgument::REQUIRED, Lang::get('project_id_argument')) ->addArgument('projectId', InputArgument::REQUIRED, Lang::get('project_id_argument'))
->addOption('commit', null, InputOption::VALUE_OPTIONAL, Lang::get('commit_id_option')) ->addOption('commit', null, InputOption::VALUE_OPTIONAL, Lang::get('commit_id_option'))

View file

@ -58,7 +58,7 @@ class DaemonCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:daemon') ->setName('php-censor:daemon')
->setDescription('Initiates the daemon to run commands.') ->setDescription('Initiates the daemon to run commands.')
->addArgument( ->addArgument(
'state', InputArgument::REQUIRED, 'start|stop|status' 'state', InputArgument::REQUIRED, 'start|stop|status'
@ -113,7 +113,7 @@ class DaemonCommand extends Command
$this->logger->info("Trying to start the daemon"); $this->logger->info("Trying to start the daemon");
$cmd = "nohup %sdaemonise phpci:daemonise > %s 2>&1 &"; $cmd = "nohup %sdaemonise php-censor:daemonise > %s 2>&1 &";
$command = sprintf($cmd, BIN_DIR, $this->logFilePath); $command = sprintf($cmd, BIN_DIR, $this->logFilePath);
$output = $exitCode = null; $output = $exitCode = null;
exec($command, $output, $exitCode); exec($command, $output, $exitCode);

View file

@ -56,7 +56,7 @@ class DaemoniseCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:daemonise') ->setName('php-censor:daemonise')
->setDescription('Starts the daemon to run commands.'); ->setDescription('Starts the daemon to run commands.');
} }

View file

@ -40,7 +40,7 @@ class InstallCommand extends Command
$defaultPath = APP_DIR . 'config.yml'; $defaultPath = APP_DIR . 'config.yml';
$this $this
->setName('phpci:install') ->setName('php-censor:install')
->addOption('url', null, InputOption::VALUE_OPTIONAL, Lang::get('installation_url')) ->addOption('url', null, InputOption::VALUE_OPTIONAL, Lang::get('installation_url'))
->addOption('db-host', null, InputOption::VALUE_OPTIONAL, Lang::get('db_host')) ->addOption('db-host', null, InputOption::VALUE_OPTIONAL, Lang::get('db_host'))
->addOption('db-port', null, InputOption::VALUE_OPTIONAL, Lang::get('db_port')) ->addOption('db-port', null, InputOption::VALUE_OPTIONAL, Lang::get('db_port'))
@ -54,7 +54,7 @@ class InstallCommand extends Command
->addOption('queue-disabled', null, InputOption::VALUE_NONE, 'Don\'t ask for queue details') ->addOption('queue-disabled', null, InputOption::VALUE_NONE, 'Don\'t ask for queue details')
->addOption('queue-server', null, InputOption::VALUE_OPTIONAL, 'Beanstalkd queue server hostname') ->addOption('queue-server', null, InputOption::VALUE_OPTIONAL, 'Beanstalkd queue server hostname')
->addOption('queue-name', null, InputOption::VALUE_OPTIONAL, 'Beanstalkd queue name') ->addOption('queue-name', null, InputOption::VALUE_OPTIONAL, 'Beanstalkd queue name')
->setDescription(Lang::get('install_phpci')); ->setDescription(Lang::get('install_app'));
} }
/** /**
@ -70,7 +70,7 @@ class InstallCommand extends Command
$output->writeln(''); $output->writeln('');
$output->writeln('<info>******************</info>'); $output->writeln('<info>******************</info>');
$output->writeln('<info> '.Lang::get('welcome_to_phpci').'</info>'); $output->writeln('<info> '.Lang::get('welcome_to_app').'</info>');
$output->writeln('<info>******************</info>'); $output->writeln('<info>******************</info>');
$output->writeln(''); $output->writeln('');
@ -99,7 +99,7 @@ class InstallCommand extends Command
// ---- // ----
// Get basic installation details (URL, etc) // Get basic installation details (URL, etc)
// ---- // ----
$conf['phpci'] = $this->getPhpciConfigInformation($input, $output); $conf['php-censor'] = $this->getConfigInformation($input, $output);
$this->writeConfigFile($conf); $this->writeConfigFile($conf);
$this->setupDatabase($output); $this->setupDatabase($output);
@ -121,7 +121,7 @@ class InstallCommand extends Command
// Check PHP version: // Check PHP version:
if (!(version_compare(PHP_VERSION, '5.3.8') >= 0)) { if (!(version_compare(PHP_VERSION, '5.3.8') >= 0)) {
$output->writeln(''); $output->writeln('');
$output->writeln('<error>'.Lang::get('phpci_php_req').'</error>'); $output->writeln('<error>'.Lang::get('app_php_req').'</error>');
$errors = true; $errors = true;
} }
@ -217,9 +217,9 @@ class InstallCommand extends Command
* @param OutputInterface $output * @param OutputInterface $output
* @return array * @return array
*/ */
protected function getPhpciConfigInformation(InputInterface $input, OutputInterface $output) protected function getConfigInformation(InputInterface $input, OutputInterface $output)
{ {
$phpci = []; $config = [];
/** @var $helper QuestionHelper */ /** @var $helper QuestionHelper */
$helper = $this->getHelperSet()->get('question'); $helper = $this->getHelperSet()->get('question');
@ -235,15 +235,15 @@ class InstallCommand extends Command
if ($url = $input->getOption('url')) { if ($url = $input->getOption('url')) {
$url = $urlValidator($url); $url = $urlValidator($url);
} else { } else {
$question = new Question(Lang::get('enter_phpci_url')); $question = new Question(Lang::get('enter_app_url'));
$question->setValidator($urlValidator); $question->setValidator($urlValidator);
$url = $helper->ask($input, $output, $question); $url = $helper->ask($input, $output, $question);
} }
$phpci['url'] = $url; $config['url'] = $url;
$phpci['worker'] = $this->getQueueInformation($input, $output, $helper); $config['worker'] = $this->getQueueInformation($input, $output, $helper);
return $phpci; return $config;
} }
/** /**
@ -275,7 +275,7 @@ class InstallCommand extends Command
} }
if (!$rtn['queue'] = $input->getOption('queue-name')) { if (!$rtn['queue'] = $input->getOption('queue-name')) {
$questionName = new Question('Enter the queue (tube) name to use [phpci]: ', 'phpci'); $questionName = new Question('Enter the queue (tube) name to use [php-censor-queue]: ', 'php-censor-queue');
$rtn['queue'] = $helper->ask($input, $output, $questionName); $rtn['queue'] = $helper->ask($input, $output, $questionName);
} }
@ -307,12 +307,12 @@ class InstallCommand extends Command
} }
if (!$dbName = $input->getOption('db-name')) { if (!$dbName = $input->getOption('db-name')) {
$questionDb = new Question(Lang::get('enter_db_name'), 'phpci'); $questionDb = new Question(Lang::get('enter_db_name'), 'php-censor-db');
$dbName = $helper->ask($input, $output, $questionDb); $dbName = $helper->ask($input, $output, $questionDb);
} }
if (!$dbUser = $input->getOption('db-user')) { if (!$dbUser = $input->getOption('db-user')) {
$questionUser = new Question(Lang::get('enter_db_user'), 'phpci'); $questionUser = new Question(Lang::get('enter_db_user'), 'php-censor-user');
$dbUser = $helper->ask($input, $output, $questionUser); $dbUser = $helper->ask($input, $output, $questionUser);
} }

View file

@ -41,7 +41,7 @@ class PollCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:poll-github') ->setName('php-censor:poll-github')
->setDescription(Lang::get('poll_github')); ->setDescription(Lang::get('poll_github'));
} }
@ -54,7 +54,7 @@ class PollCommand extends Command
$yaml = file_get_contents(APP_DIR . 'config.yml'); $yaml = file_get_contents(APP_DIR . 'config.yml');
$this->settings = $parser->parse($yaml); $this->settings = $parser->parse($yaml);
$token = $this->settings['phpci']['github']['token']; $token = $this->settings['php-censor']['github']['token'];
if (!$token) { if (!$token) {
$this->logger->error(Lang::get('no_token')); $this->logger->error(Lang::get('no_token'));

View file

@ -58,7 +58,7 @@ class RebuildCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:rebuild') ->setName('php-censor:rebuild')
->setDescription('Re-runs the last run build.'); ->setDescription('Re-runs the last run build.');
} }

View file

@ -50,7 +50,7 @@ class RebuildQueueCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:rebuild-queue') ->setName('php-censor:rebuild-queue')
->setDescription('Rebuilds the PHP Censor worker queue.'); ->setDescription('Rebuilds the PHP Censor worker queue.');
} }

View file

@ -64,7 +64,7 @@ class RunCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:run-builds') ->setName('php-censor:run-builds')
->setDescription(Lang::get('run_all_pending')) ->setDescription(Lang::get('run_all_pending'))
->addOption('debug', null, null, 'Run PHP Censor in Debug Mode'); ->addOption('debug', null, null, 'Run PHP Censor in Debug Mode');
} }
@ -159,7 +159,7 @@ class RunCommand extends Command
$running = $store->getByStatus(1); $running = $store->getByStatus(1);
$rtn = []; $rtn = [];
$timeout = Config::getInstance()->get('phpci.build.failed_after', 1800); $timeout = Config::getInstance()->get('php-censor.build.failed_after', 1800);
foreach ($running['items'] as $build) { foreach ($running['items'] as $build) {
/** @var \PHPCI\Model\Build $build */ /** @var \PHPCI\Model\Build $build */

View file

@ -38,8 +38,8 @@ class UpdateCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:update') ->setName('php-censor:update')
->setDescription(Lang::get('update_phpci')); ->setDescription(Lang::get('update_app'));
} }
/** /**
@ -51,7 +51,7 @@ class UpdateCommand extends Command
return; return;
} }
$output->write(Lang::get('updating_phpci')); $output->write(Lang::get('updating_app'));
shell_exec(ROOT_DIR . 'vendor/bin/phinx migrate -c "' . APP_DIR . 'phinx.php"'); shell_exec(ROOT_DIR . 'vendor/bin/phinx migrate -c "' . APP_DIR . 'phinx.php"');
@ -61,8 +61,8 @@ class UpdateCommand extends Command
protected function verifyInstalled() protected function verifyInstalled()
{ {
$config = Config::getInstance(); $config = Config::getInstance();
$phpciUrl = $config->get('phpci.url'); $url = $config->get('php-censor.url');
return !empty($phpciUrl); return !empty($url);
} }
} }

View file

@ -49,7 +49,7 @@ class WorkerCommand extends Command
protected function configure() protected function configure()
{ {
$this $this
->setName('phpci:worker') ->setName('php-censor:worker')
->setDescription('Runs the PHP Censor build worker.') ->setDescription('Runs the PHP Censor build worker.')
->addOption('debug', null, null, 'Run PHP Censor in Debug Mode'); ->addOption('debug', null, null, 'Run PHP Censor in Debug Mode');
} }
@ -72,7 +72,7 @@ class WorkerCommand extends Command
define('DEBUG_MODE', true); define('DEBUG_MODE', true);
} }
$config = Config::getInstance()->get('phpci.worker', []); $config = Config::getInstance()->get('php-censor.worker', []);
if (empty($config['host']) || empty($config['queue'])) { if (empty($config['host']) || empty($config['queue'])) {
$error = 'The worker is not configured. You must set a host and queue in your config.yml file.'; $error = 'The worker is not configured. You must set a host and queue in your config.yml file.';
@ -81,7 +81,7 @@ class WorkerCommand extends Command
$worker = new BuildWorker($config['host'], $config['queue']); $worker = new BuildWorker($config['host'], $config['queue']);
$worker->setLogger($this->logger); $worker->setLogger($this->logger);
$worker->setMaxJobs(Config::getInstance()->get('phpci.worker.max_jobs', -1)); $worker->setMaxJobs(Config::getInstance()->get('php-censor.worker.max_jobs', -1));
$worker->startWorker(); $worker->startWorker();
} }
} }

View file

@ -125,6 +125,6 @@ class Controller extends \b8\Controller
*/ */
protected function currentUserIsAdmin() protected function currentUserIsAdmin()
{ {
return $_SESSION['phpci_user']->getIsAdmin(); return $_SESSION['php-censor-user']->getIsAdmin();
} }
} }

View file

@ -113,7 +113,7 @@ class ProjectController extends PHPCensor\Controller
throw new NotFoundException(Lang::get('project_x_not_found', $projectId)); throw new NotFoundException(Lang::get('project_x_not_found', $projectId));
} }
$email = $_SESSION['phpci_user']->getEmail(); $email = $_SESSION['php-censor-user']->getEmail();
$build = $this->buildService->createBuild($project, null, urldecode($branch), $email); $build = $this->buildService->createBuild($project, null, urldecode($branch), $email);
if ($this->buildService->queueError) { if ($this->buildService->queueError) {

View file

@ -54,7 +54,7 @@ class SessionController extends Controller
if ($user && password_verify($this->getParam('password', ''), $user->getHash())) { if ($user && password_verify($this->getParam('password', ''), $user->getHash())) {
session_regenerate_id(true); session_regenerate_id(true);
$_SESSION['phpci_user_id'] = $user->getId(); $_SESSION['php-censor-user-id'] = $user->getId();
$response = new b8\Http\Response\RedirectResponse(); $response = new b8\Http\Response\RedirectResponse();
$response->setHeader('Location', $this->getLoginRedirect()); $response->setHeader('Location', $this->getLoginRedirect());
return $response; return $response;
@ -104,8 +104,8 @@ class SessionController extends Controller
*/ */
public function logout() public function logout()
{ {
unset($_SESSION['phpci_user']); unset($_SESSION['php-censor-user']);
unset($_SESSION['phpci_user_id']); unset($_SESSION['php-censor-user-id']);
session_destroy(); session_destroy();
@ -166,8 +166,8 @@ class SessionController extends Controller
$hash = password_hash($this->getParam('password'), PASSWORD_DEFAULT); $hash = password_hash($this->getParam('password'), PASSWORD_DEFAULT);
$user->setHash($hash); $user->setHash($hash);
$_SESSION['phpci_user'] = $this->userStore->save($user); $_SESSION['php-censor-user'] = $this->userStore->save($user);
$_SESSION['phpci_user_id'] = $user->getId(); $_SESSION['php-censor-user-id'] = $user->getId();
$response = new b8\Http\Response\RedirectResponse(); $response = new b8\Http\Response\RedirectResponse();
$response->setHeader('Location', APP_URL); $response->setHeader('Location', APP_URL);
@ -188,9 +188,9 @@ class SessionController extends Controller
{ {
$rtn = APP_URL; $rtn = APP_URL;
if (!empty($_SESSION['phpci_login_redirect'])) { if (!empty($_SESSION['php-censor-login-redirect'])) {
$rtn .= $_SESSION['phpci_login_redirect']; $rtn .= $_SESSION['php-censor-login-redirect'];
$_SESSION['phpci_login_redirect'] = null; $_SESSION['php-censor-login-redirect'] = null;
} }
return $rtn; return $rtn;

View file

@ -57,23 +57,23 @@ class SettingsController extends Controller
$this->view->settings = $this->settings; $this->view->settings = $this->settings;
$basicSettings = []; $basicSettings = [];
if (isset($this->settings['phpci']['basic'])) { if (isset($this->settings['php-censor']['basic'])) {
$basicSettings = $this->settings['phpci']['basic']; $basicSettings = $this->settings['php-censor']['basic'];
} }
$buildSettings = []; $buildSettings = [];
if (isset($this->settings['phpci']['build'])) { if (isset($this->settings['php-censor']['build'])) {
$buildSettings = $this->settings['phpci']['build']; $buildSettings = $this->settings['php-censor']['build'];
} }
$emailSettings = []; $emailSettings = [];
if (isset($this->settings['phpci']['email_settings'])) { if (isset($this->settings['php-censor']['email_settings'])) {
$emailSettings = $this->settings['phpci']['email_settings']; $emailSettings = $this->settings['php-censor']['email_settings'];
} }
$authSettings = []; $authSettings = [];
if (isset($this->settings['phpci']['authentication_settings'])) { if (isset($this->settings['php-censor']['authentication_settings'])) {
$authSettings = $this->settings['phpci']['authentication_settings']; $authSettings = $this->settings['php-censor']['authentication_settings'];
} }
$this->view->configFile = APP_DIR . 'config.yml'; $this->view->configFile = APP_DIR . 'config.yml';
@ -84,8 +84,8 @@ class SettingsController extends Controller
$this->view->authenticationSettings = $this->getAuthenticationForm($authSettings); $this->view->authenticationSettings = $this->getAuthenticationForm($authSettings);
$this->view->isWriteable = $this->canWriteConfig(); $this->view->isWriteable = $this->canWriteConfig();
if (!empty($this->settings['phpci']['github']['token'])) { if (!empty($this->settings['php-censor']['github']['token'])) {
$this->view->githubUser = $this->getGithubUser($this->settings['phpci']['github']['token']); $this->view->githubUser = $this->getGithubUser($this->settings['php-censor']['github']['token']);
} }
return $this->view->render(); return $this->view->render();
@ -98,9 +98,9 @@ class SettingsController extends Controller
{ {
$this->requireAdmin(); $this->requireAdmin();
$this->settings['phpci']['github']['id'] = $this->getParam('githubid', ''); $this->settings['php-censor']['github']['id'] = $this->getParam('githubid', '');
$this->settings['phpci']['github']['secret'] = $this->getParam('githubsecret', ''); $this->settings['php-censor']['github']['secret'] = $this->getParam('githubsecret', '');
$error = $this->storeSettings(); $error = $this->storeSettings();
$response = new b8\Http\Response\RedirectResponse(); $response = new b8\Http\Response\RedirectResponse();
@ -120,8 +120,8 @@ class SettingsController extends Controller
{ {
$this->requireAdmin(); $this->requireAdmin();
$this->settings['phpci']['email_settings'] = $this->getParams(); $this->settings['php-censor']['email_settings'] = $this->getParams();
$this->settings['phpci']['email_settings']['smtp_encryption'] = $this->getParam('smtp_encryption', 0); $this->settings['php-censor']['email_settings']['smtp_encryption'] = $this->getParam('smtp_encryption', 0);
$error = $this->storeSettings(); $error = $this->storeSettings();
@ -143,7 +143,7 @@ class SettingsController extends Controller
{ {
$this->requireAdmin(); $this->requireAdmin();
$this->settings['phpci']['build'] = $this->getParams(); $this->settings['php-censor']['build'] = $this->getParams();
$error = $this->storeSettings(); $error = $this->storeSettings();
@ -165,7 +165,7 @@ class SettingsController extends Controller
{ {
$this->requireAdmin(); $this->requireAdmin();
$this->settings['phpci']['basic'] = $this->getParams(); $this->settings['php-censor']['basic'] = $this->getParams();
$error = $this->storeSettings(); $error = $this->storeSettings();
$response = new b8\Http\Response\RedirectResponse(); $response = new b8\Http\Response\RedirectResponse();
@ -186,8 +186,8 @@ class SettingsController extends Controller
{ {
$this->requireAdmin(); $this->requireAdmin();
$this->settings['phpci']['authentication_settings']['state'] = $this->getParam('disable_authentication', 0); $this->settings['php-censor']['authentication_settings']['state'] = $this->getParam('disable_authentication', 0);
$this->settings['phpci']['authentication_settings']['user_id'] = $_SESSION['phpci_user_id']; $this->settings['php-censor']['authentication_settings']['user_id'] = $_SESSION['php-censor-user-id'];
$error = $this->storeSettings(); $error = $this->storeSettings();
@ -208,7 +208,7 @@ class SettingsController extends Controller
public function githubCallback() public function githubCallback()
{ {
$code = $this->getParam('code', null); $code = $this->getParam('code', null);
$github = $this->settings['phpci']['github']; $github = $this->settings['php-censor']['github'];
if (!is_null($code)) { if (!is_null($code)) {
$http = new HttpClient(); $http = new HttpClient();
@ -219,7 +219,7 @@ class SettingsController extends Controller
if ($resp['success']) { if ($resp['success']) {
parse_str($resp['body'], $resp); parse_str($resp['body'], $resp);
$this->settings['phpci']['github']['token'] = $resp['access_token']; $this->settings['php-censor']['github']['token'] = $resp['access_token'];
$this->storeSettings(); $this->storeSettings();
$response = new b8\Http\Response\RedirectResponse(); $response = new b8\Http\Response\RedirectResponse();
@ -269,8 +269,8 @@ class SettingsController extends Controller
$field->setContainerClass('form-group'); $field->setContainerClass('form-group');
$form->addField($field); $form->addField($field);
if (isset($this->settings['phpci']['github']['id'])) { if (isset($this->settings['php-censor']['github']['id'])) {
$field->setValue($this->settings['phpci']['github']['id']); $field->setValue($this->settings['php-censor']['github']['id']);
} }
$field = new Form\Element\Text('githubsecret'); $field = new Form\Element\Text('githubsecret');
@ -281,8 +281,8 @@ class SettingsController extends Controller
$field->setContainerClass('form-group'); $field->setContainerClass('form-group');
$form->addField($field); $form->addField($field);
if (isset($this->settings['phpci']['github']['secret'])) { if (isset($this->settings['php-censor']['github']['secret'])) {
$field->setValue($this->settings['phpci']['github']['secret']); $field->setValue($this->settings['php-censor']['github']['secret']);
} }
$field = new Form\Element\Submit(); $field = new Form\Element\Submit();

View file

@ -61,7 +61,7 @@ class UserController extends Controller
*/ */
public function profile() public function profile()
{ {
$user = $_SESSION['phpci_user']; $user = $_SESSION['php-censor-user'];
if ($this->request->getMethod() == 'POST') { if ($this->request->getMethod() == 'POST') {
$name = $this->getParam('name', null); $name = $this->getParam('name', null);
@ -72,12 +72,12 @@ class UserController extends Controller
$chosenLang = $this->getParam('language', $currentLang); $chosenLang = $this->getParam('language', $currentLang);
if ($chosenLang !== $currentLang) { if ($chosenLang !== $currentLang) {
setcookie('phpcilang', $chosenLang, time() + (10 * 365 * 24 * 60 * 60), '/'); setcookie('php-censor-language', $chosenLang, time() + (10 * 365 * 24 * 60 * 60), '/');
Lang::setLanguage($chosenLang); Lang::setLanguage($chosenLang);
} }
$_SESSION['phpci_user'] = $this->userService->updateUser($user, $name, $email, $password); $_SESSION['php-censor-user'] = $this->userService->updateUser($user, $name, $email, $password);
$user = $_SESSION['phpci_user']; $user = $_SESSION['php-censor-user'];
$this->view->updated = 1; $this->view->updated = 1;
} }
@ -87,8 +87,8 @@ class UserController extends Controller
$values = $user->getDataArray(); $values = $user->getDataArray();
if (array_key_exists('phpcilang', $_COOKIE)) { if (array_key_exists('php-censor-language', $_COOKIE)) {
$values['language'] = $_COOKIE['phpcilang']; $values['language'] = $_COOKIE['php-censor-language'];
} }
$form = new Form(); $form = new Form();

View file

@ -292,7 +292,7 @@ class WebhookController extends Controller
} }
$headers = []; $headers = [];
$token = Config::getInstance()->get('phpci.github.token'); $token = Config::getInstance()->get('php-censor.github.token');
if (!empty($token)) { if (!empty($token)) {
$headers[] = 'Authorization: token ' . $token; $headers[] = 'Authorization: token ' . $token;
@ -303,7 +303,7 @@ class WebhookController extends Controller
$http->setHeaders($headers); $http->setHeaders($headers);
//for large pull requests, allow grabbing more then the default number of commits //for large pull requests, allow grabbing more then the default number of commits
$custom_per_page = Config::getInstance()->get('phpci.github.per_page'); $custom_per_page = Config::getInstance()->get('php-censor.github.per_page');
$params = []; $params = [];
if ($custom_per_page) { if ($custom_per_page) {
$params["per_page"] = $custom_per_page; $params["per_page"] = $custom_per_page;

View file

@ -27,11 +27,12 @@ class BuildInterpolator
/** /**
* Sets the variables that will be used for interpolation. * Sets the variables that will be used for interpolation.
* @param Build $build *
* @param Build $build
* @param string $buildPath * @param string $buildPath
* @param string $phpCiUrl * @param string $url
*/ */
public function setupInterpolationVars(Build $build, $buildPath, $phpCiUrl) public function setupInterpolationVars(Build $build, $buildPath, $url)
{ {
$this->interpolation_vars = []; $this->interpolation_vars = [];
$this->interpolation_vars['%PHPCI%'] = 1; $this->interpolation_vars['%PHPCI%'] = 1;
@ -45,9 +46,9 @@ class BuildInterpolator
$this->interpolation_vars['%PROJECT%'] = $build->getProjectId(); $this->interpolation_vars['%PROJECT%'] = $build->getProjectId();
$this->interpolation_vars['%BUILD%'] = $build->getId(); $this->interpolation_vars['%BUILD%'] = $build->getId();
$this->interpolation_vars['%PROJECT_TITLE%'] = $build->getProjectTitle(); $this->interpolation_vars['%PROJECT_TITLE%'] = $build->getProjectTitle();
$this->interpolation_vars['%PROJECT_URI%'] = $phpCiUrl . "project/view/" . $build->getProjectId(); $this->interpolation_vars['%PROJECT_URI%'] = $url . "project/view/" . $build->getProjectId();
$this->interpolation_vars['%BUILD_PATH%'] = $buildPath; $this->interpolation_vars['%BUILD_PATH%'] = $buildPath;
$this->interpolation_vars['%BUILD_URI%'] = $phpCiUrl . "build/view/" . $build->getId(); $this->interpolation_vars['%BUILD_URI%'] = $url . "build/view/" . $build->getId();
$this->interpolation_vars['%PHPCI_COMMIT%'] = $this->interpolation_vars['%COMMIT%']; $this->interpolation_vars['%PHPCI_COMMIT%'] = $this->interpolation_vars['%COMMIT%'];
$this->interpolation_vars['%PHPCI_SHORT_COMMIT%'] = $this->interpolation_vars['%SHORT_COMMIT%']; $this->interpolation_vars['%PHPCI_SHORT_COMMIT%'] = $this->interpolation_vars['%SHORT_COMMIT%'];
$this->interpolation_vars['%PHPCI_COMMIT_MESSAGE%'] = $this->interpolation_vars['%COMMIT_MESSAGE%']; $this->interpolation_vars['%PHPCI_COMMIT_MESSAGE%'] = $this->interpolation_vars['%COMMIT_MESSAGE%'];

View file

@ -100,14 +100,14 @@ class Email
/** /**
* Send the email. * Send the email.
* *
* @param Builder $phpci * @param Builder $builder
* *
* @return bool|int * @return bool|int
*/ */
public function send(Builder $phpci) public function send(Builder $builder)
{ {
$smtpServer = $this->config->get('phpci.email_settings.smtp_address'); $smtpServer = $this->config->get('php-censor.email_settings.smtp_address');
$phpci->logDebug(sprintf("SMTP: '%s'", !empty($smtpServer) ? 'true' : 'false')); $builder->logDebug(sprintf("SMTP: '%s'", !empty($smtpServer) ? 'true' : 'false'));
if (empty($smtpServer)) { if (empty($smtpServer)) {
return $this->sendViaMail(); return $this->sendViaMail();
@ -152,7 +152,7 @@ class Email
*/ */
protected function sendViaSwiftMailer() protected function sendViaSwiftMailer()
{ {
$factory = new MailerFactory($this->config->get('phpci')); $factory = new MailerFactory($this->config->get('php-censor'));
$mailer = $factory->getSwiftMailerFromConfig(); $mailer = $factory->getSwiftMailerFromConfig();
$message = \Swift_Message::newInstance($this->subject) $message = \Swift_Message::newInstance($this->subject)
@ -177,7 +177,7 @@ class Email
*/ */
protected function getFrom() protected function getFrom()
{ {
$email = $this->config->get('phpci.email_settings.from_address', self::DEFAULT_FROM); $email = $this->config->get('php-censor.email_settings.from_address', self::DEFAULT_FROM);
if (empty($email)) { if (empty($email)) {
$email = self::DEFAULT_FROM; $email = self::DEFAULT_FROM;

View file

@ -70,14 +70,14 @@ class Github
*/ */
public function getRepositories() public function getRepositories()
{ {
$token = Config::getInstance()->get('phpci.github.token'); $token = Config::getInstance()->get('php-censor.github.token');
if (!$token) { if (!$token) {
return null; return null;
} }
$cache = Cache::getCache(Cache::TYPE_APC); $cache = Cache::getCache(Cache::TYPE_APC);
$rtn = $cache->get('phpci_github_repos'); $rtn = $cache->get('php-censor-github-repos');
if (!$rtn) { if (!$rtn) {
$orgs = $this->makeRequest('/user/orgs', ['access_token' => $token]); $orgs = $this->makeRequest('/user/orgs', ['access_token' => $token]);
@ -97,7 +97,7 @@ class Github
} }
} }
$cache->set('phpci_github_repos', $rtn); $cache->set('php-censor-github-repos', $rtn);
} }
return $rtn; return $rtn;
@ -115,7 +115,7 @@ class Github
*/ */
public function createPullRequestComment($repo, $pullId, $commitId, $file, $line, $comment) public function createPullRequestComment($repo, $pullId, $commitId, $file, $line, $comment)
{ {
$token = Config::getInstance()->get('phpci.github.token'); $token = Config::getInstance()->get('php-censor.github.token');
if (!$token) { if (!$token) {
return null; return null;
@ -150,7 +150,7 @@ class Github
*/ */
public function createCommitComment($repo, $commitId, $file, $line, $comment) public function createCommitComment($repo, $commitId, $file, $line, $comment)
{ {
$token = Config::getInstance()->get('phpci.github.token'); $token = Config::getInstance()->get('php-censor.github.token');
if (!$token) { if (!$token) {
return null; return null;

View file

@ -132,7 +132,7 @@ class Lang
self::loadAvailableLanguages(); self::loadAvailableLanguages();
// Try cookies first: // Try cookies first:
if (isset($_COOKIE) && array_key_exists('phpcilang', $_COOKIE) && self::setLanguage($_COOKIE['phpcilang'])) { if (isset($_COOKIE) && array_key_exists('php-censor-language', $_COOKIE) && self::setLanguage($_COOKIE['php-censor-language'])) {
return; return;
} }
@ -151,7 +151,7 @@ class Lang
} }
// Try the installation default language: // Try the installation default language:
$language = $config->get('phpci.basic.language', null); $language = $config->get('php-censor.basic.language', null);
if (self::setLanguage($language)) { if (self::setLanguage($language)) {
return; return;
} }

View file

@ -30,7 +30,7 @@ class LoginIsDisabled
unset($method, $params); unset($method, $params);
$config = Config::getInstance(); $config = Config::getInstance();
$state = (bool) $config->get('phpci.authentication_settings.state', false); $state = (bool) $config->get('php-censor.authentication_settings.state', false);
return (false !== $state); return (false !== $state);
} }

View file

@ -39,7 +39,7 @@ class SshKey
$return = ['private_key' => '', 'public_key' => '']; $return = ['private_key' => '', 'public_key' => ''];
$output = @shell_exec('ssh-keygen -t rsa -b 2048 -f '.$keyFile.' -N "" -C "deploy@phpci"'); $output = @shell_exec('ssh-keygen -t rsa -b 2048 -f '.$keyFile.' -N "" -C "deploy@php-censor"');
if (!empty($output)) { if (!empty($output)) {
$pub = file_get_contents($keyFile . '.pub'); $pub = file_get_contents($keyFile . '.pub');

View file

@ -25,7 +25,7 @@ class User
*/ */
public function __call($method, $params = []) public function __call($method, $params = [])
{ {
$user = $_SESSION['phpci_user']; $user = $_SESSION['php-censor-user'];
if (!is_object($user)) { if (!is_object($user)) {
return null; return null;

View file

@ -12,7 +12,7 @@ return [
'language' => 'Sprog', 'language' => 'Sprog',
// Log in: // Log in:
'log_in_to_phpci' => 'Log ind i PHP Censor', 'log_in_to_app' => 'Log ind i PHP Censor',
'login_error' => 'Forkert email-adresse eller adgangskode', 'login_error' => 'Forkert email-adresse eller adgangskode',
'forgotten_password_link' => 'Har du glemt din adgangskode?', 'forgotten_password_link' => 'Har du glemt din adgangskode?',
'reset_emailed' => 'Vi har sendt dig en email med et link til at nulstille din adgangskode.', 'reset_emailed' => 'Vi har sendt dig en email med et link til at nulstille din adgangskode.',
@ -238,7 +238,7 @@ Services</a> sektionen under dit Bitbucket-repository.',
'github_application' => 'GitHub-applikation', 'github_application' => 'GitHub-applikation',
'github_sign_in' => 'Før du kan bruge GitHub skal du <a href="%s">logge ind</a> og give PHP Censor 'github_sign_in' => 'Før du kan bruge GitHub skal du <a href="%s">logge ind</a> og give PHP Censor
adgang til din konto.', adgang til din konto.',
'github_phpci_linked' => 'PHP Censor blev tilsluttet din GitHub-konto.', 'github_app_linked' => 'PHP Censor blev tilsluttet din GitHub-konto.',
'github_where_to_find' => 'Hvor disse findes...', 'github_where_to_find' => 'Hvor disse findes...',
'github_where_help' => 'Hvis du ejer applikationen du ønsker at bruge kan du finde denne information i 'github_where_help' => 'Hvis du ejer applikationen du ønsker at bruge kan du finde denne information i
<a href="https://github.com/settings/applications">applications</a> under indstillinger.', <a href="https://github.com/settings/applications">applications</a> under indstillinger.',
@ -295,10 +295,10 @@ du kører composer update.',
'admin_pass' => 'Administrator-adgangskode', 'admin_pass' => 'Administrator-adgangskode',
'admin_email' => 'Administrators email-adresse', 'admin_email' => 'Administrators email-adresse',
'config_path' => 'Konfigurations-fil', 'config_path' => 'Konfigurations-fil',
'install_phpci' => 'Installér PHP Censor', 'install_app' => 'Installér PHP Censor',
'welcome_to_phpci' => 'Velkommen til PHP Censor', 'welcome_to_app' => 'Velkommen til PHP Censor',
'please_answer' => 'Besvar venligst følgende spørgsmål:', 'please_answer' => 'Besvar venligst følgende spørgsmål:',
'phpci_php_req' => 'PHP Censor kræver minimum PHP version 5.3.8 for at fungere.', 'app_php_req' => 'PHP Censor kræver minimum PHP version 5.3.8 for at fungere.',
'extension_required' => 'Extension påkrævet: %s', 'extension_required' => 'Extension påkrævet: %s',
'function_required' => 'PHP Censor behøver adgang til funktion %s() i PHP. Er den deaktiveret i php.ini?', 'function_required' => 'PHP Censor behøver adgang til funktion %s() i PHP. Er den deaktiveret i php.ini?',
'requirements_not_met' => 'PHP Censor kan ikke installeres da nogle krav ikke opfyldtes. 'requirements_not_met' => 'PHP Censor kan ikke installeres da nogle krav ikke opfyldtes.
@ -308,24 +308,24 @@ Kontrollér venligst nedenstående fejl før du fortsætter.',
'enter_name' => 'Administrator-navn: ', 'enter_name' => 'Administrator-navn: ',
'enter_email' => 'Administrators email-adresse: ', 'enter_email' => 'Administrators email-adresse: ',
'enter_password' => 'Administrator-adgangskode: ', 'enter_password' => 'Administrator-adgangskode: ',
'enter_phpci_url' => 'Din PHP Censor URL (eksempelvis "http://phpci.local"): ', 'enter_app_url' => 'Din PHP Censor URL (eksempelvis "http://php-censor.local"): ',
'enter_db_host' => 'Indtast dit MySQL-hostnavn [localhost]: ', 'enter_db_host' => 'Indtast dit MySQL-hostnavn [localhost]: ',
'enter_db_name' => 'Indtast dit MySQL database-navn [phpci]: ', 'enter_db_name' => 'Indtast dit MySQL database-navn [php-censor-db]: ',
'enter_db_user' => 'Indtast dit MySQL-brugernavn [phpci]: ', 'enter_db_user' => 'Indtast dit MySQL-brugernavn [php-censor-user]: ',
'enter_db_pass' => 'Indtast dit MySQL-password: ', 'enter_db_pass' => 'Indtast dit MySQL-password: ',
'could_not_connect' => 'PHP Censor kunne ikke forbinde til MySQL med de angivning oplysninger. Forsøg igen.', 'could_not_connect' => 'PHP Censor kunne ikke forbinde til MySQL med de angivning oplysninger. Forsøg igen.',
'setting_up_db' => 'Indlæser database...', 'setting_up_db' => 'Indlæser database...',
'user_created' => 'Brugerkonto oprettet!', 'user_created' => 'Brugerkonto oprettet!',
'failed_to_create' => 'PHP Censor kunne ikke oprette din administrator-konto.', 'failed_to_create' => 'PHP Censor kunne ikke oprette din administrator-konto.',
'config_exists' => 'PHP Censor konfigurationsfilen findes og er ikke tom.', 'config_exists' => 'PHP Censor konfigurationsfilen findes og er ikke tom.',
'update_instead' => 'Hvis du forsøgte at opdatere PHP Censor, forsøg da venligst med phpci:update istedet.', 'update_instead' => 'Hvis du forsøgte at opdatere PHP Censor, forsøg da venligst med php-censor:update istedet.',
// Update // Update
'update_phpci' => 'Opdatér databasen med ændrede modeller', 'update_app' => 'Opdatér databasen med ændrede modeller',
'updating_phpci' => 'Opdaterer PHP Censor-database:', 'updating_app' => 'Opdaterer PHP Censor-database:',
'not_installed' => 'PHP Censor lader til ikke at være installeret.', 'not_installed' => 'PHP Censor lader til ikke at være installeret.',
'install_instead' => 'Installér venligst PHP Censor via phpci:install istedet.', 'install_instead' => 'Installér venligst PHP Censor via php-censor:install istedet.',
// Poll Command // Poll Command
'poll_github' => 'Check via GitHub om et build skal startes.', 'poll_github' => 'Check via GitHub om et build skal startes.',
@ -354,7 +354,7 @@ Kontrollér venligst nedenstående fejl før du fortsætter.',
'marked_as_failed' => 'Build %d blev markeret som fejlet pga. timeout.', 'marked_as_failed' => 'Build %d blev markeret som fejlet pga. timeout.',
// Builder // Builder
'missing_phpci_yml' => 'Dette projekt har ingen phpci.yml fil, eller filen er tom.', 'missing_app_yml' => 'Dette projekt har ingen phpci.yml fil, eller filen er tom.',
'build_success' => 'BUILD SUCCES', 'build_success' => 'BUILD SUCCES',
'build_failed' => 'BUILD FEJLET', 'build_failed' => 'BUILD FEJLET',
'removing_build' => 'Fjerner Build', 'removing_build' => 'Fjerner Build',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Sprache', 'language' => 'Sprache',
// Log in: // Log in:
'log_in_to_phpci' => 'In PHP Censor einloggen', 'log_in_to_app' => 'In PHP Censor einloggen',
'login_error' => 'Fehlerhafte Emailadresse oder fehlerhaftes Passwort', 'login_error' => 'Fehlerhafte Emailadresse oder fehlerhaftes Passwort',
'forgotten_password_link' => 'Passwort vergessen?', 'forgotten_password_link' => 'Passwort vergessen?',
'reset_emailed' => 'Wir haben Ihnen einen Link geschickt, um Ihr Passwort zurückzusetzen', 'reset_emailed' => 'Wir haben Ihnen einen Link geschickt, um Ihr Passwort zurückzusetzen',
@ -248,7 +248,7 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab
'build_settings' => 'Buildeinstellungen', 'build_settings' => 'Buildeinstellungen',
'github_application' => 'GitHub-Applikation', 'github_application' => 'GitHub-Applikation',
'github_sign_in' => 'Bevor Sie anfangen GitHub zu verwenden, müssen Sie sich erst <a href="%s">einloggen</a> und PHP Censor Zugriff auf Ihr Nutzerkonto gewähren', 'github_sign_in' => 'Bevor Sie anfangen GitHub zu verwenden, müssen Sie sich erst <a href="%s">einloggen</a> und PHP Censor Zugriff auf Ihr Nutzerkonto gewähren',
'github_phpci_linked' => 'PHP Censor wurde erfolgreich mit Ihrem GitHub-Konto verknüpft.', 'github_app_linked' => 'PHP Censor wurde erfolgreich mit Ihrem GitHub-Konto verknüpft.',
'github_where_to_find' => 'Wo Sie diese finden...', 'github_where_to_find' => 'Wo Sie diese finden...',
'github_where_help' => 'Wenn Sie der Besitzer der Applikation sind, die Sie gerne verwenden möchten, können Sie 'github_where_help' => 'Wenn Sie der Besitzer der Applikation sind, die Sie gerne verwenden möchten, können Sie
diese Einstellungen in Ihrem "<a href="https://github.com/settings/applications">applications</a> diese Einstellungen in Ihrem "<a href="https://github.com/settings/applications">applications</a>
@ -318,10 +318,10 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab
'admin_pass' => 'Administratorpasswort', 'admin_pass' => 'Administratorpasswort',
'admin_email' => 'Emailadresse des Administrators', 'admin_email' => 'Emailadresse des Administrators',
'config_path' => 'Dateipfad für Konfiguration', 'config_path' => 'Dateipfad für Konfiguration',
'install_phpci' => 'PHP Censor installieren', 'install_app' => 'PHP Censor installieren',
'welcome_to_phpci' => 'Willkommen bei PHP Censor', 'welcome_to_app' => 'Willkommen bei PHP Censor',
'please_answer' => 'Bitte beantworten Sie die folgenden Fragen:', 'please_answer' => 'Bitte beantworten Sie die folgenden Fragen:',
'phpci_php_req' => 'PHP Censor benötigt mindestens PHP 5.3.8 um zu funktionieren.', 'app_php_req' => 'PHP Censor benötigt mindestens PHP 5.3.8 um zu funktionieren.',
'extension_required' => 'Benötigte Extensions: %s', 'extension_required' => 'Benötigte Extensions: %s',
'function_required' => 'PHP Censor muss die Funktion %s() aufrufen können. Ist sie in php.ini deaktiviert?', 'function_required' => 'PHP Censor muss die Funktion %s() aufrufen können. Ist sie in php.ini deaktiviert?',
'requirements_not_met' => 'PHP Censor konnte nicht installiert werden, weil nicht alle Bedingungen erfüllt sind. 'requirements_not_met' => 'PHP Censor konnte nicht installiert werden, weil nicht alle Bedingungen erfüllt sind.
@ -331,24 +331,24 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab
'enter_name' => 'Name des Administrators: ', 'enter_name' => 'Name des Administrators: ',
'enter_email' => 'Emailadresse des Administrators: ', 'enter_email' => 'Emailadresse des Administrators: ',
'enter_password' => 'Passwort des Administrators: ', 'enter_password' => 'Passwort des Administrators: ',
'enter_phpci_url' => 'Ihre PHP Censor-URL (z.B. "http://phpci.local"): ', 'enter_app_url' => 'Ihre PHP Censor-URL (z.B. "http://php-censor.local"): ',
'enter_db_host' => 'Bitte geben Sie Ihren MySQL-Host ein [localhost]: ', 'enter_db_host' => 'Bitte geben Sie Ihren MySQL-Host ein [localhost]: ',
'enter_db_name' => 'Bitte geben Sie Ihren MySQL-Namen ein [phpci]: ', 'enter_db_name' => 'Bitte geben Sie Ihren MySQL-Namen ein [php-censor-db]: ',
'enter_db_user' => 'Bitte geben Sie Ihren MySQL-Benutzernamen ein [phpci]: ', 'enter_db_user' => 'Bitte geben Sie Ihren MySQL-Benutzernamen ein [php-censor-user]: ',
'enter_db_pass' => 'Bitte geben Sie Ihr MySQL-Passwort ein: ', 'enter_db_pass' => 'Bitte geben Sie Ihr MySQL-Passwort ein: ',
'could_not_connect' => 'PHP Censor konnte wegen folgender Details nicht mit MySQL verbinden. Bitte versuchen Sie es erneut.', 'could_not_connect' => 'PHP Censor konnte wegen folgender Details nicht mit MySQL verbinden. Bitte versuchen Sie es erneut.',
'setting_up_db' => 'Ihre Datenbank wird aufgesetzt... ', 'setting_up_db' => 'Ihre Datenbank wird aufgesetzt... ',
'user_created' => 'Benutzerkonto wurde erstellt!', 'user_created' => 'Benutzerkonto wurde erstellt!',
'failed_to_create' => 'PHP Censor konnte Ihr Administratorenkonto nicht erstellen.', 'failed_to_create' => 'PHP Censor konnte Ihr Administratorenkonto nicht erstellen.',
'config_exists' => 'Die PHP Censor-Konfigurationsdatei existiert und ist nicht leer..', 'config_exists' => 'Die PHP Censor-Konfigurationsdatei existiert und ist nicht leer..',
'update_instead' => 'Falls Sie versucht haben PHP Censor zu aktualisieren, benutzen Sie bitte stattdessen phpci:update.', 'update_instead' => 'Falls Sie versucht haben PHP Censor zu aktualisieren, benutzen Sie bitte stattdessen php-censor:update.',
// Update // Update
'update_phpci' => 'Datenbank wird aktualisiert, um den Änderungen der Models zu entsprechen.', 'update_app' => 'Datenbank wird aktualisiert, um den Änderungen der Models zu entsprechen.',
'updating_phpci' => 'Aktualisiere PHP Censor-Datenbank:', 'updating_app' => 'Aktualisiere PHP Censor-Datenbank:',
'not_installed' => 'PHP Censor scheint nicht installiert zu sein.', 'not_installed' => 'PHP Censor scheint nicht installiert zu sein.',
'install_instead' => 'Bitte installieren Sie PHP Censor stattdessen via phpci:install.', 'install_instead' => 'Bitte installieren Sie PHP Censor stattdessen via php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'GitHub abfragen, um herauszufinden, ob ein Build gestartet werden muss.', 'poll_github' => 'GitHub abfragen, um herauszufinden, ob ein Build gestartet werden muss.',
@ -377,7 +377,7 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab
'marked_as_failed' => 'Build %d wegen Zeitüberschreitung als fehlgeschlagen markiert.', 'marked_as_failed' => 'Build %d wegen Zeitüberschreitung als fehlgeschlagen markiert.',
// Builder // Builder
'missing_phpci_yml' => 'Dieses Projekt beinhaltet keine phpci.yml-Datei, oder sie ist leer.', 'missing_app_yml' => 'Dieses Projekt beinhaltet keine phpci.yml-Datei, oder sie ist leer.',
'build_success' => 'BUILD ERFOLGREICH', 'build_success' => 'BUILD ERFOLGREICH',
'build_failed' => 'BUILD FEHLGESCHLAGEN', 'build_failed' => 'BUILD FEHLGESCHLAGEN',
'removing_build' => 'Entferne Build.', 'removing_build' => 'Entferne Build.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Γλώσσα', 'language' => 'Γλώσσα',
// Log in: // Log in:
'log_in_to_phpci' => 'Είσοδος στο PHP Censor', 'log_in_to_app' => 'Είσοδος στο PHP Censor',
'login_error' => 'Λάθος διεύθυνση e-mail ή κωδικός πρόσβασης', 'login_error' => 'Λάθος διεύθυνση e-mail ή κωδικός πρόσβασης',
'forgotten_password_link' => 'Ξεχάσατε τον κωδικό σας;', 'forgotten_password_link' => 'Ξεχάσατε τον κωδικό σας;',
'reset_emailed' => 'Σας έχουμε αποσταλεί ένα σύνδεσμο για να επαναφέρετε τον κωδικό πρόσβασής σας.', 'reset_emailed' => 'Σας έχουμε αποσταλεί ένα σύνδεσμο για να επαναφέρετε τον κωδικό πρόσβασής σας.',
@ -240,7 +240,7 @@ Services</a> του Bitbucket αποθετηρίου σας.',
'github_application' => 'GitHub Εφαρμογή', 'github_application' => 'GitHub Εφαρμογή',
'github_sign_in' => 'Πριν αρχίσετε να χρησιμοποιείτε το GitHub, θα πρέπει να <a href="%s"> συνδεθείται </a> και να δώσει 'github_sign_in' => 'Πριν αρχίσετε να χρησιμοποιείτε το GitHub, θα πρέπει να <a href="%s"> συνδεθείται </a> και να δώσει
το PHP Censor πρόσβαση στο λογαριασμό σας.', το PHP Censor πρόσβαση στο λογαριασμό σας.',
'github_phpci_linked' => 'Το PHP Censor συνδέθηκε με επιτυχία με το λογαριασμό Github.', 'github_app_linked' => 'Το PHP Censor συνδέθηκε με επιτυχία με το λογαριασμό Github.',
'github_where_to_find' => 'Πού να βρείτε αυτά ...', 'github_where_to_find' => 'Πού να βρείτε αυτά ...',
'github_where_help' => 'Εάν έχετε στην κατοχή σας την εφαρμογή που θέλετε να χρησιμοποιήσετε, μπορείτε να βρείτε αυτές τις πληροφορίες στην περιοχή 'github_where_help' => 'Εάν έχετε στην κατοχή σας την εφαρμογή που θέλετε να χρησιμοποιήσετε, μπορείτε να βρείτε αυτές τις πληροφορίες στην περιοχή
<a href="https://github.com/settings/applications">Ρυθμίσεις εφαρμογών </a> ', <a href="https://github.com/settings/applications">Ρυθμίσεις εφαρμογών </a> ',
@ -297,10 +297,10 @@ Services</a> του Bitbucket αποθετηρίου σας.',
'admin_pass' => 'Κωδικός πρόσβασης διαχειριστή', 'admin_pass' => 'Κωδικός πρόσβασης διαχειριστή',
'admin_email' => 'Διεύθυνση email διαχειριστή', 'admin_email' => 'Διεύθυνση email διαχειριστή',
'config_path' => 'Διαδρομή αρχείου ρυθμίσεων', 'config_path' => 'Διαδρομή αρχείου ρυθμίσεων',
'install_phpci' => 'Εγκατάσταση PHP Censor', 'install_app' => 'Εγκατάσταση PHP Censor',
'welcome_to_phpci' => 'Καλώς ήρθατε στο PHP Censor', 'welcome_to_app' => 'Καλώς ήρθατε στο PHP Censor',
'please_answer' => 'Παρακαλώ απαντήστε στις ακόλουθες ερωτήσεις:', 'please_answer' => 'Παρακαλώ απαντήστε στις ακόλουθες ερωτήσεις:',
'phpci_php_req' => 'Το PHP Censor απαιτεί τουλάχιστον την έκδοση PHP 5.3.8 για να λειτουργήσει', 'app_php_req' => 'Το PHP Censor απαιτεί τουλάχιστον την έκδοση PHP 5.3.8 για να λειτουργήσει',
'extension_required' => 'Απαιτούμενη επέκταση: %s ', 'extension_required' => 'Απαιτούμενη επέκταση: %s ',
'function_required' => 'Το PHP Censor πρέπει να είναι σε θέση να καλέσει την %s() συνάρτηση. Είναι απενεργοποιημένη στο php.ini;', 'function_required' => 'Το PHP Censor πρέπει να είναι σε θέση να καλέσει την %s() συνάρτηση. Είναι απενεργοποιημένη στο php.ini;',
'requirements_not_met' => 'Το PHP Censor δεν μπορεί να εγκατασταθεί, καθώς όλες οι απαιτήσεις δεν ικανοποιούνται. 'requirements_not_met' => 'Το PHP Censor δεν μπορεί να εγκατασταθεί, καθώς όλες οι απαιτήσεις δεν ικανοποιούνται.
@ -310,24 +310,24 @@ Services</a> του Bitbucket αποθετηρίου σας.',
'enter_name' => 'Όνομα διαχειριστή: ', 'enter_name' => 'Όνομα διαχειριστή: ',
'enter_email' => 'Ηλ. Διεύθυνση διαχειριστή: ', 'enter_email' => 'Ηλ. Διεύθυνση διαχειριστή: ',
'enter_password' => 'Κωδικός πρόσβασης διαχειριστή: ', 'enter_password' => 'Κωδικός πρόσβασης διαχειριστή: ',
'enter_phpci_url' => 'Ο URL σύνδεσμος σας για το PHP Censor ("http://phpci.local" για παράδειγμα): ', 'enter_app_url' => 'Ο URL σύνδεσμος σας για το PHP Censor ("http://php-censor.local" για παράδειγμα): ',
'enter_db_host' => 'Παρακαλώ εισάγετε τον MySQL οικοδεσπότη σας [localhost]: ', 'enter_db_host' => 'Παρακαλώ εισάγετε τον MySQL οικοδεσπότη σας [localhost]: ',
'enter_db_name' => 'Παρακαλώ εισάγετε το όνομα της MySQL βάσης δεδομένων σας [phpci]: ', 'enter_db_name' => 'Παρακαλώ εισάγετε το όνομα της MySQL βάσης δεδομένων σας [php-censor-db]: ',
'enter_db_user' => 'Παρακαλώ εισάγετε το όνομα χρήστη της MySQL σας [phpci]: ', 'enter_db_user' => 'Παρακαλώ εισάγετε το όνομα χρήστη της MySQL σας [php-censor-user]: ',
'enter_db_pass' => 'Παρακαλώ εισάγετε τον κωδικό χρήστη της MySQL σας: ', 'enter_db_pass' => 'Παρακαλώ εισάγετε τον κωδικό χρήστη της MySQL σας: ',
'could_not_connect' => 'Το PHP Censor δεν μπόρεσε να συνδεθεί με την MySQL με τα στοχεία που δώσατε. Παρακαλώ δοκιμάστε ξανά.', 'could_not_connect' => 'Το PHP Censor δεν μπόρεσε να συνδεθεί με την MySQL με τα στοχεία που δώσατε. Παρακαλώ δοκιμάστε ξανά.',
'setting_up_db' => 'Γίνεται ρύθμιση της βάσης δεδομένων σας ...', 'setting_up_db' => 'Γίνεται ρύθμιση της βάσης δεδομένων σας ...',
'user_created' => 'Λογαριασμός χρήστη δημιουργήθηκε!', 'user_created' => 'Λογαριασμός χρήστη δημιουργήθηκε!',
'failed_to_create' => 'Το PHP Censor απέτυχε να δημιουργήσει το λογαριασμό διαχειριστή σας.', 'failed_to_create' => 'Το PHP Censor απέτυχε να δημιουργήσει το λογαριασμό διαχειριστή σας.',
'config_exists' => 'Το αρχείο ρυθμίσεων PHP Censor υπάρχει και δεν είναι άδειο.', 'config_exists' => 'Το αρχείο ρυθμίσεων PHP Censor υπάρχει και δεν είναι άδειο.',
'update_instead' => 'Εάν προσπαθούσατε να ενημερώσετε PHP Censor, παρακαλούμε χρησιμοποιήστε καλύτερα το phpci:update αντ \'αυτού.', 'update_instead' => 'Εάν προσπαθούσατε να ενημερώσετε PHP Censor, παρακαλούμε χρησιμοποιήστε καλύτερα το php-censor:update αντ \'αυτού.',
// Update // Update
'update_phpci' => 'Ενημέρωστε την βάση δεδομένων ώστε να αντικατοπτρίζει τροποποιημένα μοντέλα.', 'update_app' => 'Ενημέρωστε την βάση δεδομένων ώστε να αντικατοπτρίζει τροποποιημένα μοντέλα.',
'updating_phpci' => 'Γίνεται ενημέρωση της βάσης δεδομένων PHP Censor:', 'updating_app' => 'Γίνεται ενημέρωση της βάσης δεδομένων PHP Censor:',
'not_installed' => 'Το PHP Censor δεν φένεται να είναι εγκατεστημένο', 'not_installed' => 'Το PHP Censor δεν φένεται να είναι εγκατεστημένο',
'install_instead' => 'Παρακαλούμε εγκαταστήστε το PHP Censor καλύτερα με το phpci:install αντ \'αυτού.', 'install_instead' => 'Παρακαλούμε εγκαταστήστε το PHP Censor καλύτερα με το php-censor:install αντ \'αυτού.',
// Poll Command // Poll Command
'poll_github' => 'Δημοσκόπηση στο GitHub για να ελέγξετε αν θα πρέπει να ξεκινήσει μια κατασκευή.', 'poll_github' => 'Δημοσκόπηση στο GitHub για να ελέγξετε αν θα πρέπει να ξεκινήσει μια κατασκευή.',
@ -356,7 +356,7 @@ Services</a> του Bitbucket αποθετηρίου σας.',
'marked_as_failed' => 'Η κατασκεύη %d επισημάνθηκε ως αποτυχημένη λόγω χρονικού ορίου', 'marked_as_failed' => 'Η κατασκεύη %d επισημάνθηκε ως αποτυχημένη λόγω χρονικού ορίου',
// Builder // Builder
'missing_phpci_yml' => 'Το έργο δεν περιέχει το αρχείο phpci.yml ή είναι άδειο.', 'missing_app_yml' => 'Το έργο δεν περιέχει το αρχείο phpci.yml ή είναι άδειο.',
'build_success' => 'ΚΑΤΑΣΚΕΥΗ ΕΠΙΤΥΧΗΣ', 'build_success' => 'ΚΑΤΑΣΚΕΥΗ ΕΠΙΤΥΧΗΣ',
'build_failed' => 'ΚΑΤΑΣΚΕΥΗ ΑΠΕΤΥΧΕ', 'build_failed' => 'ΚΑΤΑΣΚΕΥΗ ΑΠΕΤΥΧΕ',
'removing_build' => 'Γίνεται αφαίρεση κατασκευής', 'removing_build' => 'Γίνεται αφαίρεση κατασκευής',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Language', 'language' => 'Language',
// Log in: // Log in:
'log_in_to_phpci' => 'Log in to PHP Censor', 'log_in_to_app' => 'Log in to PHP Censor',
'login_error' => 'Incorrect email address or password', 'login_error' => 'Incorrect email address or password',
'forgotten_password_link' => 'Forgotten your password?', 'forgotten_password_link' => 'Forgotten your password?',
'reset_emailed' => 'We\'ve emailed you a link to reset your password.', 'reset_emailed' => 'We\'ve emailed you a link to reset your password.',
@ -260,7 +260,7 @@ PHP Censor',
'github_application' => 'GitHub Application', 'github_application' => 'GitHub Application',
'github_sign_in' => 'Before you can start using GitHub, you need to <a href="%s">sign in</a> and grant 'github_sign_in' => 'Before you can start using GitHub, you need to <a href="%s">sign in</a> and grant
PHP Censor access to your account.', PHP Censor access to your account.',
'github_phpci_linked' => 'PHP Censor is successfully linked to GitHub account.', 'github_app_linked' => 'PHP Censor is successfully linked to GitHub account.',
'github_where_to_find' => 'Where to find these...', 'github_where_to_find' => 'Where to find these...',
'github_where_help' => 'If you own the application you would like to use, you can find this information within your 'github_where_help' => 'If you own the application you would like to use, you can find this information within your
<a href="https://github.com/settings/applications">applications</a> settings area.', <a href="https://github.com/settings/applications">applications</a> settings area.',
@ -340,10 +340,10 @@ PHP Censor',
'admin_pass' => 'Admin Password', 'admin_pass' => 'Admin Password',
'admin_email' => 'Admin Email Address', 'admin_email' => 'Admin Email Address',
'config_path' => 'Config File Path', 'config_path' => 'Config File Path',
'install_phpci' => 'Install PHP Censor', 'install_app' => 'Install PHP Censor',
'welcome_to_phpci' => 'Welcome to PHP Censor', 'welcome_to_app' => 'Welcome to PHP Censor',
'please_answer' => 'Please answer the following questions:', 'please_answer' => 'Please answer the following questions:',
'phpci_php_req' => 'PHP Censor requires at least PHP 5.3.8 to function.', 'app_php_req' => 'PHP Censor requires at least PHP 5.3.8 to function.',
'extension_required' => 'Extension required: %s', 'extension_required' => 'Extension required: %s',
'function_required' => 'PHP Censor needs to be able to call the %s() function. Is it disabled in php.ini?', 'function_required' => 'PHP Censor needs to be able to call the %s() function. Is it disabled in php.ini?',
'requirements_not_met' => 'PHP Censor cannot be installed, as not all requirements are met. 'requirements_not_met' => 'PHP Censor cannot be installed, as not all requirements are met.
@ -353,25 +353,25 @@ PHP Censor',
'enter_name' => 'Admin Name: ', 'enter_name' => 'Admin Name: ',
'enter_email' => 'Admin Email: ', 'enter_email' => 'Admin Email: ',
'enter_password' => 'Admin Password: ', 'enter_password' => 'Admin Password: ',
'enter_phpci_url' => 'Your PHP Censor URL ("http://phpci.local" for example): ', 'enter_app_url' => 'Your PHP Censor URL ("http://php-censor.local" for example): ',
'enter_db_host' => 'Please enter your MySQL host [localhost]: ', 'enter_db_host' => 'Please enter your MySQL host [localhost]: ',
'enter_db_port' => 'Please enter your MySQL port [3306]: ', 'enter_db_port' => 'Please enter your MySQL port [3306]: ',
'enter_db_name' => 'Please enter your MySQL database name [phpci]: ', 'enter_db_name' => 'Please enter your MySQL database name [php-censor-db]: ',
'enter_db_user' => 'Please enter your MySQL username [phpci]: ', 'enter_db_user' => 'Please enter your MySQL username [php-censor-user]: ',
'enter_db_pass' => 'Please enter your MySQL password: ', 'enter_db_pass' => 'Please enter your MySQL password: ',
'could_not_connect' => 'PHP Censor could not connect to MySQL with the details provided. Please try again.', 'could_not_connect' => 'PHP Censor could not connect to MySQL with the details provided. Please try again.',
'setting_up_db' => 'Setting up your database... ', 'setting_up_db' => 'Setting up your database... ',
'user_created' => 'User account created!', 'user_created' => 'User account created!',
'failed_to_create' => 'PHP Censor failed to create your admin account.', 'failed_to_create' => 'PHP Censor failed to create your admin account.',
'config_exists' => 'The PHP Censor config file exists and is not empty.', 'config_exists' => 'The PHP Censor config file exists and is not empty.',
'update_instead' => 'If you were trying to update PHP Censor, please use phpci:update instead.', 'update_instead' => 'If you were trying to update PHP Censor, please use php-censor:update instead.',
// Update // Update
'update_phpci' => 'Update the database to reflect modified models.', 'update_app' => 'Update the database to reflect modified models.',
'updating_phpci' => 'Updating PHP Censor database: ', 'updating_app' => 'Updating PHP Censor database: ',
'not_installed' => 'PHP Censor does not appear to be installed.', 'not_installed' => 'PHP Censor does not appear to be installed.',
'install_instead' => 'Please install PHP Censor via phpci:install instead.', 'install_instead' => 'Please install PHP Censor via php-censor:install instead.',
// Poll Command // Poll Command
'poll_github' => 'Poll GitHub to check if we need to start a build.', 'poll_github' => 'Poll GitHub to check if we need to start a build.',
@ -403,7 +403,7 @@ PHP Censor',
'marked_as_failed' => 'Build %d marked as failed due to timeout.', 'marked_as_failed' => 'Build %d marked as failed due to timeout.',
// Builder // Builder
'missing_phpci_yml' => 'This project does not contain a phpci.yml file, or it is empty.', 'missing_app_yml' => 'This project does not contain a phpci.yml file, or it is empty.',
'build_success' => 'BUILD SUCCESS', 'build_success' => 'BUILD SUCCESS',
'build_failed' => 'BUILD FAILED', 'build_failed' => 'BUILD FAILED',
'removing_build' => 'Removing Build.', 'removing_build' => 'Removing Build.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Lenguaje', 'language' => 'Lenguaje',
// Log in: // Log in:
'log_in_to_phpci' => 'Ingresar a PHP Censor', 'log_in_to_app' => 'Ingresar a PHP Censor',
'login_error' => 'Email o contraseña incorrectos', 'login_error' => 'Email o contraseña incorrectos',
'forgotten_password_link' => '¿Olvidaste tu contraseña?', 'forgotten_password_link' => '¿Olvidaste tu contraseña?',
'reset_emailed' => 'Te hemos enviado un email para reiniciar tu contraseña.', 'reset_emailed' => 'Te hemos enviado un email para reiniciar tu contraseña.',
@ -235,7 +235,7 @@ PHP Censor',
'github_application' => 'Aplicación GitHub', 'github_application' => 'Aplicación GitHub',
'github_sign_in' => 'Antes de comenzar a utilizar GitHub, tienes que <a href="%s">ingresar</a> y permitir 'github_sign_in' => 'Antes de comenzar a utilizar GitHub, tienes que <a href="%s">ingresar</a> y permitir
el acceso a tu cuenta a PHP Censor.', el acceso a tu cuenta a PHP Censor.',
'github_phpci_linked' => 'PHP Censor ha sido conectado a tu cuenta GitHub.', 'github_app_linked' => 'PHP Censor ha sido conectado a tu cuenta GitHub.',
'github_where_to_find' => 'Donde encontrar estos...', 'github_where_to_find' => 'Donde encontrar estos...',
'github_where_help' => 'Si eres priopietario de la aplicaión que quieres usar, puedes encontrar esta información en 'github_where_help' => 'Si eres priopietario de la aplicaión que quieres usar, puedes encontrar esta información en
el área de configuración de <a href="https://github.com/settings/applications">aplicaciones</a>.', el área de configuración de <a href="https://github.com/settings/applications">aplicaciones</a>.',
@ -291,10 +291,10 @@ PHP Censor',
'admin_pass' => 'Clave del Admin', 'admin_pass' => 'Clave del Admin',
'admin_email' => 'Email de Admin', 'admin_email' => 'Email de Admin',
'config_path' => 'Ruta al archivo config', 'config_path' => 'Ruta al archivo config',
'install_phpci' => 'Instalar PHP Censor', 'install_app' => 'Instalar PHP Censor',
'welcome_to_phpci' => 'Bienvenido a PHP Censor', 'welcome_to_app' => 'Bienvenido a PHP Censor',
'please_answer' => 'Por favor, responde las siguientes preguntas:', 'please_answer' => 'Por favor, responde las siguientes preguntas:',
'phpci_php_req' => 'PHP Censor requiere al menos PHP 5.3.8 para funcionar.', 'app_php_req' => 'PHP Censor requiere al menos PHP 5.3.8 para funcionar.',
'extension_required' => 'Extensión requerida: %s', 'extension_required' => 'Extensión requerida: %s',
'function_required' => 'PHP Censor debe poder invocar la función %s(). Está deshabilitada en php.ini?', 'function_required' => 'PHP Censor debe poder invocar la función %s(). Está deshabilitada en php.ini?',
'requirements_not_met' => 'PHP Censor no pudo ser instalado, ya que no se cumplen todos los requerimientos. 'requirements_not_met' => 'PHP Censor no pudo ser instalado, ya que no se cumplen todos los requerimientos.
@ -304,24 +304,24 @@ PHP Censor',
'enter_name' => 'Nombre del Admin:', 'enter_name' => 'Nombre del Admin:',
'enter_email' => 'Email del Admin:', 'enter_email' => 'Email del Admin:',
'enter_password' => 'Contraseña de Admin:', 'enter_password' => 'Contraseña de Admin:',
'enter_phpci_url' => 'La URL de PHP Censor ("Por ejemplo: http://phpci.local"): ', 'enter_app_url' => 'La URL de PHP Censor ("Por ejemplo: http://php-censor.local"): ',
'enter_db_host' => 'Por favor, ingresa el servidor MySQL [localhost]: ', 'enter_db_host' => 'Por favor, ingresa el servidor MySQL [localhost]: ',
'enter_db_name' => 'Por favor, ingresa el nombre de la base de datos MySQL [phpci]: ', 'enter_db_name' => 'Por favor, ingresa el nombre de la base de datos MySQL [php-censor-db]: ',
'enter_db_user' => 'Por favor, ingresa el usuario MySQL [phpci]: ', 'enter_db_user' => 'Por favor, ingresa el usuario MySQL [php-censor-user]: ',
'enter_db_pass' => 'Por favor, ingresa la contraseña MySQL: ', 'enter_db_pass' => 'Por favor, ingresa la contraseña MySQL: ',
'could_not_connect' => 'PHP Censor no pudo conectarse a MySQL con los datos dados. Por favor, intenta nuevamente.', 'could_not_connect' => 'PHP Censor no pudo conectarse a MySQL con los datos dados. Por favor, intenta nuevamente.',
'setting_up_db' => 'Configurando base de datos... ', 'setting_up_db' => 'Configurando base de datos... ',
'user_created' => '¡Cuenta de usuario creada!', 'user_created' => '¡Cuenta de usuario creada!',
'failed_to_create' => 'PHP Censor no pudo crear la cuenta de admin.', 'failed_to_create' => 'PHP Censor no pudo crear la cuenta de admin.',
'config_exists' => 'El archivo config de PHP Censor ya existe y no es vacío.', 'config_exists' => 'El archivo config de PHP Censor ya existe y no es vacío.',
'update_instead' => 'Si está intentando actualizar PHP Censor, por favor, utiliza phpci:update.', 'update_instead' => 'Si está intentando actualizar PHP Censor, por favor, utiliza php-censor:update.',
// Update // Update
'update_phpci' => 'Actuliza la base de datos para reflejar los modelos actualizados.', 'update_app' => 'Actuliza la base de datos para reflejar los modelos actualizados.',
'updating_phpci' => 'Actualizando base de datos PHP Censor: ', 'updating_app' => 'Actualizando base de datos PHP Censor: ',
'not_installed' => 'PHP Censor no está instalado.', 'not_installed' => 'PHP Censor no está instalado.',
'install_instead' => 'Por favor, instala PHP Censor via phpci:install.', 'install_instead' => 'Por favor, instala PHP Censor via php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'Chequear en GitHub si se necesita comenzar un Build.', 'poll_github' => 'Chequear en GitHub si se necesita comenzar un Build.',
@ -344,7 +344,7 @@ PHP Censor',
'marked_as_failed' => 'Build %d falló debido a timeout.', 'marked_as_failed' => 'Build %d falló debido a timeout.',
// Builder // Builder
'missing_phpci_yml' => 'Este proyecto no contiene el archivo phpci.yml o está vacío.', 'missing_app_yml' => 'Este proyecto no contiene el archivo phpci.yml o está vacío.',
'build_success' => 'BUILD EXITOSO', 'build_success' => 'BUILD EXITOSO',
'build_failed' => 'BUILD FALLIDO', 'build_failed' => 'BUILD FALLIDO',
'removing_build' => 'Eliminando Build.', 'removing_build' => 'Eliminando Build.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Langue', 'language' => 'Langue',
// Log in: // Log in:
'log_in_to_phpci' => 'Connectez-vous à PHP Censor', 'log_in_to_app' => 'Connectez-vous à PHP Censor',
'login_error' => 'Adresse email ou mot de passe invalide', 'login_error' => 'Adresse email ou mot de passe invalide',
'forgotten_password_link' => 'Mot de passe oublié&nbsp;?', 'forgotten_password_link' => 'Mot de passe oublié&nbsp;?',
'reset_emailed' => 'Nous vous avons envoyé un email avec un lien pour réinitialiser votre mot de passe.', 'reset_emailed' => 'Nous vous avons envoyé un email avec un lien pour réinitialiser votre mot de passe.',
@ -244,7 +244,7 @@ PHP Censor',
'github_application' => 'Application GitHub', 'github_application' => 'Application GitHub',
'github_sign_in' => 'Avant de commencer à utiliser GitHub, vous devez vous <a href="%s">connecter</a> et autoriser 'github_sign_in' => 'Avant de commencer à utiliser GitHub, vous devez vous <a href="%s">connecter</a> et autoriser
PHP Censor à accéder à votre compte.', PHP Censor à accéder à votre compte.',
'github_phpci_linked' => 'PHP Censor s\'est connecté avec succès au compte GitHub.', 'github_app_linked' => 'PHP Censor s\'est connecté avec succès au compte GitHub.',
'github_where_to_find' => 'Où trouver ces informations...', 'github_where_to_find' => 'Où trouver ces informations...',
'github_where_help' => 'Si vous souhaitez utiliser une application qui vous appartient, vous pouvez trouver ces informations dans 'github_where_help' => 'Si vous souhaitez utiliser une application qui vous appartient, vous pouvez trouver ces informations dans
la zone de paramètres <a href="https://github.com/settings/applications">applications</a>.', la zone de paramètres <a href="https://github.com/settings/applications">applications</a>.',
@ -312,10 +312,10 @@ PHP Censor',
'admin_pass' => 'Mot de passe admin', 'admin_pass' => 'Mot de passe admin',
'admin_email' => 'Adresse email de l\'admin', 'admin_email' => 'Adresse email de l\'admin',
'config_path' => 'Chemin vers le fichier de configuration', 'config_path' => 'Chemin vers le fichier de configuration',
'install_phpci' => 'Installer PHP Censor', 'install_app' => 'Installer PHP Censor',
'welcome_to_phpci' => 'Bienvenue sur PHP Censor', 'welcome_to_app' => 'Bienvenue sur PHP Censor',
'please_answer' => 'Merci de répondre aux questions suivantes :', 'please_answer' => 'Merci de répondre aux questions suivantes :',
'phpci_php_req' => 'PHP Censor requiert au moins PHP 5.3.8 pour fonctionner.', 'app_php_req' => 'PHP Censor requiert au moins PHP 5.3.8 pour fonctionner.',
'extension_required' => 'Extensions requises : %s', 'extension_required' => 'Extensions requises : %s',
'function_required' => 'PHP Censor doit être capable d\'appeler la fonction %s(). Est-ce qu\'elle est désactivée dans votre php.ini?', 'function_required' => 'PHP Censor doit être capable d\'appeler la fonction %s(). Est-ce qu\'elle est désactivée dans votre php.ini?',
'requirements_not_met' => 'PHP Censor ne peut pas être installé parce que toutes les conditions requises ne sont pas respectées. 'requirements_not_met' => 'PHP Censor ne peut pas être installé parce que toutes les conditions requises ne sont pas respectées.
@ -325,24 +325,24 @@ PHP Censor',
'enter_name' => 'Nom de l\'admin: ', 'enter_name' => 'Nom de l\'admin: ',
'enter_email' => 'Email de l\'admin: ', 'enter_email' => 'Email de l\'admin: ',
'enter_password' => 'Mot de passe de l\'admin: ', 'enter_password' => 'Mot de passe de l\'admin: ',
'enter_phpci_url' => 'Votre URL vers PHP Censor (par exemple "http://phpci.local"): ', 'enter_app_url' => 'Votre URL vers PHP Censor (par exemple "http://php-censor.local"): ',
'enter_db_host' => 'Merci d\'entrer le nom d\'hôte MySQL [localhost]: ', 'enter_db_host' => 'Merci d\'entrer le nom d\'hôte MySQL [localhost]: ',
'enter_db_name' => 'Merci d\'entrer le nom de la base MySQL [phpci]: ', 'enter_db_name' => 'Merci d\'entrer le nom de la base MySQL [php-censor-db]: ',
'enter_db_user' => 'Merci d\'entrer le nom d\'utilisateur MySQL [phpci]: ', 'enter_db_user' => 'Merci d\'entrer le nom d\'utilisateur MySQL [php-censor-user]: ',
'enter_db_pass' => 'Merci d\'entrer le mot de passe MySQL: ', 'enter_db_pass' => 'Merci d\'entrer le mot de passe MySQL: ',
'could_not_connect' => 'PHP Censor ne peut pas se connecter à MySQL à partir des informations fournies. Veuillez réessayer..', 'could_not_connect' => 'PHP Censor ne peut pas se connecter à MySQL à partir des informations fournies. Veuillez réessayer..',
'setting_up_db' => 'Paramétrage de la base de données... ', 'setting_up_db' => 'Paramétrage de la base de données... ',
'user_created' => 'Le compte utilisateur a été créé !', 'user_created' => 'Le compte utilisateur a été créé !',
'failed_to_create' => 'PHP Censor n\'a pas réussi à créer votre compte admin.', 'failed_to_create' => 'PHP Censor n\'a pas réussi à créer votre compte admin.',
'config_exists' => 'Le fichier de configuration PHP Censor existe et n\'est pas vide.', 'config_exists' => 'Le fichier de configuration PHP Censor existe et n\'est pas vide.',
'update_instead' => 'Si vous essayez de mettre à jour PHP Censor, merci d\'utiliser la commande phpci:update.', 'update_instead' => 'Si vous essayez de mettre à jour PHP Censor, merci d\'utiliser la commande php-censor:update.',
// Update // Update
'update_phpci' => 'Mise à jour de la base de données pour refléter les modifications apportées aux modèles.', 'update_app' => 'Mise à jour de la base de données pour refléter les modifications apportées aux modèles.',
'updating_phpci' => 'Mise à jour de la base de données PHP Censor : ', 'updating_app' => 'Mise à jour de la base de données PHP Censor : ',
'not_installed' => 'PHP Censor n\'a pas l\'air d\'être installé.', 'not_installed' => 'PHP Censor n\'a pas l\'air d\'être installé.',
'install_instead' => 'Merci d\'installer PHP Censor grâce à la commande phpci:install.', 'install_instead' => 'Merci d\'installer PHP Censor grâce à la commande php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'Demander à GitHub de vérifier si nous devons démarrer un build.', 'poll_github' => 'Demander à GitHub de vérifier si nous devons démarrer un build.',
@ -371,7 +371,7 @@ PHP Censor',
'marked_as_failed' => 'Le build %d a été marqué échoué à cause d\'un timeout.', 'marked_as_failed' => 'Le build %d a été marqué échoué à cause d\'un timeout.',
// Builder // Builder
'missing_phpci_yml' => 'Ce projet ne contient pas de fichier phpci.yml, ou il est vide.', 'missing_app_yml' => 'Ce projet ne contient pas de fichier phpci.yml, ou il est vide.',
'build_success' => 'BUILD RÉUSSI', 'build_success' => 'BUILD RÉUSSI',
'build_failed' => 'BUILD ÉCHOUÉ', 'build_failed' => 'BUILD ÉCHOUÉ',
'removing_build' => 'Suppression du build.', 'removing_build' => 'Suppression du build.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Lingua', 'language' => 'Lingua',
// Log in: // Log in:
'log_in_to_phpci' => 'Accedi a PHP Censor', 'log_in_to_app' => 'Accedi a PHP Censor',
'login_error' => 'Indirizzo email o password errati', 'login_error' => 'Indirizzo email o password errati',
'forgotten_password_link' => 'Hai dimenticato la tua password?', 'forgotten_password_link' => 'Hai dimenticato la tua password?',
'reset_emailed' => 'Ti abbiamo inviato un link via email per ripristinare la tua password.', 'reset_emailed' => 'Ti abbiamo inviato un link via email per ripristinare la tua password.',
@ -241,7 +241,7 @@ PHP Censor',
'github_application' => 'Applicazione GitHub', 'github_application' => 'Applicazione GitHub',
'github_sign_in' => 'Prima di poter iniziare ad usare GitHub, è necessario <a href="%s">collegarsi</a> e garantire 'github_sign_in' => 'Prima di poter iniziare ad usare GitHub, è necessario <a href="%s">collegarsi</a> e garantire
a PHP Censor l\'accesso al tuo account.', a PHP Censor l\'accesso al tuo account.',
'github_phpci_linked' => 'PHP Censor è stato collegato correttamente al tuo account GitHub.', 'github_app_linked' => 'PHP Censor è stato collegato correttamente al tuo account GitHub.',
'github_where_to_find' => 'Dove trovare queste...', 'github_where_to_find' => 'Dove trovare queste...',
'github_where_help' => 'Se sei il proprietario dell\'applicazione, puoi trovare queste informazioni nell\'area delle 'github_where_help' => 'Se sei il proprietario dell\'applicazione, puoi trovare queste informazioni nell\'area delle
configurazioni dell\'<a href="https://github.com/settings/applications">applicazione</a>.', configurazioni dell\'<a href="https://github.com/settings/applications">applicazione</a>.',
@ -297,10 +297,10 @@ PHP Censor',
'admin_pass' => 'Password dell\'amministratore', 'admin_pass' => 'Password dell\'amministratore',
'admin_email' => 'Email dell\'amministratore', 'admin_email' => 'Email dell\'amministratore',
'config_path' => 'Percorso del file di configurazione', 'config_path' => 'Percorso del file di configurazione',
'install_phpci' => 'Installa PHP Censor', 'install_app' => 'Installa PHP Censor',
'welcome_to_phpci' => 'Benvenuto in PHP Censor', 'welcome_to_app' => 'Benvenuto in PHP Censor',
'please_answer' => 'Per favore rispondi alle seguenti domande:', 'please_answer' => 'Per favore rispondi alle seguenti domande:',
'phpci_php_req' => 'PHP Censor richiede come minimo PHP 5.3.8 per funzionare.', 'app_php_req' => 'PHP Censor richiede come minimo PHP 5.3.8 per funzionare.',
'extension_required' => 'Le estensioni richieste sono: %s', 'extension_required' => 'Le estensioni richieste sono: %s',
'function_required' => 'PHP Censor richiede di poter chiamare la funzione %s(). Questa funzionalità è disabibiltata nel 'function_required' => 'PHP Censor richiede di poter chiamare la funzione %s(). Questa funzionalità è disabibiltata nel
php.ini?', php.ini?',
@ -311,24 +311,24 @@ PHP Censor',
'enter_name' => 'Nome dell\'amministratore: ', 'enter_name' => 'Nome dell\'amministratore: ',
'enter_email' => 'Email dell\'amministratore: ', 'enter_email' => 'Email dell\'amministratore: ',
'enter_password' => 'Password dell\'amministratore: ', 'enter_password' => 'Password dell\'amministratore: ',
'enter_phpci_url' => 'L\'URL di PHP Censor ("http://phpci.locale" ad esempio): ', 'enter_app_url' => 'L\'URL di PHP Censor ("http://php-censor.locale" ad esempio): ',
'enter_db_host' => 'Per favore inserisci l\'host MySQL [localhost]: ', 'enter_db_host' => 'Per favore inserisci l\'host MySQL [localhost]: ',
'enter_db_name' => 'Per favore inserisci il nome MySQL [phpci]: ', 'enter_db_name' => 'Per favore inserisci il nome MySQL [php-censor-db]: ',
'enter_db_user' => 'Per favore inserisci l\'username MySQL [phpci]: ', 'enter_db_user' => 'Per favore inserisci l\'username MySQL [php-censor-user]: ',
'enter_db_pass' => 'Per favore inserisci la password MySQL: ', 'enter_db_pass' => 'Per favore inserisci la password MySQL: ',
'could_not_connect' => 'PHP Censor non può connettersi a MySQL con le informazioni fornite. Per favore prova ancora.', 'could_not_connect' => 'PHP Censor non può connettersi a MySQL con le informazioni fornite. Per favore prova ancora.',
'setting_up_db' => 'Configurzione del tuo database... ', 'setting_up_db' => 'Configurzione del tuo database... ',
'user_created' => 'Account utente creato!', 'user_created' => 'Account utente creato!',
'failed_to_create' => 'PHP Censor non è riuscito a creare il tuo account amministrativo.', 'failed_to_create' => 'PHP Censor non è riuscito a creare il tuo account amministrativo.',
'config_exists' => 'Il file di configurazione di PHP Censor esiste e non è vuoto.', 'config_exists' => 'Il file di configurazione di PHP Censor esiste e non è vuoto.',
'update_instead' => 'Se stai cercando di aggiornare PHP Censor, per favore usa phpci:update.', 'update_instead' => 'Se stai cercando di aggiornare PHP Censor, per favore usa php-censor:update.',
// Update // Update
'update_phpci' => 'Aggiorna il database per riflettere le modifiche ai model.', 'update_app' => 'Aggiorna il database per riflettere le modifiche ai model.',
'updating_phpci' => 'Aggiornamenti del database di PHP Censor: ', 'updating_app' => 'Aggiornamenti del database di PHP Censor: ',
'not_installed' => 'PHP Censor sembra non essere installato.', 'not_installed' => 'PHP Censor sembra non essere installato.',
'install_instead' => 'Per favore installa PHP Censor tramite phpci:install.', 'install_instead' => 'Per favore installa PHP Censor tramite php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'Richiesta a GitHub per verificare se è necessario avviare una build.', 'poll_github' => 'Richiesta a GitHub per verificare se è necessario avviare una build.',
@ -357,7 +357,7 @@ PHP Censor',
'marked_as_failed' => 'Build %d è stata contrassegnata come fallita per un timeout.', 'marked_as_failed' => 'Build %d è stata contrassegnata come fallita per un timeout.',
// Builder // Builder
'missing_phpci_yml' => 'Questo progetto non contiene il file phpci.yml, o il file è vuoto.', 'missing_app_yml' => 'Questo progetto non contiene il file phpci.yml, o il file è vuoto.',
'build_success' => 'BUILD PASSATA', 'build_success' => 'BUILD PASSATA',
'build_failed' => 'BUILD FALLITA', 'build_failed' => 'BUILD FALLITA',
'removing_build' => 'Rimozione build.', 'removing_build' => 'Rimozione build.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Taal', 'language' => 'Taal',
// Log in: // Log in:
'log_in_to_phpci' => 'Log in op PHP Censor', 'log_in_to_app' => 'Log in op PHP Censor',
'login_error' => 'Incorrect e-mailadres of wachtwoord', 'login_error' => 'Incorrect e-mailadres of wachtwoord',
'forgotten_password_link' => 'Wachtwoord vergeten?', 'forgotten_password_link' => 'Wachtwoord vergeten?',
'reset_emailed' => 'We hebben je een link gemaild om je wachtwoord opnieuw in te stellen.', 'reset_emailed' => 'We hebben je een link gemaild om je wachtwoord opnieuw in te stellen.',
@ -240,7 +240,7 @@ niet goed opgeslagen tot dit opgelost is.',
'github_application' => 'GitHub toepassing', 'github_application' => 'GitHub toepassing',
'github_sign_in' => 'Vooraleer je GitHub kan gebruiken, dien je <a href="%s">in te loggen</a> en 'github_sign_in' => 'Vooraleer je GitHub kan gebruiken, dien je <a href="%s">in te loggen</a> en
PHP Censor toegang te verlenen tot je account.', PHP Censor toegang te verlenen tot je account.',
'github_phpci_linked' => 'PHP werd succesvol gelinkt aan je GitHub account.', 'github_app_linked' => 'PHP werd succesvol gelinkt aan je GitHub account.',
'github_where_to_find' => 'Waar zijn deze te vinden...', 'github_where_to_find' => 'Waar zijn deze te vinden...',
'github_where_help' => 'Indien je eigenaar bent van de toepassing die je wens te gebruiken, kan je deze informatie 'github_where_help' => 'Indien je eigenaar bent van de toepassing die je wens te gebruiken, kan je deze informatie
in je <a href="https://github.com/settings/applications">applications</a> instellingen pagina vinden.', in je <a href="https://github.com/settings/applications">applications</a> instellingen pagina vinden.',
@ -297,10 +297,10 @@ keer je composer update uitvoert.',
'admin_pass' => 'Administrator wachtwoord', 'admin_pass' => 'Administrator wachtwoord',
'admin_email' => 'Administrator e-mailadres', 'admin_email' => 'Administrator e-mailadres',
'config_path' => 'Pad naar configuratiebestand', 'config_path' => 'Pad naar configuratiebestand',
'install_phpci' => 'Installeer PHP Censor', 'install_app' => 'Installeer PHP Censor',
'welcome_to_phpci' => 'Welkom bij PHP Censor', 'welcome_to_app' => 'Welkom bij PHP Censor',
'please_answer' => 'Gelieve onderstaande vragen te beantwoorden:', 'please_answer' => 'Gelieve onderstaande vragen te beantwoorden:',
'phpci_php_req' => 'PHP Censor heeft ten minste PHP 5.3.8 nodig om te werken.', 'app_php_req' => 'PHP Censor heeft ten minste PHP 5.3.8 nodig om te werken.',
'extension_required' => 'Extensie benodigd: %s', 'extension_required' => 'Extensie benodigd: %s',
'function_required' => 'PHP Censor moet functie %s() kunnen aanroepen. Is deze uitgeschakeld in php.ini?', 'function_required' => 'PHP Censor moet functie %s() kunnen aanroepen. Is deze uitgeschakeld in php.ini?',
'requirements_not_met' => 'PHP Censor kan niet worden geïnstalleerd omdat niet aan alle vereisten is voldaan. 'requirements_not_met' => 'PHP Censor kan niet worden geïnstalleerd omdat niet aan alle vereisten is voldaan.
@ -310,24 +310,24 @@ Gelieve de fouten na te kijken vooraleer verder te gaan.',
'enter_name' => 'Administrator naam: ', 'enter_name' => 'Administrator naam: ',
'enter_email' => 'Administrator e-mailadres: ', 'enter_email' => 'Administrator e-mailadres: ',
'enter_password' => 'Administrator wachtwoord: ', 'enter_password' => 'Administrator wachtwoord: ',
'enter_phpci_url' => 'Je PHP Censor URL (bijvoorbeeld "http://phpci.local"): ', 'enter_app_url' => 'Je PHP Censor URL (bijvoorbeeld "http://php-censor.local"): ',
'enter_db_host' => 'Vul je MySQL host in [localhost]: ', 'enter_db_host' => 'Vul je MySQL host in [localhost]: ',
'enter_db_name' => 'Vul je MySQL databasenaam in [phpci]: ', 'enter_db_name' => 'Vul je MySQL databasenaam in [php-censor-db]: ',
'enter_db_user' => 'Vul je MySQL gebruikersnaam in [phpci]: ', 'enter_db_user' => 'Vul je MySQL gebruikersnaam in [php-censor-user]: ',
'enter_db_pass' => 'Vul je MySQL watchtwoord in: ', 'enter_db_pass' => 'Vul je MySQL watchtwoord in: ',
'could_not_connect' => 'PHP Censor kon met deze gegevens geen verbinding maken met MySQL. Gelieve opnieuw te proberen.', 'could_not_connect' => 'PHP Censor kon met deze gegevens geen verbinding maken met MySQL. Gelieve opnieuw te proberen.',
'setting_up_db' => 'Database wordt aangemaakt...', 'setting_up_db' => 'Database wordt aangemaakt...',
'user_created' => 'Gebruikersprofiel aangemaakt!', 'user_created' => 'Gebruikersprofiel aangemaakt!',
'failed_to_create' => 'PHP Censor kon je administratorprofiel niet aanmaken.', 'failed_to_create' => 'PHP Censor kon je administratorprofiel niet aanmaken.',
'config_exists' => 'Het PHP Censor configuratiebestand bestaat en is niet leeg.', 'config_exists' => 'Het PHP Censor configuratiebestand bestaat en is niet leeg.',
'update_instead' => 'Liever phpci:update te gebruiken indien je PHP Censor probeerde te updaten, ', 'update_instead' => 'Liever php-censor:update te gebruiken indien je PHP Censor probeerde te updaten, ',
// Update // Update
'update_phpci' => 'Update de database naar het beeld van gewijzigde modellen.', 'update_app' => 'Update de database naar het beeld van gewijzigde modellen.',
'updating_phpci' => 'PHP Censor database wordt geüpdatet:', 'updating_app' => 'PHP Censor database wordt geüpdatet:',
'not_installed' => 'PHP Censor lijkt niet geïnstalleerd te zijn.', 'not_installed' => 'PHP Censor lijkt niet geïnstalleerd te zijn.',
'install_instead' => 'Gelieve PHP Censor via phpci:install te installeren.', 'install_instead' => 'Gelieve PHP Censor via php-censor:install te installeren.',
// Poll Command // Poll Command
'poll_github' => 'Poll GitHub om te controleren of we een build moeten starten.', 'poll_github' => 'Poll GitHub om te controleren of we een build moeten starten.',
@ -356,7 +356,7 @@ Gelieve de fouten na te kijken vooraleer verder te gaan.',
'marked_as_failed' => 'Build %d gemarkeerd als falende door timeout.', 'marked_as_failed' => 'Build %d gemarkeerd als falende door timeout.',
// Builder // Builder
'missing_phpci_yml' => 'Dit project bevat geen phpci.yml bestand, of het is leeg.', 'missing_app_yml' => 'Dit project bevat geen phpci.yml bestand, of het is leeg.',
'build_success' => 'BUILD SUCCES', 'build_success' => 'BUILD SUCCES',
'build_failed' => 'BUILD GEFAALD', 'build_failed' => 'BUILD GEFAALD',
'removing_build' => 'Build wordt verwijderd.', 'removing_build' => 'Build wordt verwijderd.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Język', 'language' => 'Język',
// Log in: // Log in:
'log_in_to_phpci' => 'Zaloguj się do PHP Censor', 'log_in_to_app' => 'Zaloguj się do PHP Censor',
'login_error' => 'Nieprawidłowy email lub hasło', 'login_error' => 'Nieprawidłowy email lub hasło',
'forgotten_password_link' => 'Zapomniałeś hasła?', 'forgotten_password_link' => 'Zapomniałeś hasła?',
'reset_emailed' => 'Email z linkiem resetującym hasło został wysłany.', 'reset_emailed' => 'Email z linkiem resetującym hasło został wysłany.',
@ -242,7 +242,7 @@ dopóki nie będzie to naprawione.',
'build_settings' => 'Ustawienia budowania', 'build_settings' => 'Ustawienia budowania',
'github_application' => 'Aplikacja GitHub', 'github_application' => 'Aplikacja GitHub',
'github_sign_in' => 'Zanim będzie można zacząć korzystać z GitHub, musisz najpierw <a href="%s">Sign in</a>, a następnie udzielić dostęp dla PHP Censor do Twojego konta.', 'github_sign_in' => 'Zanim będzie można zacząć korzystać z GitHub, musisz najpierw <a href="%s">Sign in</a>, a następnie udzielić dostęp dla PHP Censor do Twojego konta.',
'github_phpci_linked' => 'PHP Censor zostało pomyślnie połączone z konten GitHub.', 'github_app_linked' => 'PHP Censor zostało pomyślnie połączone z konten GitHub.',
'github_where_to_find' => 'Gdzie można znaleźć...', 'github_where_to_find' => 'Gdzie można znaleźć...',
'github_where_help' => 'Jeśli to jest Twoja aplikacjia i chcesz jej użyć to więcej informacji znajdziesz w sekcji ustawień: 'github_where_help' => 'Jeśli to jest Twoja aplikacjia i chcesz jej użyć to więcej informacji znajdziesz w sekcji ustawień:
<a href="https://github.com/settings/applications">applications</a>', <a href="https://github.com/settings/applications">applications</a>',
@ -298,10 +298,10 @@ wywołaniu polecenia composer update.',
'admin_pass' => 'Hasło Admina', 'admin_pass' => 'Hasło Admina',
'admin_email' => 'Adres Email Admina', 'admin_email' => 'Adres Email Admina',
'config_path' => 'Ścieżka Pliku Config', 'config_path' => 'Ścieżka Pliku Config',
'install_phpci' => 'Zainstaluj PHP Censor', 'install_app' => 'Zainstaluj PHP Censor',
'welcome_to_phpci' => 'Witaj w PHP Censor', 'welcome_to_app' => 'Witaj w PHP Censor',
'please_answer' => 'Odpowiedz na poniższe pytania:', 'please_answer' => 'Odpowiedz na poniższe pytania:',
'phpci_php_req' => 'PHP Censor wymaga przynajmniej PHP 5.3.8 do prawidłowego funkcjonowania.', 'app_php_req' => 'PHP Censor wymaga przynajmniej PHP 5.3.8 do prawidłowego funkcjonowania.',
'extension_required' => 'Wymagane rozszerzenie: %s', 'extension_required' => 'Wymagane rozszerzenie: %s',
'function_required' => 'PHP Censor musi mieć możliwość wywołania funkcji %s(). Czy ona jest wyłączona w php.ini?', 'function_required' => 'PHP Censor musi mieć możliwość wywołania funkcji %s(). Czy ona jest wyłączona w php.ini?',
'requirements_not_met' => 'Nie można zainstalować PHP Censor, ponieważ nie wszystkie wymagania zostały spełnione. 'requirements_not_met' => 'Nie można zainstalować PHP Censor, ponieważ nie wszystkie wymagania zostały spełnione.
@ -311,24 +311,24 @@ Przejrzyj powyższą listę błędów przed kontynuowaniem.',
'enter_name' => 'Imię Admina: ', 'enter_name' => 'Imię Admina: ',
'enter_email' => 'Email Admina: ', 'enter_email' => 'Email Admina: ',
'enter_password' => 'Hasło Admina: ', 'enter_password' => 'Hasło Admina: ',
'enter_phpci_url' => 'URL PHP Censor (na przykład "http://phpci.local"): ', 'enter_app_url' => 'URL PHP Censor (na przykład "http://php-censor.local"): ',
'enter_db_host' => 'Wpisz hosta MySQL [host lokalny]: ', 'enter_db_host' => 'Wpisz hosta MySQL [host lokalny]: ',
'enter_db_name' => 'Wpisz nazwę bazy danych MySQL [phpci]: ', 'enter_db_name' => 'Wpisz nazwę bazy danych MySQL [php-censor-db]: ',
'enter_db_user' => 'Wpisz nazwę użytkownika MySQL [phpci]: ', 'enter_db_user' => 'Wpisz nazwę użytkownika MySQL [php-censor-user]: ',
'enter_db_pass' => 'Wpisz hasło MySQL: ', 'enter_db_pass' => 'Wpisz hasło MySQL: ',
'could_not_connect' => 'Z podanymi ustawieniami PHP Censor nie udało się połączyć z MySQL. Spróbuj ponownie.', 'could_not_connect' => 'Z podanymi ustawieniami PHP Censor nie udało się połączyć z MySQL. Spróbuj ponownie.',
'setting_up_db' => 'Ustawianie Twojej bazy danych...', 'setting_up_db' => 'Ustawianie Twojej bazy danych...',
'user_created' => 'Utworzono konto użytkownika!', 'user_created' => 'Utworzono konto użytkownika!',
'failed_to_create' => 'PHP Censor nie udało się założyc Twojego konta administratora.', 'failed_to_create' => 'PHP Censor nie udało się założyc Twojego konta administratora.',
'config_exists' => 'Plik konfiguracji PHP Censor istnieje i nie jest pusty.', 'config_exists' => 'Plik konfiguracji PHP Censor istnieje i nie jest pusty.',
'update_instead' => 'Jeśli próbowałeś zaktualizować PHP Censor, użyj phpci:update.', 'update_instead' => 'Jeśli próbowałeś zaktualizować PHP Censor, użyj php-censor:update.',
// Update // Update
'update_phpci' => 'Zaktualizuj bazę danych zgodnie ze zmodyfikowanymi modelami.', 'update_app' => 'Zaktualizuj bazę danych zgodnie ze zmodyfikowanymi modelami.',
'updating_phpci' => 'Aktualizacja bazy danych PHP Censor:', 'updating_app' => 'Aktualizacja bazy danych PHP Censor:',
'not_installed' => 'Wygląda na to, że PHP Censor nie jest zainstalowane.', 'not_installed' => 'Wygląda na to, że PHP Censor nie jest zainstalowane.',
'install_instead' => 'Proszę zainstalować PHP Censor poprzez phpci:install', 'install_instead' => 'Proszę zainstalować PHP Censor poprzez php-censor:install',
// Poll Command // Poll Command
'poll_github' => 'Odpytuj GitHub, aby sprawdzić czy należy uruchomić budowę.', 'poll_github' => 'Odpytuj GitHub, aby sprawdzić czy należy uruchomić budowę.',
@ -357,7 +357,7 @@ Przejrzyj powyższą listę błędów przed kontynuowaniem.',
'marked_as_failed' => 'Budowanie %d nie powiodło się z powodu przekroczenia limitu czasu.', 'marked_as_failed' => 'Budowanie %d nie powiodło się z powodu przekroczenia limitu czasu.',
// Builder // Builder
'missing_phpci_yml' => 'Projekt nie zawiera pliku phpci.yml lub projekt jest pusty.', 'missing_app_yml' => 'Projekt nie zawiera pliku phpci.yml lub projekt jest pusty.',
'build_success' => 'BUDOWANIE ZAKOŃCZONE SUKCESEM', 'build_success' => 'BUDOWANIE ZAKOŃCZONE SUKCESEM',
'build_failed' => 'BUDOWANIE NIE POWIODŁO SIĘ', 'build_failed' => 'BUDOWANIE NIE POWIODŁO SIĘ',
'removing_build' => 'Usuwanie Budowania.', 'removing_build' => 'Usuwanie Budowania.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'язык', 'language' => 'язык',
// Log in: // Log in:
'log_in_to_phpci' => 'Войти в PHP Censor', 'log_in_to_app' => 'Войти в PHP Censor',
'login_error' => 'Неправильный email или пароль', 'login_error' => 'Неправильный email или пароль',
'forgotten_password_link' => 'Забыли пароль?', 'forgotten_password_link' => 'Забыли пароль?',
'reset_emailed' => 'Вы получите письмо со ссылкой на сброс пароля.', 'reset_emailed' => 'Вы получите письмо со ссылкой на сброс пароля.',
@ -250,7 +250,7 @@ PHP Censor',
'github_application' => 'GitHub приложение', 'github_application' => 'GitHub приложение',
'github_sign_in' => 'Перед тем как начать использовать GitHub аккаунт, вам необходимо <a href="%s">войти</a> и разрешить доступ для 'github_sign_in' => 'Перед тем как начать использовать GitHub аккаунт, вам необходимо <a href="%s">войти</a> и разрешить доступ для
PHP Censor до вашего аккаунта.', PHP Censor до вашего аккаунта.',
'github_phpci_linked' => 'PHP Censor успешно привязал GitHub аккаунт.', 'github_app_linked' => 'PHP Censor успешно привязал GitHub аккаунт.',
'github_where_to_find' => 'Где это найти...', 'github_where_to_find' => 'Где это найти...',
'github_where_help' => 'Если вы владелец приложения, которое вы хотели бы использовать, то вы можете найти информацию об этом в разделе 'github_where_help' => 'Если вы владелец приложения, которое вы хотели бы использовать, то вы можете найти информацию об этом в разделе
<a href="https://github.com/settings/applications">applications</a> настроек.', <a href="https://github.com/settings/applications">applications</a> настроек.',
@ -329,10 +329,10 @@ PHP Censor',
'admin_pass' => 'Пароль администратора', 'admin_pass' => 'Пароль администратора',
'admin_email' => 'Email администратора', 'admin_email' => 'Email администратора',
'config_path' => 'Путь до файла конфигурации', 'config_path' => 'Путь до файла конфигурации',
'install_phpci' => 'Установить PHP Censor', 'install_app' => 'Установить PHP Censor',
'welcome_to_phpci' => 'Добро пожаловать в PHP Censor', 'welcome_to_app' => 'Добро пожаловать в PHP Censor',
'please_answer' => 'Пожалуйста, ответьте на несколько вопросов:', 'please_answer' => 'Пожалуйста, ответьте на несколько вопросов:',
'phpci_php_req' => 'PHP Censor необходима для работы версия PHP не ниже 5.3.8.', 'app_php_req' => 'PHP Censor необходима для работы версия PHP не ниже 5.3.8.',
'extension_required' => 'Требуется расширение PHP: %s', 'extension_required' => 'Требуется расширение PHP: %s',
'function_required' => 'PHP Censor необходима возможность вызывать %s() функцию. Она выключена в php.ini?', 'function_required' => 'PHP Censor необходима возможность вызывать %s() функцию. Она выключена в php.ini?',
'requirements_not_met' => 'PHP Censor не может быть установлен, пока не все требования выполнены. 'requirements_not_met' => 'PHP Censor не может быть установлен, пока не все требования выполнены.
@ -342,25 +342,25 @@ PHP Censor',
'enter_name' => 'Имя администратора: ', 'enter_name' => 'Имя администратора: ',
'enter_email' => 'Email администратора: ', 'enter_email' => 'Email администратора: ',
'enter_password' => 'Пароль администратора: ', 'enter_password' => 'Пароль администратора: ',
'enter_phpci_url' => 'URL-адрес вашего PHP Censor (например: "http://phpci.local"): ', 'enter_app_url' => 'URL-адрес вашего PHP Censor (например: "http://php-censor.local"): ',
'enter_db_host' => 'Пожалуйста, введите хост MySQL [localhost]: ', 'enter_db_host' => 'Пожалуйста, введите хост MySQL [localhost]: ',
'enter_db_port' => 'Пожалуйста, введите порт MySQL [3306]: ', 'enter_db_port' => 'Пожалуйста, введите порт MySQL [3306]: ',
'enter_db_name' => 'Пожалуйста, введите имя базы данных MySQL [phpci]: ', 'enter_db_name' => 'Пожалуйста, введите имя базы данных MySQL [php-censor-db]: ',
'enter_db_user' => 'Пожалуйста, введите пользователя MySQL [phpci]: ', 'enter_db_user' => 'Пожалуйста, введите пользователя MySQL [php-censor-user]: ',
'enter_db_pass' => 'Пожалуйста, введите пароль MySQL: ', 'enter_db_pass' => 'Пожалуйста, введите пароль MySQL: ',
'could_not_connect' => 'PHP Censor не может подключится к MySQL с переданными параметрами. Пожалуйста, попробуйте еще раз.', 'could_not_connect' => 'PHP Censor не может подключится к MySQL с переданными параметрами. Пожалуйста, попробуйте еще раз.',
'setting_up_db' => 'Установка базы данных... ', 'setting_up_db' => 'Установка базы данных... ',
'user_created' => 'Аккаунт пользователя создан!', 'user_created' => 'Аккаунт пользователя создан!',
'failed_to_create' => 'PHP Censor не удалось создать аккаунт администратора.', 'failed_to_create' => 'PHP Censor не удалось создать аккаунт администратора.',
'config_exists' => 'Файл конфигурации PHP Censor уже существует, и он не пустой.', 'config_exists' => 'Файл конфигурации PHP Censor уже существует, и он не пустой.',
'update_instead' => 'Если вы собираетесь обновить PHP Censor, пожалуйста, используйте команду phpci:update.', 'update_instead' => 'Если вы собираетесь обновить PHP Censor, пожалуйста, используйте команду php-censor:update.',
// Update // Update
'update_phpci' => 'Обновите базу данных с учетом обновленных моделей.', 'update_app' => 'Обновите базу данных с учетом обновленных моделей.',
'updating_phpci' => 'Обновление базы данных PHP Censor: ', 'updating_app' => 'Обновление базы данных PHP Censor: ',
'not_installed' => 'PHP Censor не может быть установлен.', 'not_installed' => 'PHP Censor не может быть установлен.',
'install_instead' => 'Пожалуйста, установите PHP Censor с помощью команды phpci:install.', 'install_instead' => 'Пожалуйста, установите PHP Censor с помощью команды php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'Опрос GitHub для проверки запуска сборки.', 'poll_github' => 'Опрос GitHub для проверки запуска сборки.',
@ -389,7 +389,7 @@ PHP Censor',
'marked_as_failed' => 'Сборка %d отмечена как неудавшаяся из-за превышения лимита времени.', 'marked_as_failed' => 'Сборка %d отмечена как неудавшаяся из-за превышения лимита времени.',
// Builder // Builder
'missing_phpci_yml' => 'Этот проект не содержит файла phpci.yml, или файл пустой.', 'missing_app_yml' => 'Этот проект не содержит файла phpci.yml, или файл пустой.',
'build_success' => 'СБОРКА УСПЕШНА', 'build_success' => 'СБОРКА УСПЕШНА',
'build_failed' => 'СБОРКА ПРОВАЛЕНА', 'build_failed' => 'СБОРКА ПРОВАЛЕНА',
'removing_build' => 'Удаление сборки.', 'removing_build' => 'Удаление сборки.',

View file

@ -12,7 +12,7 @@ return [
'language' => 'Мова', 'language' => 'Мова',
// Log in: // Log in:
'log_in_to_phpci' => 'Увійти до PHP Censor', 'log_in_to_app' => 'Увійти до PHP Censor',
'login_error' => 'Невірний email або пароль', 'login_error' => 'Невірний email або пароль',
'forgotten_password_link' => 'Забули свій пароль?', 'forgotten_password_link' => 'Забули свій пароль?',
'reset_emailed' => 'Ми відправили вам посилання для скидання вашого паролю.', 'reset_emailed' => 'Ми відправили вам посилання для скидання вашого паролю.',
@ -240,7 +240,7 @@ PHP Censor',
'github_application' => 'GitHub додаток', 'github_application' => 'GitHub додаток',
'github_sign_in' => 'Перед початком користування GitHub, вам необхідно <a href="%s">увійти</a> та надати 'github_sign_in' => 'Перед початком користування GitHub, вам необхідно <a href="%s">увійти</a> та надати
доступ для PHP Censor до вашого аккаунту.', доступ для PHP Censor до вашого аккаунту.',
'github_phpci_linked' => 'PHP Censor успішно зв\'язаний з аккаунтом GitHub.', 'github_app_linked' => 'PHP Censor успішно зв\'язаний з аккаунтом GitHub.',
'github_where_to_find' => 'Де це знайти...', 'github_where_to_find' => 'Де це знайти...',
'github_where_help' => 'Якщо ви є власником додатку, який би ви хотіли використовувати, то ви можете знайти інформацію про це у розділі 'github_where_help' => 'Якщо ви є власником додатку, який би ви хотіли використовувати, то ви можете знайти інформацію про це у розділі
налаштувань ваших <a href="https://github.com/settings/applications">додатків</a>.', налаштувань ваших <a href="https://github.com/settings/applications">додатків</a>.',
@ -297,10 +297,10 @@ PHP Censor',
'admin_pass' => 'Пароль адміністратора', 'admin_pass' => 'Пароль адміністратора',
'admin_email' => 'Email адреса адміністратора', 'admin_email' => 'Email адреса адміністратора',
'config_path' => 'Шлях до файла конфігурації', 'config_path' => 'Шлях до файла конфігурації',
'install_phpci' => 'Встановити PHP Censor', 'install_app' => 'Встановити PHP Censor',
'welcome_to_phpci' => 'Ласкаво просимо до PHP Censor', 'welcome_to_app' => 'Ласкаво просимо до PHP Censor',
'please_answer' => 'Будь ласка, дайте відповідь на наступні питання:', 'please_answer' => 'Будь ласка, дайте відповідь на наступні питання:',
'phpci_php_req' => 'PHP Censor вимагає для роботи, принаймні, версію PHP 5.3.8.', 'app_php_req' => 'PHP Censor вимагає для роботи, принаймні, версію PHP 5.3.8.',
'extension_required' => 'Необхідне розширення: %s', 'extension_required' => 'Необхідне розширення: %s',
'function_required' => 'PHP Censor необхідна можливість викликати функцію %s(). Вона відключена у php.ini?', 'function_required' => 'PHP Censor необхідна можливість викликати функцію %s(). Вона відключена у php.ini?',
'requirements_not_met' => 'Неможливо встановити PHP Censor, оскільки не всі вимоги виконані. 'requirements_not_met' => 'Неможливо встановити PHP Censor, оскільки не всі вимоги виконані.
@ -310,24 +310,24 @@ PHP Censor',
'enter_name' => 'Ім’я адміністратора: ', 'enter_name' => 'Ім’я адміністратора: ',
'enter_email' => 'Email адміністратора: ', 'enter_email' => 'Email адміністратора: ',
'enter_password' => 'Пароль адміністратора: ', 'enter_password' => 'Пароль адміністратора: ',
'enter_phpci_url' => 'URL адреса вашого PHP Censor (наприклад, "http://phpci.local"): ', 'enter_app_url' => 'URL адреса вашого PHP Censor (наприклад, "http://php-censor.local"): ',
'enter_db_host' => 'Будь ласка, введіть хост MySQL [localhost]: ', 'enter_db_host' => 'Будь ласка, введіть хост MySQL [localhost]: ',
'enter_db_name' => 'Будь ласка, введить ім’я бази даних MySQL [phpci]: ', 'enter_db_name' => 'Будь ласка, введить ім’я бази даних MySQL [php-censor-db]: ',
'enter_db_user' => 'Будь ласка, введить ім’я користувача MySQL [phpci]: ', 'enter_db_user' => 'Будь ласка, введить ім’я користувача MySQL [php-censor-user]: ',
'enter_db_pass' => 'Будь ласка, введить ваш пароль MySQL: ', 'enter_db_pass' => 'Будь ласка, введить ваш пароль MySQL: ',
'could_not_connect' => 'PHP Censor не може підключитися до MySQL із наданими параметрами. Будь ласка, спробуйте ще раз.', 'could_not_connect' => 'PHP Censor не може підключитися до MySQL із наданими параметрами. Будь ласка, спробуйте ще раз.',
'setting_up_db' => 'Налаштування вашої бази даних...', 'setting_up_db' => 'Налаштування вашої бази даних...',
'user_created' => 'Аккаунт користувача створено!', 'user_created' => 'Аккаунт користувача створено!',
'failed_to_create' => 'PHP Censor не вдалося створити ваш аккаунт адміністратора.', 'failed_to_create' => 'PHP Censor не вдалося створити ваш аккаунт адміністратора.',
'config_exists' => 'Файл конфігурації PHP Censor вже існує та не є порожнім.', 'config_exists' => 'Файл конфігурації PHP Censor вже існує та не є порожнім.',
'update_instead' => 'Якщо ви збираєтесь оновити PHP Censor, будь ласка, використовуйте команду phpci:update.', 'update_instead' => 'Якщо ви збираєтесь оновити PHP Censor, будь ласка, використовуйте команду php-censor:update.',
// Update // Update
'update_phpci' => 'Оновити базу даних для відображення змінених моделей.', 'update_app' => 'Оновити базу даних для відображення змінених моделей.',
'updating_phpci' => 'Оновлення бази даних PHP Censor:', 'updating_app' => 'Оновлення бази даних PHP Censor:',
'not_installed' => 'Неможливо встановити PHP Censor.', 'not_installed' => 'Неможливо встановити PHP Censor.',
'install_instead' => 'Будь ласка, встановіть PHP Censor через команду phpci:install.', 'install_instead' => 'Будь ласка, встановіть PHP Censor через команду php-censor:install.',
// Poll Command // Poll Command
'poll_github' => 'Зробити запит до GitHub для перевірки запуску збірки.', 'poll_github' => 'Зробити запит до GitHub для перевірки запуску збірки.',
@ -356,7 +356,7 @@ PHP Censor',
'marked_as_failed' => 'Збірка %d відмічена як невдала через перевищення ліміту часу.', 'marked_as_failed' => 'Збірка %d відмічена як невдала через перевищення ліміту часу.',
// Builder // Builder
'missing_phpci_yml' => 'Цей проект не містить файл phpci.yml або він є порожнім.', 'missing_app_yml' => 'Цей проект не містить файл phpci.yml або він є порожнім.',
'build_success' => 'ЗБІРКА УСПІШНА', 'build_success' => 'ЗБІРКА УСПІШНА',
'build_failed' => 'ЗБІРКА НЕВДАЛА', 'build_failed' => 'ЗБІРКА НЕВДАЛА',
'removing_build' => 'Видалення збірки.', 'removing_build' => 'Видалення збірки.',

View file

@ -104,6 +104,11 @@ class Build extends BuildBase
$build_config = $this->getProject()->getBuildConfig(); $build_config = $this->getProject()->getBuildConfig();
} }
// Try .php-censor.yml
if (is_file($buildPath . '/.php-censor.yml')) {
$build_config = file_get_contents($buildPath . '/.php-censor.yml');
}
// Try .phpci.yml // Try .phpci.yml
if (is_file($buildPath . '/.phpci.yml')) { if (is_file($buildPath . '/.phpci.yml')) {
$build_config = file_get_contents($buildPath . '/.phpci.yml'); $build_config = file_get_contents($buildPath . '/.phpci.yml');

View file

@ -45,7 +45,7 @@ class GithubBuild extends RemoteGitBuild
*/ */
public function sendStatusPostback() public function sendStatusPostback()
{ {
$token = Config::getInstance()->get('phpci.github.token'); $token = Config::getInstance()->get('php-censor.github.token');
if (empty($token) || empty($this->data['id'])) { if (empty($token) || empty($this->data['id'])) {
return; return;
@ -80,11 +80,11 @@ class GithubBuild extends RemoteGitBuild
break; break;
} }
$phpciUrl = Config::getInstance()->get('phpci.url'); $url = Config::getInstance()->get('php-censor.url');
$params = [ $params = [
'state' => $status, 'state' => $status,
'target_url' => $phpciUrl . '/build/view/' . $this->getId(), 'target_url' => $url . '/build/view/' . $this->getId(),
'description' => $description, 'description' => $description,
'context' => 'PHP Censor', 'context' => 'PHP Censor',
]; ];
@ -176,7 +176,7 @@ class GithubBuild extends RemoteGitBuild
$remoteUrl = $this->getExtra('remote_url'); $remoteUrl = $this->getExtra('remote_url');
$remoteBranch = $this->getExtra('remote_branch'); $remoteBranch = $this->getExtra('remote_branch');
$cmd = 'cd "%s" && git checkout -b phpci/' . $this->getId() . ' %s && git pull -q --no-edit %s %s'; $cmd = 'cd "%s" && git checkout -b php-censor/' . $this->getId() . ' %s && git pull -q --no-edit %s %s';
$success = $builder->executeCommand($cmd, $cloneTo, $this->getBranch(), $remoteUrl, $remoteBranch); $success = $builder->executeCommand($cmd, $cloneTo, $this->getBranch(), $remoteUrl, $remoteBranch);
} }
} catch (\Exception $ex) { } catch (\Exception $ex) {

View file

@ -104,7 +104,7 @@ class Pdepend implements Plugin
$this->directory $this->directory
); );
$config = $this->phpci->getSystemConfig('phpci'); $config = $this->phpci->getSystemConfig('php-censor');
if ($success) { if ($success) {
$this->phpci->logSuccess( $this->phpci->logSuccess(

View file

@ -151,6 +151,7 @@ class TechnicalDebt implements PHPCensor\Plugin, PHPCensor\ZeroConfigPlugin
$files = []; $files = [];
$ignores = $this->ignore; $ignores = $this->ignore;
$ignores[] = '.php-censor.yml';
$ignores[] = 'phpci.yml'; $ignores[] = 'phpci.yml';
$ignores[] = '.phpci.yml'; $ignores[] = '.phpci.yml';

View file

@ -160,12 +160,12 @@ class BuildService
} }
$config = Config::getInstance(); $config = Config::getInstance();
$settings = $config->get('phpci.worker', []); $settings = $config->get('php-censor.worker', []);
if (!empty($settings['host']) && !empty($settings['queue'])) { if (!empty($settings['host']) && !empty($settings['queue'])) {
try { try {
$jobData = [ $jobData = [
'type' => 'phpci.build', 'type' => 'php-censor.build',
'build_id' => $build->getId(), 'build_id' => $build->getId(),
]; ];
@ -179,7 +179,7 @@ class BuildService
json_encode($jobData), json_encode($jobData),
PheanstalkInterface::DEFAULT_PRIORITY, PheanstalkInterface::DEFAULT_PRIORITY,
PheanstalkInterface::DEFAULT_DELAY, PheanstalkInterface::DEFAULT_DELAY,
$config->get('phpci.worker.job_timeout', 600) $config->get('php-censor.worker.job_timeout', 600)
); );
} catch (\Exception $ex) { } catch (\Exception $ex) {
$this->queueError = true; $this->queueError = true;

View file

@ -20,7 +20,7 @@
<script src="<?php echo APP_URL ?>assets/js/bootstrap.min.js"></script> <script src="<?php echo APP_URL ?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo APP_URL ?>assets/js/jqueryui.js"></script> <script src="<?php echo APP_URL ?>assets/js/jqueryui.js"></script>
<script src="<?php echo APP_URL ?>assets/js/class.js"></script> <script src="<?php echo APP_URL ?>assets/js/class.js"></script>
<script src="<?php echo APP_URL ?>assets/js/phpci.js"></script> <script src="<?php echo APP_URL ?>assets/js/app.js"></script>
<script src="<?php echo APP_URL ?>assets/js/init.js"></script> <script src="<?php echo APP_URL ?>assets/js/init.js"></script>
</head> </head>
<body> <body>

View file

@ -78,7 +78,7 @@ switch($build->getStatus())
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="<?php echo APP_URL ?>build/delete/<?php print $build->getId(); ?>" class="phpci-app-delete-build"><?php Lang::out('delete_build'); ?></a></li> <li><a href="<?php echo APP_URL ?>build/delete/<?php print $build->getId(); ?>" class="app-delete-build"><?php Lang::out('delete_build'); ?></a></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div> </div>

View file

@ -31,7 +31,7 @@
window.return_url = <?php print json_encode((empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>; window.return_url = <?php print json_encode((empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>;
<?php <?php
$gh = \b8\Config::getInstance()->get('phpci.github', null); $gh = \b8\Config::getInstance()->get('php-censor.github', null);
if($gh) { if($gh) {
print 'window.github_app_id = ' . json_encode($gh['id']) . ';' . PHP_EOL; print 'window.github_app_id = ' . json_encode($gh['id']) . ';' . PHP_EOL;

View file

@ -2,7 +2,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title><?php Lang::out('log_in_to_phpci'); ?></title> <title><?php Lang::out('log_in_to_app'); ?></title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -38,7 +38,7 @@
width: 350px; width: 350px;
} }
#phpci-logo img { #logo img {
margin-bottom: 30px; margin-bottom: 30px;
} }
@ -47,7 +47,7 @@
<body> <body>
<div class="container"> <div class="container">
<div class="row" style="margin-top: 10%; text-align: center"> <div class="row" style="margin-top: 10%; text-align: center">
<a id="phpci-logo" href="/"> <a id="logo" href="/">
<img src="<?php print APP_URL; ?>assets/img/php-censor-logo.png"> <img src="<?php print APP_URL; ?>assets/img/php-censor-logo.png">
</a> </a>
<div class="" id="login-box"> <div class="" id="login-box">

View file

@ -52,21 +52,21 @@
<?php <?php
$id = null; $id = null;
if (isset($settings['phpci']['github']['id'])) { if (isset($settings['php-censor']['github']['id'])) {
$id = $settings['phpci']['github']['id']; $id = $settings['php-censor']['github']['id'];
} }
$returnTo = APP_URL . 'settings/github-callback'; $returnTo = APP_URL . 'settings/github-callback';
$githubUri = 'https://github.com/login/oauth/authorize?client_id='.$id.'&scope=repo&redirect_uri=' . $returnTo; $githubUri = 'https://github.com/login/oauth/authorize?client_id='.$id.'&scope=repo&redirect_uri=' . $returnTo;
?> ?>
<?php if (!empty($id)): ?> <?php if (!empty($id)): ?>
<?php if (empty($githubUser['name']) || empty($settings['phpci']['github']['token'])): ?> <?php if (empty($githubUser['name']) || empty($settings['php-censor']['github']['token'])): ?>
<p class="alert alert-warning clearfix"> <p class="alert alert-warning clearfix">
<?php Lang::out('github_sign_in', $githubUri); ?> <?php Lang::out('github_sign_in', $githubUri); ?>
</p> </p>
<?php else: ?> <?php else: ?>
<p class="alert alert-success"> <p class="alert alert-success">
<?php Lang::out('github_phpci_linked'); ?> <?php Lang::out('github_app_linked'); ?>
<strong> <strong>
<a href="<?php echo $githubUser['html_url']; ?>"><?php echo $githubUser['name']; ?></a> <a href="<?php echo $githubUser['html_url']; ?>"><?php echo $githubUser['name']; ?></a>
@ -105,7 +105,7 @@
</div> </div>
<div class="box-body clearfix"> <div class="box-body clearfix">
<?php if (!isset($settings['phpci']['email_settings'])): ?> <?php if (!isset($settings['php-censor']['email_settings'])): ?>
<p class="alert alert-warning clearfix"> <p class="alert alert-warning clearfix">
<?php Lang::out('email_settings_help'); ?> <?php Lang::out('email_settings_help'); ?>
</p> </p>
@ -123,7 +123,7 @@
<div class="box-body clearfix"> <div class="box-body clearfix">
<p class="alert alert-warning clearfix"> <p class="alert alert-warning clearfix">
Be careful: This setting disables authentication and uses your current admin account for all actions within phpci with admin rights. Be careful: This setting disables authentication and uses your current admin account for all actions within PHP Censor with admin rights.
</p> </p>
<?php print $authenticationSettings; ?> <?php print $authenticationSettings; ?>

View file

@ -46,7 +46,7 @@
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="<?php echo APP_URL ?>user/delete/<?php print $user->getId(); ?>" class="phpci-app-delete-user"><?php Lang::out('delete_user'); ?></a></li> <li><a href="<?php echo APP_URL ?>user/delete/<?php print $user->getId(); ?>" class="app-delete-user"><?php Lang::out('delete_user'); ?></a></li>
</ul> </ul>
</div> </div>
<?php endif; ?> <?php endif; ?>

View file

@ -34,19 +34,19 @@
<script src="<?php print APP_URL; ?>assets/js/class.js"></script> <script src="<?php print APP_URL; ?>assets/js/class.js"></script>
<script src="<?php print APP_URL; ?>assets/js/sprintf.js"></script> <script src="<?php print APP_URL; ?>assets/js/sprintf.js"></script>
<script src="<?php print APP_URL; ?>assets/js/moment.min.js"></script> <script src="<?php print APP_URL; ?>assets/js/moment.min.js"></script>
<script src="<?php print APP_URL; ?>assets/js/phpci.js" type="text/javascript"></script> <script src="<?php print APP_URL; ?>assets/js/app.js" type="text/javascript"></script>
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
</head> </head>
<body class="phpci <?php print !empty($skin) ? 'skin-' . $skin : 'skin-blue'; ?>"> <body class="app-layout <?php print !empty($skin) ? 'skin-' . $skin : 'skin-blue'; ?>">
<div class="wrapper row-offcanvas row-offcanvas-left"> <div class="wrapper row-offcanvas row-offcanvas-left">
<!-- header logo: style can be found in header.less --> <!-- header logo: style can be found in header.less -->
<header class="main-header"> <header class="main-header">
<a href="<?php print APP_URL; ?>" class="logo">PHPCI</a> <a href="<?php print APP_URL; ?>" class="logo">PHP Censor</a>
<!-- Header Navbar: style can be found in header.less --> <!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation"> <nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button--> <!-- Sidebar toggle button-->
@ -59,29 +59,29 @@
<div class="navbar-custom-menu"> <div class="navbar-custom-menu">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="dropdown messages-menu phpci-pending"> <li class="dropdown messages-menu app-pending">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-clock-o"></i> <i class="fa fa-clock-o"></i>
<span class="label label-info phpci-pending-count"></span> <span class="label label-info app-pending-count"></span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li class="header"><?php Lang::out('n_builds_pending', 0); ?></li> <li class="header"><?php Lang::out('n_builds_pending', 0); ?></li>
<li> <li>
<ul class="menu phpci-pending-list"> <ul class="menu app-pending-list">
</ul> </ul>
</li> </li>
</ul> </ul>
</li> </li>
<li class="dropdown messages-menu phpci-running"> <li class="dropdown messages-menu app-running">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-cogs"></i> <i class="fa fa-cogs"></i>
<span class="label label-warning phpci-running-count"></span> <span class="label label-warning app-running-count"></span>
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li class="header"><?php Lang::out('n_builds_running', 0); ?></li> <li class="header"><?php Lang::out('n_builds_running', 0); ?></li>
<li> <li>
<ul class="menu phpci-running-list"> <ul class="menu app-running-list">
</ul> </ul>
</li> </li>
</ul> </ul>

View file

@ -197,7 +197,7 @@ class BuildWorker
return false; return false;
} }
if (!array_key_exists('type', $jobData) || $jobData['type'] !== 'phpci.build') { if (!array_key_exists('type', $jobData) || $jobData['type'] !== 'php-censor.build') {
// Probably not from PHPCI. // Probably not from PHPCI.
$this->pheanstalk->delete($job); $this->pheanstalk->delete($job);
return false; return false;

View file

@ -57,7 +57,7 @@ class CreateAdminCommandTest extends \PHPUnit_Framework_TestCase
{ {
$this->application->getHelperSet()->set($this->dialog, 'dialog'); $this->application->getHelperSet()->set($this->dialog, 'dialog');
$this->application->add($this->command); $this->application->add($this->command);
$command = $this->application->find('phpci:create-admin'); $command = $this->application->find('php-censor:create-admin');
$commandTester = new CommandTester($command); $commandTester = new CommandTester($command);
return $commandTester; return $commandTester;

View file

@ -60,7 +60,7 @@ class CreateBuildCommandTest extends \PHPUnit_Framework_TestCase
{ {
$this->application->add($this->command); $this->application->add($this->command);
$command = $this->application->find('phpci:create-build'); $command = $this->application->find('php-censor:create-build');
$commandTester = new CommandTester($command); $commandTester = new CommandTester($command);
return $commandTester; return $commandTester;

View file

@ -88,7 +88,7 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase
{ {
$this->application->getHelperSet()->set($dialog, 'dialog'); $this->application->getHelperSet()->set($dialog, 'dialog');
$this->application->add($this->getInstallCommandMock()); $this->application->add($this->getInstallCommandMock());
$command = $this->application->find('phpci:install'); $command = $this->application->find('php-censor:install');
$commandTester = new CommandTester($command); $commandTester = new CommandTester($command);
return $commandTester; return $commandTester;
@ -208,7 +208,7 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('testedvalue', $this->config['b8']['database']['password']); $this->assertEquals('testedvalue', $this->config['b8']['database']['password']);
} }
public function testPhpciUrlConfig() public function testUrlConfig()
{ {
$dialog = $this->getDialogHelperMock(); $dialog = $this->getDialogHelperMock();
@ -222,7 +222,7 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase
$this->executeWithoutParam('--url', $dialog); $this->executeWithoutParam('--url', $dialog);
// Check that specified arguments are correctly loaded. // Check that specified arguments are correctly loaded.
$this->assertEquals('http://testedvalue.com', $this->config['phpci']['url']); $this->assertEquals('http://testedvalue.com', $this->config['php-censor']['url']);
} }
public function testAdminEmailConfig() public function testAdminEmailConfig()

View file

@ -115,7 +115,7 @@ class EmailTest extends \PHPUnit_Framework_TestCase
$this->mockCiBuilder->expects($this->any()) $this->mockCiBuilder->expects($this->any())
->method('getSystemConfig') ->method('getSystemConfig')
->with('phpci') ->with('php-censor')
->will($this->returnValue(['email_settings' => ['from_address' => "test-from-address@example.com"]])); ->will($this->returnValue(['email_settings' => ['from_address' => "test-from-address@example.com"]]));
} }

View file

@ -29,12 +29,12 @@ class PharTest extends \PHPUnit_Framework_TestCase
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();
$phpci = $this $builder = $this
->getMockBuilder('PHPCensor\Builder') ->getMockBuilder('PHPCensor\Builder')
->disableOriginalConstructor() ->disableOriginalConstructor()
->getMock(); ->getMock();
return new PharPlugin($phpci, $build, $options); return new PharPlugin($builder, $build, $options);
} }
protected function buildTemp() protected function buildTemp()
@ -95,13 +95,13 @@ class PharTest extends \PHPUnit_Framework_TestCase
$plugin = $this->getPlugin(); $plugin = $this->getPlugin();
$this->assertInstanceOf('PHPCensor\Plugin', $plugin); $this->assertInstanceOf('PHPCensor\Plugin', $plugin);
$this->assertInstanceOf('PHPCensor\Model\Build', $plugin->getBuild()); $this->assertInstanceOf('PHPCensor\Model\Build', $plugin->getBuild());
$this->assertInstanceOf('PHPCensor\Builder', $plugin->getPHPCI()); $this->assertInstanceOf('PHPCensor\Builder', $plugin->getBuilder());
} }
public function testDirectory() public function testDirectory()
{ {
$plugin = $this->getPlugin(); $plugin = $this->getPlugin();
$plugin->getPHPCI()->buildPath = 'foo'; $plugin->getBuilder()->buildPath = 'foo';
$this->assertEquals('foo', $plugin->getDirectory()); $this->assertEquals('foo', $plugin->getDirectory());
$plugin = $this->getPlugin(['directory' => 'dirname']); $plugin = $this->getPlugin(['directory' => 'dirname']);
@ -141,7 +141,7 @@ class PharTest extends \PHPUnit_Framework_TestCase
$plugin = $this->getPlugin(); $plugin = $this->getPlugin();
$path = $this->buildSource(); $path = $this->buildSource();
$plugin->getPHPCI()->buildPath = $path; $plugin->getBuilder()->buildPath = $path;
$this->assertTrue($plugin->execute()); $this->assertTrue($plugin->execute());
@ -159,7 +159,7 @@ class PharTest extends \PHPUnit_Framework_TestCase
$plugin = $this->getPlugin(['regexp' => '/\.(php|phtml)$/']); $plugin = $this->getPlugin(['regexp' => '/\.(php|phtml)$/']);
$path = $this->buildSource(); $path = $this->buildSource();
$plugin->getPHPCI()->buildPath = $path; $plugin->getBuilder()->buildPath = $path;
$this->assertTrue($plugin->execute()); $this->assertTrue($plugin->execute());
@ -185,7 +185,7 @@ STUB;
file_put_contents($path . '/stub.php', $content); file_put_contents($path . '/stub.php', $content);
$plugin = $this->getPlugin(['stub' => 'stub.php']); $plugin = $this->getPlugin(['stub' => 'stub.php']);
$plugin->getPHPCI()->buildPath = $path; $plugin->getBuilder()->buildPath = $path;
$this->assertTrue($plugin->execute()); $this->assertTrue($plugin->execute());
@ -201,7 +201,7 @@ STUB;
$directory = $this->buildTemp(); $directory = $this->buildTemp();
$plugin = $this->getPlugin(['directory' => $directory]); $plugin = $this->getPlugin(['directory' => $directory]);
$plugin->getPHPCI()->buildPath = $this->buildSource(); $plugin->getBuilder()->buildPath = $this->buildSource();
$this->assertFalse($plugin->execute()); $this->assertFalse($plugin->execute());
} }

View file

@ -24,7 +24,7 @@ class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase
$this->testedInformation = ComposerPluginInformation::buildFromYaml($file); $this->testedInformation = ComposerPluginInformation::buildFromYaml($file);
} }
protected function phpciSetup() protected function setup()
{ {
$this->setUpFromFile( $this->setUpFromFile(
__DIR__ . "/../../../../vendor/composer/installed.json" __DIR__ . "/../../../../vendor/composer/installed.json"
@ -33,7 +33,7 @@ class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase
public function testBuildFromYaml_ReturnsInstance() public function testBuildFromYaml_ReturnsInstance()
{ {
$this->phpciSetup(); $this->setup();
$this->assertInstanceOf( $this->assertInstanceOf(
'\PHPCensor\Plugin\Util\ComposerPluginInformation', '\PHPCensor\Plugin\Util\ComposerPluginInformation',
$this->testedInformation $this->testedInformation
@ -42,7 +42,7 @@ class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase
public function testGetInstalledPlugins_ReturnsStdClassArray() public function testGetInstalledPlugins_ReturnsStdClassArray()
{ {
$this->phpciSetup(); $this->setup();
$plugins = $this->testedInformation->getInstalledPlugins(); $plugins = $this->testedInformation->getInstalledPlugins();
$this->assertInternalType("array", $plugins); $this->assertInternalType("array", $plugins);
$this->assertContainsOnly("stdClass", $plugins); $this->assertContainsOnly("stdClass", $plugins);
@ -50,7 +50,7 @@ class ComposerPluginInformationTest extends \PHPUnit_Framework_TestCase
public function testGetPluginClasses_ReturnsStringArray() public function testGetPluginClasses_ReturnsStringArray()
{ {
$this->phpciSetup(); $this->setup();
$classes = $this->testedInformation->getPluginClasses(); $classes = $this->testedInformation->getPluginClasses();
$this->assertInternalType("array", $classes); $this->assertInternalType("array", $classes);
$this->assertContainsOnly("string", $classes); $this->assertContainsOnly("string", $classes);

View file

@ -39,7 +39,7 @@ class ExecutorTest extends \PHPUnit_Framework_TestCase
); );
} }
public function testExecutePlugin_AssumesPHPCINamespaceIfNoneGiven() public function testExecutePlugin_AssumesNamespaceIfNoneGiven()
{ {
$options = []; $options = [];
$pluginName = 'PhpUnit'; $pluginName = 'PhpUnit';

View file

@ -21,11 +21,10 @@ class ExamplePluginFull implements Plugin {
public $Options; public $Options;
public function __construct( public function __construct(
Builder $phpci, Builder $builder,
Build $build, Build $build,
array $options = [] array $options = []
) ) {
{
$this->Options = $options; $this->Options = $options;
} }

View file

@ -59,7 +59,7 @@ if (file_exists($configFile)) {
} }
if (!defined('APP_URL') && !empty($config)) { if (!defined('APP_URL') && !empty($config)) {
define('APP_URL', $config->get('phpci.url', '') . '/'); define('APP_URL', $config->get('php-censor.url', '') . '/');
} }
if (!defined('IS_CONSOLE')) { if (!defined('IS_CONSOLE')) {