Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
502cdae
Cleanup of the obsolete and no longer used third_party resource
DanProgs Jun 3, 2025
f3c8522
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
87cb828
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
2eef11f
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
1a117c2
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
774f671
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
1658f05
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
9604f61
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
5edabcc
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
6c1284f
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
273e377
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
2777d93
revised parentheses of constructs and conditions
DanProgs Jun 3, 2025
59985db
revised parentheses of constructs and conditions
DanProgs Jun 4, 2025
6196983
revised parentheses of constructs and conditions
DanProgs Jun 4, 2025
c78365e
revised parentheses of constructs and conditions
DanProgs Jun 4, 2025
347df43
Cleaned up code - some adjustments to selected files
DanProgs Jun 8, 2025
de66ca2
Cleaned up code - some adjustments to selected files
DanProgs Jun 8, 2025
b8893fa
Cleaned up code - some adjustments to selected files
DanProgs Jun 8, 2025
adc5df5
Cleaned up code - some adjustments to selected files
DanProgs Jun 8, 2025
583be68
Cleaned up code - some adjustments to selected files
DanProgs Jun 9, 2025
99ab2f3
Cleaned up code - some adjustments to selected files
DanProgs Jun 9, 2025
034d4cc
Cleaned up code - some adjustments to selected files
DanProgs Jun 9, 2025
1eb18e6
The following adjustments were made:
DanProgs Jun 10, 2025
196f548
Cleaned up code - some adjustments to selected files
DanProgs Jun 12, 2025
44ce239
Cleaned up code - some adjustments to selected files
DanProgs Jun 13, 2025
11f9b40
Cleaned up code - some adjustments to selected files
DanProgs Jun 13, 2025
1f952fb
Cleaned up code - some adjustments to selected files
DanProgs Jun 17, 2025
01be452
Fix an Uncaught TypeError: count() in third_party\xml-rpc\class-IXR.php
DanProgs Jun 17, 2025
9c1139e
corrected typos in lib/api/xmlrpc/v1/xmlrpc.class.php
DanProgs Jun 18, 2025
df016b3
minor changes for PHP 8.x within the old third_party sources
DanProgs Jun 18, 2025
14aecc4
correction of linking to add and remove test cases
DanProgs Jun 18, 2025
be4fdb9
Cleaned up code - some adjustments to selected files
DanProgs Jun 19, 2025
aa4fe9d
Cleaned up code - some adjustments to selected files
DanProgs Jun 19, 2025
9cea322
Fix Deprecate required parameters after optional parameters in
DanProgs Jun 19, 2025
71704c4
update the dependencies
DanProgs Jun 20, 2025
d993f6b
Cleaned up code - some adjustments to selected files
DanProgs Jun 20, 2025
a2dd441
update the dependencies
DanProgs Jun 20, 2025
5eb0cc2
switched to updated dependency
DanProgs Jun 22, 2025
640cee4
Cleaned up code - some adjustments to selected files
DanProgs Jun 22, 2025
f84858e
formatting adjusted
DanProgs Jun 22, 2025
0d67be7
first changes merged
DanProgs Jun 22, 2025
35ff2bb
Cleaned up code - some adjustments to selected files
DanProgs Jun 23, 2025
ee71c60
Cleaned up code - some adjustments to selected files
DanProgs Jun 23, 2025
5191885
Cleaned up code - some adjustments to selected files
DanProgs Jun 23, 2025
929f0d4
Cleaned up code - some adjustments to selected files
DanProgs Jun 24, 2025
9a53ae4
Cleaned up code - some adjustments to selected files
DanProgs Jun 26, 2025
7d5c2b5
Cleaned up code - some adjustments to selected files
DanProgs Jul 3, 2025
efd8f4c
Cleaned up code - some adjustments to selected files
DanProgs Jul 3, 2025
573922b
Cleaned up code - some adjustments to selected files
DanProgs Jul 4, 2025
fb457d0
Cleaned up code - some adjustments to selected files
DanProgs Jul 4, 2025
ceaf6a2
Cleaned up code - some adjustments to selected files
DanProgs Jul 10, 2025
3d6c57c
Cleaned up code - some adjustments to selected files
DanProgs Jul 13, 2025
e09856d
Cleaned up code - some adjustments to selected files
DanProgs Jul 13, 2025
146cba9
Cleaned up code - some adjustments to selected files
DanProgs Jul 14, 2025
e7a6c03
Cleaned up code - some adjustments to selected files
DanProgs Aug 5, 2025
790b4ea
Cleaned up code - some adjustments to selected files
DanProgs Aug 8, 2025
95aa894
Cleaned up code - some adjustments to selected files
DanProgs Aug 8, 2025
0dcd146
Cleaned up code - some adjustments to selected files
DanProgs Aug 10, 2025
232644f
FIX an Uncaught TypeError: current() in \lib\results\resultsGeneral.php
DanProgs Aug 10, 2025
f24c629
FIX Uncaught TypeError: sizeof() in \lib\functions\testsuite.class.php
DanProgs Aug 10, 2025
a346b6f
FIX Uncaught TypeError: count() in \lib\functions\testsuite.class.php on
DanProgs Aug 10, 2025
0f6b6c4
FIX Uncaught TypeError: count() in \lib\functions\testsuite.class.php on
DanProgs Aug 10, 2025
9a2ea5d
FIX Uncaught TypeError: count() in \lib\functions\testproject.class.php
DanProgs Aug 10, 2025
fc6ed73
Cleaned up code - some adjustments to selected files
DanProgs Aug 10, 2025
f32fef4
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 12, 2025
be7060f
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 15, 2025
6ec344c
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 21, 2025
18ef560
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 26, 2025
2dcfd16
Cleaned up code - some adjustments to selected files
DanProgs Aug 26, 2025
dccc884
Cleaned up code - some adjustments to selected files
DanProgs Aug 27, 2025
364432d
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 28, 2025
9a324a4
Cleaned up and formatted code - some adjustments to selected files
DanProgs Aug 29, 2025
5b41b0e
Cleaned up and formatted code - some adjustments to selected files
DanProgs Sep 2, 2025
50dcf63
Cleaned up code - some files refactored
DanProgs Sep 3, 2025
a2d7031
Cleaned up code - some files refactored
DanProgs Sep 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,207 changes: 1,217 additions & 990 deletions cfg/const.inc.php

