diff --git a/admin/admin_cron.php b/admin/admin_cron.php
index 75cd7afc0..6c23fa23d 100644
--- a/admin/admin_cron.php
+++ b/admin/admin_cron.php
@@ -76,7 +76,7 @@ switch ($mode)
));
//detect cron status
- if (@file_exists('../triggers/cron_running'))
+ if (file_exists('../triggers/cron_running'))
{
$template->assign_vars(array(
'CRON_RUNNING' => true,
@@ -85,7 +85,7 @@ switch ($mode)
break;
case 'repair':
- if (@file_exists('../triggers/cron_running'))
+ if (file_exists('../triggers/cron_running'))
{
rename("../triggers/cron_running", "../triggers/cron_allowed");
}
diff --git a/admin/admin_forumauth.php b/admin/admin_forumauth.php
index f4798d3dc..ad2d97294 100644
--- a/admin/admin_forumauth.php
+++ b/admin/admin_forumauth.php
@@ -52,7 +52,7 @@ foreach ($forum_auth_fields as $auth_type)
$forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN');
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
-if (@$_REQUEST[POST_FORUM_URL])
+if ($_REQUEST[POST_FORUM_URL])
{
$forum_id = (int) $_REQUEST[POST_FORUM_URL];
$forum_sql = "WHERE forum_id = $forum_id";
@@ -154,7 +154,7 @@ else
// Output the authorisation details if an id was specified
$forum_name = $forum_rows[0]['forum_name'];
- @reset($simple_auth_ary);
+ reset($simple_auth_ary);
while (list($key, $auth_levels) = each($simple_auth_ary))
{
$matched = 1;
diff --git a/admin/admin_forums.php b/admin/admin_forums.php
index 1a2639c0c..72cb25d71 100644
--- a/admin/admin_forums.php
+++ b/admin/admin_forums.php
@@ -28,7 +28,7 @@ $default_forum_auth = array(
'auth_download' => AUTH_REG,
);
-$mode = (@$_REQUEST['mode']) ? (string) $_REQUEST['mode'] : '';
+$mode = ($_REQUEST['mode']) ? (string) $_REQUEST['mode'] : '';
$cat_forums = get_cat_forums();
diff --git a/admin/admin_mass_email.php b/admin/admin_mass_email.php
index e97560c56..be9cb7882 100644
--- a/admin/admin_mass_email.php
+++ b/admin/admin_mass_email.php
@@ -7,7 +7,7 @@ if (!empty($setmodules))
}
require('./pagestart.php');
-@set_time_limit(1200);
+set_time_limit(1200);
$subject = (string) trim(request_var('subject', ''));
$message = (string) request_var('message', '');
diff --git a/admin/admin_ranks.php b/admin/admin_ranks.php
index 641ea54e3..18c37366d 100644
--- a/admin/admin_ranks.php
+++ b/admin/admin_ranks.php
@@ -76,7 +76,7 @@ if ($mode != '')
'RANK' => !empty($rank_info['rank_title']) ? $rank_info['rank_title'] : '',
'SPECIAL_RANK' => $rank_is_special,
'NOT_SPECIAL_RANK' => $rank_is_not_special,
- 'MINIMUM' => ($rank_is_special) ? '' : @$rank_info['rank_min'],
+ 'MINIMUM' => ($rank_is_special) ? '' : $rank_info['rank_min'],
'IMAGE' => !empty($rank_info['rank_image']) ? $rank_info['rank_image'] : 'styles/images/ranks/rank_image.png',
'STYLE' => !empty($rank_info['rank_style']) ? $rank_info['rank_style'] : '',
'IMAGE_DISPLAY' => !empty($rank_info['rank_image']) ? '
' : '',
diff --git a/admin/admin_rebuild_search.php b/admin/admin_rebuild_search.php
index 391c2917f..abc0663a2 100644
--- a/admin/admin_rebuild_search.php
+++ b/admin/admin_rebuild_search.php
@@ -20,14 +20,14 @@ define('REBUILD_SEARCH_COMPLETED', 2); // when all the db posts have been proce
//
$def_post_limit = 50;
$def_refresh_rate = 3;
-$def_time_limit = ($sys_time_limit = @ini_get('max_execution_time')) ? $sys_time_limit : 30;
+$def_time_limit = ($sys_time_limit = ini_get('max_execution_time')) ? $sys_time_limit : 30;
$last_session_data = get_rebuild_session_details('last', 'all');
$last_session_id = (int) $last_session_data['rebuild_session_id'];
$max_post_id = get_latest_post_id();
$start_time = TIMENOW;
-$mode = (string) @$_REQUEST['mode'];
+$mode = (string) $_REQUEST['mode'];
// check if the user has choosen to stop processing
if (isset($_REQUEST['cancel_button']))
@@ -46,7 +46,7 @@ if (isset($_REQUEST['cancel_button']))
}
// from which post to start processing
-$start = abs(intval(@$_REQUEST['start']));
+$start = abs(intval($_REQUEST['start']));
// get the total number of posts in the db
$total_posts = get_total_posts();
@@ -62,7 +62,7 @@ $session_posts_processed = ( $mode == 'refresh' ) ? get_processed_posts('session
$total_posts_processing = $total_posts - $total_posts_processed;
// how many posts to process in this session
-if ($session_posts_processing = @intval($_REQUEST['session_posts_processing']))
+if ($session_posts_processing = intval($_REQUEST['session_posts_processing']))
{
if ($mode == 'submit')
{
@@ -140,7 +140,7 @@ if ($mode == 'submit')
}
// Increase maximum execution time in case of a lot of posts, but don't complain about it if it isn't allowed.
-@set_time_limit($time_limit + 20);
+set_time_limit($time_limit + 20);
// check if we are should start processing
if ($mode == 'submit' || $mode == 'refresh')
@@ -179,7 +179,7 @@ if ($mode == 'submit' || $mode == 'refresh')
while ($row = DB()->fetch_next($result) AND !$timer_expired)
{
- @set_time_limit(600);
+ set_time_limit(600);
$start_post_id = ($num_rows == 0) ? $row['post_id'] : $start_post_id;
$end_post_id = $row['post_id'];
diff --git a/admin/admin_smilies.php b/admin/admin_smilies.php
index 708a3e39a..8c59ff95a 100644
--- a/admin/admin_smilies.php
+++ b/admin/admin_smilies.php
@@ -21,13 +21,13 @@ else
$delimeter = '=+:';
// Read a listing of uploaded smilies for use in the add or edit smliey code
-$dir = @opendir(BB_ROOT . $bb_cfg['smilies_path']);
+$dir = opendir(BB_ROOT . $bb_cfg['smilies_path']);
-while ($file = @readdir($dir))
+while ($file = readdir($dir))
{
- if (!@is_dir(bb_realpath(BB_ROOT . $bb_cfg['smilies_path'] . '/' . $file)))
+ if (!is_dir(bb_realpath(BB_ROOT . $bb_cfg['smilies_path'] . '/' . $file)))
{
- $img_size = @getimagesize(BB_ROOT . $bb_cfg['smilies_path'] . '/' . $file);
+ $img_size = getimagesize(BB_ROOT . $bb_cfg['smilies_path'] . '/' . $file);
if ($img_size[0] && $img_size[1])
{
@@ -40,7 +40,7 @@ while ($file = @readdir($dir))
}
}
-@closedir($dir);
+closedir($dir);
// Select main mode
if (isset($_GET['import_pack']) || isset($_POST['import_pack']))
@@ -78,7 +78,7 @@ if (isset($_GET['import_pack']) || isset($_POST['import_pack']))
}
}
- $fcontents = @file(BB_ROOT . $bb_cfg['smilies_path'] . '/'. $smile_pak);
+ $fcontents = file(BB_ROOT . $bb_cfg['smilies_path'] . '/'. $smile_pak);
if (empty($fcontents))
{
@@ -133,7 +133,7 @@ if (isset($_GET['import_pack']) || isset($_POST['import_pack']))
{
// Display the script to get the smile_pak cfg file
$smile_paks_select = '