Ajout d'une étape de linting dans DroneCi (#3)

Corrige un doublons laissé par le rebase semi-manuel

Ajout d'une étape de linting dans DroneCi

Fix linting

Co-authored-by: Nigel Sheldon <nigelsheldon@live.fr>
Reviewed-on: https://gitea.nemunai.re/halo-battle/game/pulls/3
This commit is contained in:
Nigel 2020-11-21 18:54:32 +00:00
commit dd61d3b66b
263 changed files with 45327 additions and 42695 deletions

View file

@ -1,28 +1,29 @@
<?php
if(!defined('ONYX')) exit;
if (!defined('ONYX')) {
exit;
}
switch($OPT['type'])
{
switch ($OPT['type']) {
case 'mysql':
case 'postgresql':
$api = array('mysql' => 'mysqli_connect', 'postgresql' => 'pg_connect');
if(!function_exists($api[$OPT['type']])) trigger_error('API introuvable',E_USER_ERROR);
if (!function_exists($api[$OPT['type']])) {
trigger_error('API introuvable', E_USER_ERROR);
}
unset($api);
function dbpass($crypt,$cle)
{
return cxor(base64_decode($crypt),md5($cle,TRUE));
}
function dbpass($crypt, $cle)
{
return cxor(base64_decode($crypt), md5($cle, true));
}
$db_config = $OPT;
require_once($OPT['type'].'.class.php');
define('DB_TYPE',$OPT['type']);
define('DB_TYPE', $OPT['type']);
break;
default: trigger_error('Base de donnee inconnue',E_USER_ERROR);
default: trigger_error('Base de donnee inconnue', E_USER_ERROR);
}
?>