Large diffs are not rendered by default.

119 changes: 57 additions & 62 deletions cfg/oauth_samples/oauth.azuread.inc.php
Original file line number Diff line number Diff line change
@@ -1,62 +1,57 @@
<?php
//
// filesource oauth.azuread.inc.php
//
// Azure AD
// Fill in CLIENT_ID,
// CLIENT_SECRET,
// YOURTESTLINKSERVER,
// TENANTID
// with your information
// See this article for registering an application: https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
// Make sure, you grant admint consent for it: https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent

//
// IMPORTANTE NOTICE
// key in $tlCfg->OAuthServers[]
// can be anything you want that make this configuration
// does not overwrite other or will be overwritten
//
// HOW TO use this file ?
// 1. copy this file to
// [TESTLINK_INSTALL]/cfg/
//
// 2. configure according your application
//
// 3. add the following line to your custom_config.inc.php
// require('aouth.azuread.inc.php');
//
// -------------------------------------------------------------
$tlCfg->OAuthServers['azuread'] = array();

$tlCfg->OAuthServers['azuread']['redirect_uri'] = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . '/login.php';


$tlCfg->OAuthServers['azuread']['oauth_client_id'] = 'CHANGE_WITH_CLIENT_ID';
$tlCfg->OAuthServers['azuread']['oauth_client_secret'] =
'CHANGE_WITH_CLIENT_SECRET';

