Skip to content

Commit

Permalink
Typo + Templates + credits Tohokuaiki
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamaster committed Nov 23, 2022
1 parent f3f5f51 commit 7c53753
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion html/modules/altsys/setup_xoops_trust_path.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}


// show the hint if password mathes
// show the hint if password matches
$hint = '' ;
if (@$_POST['dbpassword'] == XOOPS_DB_PASS) {
// find XOOPS_TRUST_PATH
Expand Down
5 changes: 3 additions & 2 deletions xoops_trust_path/libs/altsys/blocks/block_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function b_altsys_admin_menu_show($options)
return [];
}

// coretype
// core type
$coretype = altsys_get_core_type();

// mid_selected
Expand Down Expand Up @@ -155,7 +155,8 @@ function b_altsys_admin_menu_show($options)
'adminindex' => htmlspecialchars(@$modinfo['adminindex'], ENT_QUOTES),
'adminindex_absolute' => @$modinfo['adminindex_absolute'],
'submenu' => $submenus4assign,
'selected' => $mid == $mid_selected ? true : false,
//'selected' => $mid == $mid_selected ? true : false, TODO gigamaster check
'selected' => $mid == $mid_selected,
'dot_suffix' => $mid == $mid_selected ? 'selected_opened' : 'closed',
];
$block['modules'][] = $module4assign;
Expand Down
3 changes: 2 additions & 1 deletion xoops_trust_path/libs/altsys/include/admin_in_theme.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
require_once __DIR__ . '/altsys_functions.php';

