update of links

Links updated and code - improvements
This commit is contained in:
gtbu 2024-03-03 19:57:12 +01:00
parent 095690dd58
commit 906f60b5e1
4 changed files with 8 additions and 7 deletions

View file

@ -16,7 +16,7 @@ class About{
echo '<p>You\'re currently using version '.\gpversion.' of our free, open source and easy to use content management system.';
echo ' Our code is <a href="https://github.com/Typesetter/Typesetter">hosted on GitHub</a> ';
echo ' Our code is <a href="https://github.com/gtbu/Typesetter-5.3-p8">hosted on GitHub</a> ';
echo 'and licensed under version 2 of the <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License</a>. ';
echo '</p>';
@ -42,7 +42,7 @@ class About{
echo '<p>This one is a bit more subjective, but just as important. ';
echo ' There are multiple ways to give us feedback. The following services allow you to rate and comment on '.\CMS_NAME.'. ';
echo '</p>';
echo '<p><a href="https://github.com/Typesetter/Typesetter" target="_blank">Fork on GitHub</a></p>';
echo '<p><a href="https://github.com/gtbu/Typesetter-5.3-p8" target="_blank">Fork on GitHub</a></p>';
echo '<p><a href="https://www.opensourcecms.com/typesetter-cms/" target="_blank">OpensourceCMS.com</a></p>';
@ -52,9 +52,10 @@ class About{
$projects['ColorBox'] = 'www.jacklmoore.com/colorbox';
$projects['Bootstrap'] = 'getbootstrap.com';
$projects['Bootswatch'] = 'bootswatch.com';
$projects['jQuery'] = 'jquery.com';
$projects['jQuery'] = 'jquery.com';
$projects['jQuery UI'] = 'jqueryui.com';
$projects['ScssPhp'] = 'github.com/leafo/scssphp';
$projects['ScssPhp'] = 'https://github.com/scssphp/scssphp';
$projects['Less'] = 'https://github.com/wikimedia/less.php';
$projects['PHPMailer'] = 'github.com/PHPMailer/PHPMailer';

View file

@ -794,7 +794,7 @@ namespace gp\admin{
echo '<li><a href="' . CMS_DOMAIN . '/Forum">Support Forum</a></li>';
echo '<li><a href="' . CMS_DOMAIN . '/Services">Service Providers</a></li>';
echo '<li><a href="' . CMS_DOMAIN . '">Official ' . CMS_NAME . ' Site</a></li>';
echo '<li><a href="https://github.com/Typesetter/Typesetter/issues">Report A Bug</a></li>';
echo '<li><a href="https://github.com/gtbu/Typesetter-5.3-p8/issues">Report A Bug</a></li>';
$links = ob_get_clean();
self::_AdminPanelLinks($in_panel, $links, 'resources', 'fa fa-globe', 'res');

View file

@ -808,7 +808,7 @@ namespace gp{
public static function ServerName($strip_www=false, $with_port=false){
$add_port = '';
if( isset($_SERVER['SERVER_NAME']) ){
if( !empty($_SERVER['HTTP_HOST']) ){
$server = self::UrlChars($_SERVER['SERVER_NAME']);
if( $with_port && isset($_SERVER['SERVER_PORT']) ){
$port = $_SERVER['SERVER_PORT'];

View file

@ -82,7 +82,7 @@ class gp_email{
}
$server = \gp\tool::ServerName(true);
if( !$server === false ){
if (!boolval($server)){
$server = 'localhost';
}