"Fossies" - the Fresh Open Source Software Archive  

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

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

editpost.php  (mybb_1821):editpost.php  (mybb_1822)
skipping to change at line 19 skipping to change at line 19
*/ */
define("IN_MYBB", 1); define("IN_MYBB", 1);
define('THIS_SCRIPT', 'editpost.php'); define('THIS_SCRIPT', 'editpost.php');
$templatelist = "editpost,previewpost,changeuserbox,codebuttons,post_attachments _attachment_postinsert,post_attachments_attachment_mod_unapprove,postbit_attachm ents_thumbnails,postbit_profilefield_multiselect_value"; $templatelist = "editpost,previewpost,changeuserbox,codebuttons,post_attachments _attachment_postinsert,post_attachments_attachment_mod_unapprove,postbit_attachm ents_thumbnails,postbit_profilefield_multiselect_value";
$templatelist .= ",editpost_delete,forumdisplay_password_wrongpass,forumdisplay_ password,editpost_reason,post_attachments_attachment_remove,post_attachments_upd ate,post_subscription_method,postbit_profilefield_multiselect"; $templatelist .= ",editpost_delete,forumdisplay_password_wrongpass,forumdisplay_ password,editpost_reason,post_attachments_attachment_remove,post_attachments_upd ate,post_subscription_method,postbit_profilefield_multiselect";
$templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,pos tbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,post bit_author_user,posticons"; $templatelist .= ",postbit_avatar,postbit_find,postbit_pm,postbit_rep_button,pos tbit_www,postbit_email,postbit_reputation,postbit_warn,postbit_warninglevel,post bit_author_user,posticons";
$templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments _thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attac hment,postbit_attachments_attachment_unapproved"; $templatelist .= ",postbit_signature,postbit_classic,postbit,postbit_attachments _thumbnails_thumbnail,postbit_attachments_images_image,postbit_attachments_attac hment,postbit_attachments_attachment_unapproved";
$templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_sin gle,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_a pprove,post_attachments_attachment_unapproved"; $templatelist .= ",posticons_icon,post_prefixselect_prefix,post_prefixselect_sin gle,newthread_postpoll,editpost_disablesmilies,post_attachments_attachment_mod_a pprove,post_attachments_attachment_unapproved";
$templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_l ink,editpost_signature,attachment_icon,post_attachments_attachment,post_attachme nts_add,post_attachments,editpost_postoptions"; $templatelist .= ",postbit_warninglevel_formatted,postbit_reputation_formatted_l ink,editpost_signature,attachment_icon,post_attachments_attachment,post_attachme nts_add,post_attachments,editpost_postoptions,post_attachments_viewlink";
$templatelist .= ",postbit_attachments_images,global_moderation_notice,post_atta chments_new,postbit_attachments,postbit_online,postbit_away,postbit_offline,post bit_gotopost,postbit_userstar,postbit_icon"; $templatelist .= ",postbit_attachments_images,global_moderation_notice,post_atta chments_new,postbit_attachments,postbit_online,postbit_away,postbit_offline,post bit_gotopost,postbit_userstar,postbit_icon";
require_once "./global.php"; require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php"; require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_upload.php"; require_once MYBB_ROOT."inc/functions_upload.php";
require_once MYBB_ROOT."inc/class_parser.php"; require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser; $parser = new postParser;
// Load global language phrases // Load global language phrases
$lang->load("editpost"); $lang->load("editpost");
skipping to change at line 650 skipping to change at line 650
$noshowattach = 0; $noshowattach = 0;
} }
if($mybb->usergroup['attachquota'] == 0) if($mybb->usergroup['attachquota'] == 0)
{ {
$friendlyquota = $lang->unlimited; $friendlyquota = $lang->unlimited;
} }
else else
{ {
$friendlyquota = get_friendly_size($mybb->usergroup['atta chquota']*1024); $friendlyquota = get_friendly_size($mybb->usergroup['atta chquota']*1024);
} }
$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_quota = $lang->sprintf($lang->attach_quota, $friend $lang->attach_quota = $lang->sprintf($lang->attach_quota, $friend
lyusage, $friendlyquota); lyquota);
if($usage['ausage'] !== NULL)
{
$friendlyusage = get_friendly_size($usage['ausage']);
$lang->attach_usage = $lang->sprintf($lang->attach_usage,
$friendlyusage);
eval("\$link_viewattachments = \"".$templates->get("post_
attachments_viewlink")."\";");
}
else
{
$lang->attach_usage = "";
}
if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['ma xattachments'] != 0 && $attachcount < $mybb->settings['maxattachments']) && !$no showattach) if($mybb->settings['maxattachments'] == 0 || ($mybb->settings['ma xattachments'] != 0 && $attachcount < $mybb->settings['maxattachments']) && !$no showattach)
{ {
eval("\$attach_add_options = \"".$templates->get("post_at tachments_add")."\";"); eval("\$attach_add_options = \"".$templates->get("post_at tachments_add")."\";");
} }
if(($mybb->usergroup['caneditattachments'] || $forumpermissions[' caneditattachments']) && $attachcount > 0) if(($mybb->usergroup['caneditattachments'] || $forumpermissions[' caneditattachments']) && $attachcount > 0)
{ {
eval("\$attach_update_options = \"".$templates->get("post _attachments_update")."\";"); eval("\$attach_update_options = \"".$templates->get("post _attachments_update")."\";");
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 18 lines changed or added

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