if ( ! empty( $GLOBALS['altsysModuleConfig']['admin_in_theme'] ) && file_exists( XOOPS_THEME_PATH . '/' . $GLOBALS['altsysModuleConfig']['admin_in_theme'] . '/theme.html' ) ) {
// configs OK

// configs OK
require_once __DIR__ . '/admin_in_theme_functions.php';

// for security with register_globals=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function altsys_admin_in_theme( $s ) {
//!Fix redirect
//strpos - Find the position of the first occurrence of a substring in a string
//mb_strstr - Finds first occurrence of a string within another
//if (strpos($s, '<meta http-equiv="Refresh" ') !== false) {
if ( mb_strstr( $s, '<meta http-equiv="Refresh" ' ) ) {
if (strpos($s, '<meta http-equiv="Refresh" ') !== false) {
//if ( mb_strstr( $s, '<meta http-equiv="Refresh" ' ) ) {
define( 'ALTSYS_DONT_USE_ADMIN_IN_THEME', 1 );

return $s;
Expand All @@ -49,7 +49,7 @@ function altsys_admin_in_theme( $s ) {
return $s;
}

[ $tmp_s, $tmp_after ] = explode( "<td width='1%'>", $tmp_s );
[ $tmp_s, $tmp_after ] = explode( "<div width='1%'>", $tmp_s );
if ( empty( $tmp_after ) ) {
define( 'ALTSYS_DONT_USE_ADMIN_IN_THEME', 1 );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
if ( $handler = @opendir( $tplsadmin_autoupdate_path . '/' ) ) {
while ( false !== ( $file = readdir( $handler ) ) ) {
$file_path = $tplsadmin_autoupdate_path . '/' . $file;
/**
* Import CSS
* proposed by tohokuaiki
* ! if( is_file( $file_path ) && (substr( $file , -5 ) == '.html'||substr( $file , -4 ) == '.css') ) {
*/
if ( is_file( $file_path ) && '.html' == substr( $file, - 5 ) ) {
$mtime = (int) @filemtime( $file_path );
list( $count ) = $xoopsDB->fetchRow( $xoopsDB->query( 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix( 'tplfile' ) . " WHERE tpl_tplset='" . addslashes( $xoopsConfig['template_set'] ) . "' AND tpl_file='" . addslashes( $file ) . "' AND tpl_lastmodified >= $mtime" ) );
Expand Down
2 changes: 1 addition & 1 deletion xoops_trust_path/libs/altsys/mylangadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}


// initials
// initial
$db = XoopsDatabaseFactory::getDatabaseConnection();
( method_exists( 'MyTextSanitizer', 'sGetInstance' ) and $myts = MyTextSanitizer::sGetInstance() ) || $myts =& MyTextSanitizer::getInstance();
$langman = D3LanguageManager::getInstance();
Expand Down
2 changes: 1 addition & 1 deletion xoops_trust_path/libs/altsys/mytplsadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function altsys_mytpladmin_check_copy_submit(msg, id, selcheck) {
. $xoopsGTicket->getTicketHtml( __LINE__ ) ;

////— ACTION-CONTROL —\\\\
echo '<section layout="row center-justify" class="action-control">
echo '<section data-layout="row center-justify" class="action-control">
<div>' . _MYTPLSADMIN_CREATE_NEW_TPLSET . ' : ' . _MYTPLSADMIN_CAPTION_BASE . ':
<select name="clone_tplset_from">'. $tplset_options .'
<option value="_blank_">' . _MYTPLSADMIN_OPT_BLANKSET . '</option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="admintitle"><{$smarty.const._MD_A_MYBLOCKSADMIN_BLOCKADMIN}> » <{$ta


<{* ////— ACTION-CONTROL —\\\\ *}>
<section layout="row center-justify" class="action-control">
<section data-layout="row center-justify" class="action-control">

<a class="button" href="index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname=__CustomBlocks__&op=edit"><{$smarty.const._MI_ALTSYS_MENU_NEWCUSTOMBLOCK}></a>

Expand Down Expand Up @@ -93,8 +93,8 @@ <h2 class="admintitle"><{$smarty.const._MD_A_MYBLOCKSADMIN_BLOCKADMIN}> » <{$ta

<div class="ui-card-block-content">

<div layout="rows column">
<div class="ui-card-block-item" layout="rows">
<div data-layout="rows column">
<div class="ui-card-block-item" data-layout="rows">
<label for="weights[<{$block.bid}>]" aria-label="<{$smarty.const._MD_A_MYBLOCKSADMIN_WEIGHT}>">
<input type="text" name="weights[<{$block.bid}>]" value="<{$block.weight}>" size="1" maxlength="5">
</label>
Expand Down Expand Up @@ -149,7 +149,7 @@ <h2 class="admintitle"><{$smarty.const._MD_A_MYBLOCKSADMIN_BLOCKADMIN}> » <{$ta
</div><{* ui-data-render *}>


<div layout="row centered" class="adminnavi">
<div data-layout="row centered" class="adminnavi">
<input type="hidden" name="fct" value="blocksadmin">
<input type="hidden" name="op" value="order">
<{$gticket_hidden}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2 class="admintitle"><{$smarty.const._MYLANGADMIN_H3_MODULE}> » <{$target_mna


<{* ////— ACTION-CONTROL —\\\\ *}>
<section layout="row center-justify" class="action-control">
<section data-layout="row center-justify" class="action-control">

<form name="SelectLangFile" action="index.php" method="get">
<input type="hidden" name="mode" value="admin">
Expand Down
4 changes: 2 additions & 2 deletions xoops_trust_path/libs/altsys/xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$modversion['dirname'] = 'altsys';
$modversion['name'] = _MI_ALTSYS_MODULENAME;
$modversion['version'] = '2.31';
$modversion['detailed_version'] = '2.31.3';
$modversion['detailed_version'] = '2.31.4';
$modversion['description'] = _MI_ALTSYS_MODULEDESC;
$modversion['author'] = 'GIJ=CHECKMATE<br>PEAK Corp.(https://www.peak.ne.jp/)';
$modversion['credits'] = 'PEAK Corp., Gigamaster (XCL/PHP7)';
Expand Down Expand Up @@ -84,7 +84,7 @@
'description' => '_MI_ALTSYS_ADMIN_IN_THEMEDSC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 'default',
'default' => 'xcl_default',
'options' => []
];

Expand Down

0 comments on commit 7c53753

Please sign in to comment.