"Fossies" - the Fresh Open Source Software Archive  

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

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

misc.php  (mybb_1821):misc.php  (mybb_1822)
skipping to change at line 851 skipping to change at line 851
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") elseif($mybb->input['action'] == "imcenter")
{ {
$mybb->input['imtype'] = $mybb->get_input('imtype'); $mybb->input['imtype'] = $mybb->get_input('imtype');
if($mybb->input['imtype'] != "skype" && $mybb->input['imtype'] != "yahoo" ) if($mybb->input['imtype'] != "skype")
{ {
$message = $lang->error_invalidimtype; $message = $lang->error_invalidimtype;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0). "\";"); eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0). "\";");
echo $error; echo $error;
exit; exit;
} }
$uid = $mybb->get_input('uid', MyBB::INPUT_INT); $uid = $mybb->get_input('uid', MyBB::INPUT_INT);
$user = get_user($uid); $user = get_user($uid);
skipping to change at line 891 skipping to change at line 892
$settingkey = 'allow'.$mybb->input['imtype'].'field'; $settingkey = 'allow'.$mybb->input['imtype'].'field';
if(!is_member($mybb->settings[$settingkey], $user)) if(!is_member($mybb->settings[$settingkey], $user))
{ {
$message = $lang->error_nopermission_user_ajax; $message = $lang->error_nopermission_user_ajax;
eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0). "\";"); eval("\$error = \"".$templates->get("misc_imcenter_error", 1, 0). "\";");
echo $error; echo $error;
exit; exit;
} }
// Build IM navigation bar // Build IM navigation bar
$navigationbar = $navsep = $imtype = $imtype_lang = ''; $navigationbar = $imtype = $imtype_lang = '';
if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield'] , array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['addition algroups']))) if(!empty($user['skype']) && is_member($mybb->settings['allowskypefield'] , array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['addition algroups'])))
{ {
$imtype = "skype"; $imtype = "skype";
$imtype_lang = $lang->skype; $imtype_lang = $lang->skype;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav") ."\";"); eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav") ."\";");
$navsep = ' - ';
}
if(!empty($user['yahoo']) && is_member($mybb->settings['allowyahoofield']
, array('usergroup' => $user['usergroup'], 'additionalgroups' => $user['addition
algroups'])))
{
$imtype = "yahoo";
$imtype_lang = $lang->yahoo_im;
eval("\$navigationbar .= \"".$templates->get("misc_imcenter_nav")
."\";");
} }
$user['skype'] = htmlspecialchars_uni($user['skype']); $user['skype'] = htmlspecialchars_uni($user['skype']);
$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);
$user['username'] = htmlspecialchars_uni($user['username']); $user['username'] = htmlspecialchars_uni($user['username']);
$lang->chat_on_skype = $lang->sprintf($lang->chat_on_skype, $user['userna me']); $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']); $lang->call_on_skype = $lang->sprintf($lang->call_on_skype, $user['userna me']);
$imtemplate = "misc_imcenter_".$mybb->input['imtype']; $imtemplate = "misc_imcenter_".$mybb->input['imtype'];
eval("\$imcenter = \"".$templates->get($imtemplate, 1, 0)."\";"); eval("\$imcenter = \"".$templates->get($imtemplate, 1, 0)."\";");
echo $imcenter; echo $imcenter;
exit; 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. 6 change blocks. 
14 lines changed or deleted 4 lines changed or added

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