// https://login.microsoftonline.com/YOUR_TENANT_ID/v2.0/.well-known/openid-configuration
$azureADBaseURL = 'https://login.microsoftonline.com/CHANGE_WITH_TENANT_ID';
$msGraphURL = 'https://graph.microsoft.com';
$tlCfg->OAuthServers['azuread']['oauth_url'] =
$azureADBaseURL . '/oauth2/v2.0/authorize';

$tlCfg->OAuthServers['azuread']['token_url'] =
$azureADBaseURL . '/oauth2/v2.0/token';

$tlCfg->OAuthServers['azuread']['oauth_profile'] =
$msGraphURL . '/oidc/userinfo';


$tlCfg->OAuthServers['azuread']['oauth_enabled'] = true;
$tlCfg->OAuthServers['azuread']['oauth_name'] = 'azuread'; //do not change this
$tlCfg->OAuthServers['azuread']['oauth_force_single'] = true;
$tlCfg->OAuthServers['azuread']['oauth_grant_type'] = 'authorization_code';

// the domain you want to whitelist (email domains)
$tlCfg->OAuthServers['azuread']['oauth_domain'] = 'autsoft.hu';


$tlCfg->OAuthServers['azuread']['oauth_scope'] =
'https://graph.microsoft.com/mail.read https://graph.microsoft.com/user.read openid profile email';
<?php
//
// filesource oauth.azuread.inc.php
//
// Azure AD
// Fill in CLIENT_ID,
// CLIENT_SECRET,
// YOURTESTLINKSERVER,
// TENANTID
// with your information
// See this article for registering an application: https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
// Make sure, you grant admint consent for it: https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent

//
// IMPORTANTE NOTICE
// key in $tlCfg->OAuthServers[]
// can be anything you want that make this configuration
// does not overwrite other or will be overwritten
//
// HOW TO use this file ?
// 1. copy this file to
// [TESTLINK_INSTALL]/cfg/
//
// 2. configure according your application
//
// 3. add the following line to your custom_config.inc.php
// require('aouth.azuread.inc.php');
//
// -------------------------------------------------------------
$tlCfg->OAuthServers['azuread'] = array();

$tlCfg->OAuthServers['azuread']['redirect_uri'] = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') .
$_SERVER['HTTP_HOST'] . '/login.php';

$tlCfg->OAuthServers['azuread']['oauth_client_id'] = 'CHANGE_WITH_CLIENT_ID';
$tlCfg->OAuthServers['azuread']['oauth_client_secret'] = 'CHANGE_WITH_CLIENT_SECRET';

// https://login.microsoftonline.com/YOUR_TENANT_ID/v2.0/.well-known/openid-configuration
$azureADBaseURL = 'https://login.microsoftonline.com/CHANGE_WITH_TENANT_ID';
$msGraphURL = 'https://graph.microsoft.com';
$tlCfg->OAuthServers['azuread']['oauth_url'] = $azureADBaseURL .
'/oauth2/v2.0/authorize';

$tlCfg->OAuthServers['azuread']['token_url'] = $azureADBaseURL .
'/oauth2/v2.0/token';

$tlCfg->OAuthServers['azuread']['oauth_profile'] = $msGraphURL . '/oidc/userinfo';

$tlCfg->OAuthServers['azuread']['oauth_enabled'] = true;
$tlCfg->OAuthServers['azuread']['oauth_name'] = 'azuread'; // do not change this
$tlCfg->OAuthServers['azuread']['oauth_force_single'] = true;
$tlCfg->OAuthServers['azuread']['oauth_grant_type'] = 'authorization_code';

// the domain you want to whitelist (email domains)
$tlCfg->OAuthServers['azuread']['oauth_domain'] = 'autsoft.hu';

