"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/misc.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

misc.php  (mybb_1822):misc.php  (mybb_1823)
skipping to change at line 18 skipping to change at line 18
* *
*/ */
define("IN_MYBB", 1); define("IN_MYBB", 1);
define("IGNORE_CLEAN_VARS", "sid"); define("IGNORE_CLEAN_VARS", "sid");
define('THIS_SCRIPT', 'misc.php'); define('THIS_SCRIPT', 'misc.php');
$templatelist = "misc_rules_forum,misc_help_helpdoc,misc_whoposted_poster,misc_w hoposted,misc_smilies_popup_smilie,misc_smilies_popup,misc_smilies_popup_empty,m isc_smilies_popup_row,multipage_start"; $templatelist = "misc_rules_forum,misc_help_helpdoc,misc_whoposted_poster,misc_w hoposted,misc_smilies_popup_smilie,misc_smilies_popup,misc_smilies_popup_empty,m isc_smilies_popup_row,multipage_start";
$templatelist .= ",misc_buddypopup,misc_buddypopup_user,misc_buddypopup_user_non e,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_ sendpm,misc_syndication_forumlist"; $templatelist .= ",misc_buddypopup,misc_buddypopup_user,misc_buddypopup_user_non e,misc_buddypopup_user_online,misc_buddypopup_user_offline,misc_buddypopup_user_ sendpm,misc_syndication_forumlist";
$templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_h elp_section,misc_help,forumdisplay_password_wrongpass,forumdisplay_password,misc _helpresults,misc_helpresults_bit"; $templatelist .= ",misc_smilies,misc_smilies_smilie,misc_help_section_bit,misc_h elp_section,misc_help,forumdisplay_password_wrongpass,forumdisplay_password,misc _helpresults,misc_helpresults_bit";
$templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpag $templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpag
e,multipage_page,multipage_page_current,multipage_page_link_current,multipage_pr e,multipage_page,multipage_page_current,multipage_page_link_current,multipage_pr
evpage,misc_imcenter_error"; evpage,misc_whoposted_page";
$templatelist .= ",misc_smilies_popup_no_smilies,misc_smilies_no_smilies,misc_sy $templatelist .= ",misc_smilies_popup_no_smilies,misc_smilies_no_smilies,misc_sy
ndication,misc_help_search,misc_helpresults_noresults,misc_syndication_forumlist ndication,misc_help_search,misc_helpresults_noresults,misc_syndication_forumlist
_forum,misc_syndication_feedurl,misc_whoposted_page"; _forum,misc_syndication_feedurl";
require_once "./global.php"; require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php"; require_once MYBB_ROOT."inc/functions_post.php";
// Load global language phrases // Load global language phrases
$lang->load("misc"); $lang->load("misc");
$plugins->run_hooks("misc_start"); $plugins->run_hooks("misc_start");
$mybb->input['action'] = $mybb->get_input('action'); $mybb->input['action'] = $mybb->get_input('action');
skipping to change at line 852 skipping to change at line 852
if(!$smilies) if(!$smilies)
{ {
eval("\$smilies = \"".$templates->get("misc_smilies_no_sm ilies")."\";"); eval("\$smilies = \"".$templates->get("misc_smilies_no_sm ilies")."\";");
} }
eval("\$smiliespage = \"".$templates->get("misc_smilies")."\";"); eval("\$smiliespage = \"".$templates->get("misc_smilies")."\";");
output_page($smiliespage); output_page($smiliespage);
} }
} }
elseif($mybb->input['action'] == "imcenter")
{
$mybb->input['imtype'] = $mybb->get_input('imtype');
if($mybb->input['imtype'] != "skype")
{
$message = $lang->error_invalidimtype;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0).
"\";");
echo $error;
exit;
}
$uid = $mybb->get_input('uid', MyBB::INPUT_INT);
$user = get_user($uid);
if(!$user)
{
$message = $lang->error_invaliduser;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0).
"\";");
echo $error;
exit;
}
if(empty($user[$mybb->input['imtype']]))
{
$message = $lang->error_invalidimtype;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0).
"\";");
echo $error;
exit;
}
$settingkey = 'allow'.$mybb->input['imtype'].'field';
if(!is_member($mybb->settings[$settingkey], $user))
{
$message = $lang->error_nopermission_user_ajax;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0).
"\";");
echo $error;
exit;
}
// Build IM navigation bar
$navigationbar = $imtype = $imtype_lang = '';
if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield']
, array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['addition
algroups'])))
{
$imtype = "skype";
$imtype_lang = $lang->skype;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")
."\";");
}
$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['username'] = htmlspecialchars_uni($user['username']);
$lang->chat_on_skype = $lang->sprintf($lang->chat_on_skype, $user['userna
me']);
$lang->call_on_skype = $lang->sprintf($lang->call_on_skype, $user['userna
me']);
$imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate, 1, 0)."\";");
echo $imcenter;
exit;
}
elseif($mybb->input['action'] == "syndication") elseif($mybb->input['action'] == "syndication")
{ {
$plugins->run_hooks("misc_syndication_start"); $plugins->run_hooks("misc_syndication_start");
$fid = $mybb->get_input('fid', MyBB::INPUT_INT); $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
$version = $mybb->get_input('version'); $version = $mybb->get_input('version');
$forums = $mybb->get_input('forums', MyBB::INPUT_ARRAY); $forums = $mybb->get_input('forums', MyBB::INPUT_ARRAY);
$limit = $mybb->get_input('limit', MyBB::INPUT_INT); $limit = $mybb->get_input('limit', MyBB::INPUT_INT);
$url = $mybb->settings['bburl']."/syndication.php"; $url = $mybb->settings['bburl']."/syndication.php";
$syndicate = $urlquery = array(); $syndicate = $urlquery = array();
 End of changes. 2 change blocks. 
75 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)