@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | /**#@+ |
| 38 | 38 | */ |
| 39 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/constants.inc.php'; |
|
| 40 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php'; |
|
| 39 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/constants.inc.php'; |
|
| 40 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php'; |
|
| 41 | 41 | /**#@-*/ |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $table = $xoopsDB->prefix('chess_games'); |
| 60 | 60 | |
| 61 | - $limit = (int)$options[0]; // sanitize with intval() |
|
| 61 | + $limit = (int) $options[0]; // sanitize with intval() |
|
| 62 | 62 | |
| 63 | 63 | $where = 'white_uid != black_uid'; |
| 64 | 64 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | $memberHandler = xoops_getHandler('member'); |
| 124 | 124 | |
| 125 | - $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'); |
|
| 125 | + $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'); |
|
| 126 | 126 | |
| 127 | 127 | $usernames = $memberHandler->getUserList($criteria); |
| 128 | 128 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $table = $xoopsDB->prefix('chess_challenges'); |
| 161 | 161 | |
| 162 | - $limit = (int)$options[0]; // sanitize with intval() |
|
| 162 | + $limit = (int) $options[0]; // sanitize with intval() |
|
| 163 | 163 | |
| 164 | 164 | switch ($options[1]) { |
| 165 | 165 | case 1: |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | $memberHandler = xoops_getHandler('member'); |
| 219 | 219 | |
| 220 | - $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'); |
|
| 220 | + $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'); |
|
| 221 | 221 | |
| 222 | 222 | $usernames = $memberHandler->getUserList($criteria); |
| 223 | 223 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | return []; |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | - require_once XOOPS_ROOT_PATH . '/modules/chess/include/ratings.php'; |
|
| 255 | + require_once XOOPS_ROOT_PATH.'/modules/chess/include/ratings.php'; |
|
| 256 | 256 | |
| 257 | 257 | $moduleHandler = xoops_getHandler('module'); |
| 258 | 258 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | $table = $xoopsDB->prefix('chess_ratings'); |
| 276 | 276 | |
| 277 | - $limit = (int)$options[0]; // sanitize with intval() |
|
| 277 | + $limit = (int) $options[0]; // sanitize with intval() |
|
| 278 | 278 | |
| 279 | 279 | switch ($options[1]) { |
| 280 | 280 | case 1: |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | if (!empty($userids)) { |
| 328 | 328 | $memberHandler = xoops_getHandler('member'); |
| 329 | 329 | |
| 330 | - $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'); |
|
| 330 | + $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'); |
|
| 331 | 331 | |
| 332 | 332 | $usernames = $memberHandler->getUserList($criteria); |
| 333 | 333 | } |
@@ -362,16 +362,16 @@ discard block |
||
| 362 | 362 | $show_unrated = 2 == $options[2] ? 'checked' : ''; |
| 363 | 363 | |
| 364 | 364 | return ' |
| 365 | - ' . _MB_CHESS_NUM_GAMES . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 365 | + ' . _MB_CHESS_NUM_GAMES.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 366 | 366 | <br> |
| 367 | 367 | <br> |
| 368 | - <input type='radio' name='options[1]' value='1' $show_inplay > " . _MB_CHESS_SHOW_GAMES_INPLAY . " |
|
| 369 | - <input type='radio' name='options[1]' value='2' $show_concluded > " . _MB_CHESS_SHOW_GAMES_CONCLUDED . " |
|
| 370 | - <input type='radio' name='options[1]' value='3' $show_both > " . _MB_CHESS_SHOW_GAMES_BOTH . " |
|
| 368 | + <input type='radio' name='options[1]' value='1' $show_inplay > "._MB_CHESS_SHOW_GAMES_INPLAY." |
|
| 369 | + <input type='radio' name='options[1]' value='2' $show_concluded > "._MB_CHESS_SHOW_GAMES_CONCLUDED." |
|
| 370 | + <input type='radio' name='options[1]' value='3' $show_both > "._MB_CHESS_SHOW_GAMES_BOTH." |
|
| 371 | 371 | <br> |
| 372 | 372 | <br> |
| 373 | - <input type='radio' name='options[2]' value='1' $show_rated_only> " . _MB_CHESS_SHOW_GAMES_RATED . " |
|
| 374 | - <input type='radio' name='options[2]' value='2' $show_unrated > " . _MB_CHESS_SHOW_GAMES_UNRATED . ' |
|
| 373 | + <input type='radio' name='options[2]' value='1' $show_rated_only> "._MB_CHESS_SHOW_GAMES_RATED." |
|
| 374 | + <input type='radio' name='options[2]' value='2' $show_unrated > "._MB_CHESS_SHOW_GAMES_UNRATED.' |
|
| 375 | 375 | '; |
| 376 | 376 | } |
| 377 | 377 | |
@@ -390,11 +390,11 @@ discard block |
||
| 390 | 390 | $show_both = 3 == $options[1] ? 'checked' : ''; |
| 391 | 391 | |
| 392 | 392 | return ' |
| 393 | - ' . _MB_CHESS_NUM_CHALLENGES . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 393 | + ' . _MB_CHESS_NUM_CHALLENGES.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 394 | 394 | <br> |
| 395 | - <input type='radio' name='options[1]' value='1' $show_open> " . _MB_CHESS_SHOW_CHALLENGES_OPEN . " |
|
| 396 | - <input type='radio' name='options[1]' value='2' $show_user> " . _MB_CHESS_SHOW_CHALLENGES_USER . " |
|
| 397 | - <input type='radio' name='options[1]' value='3' $show_both> " . _MB_CHESS_SHOW_CHALLENGES_BOTH . ' |
|
| 395 | + <input type='radio' name='options[1]' value='1' $show_open> "._MB_CHESS_SHOW_CHALLENGES_OPEN." |
|
| 396 | + <input type='radio' name='options[1]' value='2' $show_user> "._MB_CHESS_SHOW_CHALLENGES_USER." |
|
| 397 | + <input type='radio' name='options[1]' value='3' $show_both> "._MB_CHESS_SHOW_CHALLENGES_BOTH.' |
|
| 398 | 398 | '; |
| 399 | 399 | } |
| 400 | 400 | |
@@ -411,9 +411,9 @@ discard block |
||
| 411 | 411 | $show_all = 2 == $options[1] ? 'checked' : ''; |
| 412 | 412 | |
| 413 | 413 | return ' |
| 414 | - ' . _MB_CHESS_NUM_PLAYERS . ": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 414 | + ' . _MB_CHESS_NUM_PLAYERS.": <input type='text' name='options[0]' value='{$options[0]}' size='3' maxlength='3'> |
|
| 415 | 415 | <br> |
| 416 | - <input type='radio' name='options[1]' value='1' $show_nonprovisional> " . _MB_CHESS_SHOW_NONPROVISIONAL . " |
|
| 417 | - <input type='radio' name='options[1]' value='2' $show_all > " . _MB_CHESS_SHOW_ALL_RATINGS . ' |
|
| 416 | + <input type='radio' name='options[1]' value='1' $show_nonprovisional> "._MB_CHESS_SHOW_NONPROVISIONAL." |
|
| 417 | + <input type='radio' name='options[1]' value='2' $show_all > "._MB_CHESS_SHOW_ALL_RATINGS.' |
|
| 418 | 418 | '; |
| 419 | 419 | } |
@@ -37,13 +37,13 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | /**#@+ |
| 39 | 39 | */ |
| 40 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 40 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
| 41 | 41 | $GLOBALS['xoopsOption']['template_main'] = 'chess_games.tpl'; |
| 42 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 43 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 44 | -require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 45 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/constants.inc.php'; |
|
| 46 | -require_once XOOPS_ROOT_PATH . '/modules/chess/include/functions.php'; |
|
| 42 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 43 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 44 | +require_once XOOPS_ROOT_PATH.'/class/pagenav.php'; |
|
| 45 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/constants.inc.php'; |
|
| 46 | +require_once XOOPS_ROOT_PATH.'/modules/chess/include/functions.php'; |
|
| 47 | 47 | |
| 48 | 48 | #var_dump($_REQUEST);#*#DEBUG# |
| 49 | 49 | |
@@ -57,23 +57,23 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | // offset of first row of challenges table to display (default to 0) |
| 59 | 59 | |
| 60 | - $cstart = (int)($_POST['cstart'] ?? @$_GET['cstart']); |
|
| 60 | + $cstart = (int) ($_POST['cstart'] ?? @$_GET['cstart']); |
|
| 61 | 61 | |
| 62 | 62 | // offset of first row of games table to display (default to 0) |
| 63 | 63 | |
| 64 | - $gstart = (int)($_POST['gstart'] ?? @$_GET['gstart']); |
|
| 64 | + $gstart = (int) ($_POST['gstart'] ?? @$_GET['gstart']); |
|
| 65 | 65 | |
| 66 | 66 | // challenges display option |
| 67 | 67 | |
| 68 | - $cshow = (int)($_POST['cshow'] ?? @$_GET['cshow']); |
|
| 68 | + $cshow = (int) ($_POST['cshow'] ?? @$_GET['cshow']); |
|
| 69 | 69 | |
| 70 | 70 | // games display option 1 |
| 71 | 71 | |
| 72 | - $gshow1 = (int)($_POST['gshow1'] ?? @$_GET['gshow1']); |
|
| 72 | + $gshow1 = (int) ($_POST['gshow1'] ?? @$_GET['gshow1']); |
|
| 73 | 73 | |
| 74 | 74 | // games display option 2 |
| 75 | 75 | |
| 76 | - $gshow2 = (int)($_POST['gshow2'] ?? @$_GET['gshow2']); |
|
| 76 | + $gshow2 = (int) ($_POST['gshow2'] ?? @$_GET['gshow2']); |
|
| 77 | 77 | |
| 78 | 78 | // set show-options to default if undefined |
| 79 | 79 | |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | $memberHandler = xoops_getHandler('member'); |
| 265 | 265 | |
| 266 | - $criteria = new \Criteria('uid', '(' . implode(',', array_keys($userids)) . ')', 'IN'); |
|
| 266 | + $criteria = new \Criteria('uid', '('.implode(',', array_keys($userids)).')', 'IN'); |
|
| 267 | 267 | |
| 268 | 268 | $usernames = $memberHandler->getUserList($criteria); |
| 269 | 269 | |
@@ -355,4 +355,4 @@ discard block |
||
| 355 | 355 | * $clist = $configHandler->getConfigList(18); |
| 356 | 356 | * var_dump('clist', $clist); |
| 357 | 357 | ***/ |
| 358 | -include_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 358 | +include_once XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | use XoopsModules\Chess\Common; |
| 20 | 20 | use XoopsModules\Chess\Utility; |
| 21 | 21 | |
| 22 | -require_once dirname(__DIR__, 3) . '/include/cp_header.php'; |
|
| 23 | -require dirname(__DIR__) . '/preloads/autoloader.php'; |
|
| 22 | +require_once dirname(__DIR__, 3).'/include/cp_header.php'; |
|
| 23 | +require dirname(__DIR__).'/preloads/autoloader.php'; |
|
| 24 | 24 | |
| 25 | 25 | $op = \Xmf\Request::getCmd('op', ''); |
| 26 | 26 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | } else { |
| 43 | 43 | xoops_cp_header(); |
| 44 | 44 | |
| 45 | - xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true); |
|
| 45 | + xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true); |
|
| 46 | 46 | |
| 47 | 47 | xoops_cp_footer(); |
| 48 | 48 | } |
@@ -70,12 +70,12 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | $language = 'english/'; |
| 72 | 72 | |
| 73 | - if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) { |
|
| 74 | - $language = $xoopsConfig['language'] . '/'; |
|
| 73 | + if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) { |
|
| 74 | + $language = $xoopsConfig['language'].'/'; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | foreach ($tables as $table) { |
| 78 | - $tabledata = \Xmf\Yaml::readWrapped($language . $table . '.yml'); |
|
| 78 | + $tabledata = \Xmf\Yaml::readWrapped($language.$table.'.yml'); |
|
| 79 | 79 | |
| 80 | 80 | if (is_array($tabledata)) { |
| 81 | 81 | \Xmf\Database\TableLoad::truncateTable($table); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS')); |
|
| 101 | + redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS')); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | function saveSampleData() |
@@ -113,25 +113,25 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | $language = 'english/'; |
| 115 | 115 | |
| 116 | - if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) { |
|
| 117 | - $language = $xoopsConfig['language'] . '/'; |
|
| 116 | + if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) { |
|
| 117 | + $language = $xoopsConfig['language'].'/'; |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - $languageFolder = __DIR__ . '/' . $language; |
|
| 120 | + $languageFolder = __DIR__.'/'.$language; |
|
| 121 | 121 | |
| 122 | - if (!file_exists($languageFolder . '/')) { |
|
| 123 | - Utility::createFolder($languageFolder . '/'); |
|
| 122 | + if (!file_exists($languageFolder.'/')) { |
|
| 123 | + Utility::createFolder($languageFolder.'/'); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/'; |
|
| 126 | + $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/'; |
|
| 127 | 127 | |
| 128 | 128 | Utility::createFolder($exportFolder); |
| 129 | 129 | |
| 130 | 130 | foreach ($tables as $table) { |
| 131 | - \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml'); |
|
| 131 | + \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml'); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS')); |
|
| 134 | + redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS')); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | function exportSchema() |
@@ -147,6 +147,6 @@ discard block |
||
| 147 | 147 | // |
| 148 | 148 | // redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS')); |
| 149 | 149 | } catch (\Throwable $e) { |
| 150 | - exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR')); |
|
| 150 | + exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR')); |
|
| 151 | 151 | } |
| 152 | 152 | } |
@@ -35,6 +35,6 @@ |
||
| 35 | 35 | |
| 36 | 36 | /**#@+ |
| 37 | 37 | */ |
| 38 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 39 | -require XOOPS_ROOT_PATH . '/include/comment_edit.php'; |
|
| 38 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
| 39 | +require XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
|
| 40 | 40 | /**#@-*/ |
@@ -35,18 +35,18 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /**#@+ |
| 37 | 37 | */ |
| 38 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 38 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 39 | 39 | $GLOBALS['xoopsOption']['template_main'] = 'chess_help.tpl'; |
| 40 | 40 | $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0; // disable caching |
| 41 | -require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/functions.php'; |
|
| 42 | -if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/help.php')) { |
|
| 43 | - require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/help.php'; |
|
| 41 | +require_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/functions.php'; |
|
| 42 | +if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/language/'.$xoopsConfig['language'].'/help.php')) { |
|
| 43 | + require_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/language/'.$xoopsConfig['language'].'/help.php'; |
|
| 44 | 44 | } else { |
| 45 | - require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/help.php'; |
|
| 45 | + require_once XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/language/english/help.php'; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $rating_system = chess_moduleConfig('rating_system'); |
| 49 | -$rating_system_des_name = '_HE_CHESS_RATINGS_' . mb_strtoupper($rating_system); |
|
| 49 | +$rating_system_des_name = '_HE_CHESS_RATINGS_'.mb_strtoupper($rating_system); |
|
| 50 | 50 | if (defined($rating_system_des_name)) { |
| 51 | 51 | $rating_system_des = constant($rating_system_des_name); |
| 52 | 52 | } else { |
@@ -62,6 +62,6 @@ discard block |
||
| 62 | 62 | $xoopsTpl->assign('chess_allow_delete', chess_can_delete()); |
| 63 | 63 | $xoopsTpl->assign('chess_is_admin', is_object($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->getVar('mid'))); |
| 64 | 64 | |
| 65 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 65 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
| 66 | 66 | |
| 67 | 67 | /**#@-*/ |
@@ -36,9 +36,9 @@ |
||
| 36 | 36 | |
| 37 | 37 | $ratings_table = 'chess_ratings'; |
| 38 | 38 | |
| 39 | - mysqli_connect(DBHOST, DBUSER, DBPASS) or trigger_error('[' . $GLOBALS['xoopsDB']->errno() . '] ' . $GLOBALS['xoopsDB']->error(), E_USER_ERROR); |
|
| 39 | + mysqli_connect(DBHOST, DBUSER, DBPASS) or trigger_error('['.$GLOBALS['xoopsDB']->errno().'] '.$GLOBALS['xoopsDB']->error(), E_USER_ERROR); |
|
| 40 | 40 | |
| 41 | - mysqli_select_db($GLOBALS['xoopsDB']->conn, DBNAME) or trigger_error('[' . $GLOBALS['xoopsDB']->errno() . '] ' . $GLOBALS['xoopsDB']->error(), E_USER_ERROR); |
|
| 41 | + mysqli_select_db($GLOBALS['xoopsDB']->conn, DBNAME) or trigger_error('['.$GLOBALS['xoopsDB']->errno().'] '.$GLOBALS['xoopsDB']->error(), E_USER_ERROR); |
|
| 42 | 42 | |
| 43 | 43 | // For safety, don't generate test data unless the tables are empty. |
| 44 | 44 | |
@@ -35,6 +35,6 @@ |
||
| 35 | 35 | |
| 36 | 36 | /**#@+ |
| 37 | 37 | */ |
| 38 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 39 | -require XOOPS_ROOT_PATH . '/include/comment_new.php'; |
|
| 38 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
| 39 | +require XOOPS_ROOT_PATH.'/include/comment_new.php'; |
|
| 40 | 40 | /**#@-*/ |
@@ -9,6 +9,6 @@ |
||
| 9 | 9 | |
| 10 | 10 | /**#@+ |
| 11 | 11 | */ |
| 12 | -require dirname(__DIR__, 2) . '/mainfile.php'; |
|
| 13 | -require XOOPS_ROOT_PATH . '/include/notification_update.php'; |
|
| 12 | +require dirname(__DIR__, 2).'/mainfile.php'; |
|
| 13 | +require XOOPS_ROOT_PATH.'/include/notification_update.php'; |
|
| 14 | 14 | /**#@-*/ |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | * @ignore |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
| 18 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
| 19 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
| 20 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_COPYTHEFILE', 'Copy it'); |
|
| 21 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_CREATETHEFILE', 'Create it'); |
|
| 22 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_SETMPERM', 'Set the permission'); |
|
| 23 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_FILECOPIED', 'The file has been copied'); |
|
| 24 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_FILENOTCOPIED', 'The file cannot be copied'); |
|
| 25 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_PERMSET', 'The permission has been set'); |
|
| 26 | -define('CO_' . $moduleDirNameUpper . '_' . 'FC_PERMNOTSET', 'The permission cannot be set'); |
|
| 17 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_AVAILABLE', "<span style='color: green;'>Available</span>"); |
|
| 18 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_NOTAVAILABLE', "<span style='color: red;'>Not available</span>"); |
|
| 19 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>"); |
|
| 20 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_COPYTHEFILE', 'Copy it'); |
|
| 21 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_CREATETHEFILE', 'Create it'); |
|
| 22 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_SETMPERM', 'Set the permission'); |
|
| 23 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_FILECOPIED', 'The file has been copied'); |
|
| 24 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_FILENOTCOPIED', 'The file cannot be copied'); |
|
| 25 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_PERMSET', 'The permission has been set'); |
|
| 26 | +define('CO_'.$moduleDirNameUpper.'_'.'FC_PERMNOTSET', 'The permission cannot be set'); |
|
| 27 | 27 | |
| 28 | 28 | /**#@-*/ |