Skip to content

Commit

Permalink
Missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Mar 17, 2023
1 parent 4084b5f commit 5436bf1
Show file tree
Hide file tree
Showing 14 changed files with 1,424 additions and 0 deletions.
40 changes: 40 additions & 0 deletions phpunit/config/mysql/config.inc.php
@@ -0,0 +1,40 @@
<?php

/**
* MySQL configuration file for tests
*
* PHP version 5
*
* @category Tests
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
* @copyright 2012-2014 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @version SVN: $Id$
* @link http://galette.tuxfamily.org
* @since Available since 0.7.3dev 2012-12-12
*/

define("TYPE_DB", "mysql");
if (file_exists(__DIR__ . '/local_config.inc.php')) {
include_once __DIR__ . '/local_config.inc.php';
}
if (!defined('HOST_DB')) {
define("HOST_DB", "127.0.0.1");
}
if (!defined('PORT_DB')) {
define("PORT_DB", "3306");
}
if (!defined('USER_DB')) {
define("USER_DB", "galette_tests");
}
if (!defined('PWD_DB')) {
define("PWD_DB", "g@l3tte");
}
if (!defined('NAME_DB')) {
define("NAME_DB", "galette_tests");
}
if (!defined('PREFIX_DB')) {
define("PREFIX_DB", "galette_");
}
222 changes: 222 additions & 0 deletions phpunit/config/mysql/galette_tcpdf_config.php
@@ -0,0 +1,222 @@
<?php
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2013-05-16
//
// Description : Configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
// TCPDF is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
//============================================================+

/**
* Alternative configuration file for TCPDF.
* @author Nicola Asuni
* @package com.tecnick.tcpdf
* @version 4.9.005
* @since 2004-10-27
*/

/**
* Define the following constant to ignore the default configuration file.
*/
define ('K_TCPDF_EXTERNAL_CONFIG', true);

/**
* Installation path (/var/www/tcpdf/).
* By default it is automatically calculated but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_MAIN', GALETTE_TCPDF_PATH);

/**
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
//define ('K_PATH_URL', '');

/**
* Path for PDF fonts.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_FONTS', GALETTE_TCPDF_PATH.'/fonts/');

/**
* Default images directory.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_IMAGES', GALETTE_PHOTOS_PATH);

/**
* Deafult image logo used be the default Header() method.
* Please set here your own logo or an empty string to disable it.
*/
//define ('PDF_HEADER_LOGO', '');

/**
* Header logo image width in user units.
*/
//define ('PDF_HEADER_LOGO_WIDTH', 0);

/**
* Cache directory for temporary files (full path).
*/
define ('K_PATH_CACHE', GALETTE_CACHE_DIR);

/**
* Generic name for a blank image.
*/
define ('K_BLANK_IMAGE', '_blank.png');

/**
* Page format.
*/
define ('PDF_PAGE_FORMAT', 'A4');

/**
* Page orientation (P=portrait, L=landscape).
*/
define ('PDF_PAGE_ORIENTATION', 'P');

/**
* Document creator.
*/
define ('PDF_CREATOR', 'TCPDF');

/**
* Document author.
*/
define ('PDF_AUTHOR', 'TCPDF');

/**
* Header title.
*/
define ('PDF_HEADER_TITLE', 'TCPDF Example');

/**
* Header description string.
*/
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");

/**
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
*/
define ('PDF_UNIT', 'mm');

/**
* Header margin.
*/
define ('PDF_MARGIN_HEADER', 5);

/**
* Footer margin.
*/
define ('PDF_MARGIN_FOOTER', 10);

/**
* Top margin.
*/
define ('PDF_MARGIN_TOP', 27);

/**
* Bottom margin.
*/
define ('PDF_MARGIN_BOTTOM', 25);

/**
* Left margin.
*/
define ('PDF_MARGIN_LEFT', 15);

/**
* Right margin.
*/
define ('PDF_MARGIN_RIGHT', 15);

/**
* Default main font name.
*/
define ('PDF_FONT_NAME_MAIN', 'DejaVuSans');

/**
* Default main font size.
*/
define ('PDF_FONT_SIZE_MAIN', 10);

/**
* Default data font name.
*/
define ('PDF_FONT_NAME_DATA', 'DejaVuSans');

/**
* Default data font size.
*/
define ('PDF_FONT_SIZE_DATA', 8);

/**
* Default monospaced font name.
*/
define ('PDF_FONT_MONOSPACED', 'courier');

/**
* Ratio used to adjust the conversion of pixels to user units.
*/
define ('PDF_IMAGE_SCALE_RATIO', 1.25);

/**
* Magnification factor for titles.
*/
define('HEAD_MAGNIFICATION', 1.1);

/**
* Height of cell respect font height.
*/
define('K_CELL_HEIGHT_RATIO', 1.25);

/**
* Title magnification respect main font size.
*/
define('K_TITLE_MAGNIFICATION', 1.3);

/**
* Reduction factor for small font.
*/
define('K_SMALL_RATIO', 2/3);

/**
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
*/
define('K_THAI_TOPCHARS', true);

/**
* If true allows to call TCPDF methods using HTML syntax
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
*/
define('K_TCPDF_CALLS_IN_HTML', true);

/**
* If true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
*/
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);

//============================================================+
// END OF FILE
//============================================================+
20 changes: 20 additions & 0 deletions phpunit/config/mysql/local_config.inc.php
@@ -0,0 +1,20 @@
<?php

/**
* MySQL local configuration file for tests
*
* PHP version 5
*
* @category Tests
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
* @copyright 2012-2014 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @version SVN: $Id$
* @link http://galette.tuxfamily.org
* @since Available since 0.7.3dev 2012-12-12
*/

define("USER_DB", "galette_test");
define("PWD_DB", "lp49ax87");
41 changes: 41 additions & 0 deletions phpunit/config/pgsql/config.inc.php
@@ -0,0 +1,41 @@
<?php

/**
* PostgreSQL configuration file for tests
*
* PHP version 5
*
* @category Tests
* @package Galette
*
* @author Johan Cwiklinski <johan@x-tnd.be>
* @copyright 2012-2014 The Galette Team
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @version SVN: $Id$
* @link http://galette.tuxfamily.org
* @since Available since 0.7.3dev 2012-12-12
*/

define("TYPE_DB", "pgsql");

if (file_exists(__DIR__ . '/local_config.inc.php')) {
include_once __DIR__ . '/local_config.inc.php';
}
if (!defined('HOST_DB')) {
define("HOST_DB", "localhost");
}
if (!defined('PORT_DB')) {
define("PORT_DB", "5432");
}
if (!defined('USER_DB')) {
define("USER_DB", "galette_tests");
}
if (!defined('PWD_DB')) {
define("PWD_DB", "g@l3tte");
}
if (!defined('NAME_DB')) {
define("NAME_DB", "galette_tests");
}
if (!defined('PREFIX_DB')) {
define("PREFIX_DB", "galette_");
}

0 comments on commit 5436bf1

Please sign in to comment.