$tlCfg->OAuthServers['azuread']['oauth_scope'] = 'https://graph.microsoft.com/mail.read https://graph.microsoft.com/user.read openid profile email';
88 changes: 43 additions & 45 deletions cfg/oauth_samples/oauth.github.inc.php
Original file line number Diff line number Diff line change
@@ -1,46 +1,44 @@
<?php
#
# @filename oauth.github.inc.php
#
# 20200522 - tested OK
# Application is registered for github user testlinkOAuth
# this user is owned by TestLink Development Team.
#
#
# Client implemented using
# https://github.com/thephpleague/oauth2-github
#
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.github.inc.php');
#
# ###########################################################
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['github'] = array();
$tlCfg->OAuthServers['github']['redirect_uri'] =
'http://fman.hopto.org/login.php?oauth=github';

$tlCfg->OAuthServers['github']['oauth_client_id'] ='aa5f70a8de342fb95043';
$tlCfg->OAuthServers['github']['oauth_client_secret'] =
'c8d61d5ec4ed4eb2ac81064c27043ddef351107e';

$tlCfg->OAuthServers['github']['oauth_enabled'] = true;
<?php
#
# @filename oauth.github.inc.php
#
# 20200522 - tested OK
# Application is registered for github user testlinkOAuth
# this user is owned by TestLink Development Team.
#
#
# Client implemented using
# https://github.com/thephpleague/oauth2-github
#
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.github.inc.php');
#
# ###########################################################
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['github'] = array();
$tlCfg->OAuthServers['github']['redirect_uri'] = 'http://fman.hopto.org/login.php?oauth=github';

$tlCfg->OAuthServers['github']['oauth_client_id'] = 'aa5f70a8de342fb95043';
$tlCfg->OAuthServers['github']['oauth_client_secret'] = 'c8d61d5ec4ed4eb2ac81064c27043ddef351107e';

$tlCfg->OAuthServers['github']['oauth_enabled'] = true;
$tlCfg->OAuthServers['github']['oauth_name'] = 'github';
# End Of File
88 changes: 43 additions & 45 deletions cfg/oauth_samples/oauth.gitlab.inc.php
Original file line number Diff line number Diff line change
@@ -1,46 +1,44 @@
<?php
# filesource oauth.gitlab.inc.php
#
# Some useful examples/documentation
# https://docs.gitlab.com/ce/api/oauth2.html
# https://grafana.com/docs/grafana/latest/auth/gitlab/

# Libraries used to create client
# https://github.com/thephpleague/oauth2-client
# https://github.com/omines/oauth2-gitlab
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.gitlab.inc.php');
#
# ##############################################################
#
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['gitlab'] = array();

$tlCfg->OAuthServers['gitlab']['redirect_uri'] =
'http://fman.hopto.org/login.php?oauth=gitlab';

$tlCfg->OAuthServers['gitlab']['oauth_enabled'] = true;
$tlCfg->OAuthServers['gitlab']['oauth_name'] = 'gitlab';

$tlCfg->OAuthServers['gitlab']['oauth_client_id'] =
'27a03c93d60b5ddb4e0cef92149678fbe37c099733605e046a5428a9da4177ba';

<?php
# filesource oauth.gitlab.inc.php
#
# Some useful examples/documentation
# https://docs.gitlab.com/ce/api/oauth2.html
# https://grafana.com/docs/grafana/latest/auth/gitlab/

# Libraries used to create client
# https://github.com/thephpleague/oauth2-client
# https://github.com/omines/oauth2-gitlab
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.gitlab.inc.php');
#
# ##############################################################
#
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['gitlab'] = array();

$tlCfg->OAuthServers['gitlab']['redirect_uri'] = 'http://fman.hopto.org/login.php?oauth=gitlab';

$tlCfg->OAuthServers['gitlab']['oauth_enabled'] = true;
$tlCfg->OAuthServers['gitlab']['oauth_name'] = 'gitlab';

