1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +02:00

Fix for long text in Admin control panel. Check for missing intl extension when non-English languages in use and display alert on PHPInfo page when missing.

This commit is contained in:
Cameron 2021-12-01 11:59:49 -08:00
parent b0c3c9cd17
commit 577bcb89e1
3 changed files with 25 additions and 10 deletions
credits.php
e107_admin
e107_themes/bootstrap3

@ -5,7 +5,7 @@ if (!defined('e107_INIT'))
require_once("class2.php");
define('e_IFRAME', true);
$css = "body { background-color: rgb(55, 55, 55); padding:50px; color: white; text-align: left; font-size:16px; line-height:1.5em; font-weight:normal; font-family:Arial, Helvetica, sans-serif; }
$css = "body { background: rgb(55, 55, 55); padding:50px; color: white; text-align: left; font-size:16px; line-height:1.5em; font-weight:normal; font-family:Arial, Helvetica, sans-serif; }
p { margin:0px 5px 10px 5px; }
a { color:#F6931E; text-decoration:none; }
a:hover { color:#fdce8a; text-decoration:none; }
@ -22,6 +22,11 @@ if (!defined('e107_INIT'))
";
e107::css('inline',$css);
e107::link(['rel'=>"canonical", 'href'=> SITEURL."credits.php"]);
e107::title('e107 Development Credits and Sponsors');
e107::meta('description', 'e107 bootstrap content management system development credits and sponsors.');
e107::meta('og:image', SITEURLBASE.e_IMAGE_ABS.'admin_images/credits_logo.png');
e107::meta('og:url', SITEURL."credits.php");
require_once(HEADERF);
}
@ -29,7 +34,7 @@ if (!defined('e107_INIT'))
$text ='<div class="wrapper">
<div class="wrapper-middle">
<div class="well credits-content">
<img class="logo" src="'.e_IMAGE_ABS.'admin_images/credits_logo.png" alt="e107 Logo" />
<img class="logo" src="'.e_IMAGE_ABS.'admin_images/credits_logo.png" alt="e107 Logo" title="e107 bootstrap content management system logo" />
<div class="wrapper-text">
<h4 class="text-info">Developers</h4>
<p>

@ -41,16 +41,26 @@ $phpinfo = preg_replace('/<table[^>]*>/i', '<table class="table table-striped ad
$mes = e107::getMessage();
$extensionCheck = array(
'curl' => array('label'=> 'Curl Library', 'status' => function_exists('curl_version'), 'url'=> 'http://php.net/manual/en/book.curl.php'),
'exif' => array('label'=> "EXIF Extension", 'status' => function_exists('exif_imagetype'), 'url'=> 'http://php.net/manual/en/book.exif.php'),
'fileinfo' => array('label'=> "FileInfo. Extension", 'status' => extension_loaded('fileinfo'), 'url'=> 'https://www.php.net/manual/en/book.fileinfo'),
'gd' => array('label'=> 'GD Library', 'status' => function_exists('gd_info'), 'url'=> 'http://php.net/manual/en/book.image.php'),
'mb' => array('label'=> 'MB String Library', 'status' => extension_loaded('mbstring'), 'url'=> 'http://php.net/manual/en/book.mbstring.php'),
'pdo' => array('label'=> "PDO (MySQL)", 'status' => extension_loaded('pdo_mysql'), 'url'=> 'https://php.net/manual/en/book.pdo.php'),
'xml' => array('label'=> "XML Extension", 'status' => function_exists('utf8_encode') && class_exists('DOMDocument', false), 'url'=> 'http://php.net/manual/en/ref.xml.php'),
'curl' => array('label'=> 'Curl Library', 'status' => function_exists('curl_version'), 'url'=> 'http://php.net/manual/en/book.curl.php'),
'exif' => array('label'=> "EXIF Extension", 'status' => function_exists('exif_imagetype'), 'url'=> 'http://php.net/manual/en/book.exif.php'),
'fileinfo' => array('label'=> "FileInfo. Extension", 'status' => extension_loaded('fileinfo'), 'url'=> 'https://www.php.net/manual/en/book.fileinfo'),
'gd' => array('label'=> 'GD Library', 'status' => function_exists('gd_info'), 'url'=> 'http://php.net/manual/en/book.image.php'),
'mb' => array('label'=> 'MB String Library', 'status' => extension_loaded('mbstring'), 'url'=> 'http://php.net/manual/en/book.mbstring.php'),
'pdo' => array('label'=> "PDO (MySQL)", 'status' => extension_loaded('pdo_mysql'), 'url'=> 'https://php.net/manual/en/book.pdo.php'),
'xml' => array('label'=> "XML Extension", 'status' => function_exists('utf8_encode') && class_exists('DOMDocument', false), 'url'=> 'http://php.net/manual/en/ref.xml.php'),
);
$languages = e107::getLanguage()->installed('abbr');
if(isset($languages['en']))
{
unset($languages['en']);
}
if(!empty($languages)) // non-english languages present.
{
$extensionCheck['intl'] = array('label'=> 'Internationalization Functions', 'status' => extension_loaded('intl'), 'url'=> 'https://www.php.net/manual/en/book.intl.php');
}
foreach($extensionCheck as $var)

@ -50,7 +50,7 @@ button, button:active { outline: 0; }
/* .core-mainpanel-block { text-align:center; width:140px; float:left; height:100px; display:block; padding:1px; margin: 0; } */
.core-mainpanel-block { text-align:center; width:20%; float:left; height:80px; display:block; padding:1px 5px; margin: 0px 0px 10px 0px; }
.core-mainpanel-link-text { text-decoration: none; display:block; }
.core-mainpanel-link-text { text-decoration: none; display:block; text-overflow: ellipsis; overflow: hidden; }
/* a.core-mainpanel-link-icon { height:100px; width: 141px; padding-top:20px; } */
a.core-mainpanel-link-icon { height:80px; width: 100%; padding-top:15px; }
a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }