Skip to content

Commit

Permalink
Pre Beta 2 Package
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@80 e0e46c49-be69-4f5a-ad62-21024a331aea
  • Loading branch information
MightyGorgon committed Feb 19, 2009
1 parent 63543d7 commit 6fc5bc8
Show file tree
Hide file tree
Showing 278 changed files with 5,480 additions and 2,749 deletions.
2 changes: 0 additions & 2 deletions adm/admin_acronyms.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,9 @@
$description = $word_rows[$i]['description'];
$acronym_id = $word_rows[$i]['acronym_id'];

$row_color = (!($i % 2)) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];

$template->assign_block_vars('acronyms', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'ACRONYM' => $acronym,
'DESCRIPTION' => $description,
Expand Down
4 changes: 0 additions & 4 deletions adm/admin_attach_cp.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,10 @@
$total_attachments = $members[$i]['total_attachments'];
$total_size = $members[$i]['total_size'];

$row_color = (!($i % 2)) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];

$template->assign_block_vars('memberrow', array(
'ROW_NUMBER' => $i + (intval($_GET['start']) + 1),
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'USERNAME' => $username,
'TOTAL_ATTACHMENTS' => $total_attachments,
Expand Down Expand Up @@ -732,7 +730,6 @@
}
}

$row_color = (!($i % 2)) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];

// Is the Attachment assigned to more than one post ?
Expand Down Expand Up @@ -792,7 +789,6 @@