$tlCfg->OAuthServers['gitlab']['oauth_client_id'] = '27a03c93d60b5ddb4e0cef92149678fbe37c099733605e046a5428a9da4177ba';

$tlCfg->OAuthServers['gitlab']['oauth_client_secret'] = 'c157df291b81dbfd8084d38b155029baded3cf76c7449670bd2da889fe8b99eb';
85 changes: 41 additions & 44 deletions cfg/oauth_samples/oauth.google.inc.php
Original file line number Diff line number Diff line change
@@ -1,55 +1,52 @@
<?php
# filesource oauth.google.inc.php
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.google.inc.php');
#
# #############################################################
# Client implemented using
# https://github.com/thephpleague/oauth2-google
##
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['google'] = array();
$tlCfg->OAuthServers['google']['redirect_uri'] =
'http://fman.hopto.org/login.php?oauth=google';

$tlCfg->OAuthServers['google']['oauth_enabled'] = true;
$tlCfg->OAuthServers['google']['oauth_name'] = 'google';

// Get from /gui/themes/default/images
$tlCfg->OAuthServers['google']['oauth_client_id'] =
'860603525614-fscj9cgr2dvks51uh6odl67skec536fd.apps.googleusercontent.com';

$tlCfg->OAuthServers['google']['oauth_client_secret'] =
'_YOKquNTa4Fux-OMJoxDBuov';
<?php
# filesource oauth.google.inc.php
#
# IMPORTANT NOTICE
# key in $tlCfg->OAuthServers[]
# can be anything you want that make this configuration
# does not overwrite other or will be overwritten
#
# HOW TO use this file ?
# 1. copy this file to
# [TESTLINK_INSTALL]/cfg/
#
# 2. configure according your application
#
# 3. add the following line to your custom_config.inc.php
# require('aouth.google.inc.php');
#
# #############################################################
# Client implemented using
# https://github.com/thephpleague/oauth2-google
# #
# This is a working example for test site
# http://fman.hopto.org/
#
# You need to create the configuration for your site
# This is only a working example that is useful
# for the TestLink Development Team
#
$tlCfg->OAuthServers['google'] = array();
$tlCfg->OAuthServers['google']['redirect_uri'] = 'http://fman.hopto.org/login.php?oauth=google';

$tlCfg->OAuthServers['google']['oauth_enabled'] = true;
$tlCfg->OAuthServers['google']['oauth_name'] = 'google';

// Get from /gui/themes/default/images
$tlCfg->OAuthServers['google']['oauth_client_id'] = '860603525614-fscj9cgr2dvks51uh6odl67skec536fd.apps.googleusercontent.com';

$tlCfg->OAuthServers['google']['oauth_client_secret'] = '_YOKquNTa4Fux-OMJoxDBuov';

// Needed when you use the cURL implementation
// Can be authorization_code (by default), client_credentials or password
// $tlCfg->OAuthServers['google']['oauth_grant_type'] = 'authorization_code';
// $tlCfg->OAuthServers['google']['oauth_grant_type'] = 'authorization_code';
//$tlCfg->OAuthServers['google']['oauth_url'] = 'https://accounts.google.com/o/oauth2/auth';
//$tlCfg->OAuthServers['google']['token_url'] = 'https://accounts.google.com/o/oauth2/token';

// false => then the only user will be selected automatically (applied for google)
//$tlCfg->OAuthServers['google']['oauth_force_single'] = false;
//$tlCfg->OAuthServers['google']['oauth_force_single'] = false;

// the domain you want to whitelist
//$tlCfg->OAuthServers['google']['oauth_domain'] = 'google.com';
//$tlCfg->OAuthServers['google']['oauth_domain'] = 'google.com';
//$tlCfg->OAuthServers['google']['oauth_profile'] = 'https://www.googleapis.com/oauth2/v1/userinfo';
//$tlCfg->OAuthServers['google']['oauth_scope'] = 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile';
Loading