Version 0.9.9

- Code cleaning
This commit is contained in:
football
2021-04-06 23:39:05 +02:00
parent 80e99f7a11
commit 75c02e1eb8
42 changed files with 165 additions and 164 deletions

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// Check Prediction League authorisation
if ( !$this->auth->acl_get('u_use_football') )
{
@@ -225,5 +230,3 @@ $template->assign_vars(array(
'POINTS' => $config['football_win_name'],
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -526,5 +526,3 @@ $template->assign_vars(array(
'S_DISPLAY_RATING' => $display_rating,
)
);
?>

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// Can this user view Prediction Leagues pages?
if (!$config['football_guest_view'])
{
@@ -389,4 +394,3 @@ $template->set_filenames(array(
);
page_footer();
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -71,5 +71,3 @@ $template->assign_vars(array(
'S_DATA_DELIVERY' => $data_delivery,
)
);
?>

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$this->user->add_lang_ext('football/football', 'info_acp_bank');
// Check Prediction League authorisation

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$this->user->add_lang_ext('football/football', 'info_acp_bank');
// Check Prediction League authorisation
@@ -96,4 +101,3 @@ else
exit_handler();
}
}
?>

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// Check Prediction League authorisation
if ( !$this->auth->acl_get('u_use_football') )
{

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$vert = 9;
$start = 22;
$end = 28;
@@ -1342,4 +1347,3 @@ $template->set_filenames(array(
);
page_footer();
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -146,5 +146,3 @@ $template->assign_vars(array(
'S_USER_IS_MEMBER' => $user_is_member,
)
);
?>

View File

@@ -62,5 +62,3 @@ $template->assign_vars(array(
'S_DISPLAY_LAST_USERS' => $display_last_users,
'S_LAST_USERS' => true,
));
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -320,5 +320,3 @@ $template->assign_vars(array(
'USERNAME' => $username,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -331,4 +331,3 @@ $template->assign_vars(array(
'USERNAME4' => $username4,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -382,5 +382,3 @@ $template->assign_vars(array(
'USERNAME' => $username,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -195,4 +195,3 @@ $template->assign_vars(array(
'USERNAME' => $username,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -169,5 +169,3 @@ $template->assign_vars(array(
'USERNAME' => $username,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -422,5 +422,3 @@ $template->assign_vars(array(
'USERNAME' => $username,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -212,5 +212,3 @@ $template->assign_vars(array(
'S_DATA_ODDS' => $data_odds,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -91,4 +91,3 @@ if ($league <> 0)
)
);
}
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -424,5 +424,3 @@ $template->assign_vars(array(
'S_EDIT_MODE' => $edit_mode,
)
);
?>

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// Can this user view Prediction Leagues pages?
if (!$config['football_guest_view'])
{

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -142,4 +142,3 @@ else
)
);
}
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -160,5 +160,3 @@ $template->assign_vars(array(
'LEAGUE' => $league,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -136,5 +136,3 @@ $template->assign_vars(array(
'LEAGUE' => $league,
)
);
?>

View File

@@ -7,7 +7,7 @@
*
*/
if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL'))
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -436,5 +436,3 @@ $template->assign_vars(array(
'TEXT_FORM' => $text_form,
)
);
?>

View File

@@ -8,7 +8,7 @@
*
*/
if ( !defined('IN_PHPBB') OR !defined('IN_FOOTBALL') )
if (!defined('IN_PHPBB'))
{
exit;
}
@@ -19,5 +19,3 @@ $template->assign_vars(array(
'S_DISPLAY_UNDER_CONSTRUCTION' => true,
)
);
?>

View File

@@ -7,6 +7,11 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
// Can this user view Prediction Leagues pages?
if (!$config['football_guest_view'])
{
@@ -293,5 +298,3 @@ $template->set_filenames(array(
);
page_footer();
?>