$template->assign_block_vars('attachrow', array(
'ROW_NUMBER' => $i + ($_GET['start'] + 1),
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,

'FILENAME' => $attachments[$i]['real_filename'],
Expand Down
2 changes: 0 additions & 2 deletions adm/admin_autolinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,11 @@
$link_forum = $autolink_rows[$i]['link_forum'];
$link_int = $autolink_rows[$i]['link_int'];

$row_color = (!($i % 2)) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];

$forum_id2 = array_search($link_forum, $forum_ids);

$template->assign_block_vars('autolinks', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'NUMBER' => $i + 1,
'KEYWORD' => $link_keyword,
Expand Down
46 changes: 32 additions & 14 deletions adm/admin_board_clearcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,58 @@
$db->clear_cache('config_');

$confirmation = false;
if(isset($_POST['confirm_clear_cache_main']))
$meta_tag = '';
if(isset($_POST['confirm_clear_cache_main']) || (isset($_GET['confirm_clear_cache_main']) && ($_GET['confirm_clear_cache_main'] == str_replace('sid=', '', $SID))))
{
$db->clear_cache();
empty_cache_folders();
$files_deleted = empty_cache_folders('', CACHE_FILES_PER_STEP);
$redirect_url = append_sid('admin_board_clearcache.' . PHP_EXT . '?confirm_clear_cache_main=' . str_replace('sid=', '', $SID));
if ($files_deleted === CACHE_FILES_PER_STEP)
{
//meta_refresh(3, $redirect_url);
$meta_tag = '</body><head><meta http-equiv="refresh" content="3;url=' . $redirect_url . '"></head><body>';
$message .= $lang['MG_SW_Empty_Precompiled_Posts_InProgress'] . '<br /><br />' . $lang['MG_SW_Empty_Precompiled_Posts_InProgress_Redirect'] . '<br /><br />' . sprintf($lang['MG_SW_Empty_Precompiled_Posts_InProgress_Redirect_Click'], '<a href="' . $redirect_url . '">', '</a>');
message_die(GENERAL_MESSAGE, $meta_tag . $message);
}

$message = '<br /><br />' . $lang['Empty_Cache_Success'] . '<br /><br />';
$message = $lang['Empty_Cache_Success'] . '<br /><br />';
$confirmation = true;
}

if(isset($_POST['confirm_clear_cache_posts']))
{
$sql = "UPDATE " . POSTS_TABLE . " SET post_text_compiled = ''";

if(!$result = $db->sql_query($sql))
{
$meta_tag = '</body><head><meta http-equiv="refresh" content="3;url=' . append_sid('admin_board_posting.' . PHP_EXT) . '"></head><body>';
$message .= '<br /><br />' . $lang['MG_SW_Empty_Precompiled_Posts_Fail'] . '<br /><br />';
message_die(GENERAL_MESSAGE, $meta_tag . $message);
$message .= '<br /><br />' . $lang['MG_SW_Empty_Precompiled_Posts_Fail'] . '<br /><br />';
message_die(GENERAL_MESSAGE, $message);
}

$message = '<br /><br />' . $lang['MG_SW_Empty_Precompiled_Posts_Success'] . '<br /><br />';
$message = $lang['MG_SW_Empty_Precompiled_Posts_Success'] . '<br /><br />';
$confirmation = true;
}

if(isset($_POST['confirm_clear_cache_thumbs']))
if(isset($_POST['confirm_clear_cache_thumbs']) || (isset($_GET['confirm_clear_cache_thumbs']) && ($_GET['confirm_clear_cache_thumbs'] == str_replace('sid=', '', $SID))))
{
empty_images_cache_folders();
$message = '<br /><br />' . $lang['Empty_Cache_Success'] . '<br /><br />';
$files_deleted = empty_images_cache_folders(CACHE_FILES_PER_STEP);
$redirect_url = append_sid('admin_board_clearcache.' . PHP_EXT . '?confirm_clear_cache_thumbs=' . str_replace('sid=', '', $SID));
if ($files_deleted === CACHE_FILES_PER_STEP)
{
//meta_refresh(3, $redirect_url);
$meta_tag = '</body><head><meta http-equiv="refresh" content="3;url=' . $redirect_url . '"></head><body>';
$message .= $lang['MG_SW_Empty_Precompiled_Posts_InProgress'] . '<br /><br />' . $lang['MG_SW_Empty_Precompiled_Posts_InProgress_Redirect'] . '<br /><br />' . sprintf($lang['MG_SW_Empty_Precompiled_Posts_InProgress_Redirect_Click'], '<a href="' . $redirect_url . '">', '</a>');
message_die(GENERAL_MESSAGE, $meta_tag . $message);
}

$message = $lang['Empty_Cache_Success'] . '<br /><br />';
$confirmation = true;
}

if ($confirmation == true)
if ($confirmation)
{
//$meta_tag = '</body><head><meta http-equiv="refresh" content="3;url=' . append_sid('admin_board_clearcache.' . PHP_EXT) . '"></head><body>';
$redirect_url = append_sid('admin_board_clearcache.' . PHP_EXT);
//meta_refresh(3, $redirect_url);
//$meta_tag = '</body><head><meta http-equiv="refresh" content="3;url=' . $redirect_url . '"></head><body>';
$message .= sprintf($lang['MG_SW_Empty_Precompiled_Posts_Redirect_Click'], '<a href="' . append_sid('admin_board_clearcache.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
message_die(GENERAL_MESSAGE, $meta_tag . $message);
}

Expand Down
25 changes: 14 additions & 11 deletions adm/admin_board_extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
{
if (!isset($field['user_only']) || !$field['user_only'])
{
$found=true;
$found = true;
break;
}
}
Expand Down Expand Up @@ -254,11 +254,13 @@
case 'VARCHAR':
case 'TEXT':
case 'DATEFMT':
$$field_name = trim(str_replace("\'", "''", htmlspecialchars($_POST[$field_name])));
//$$field_name = trim(str_replace("\'", "''", htmlspecialchars($_POST[$field_name])));
$$field_name = trim(htmlspecialchars($_POST[$field_name]));
break;
case 'HTMLVARCHAR':
case 'HTMLTEXT':
$$field_name = trim(str_replace("\'", "''", $_POST[$field_name]));
//$$field_name = trim(str_replace("\'", "''", $_POST[$field_name]));
$$field_name = trim($_POST[$field_name]);
break;
default:
$$field_name = '';
Expand All @@ -274,7 +276,7 @@
}
if ($error)
{
$message = $error_msg . '<br /><br />' . sprintf($lang['Click_return_config'], '<a href="' . append_sid('./admin_board_extend.' . PHP_EXT . '?menu=' . $menu_id. '&amp;mod=' . $mod_id . '&amp;msub=' . $sub_id) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('./index.' . PHP_EXT . '?pane=right') . '">', '</a>');
$message = $error_msg . '<br /><br />' . sprintf($lang['Click_return_config'], '<a href="' . append_sid('admin_board_extend.' . PHP_EXT . '?menu=' . $menu_id. '&amp;mod=' . $mod_id . '&amp;msub=' . $sub_id) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('./index.' . PHP_EXT . '?pane=right') . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
}
Expand All @@ -287,6 +289,7 @@
if (isset($$field_name))
{
set_config($field_name, $$field_name);
//set_config($field_name, (STRIP ? addslashes($$field_name) : $$field_name));
}
if (isset($_POST[$field_name . '_over']) && !empty($field['user']) && isset($userdata[$field['user']]))
{
Expand All @@ -295,7 +298,7 @@
}

// send an update message
$message = $lang['Config_updated'] . '<br /><br />' . sprintf($lang['Click_return_config'], '<a href="' . append_sid('./admin_board_extend.' . PHP_EXT . '?menu=' . $menu_id. '&amp;mod=' . $mod_id . '&amp;msub=' . $sub_id) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('./index.' . PHP_EXT . '?pane=right') . '">', '</a>');
$message = $lang['Config_updated'] . '<br /><br />' . sprintf($lang['Click_return_config'], '<a href="' . append_sid('admin_board_extend.' . PHP_EXT . '?menu=' . $menu_id. '&amp;mod=' . $mod_id . '&amp;msub=' . $sub_id) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('./index.' . PHP_EXT . '?pane=right') . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}

Expand Down Expand Up @@ -330,7 +333,7 @@
}
$template->assign_block_vars('menu', array(
'CLASS' => ($menu_id == $i) ? ((count($mod_keys[$i]) > 1) ? 'row3' : 'row1') : 'row2',
'U_MENU' => append_sid('./admin_board_extend.' . PHP_EXT . '?menu=' . $i),
'U_MENU' => append_sid('admin_board_extend.' . PHP_EXT . '?menu=' . $i),
'L_MENU' => sprintf((($menu_id == $i) ? '<b>%s</b>' : '%s'), mods_settings_get_lang($l_menu)),
)
);
Expand All @@ -357,7 +360,7 @@
$template->assign_block_vars('menu.mod', array(
'CLASS' => (($menu_id == $i) && ($mod_id == $j)) ? 'row1' : 'row2',
'ALIGN' => (($menu_id == $i) && ($mod_id == $j) && (count($sub_keys[$i][$j]) > 1)) ? 'left' : 'center',
'U_MOD' => append_sid('./admin_board_extend.' . PHP_EXT . '?menu=' . $i . '&amp;mod=' . $j),
'U_MOD' => append_sid('admin_board_extend.' . PHP_EXT . '?menu=' . $i . '&amp;mod=' . $j),
'L_MOD' => sprintf(((($menu_id == $i) && ($mod_id == $j)) ? '<b>%s</b>' : '%s'), mods_settings_get_lang($l_mod)),
)
);
Expand All @@ -370,7 +373,7 @@
{
$template->assign_block_vars('menu.mod.sub.row', array(
'CLASS' => (($menu_id == $i) && ($mod_id == $j) && ($sub_id == $k)) ? 'row1' : 'row2',
'U_MOD' => append_sid('./admin_board_extend.' . PHP_EXT . '?menu=' . $i . '&amp;mod=' . $j . '&amp;msub=' . $k),
'U_MOD' => append_sid('admin_board_extend.' . PHP_EXT . '?menu=' . $i . '&amp;mod=' . $j . '&amp;msub=' . $k),
'L_MOD' => sprintf((($sub_id == $k) ? '<b>%s</b>' : '%s'), mods_settings_get_lang($sub_keys[$i][$j][$k])),
)
);
Expand Down Expand Up @@ -431,11 +434,11 @@
break;
case 'VARCHAR':
case 'HTMLVARCHAR':
$input = '<input type="text" name="' . $field_name . '" maxlength="255" size="45" class="post" value="' . $config[$field_name] . '" />';
$input = '<input type="text" name="' . $field_name . '" maxlength="255" size="45" class="post" value="' . (STRIP ? stripslashes($config[$field_name]) : $config[$field_name]) . '" />';
break;
case 'TEXT':
case 'HTMLTEXT':
$input = '<textarea rows="5" cols="45" wrap="virtual" name="' . $field_name . '" class="post">' . $config[$field_name] . '</textarea>';
$input = '<textarea rows="5" cols="45" wrap="virtual" name="' . $field_name . '" class="post">' . (STRIP ? stripslashes($config[$field_name]) : $config[$field_name]) . '</textarea>';
break;
default:
$input = '';
Expand Down Expand Up @@ -477,7 +480,7 @@
$s_hidden_fields .= '<input type="hidden" name="mod_id" value="' . $mod_id . '" />';
$s_hidden_fields .= '<input type="hidden" name="sub_id" value="' . $sub_id . '" />';
$template->assign_vars(array(
'S_ACTION' => append_sid('./admin_board_extend.' . PHP_EXT),
'S_ACTION' => append_sid('admin_board_extend.' . PHP_EXT),
'S_HIDDEN_FIELDS' => $s_hidden_fields,
)
);
Expand Down
2 changes: 0 additions & 2 deletions adm/admin_bots.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,9 @@
while($row = $db->sql_fetchrow($result))
{
$i++;
$row_color = (!($i % 2)) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2'];

$template->assign_block_vars('bots', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'BOT_ID' => $row['bot_id'],
'BOT_ACTIVE' => ($row['bot_active'] ? $lang['YES'] : $lang['NO']),
Expand Down
Loading

0 comments on commit 6fc5bc8

Please sign in to comment.