eval(standard_error(fetch_error('there_are_no_infraction_levels'))); } // draw nav bar $navbits = array(); if ($postinfo['postid']) { $parentlist = array_reverse(explode(',', $foruminfo['parentlist'])); foreach ($parentlist as $forumID) { $forumTitle = $vbulletin->forumcache["{$forumID}"]['title']; $navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f={$forumID}"] = $forumTitle; } $navbits['showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p={$postid}"] = $threadinfo['prefix_plain_html'] . ' ' . $threadinfo['title']; } $navbits[''] = construct_phrase($vbphrase['user_infraction_for_x'], $userinfo['username']); $navbits = construct_navbits($navbits); require_once DIR . '/includes/functions_editor.php'; $textareacols = fetch_textarea_width(); if ($show['pm']) { require_once DIR . '/includes/functions_newpost.php'; // do initial checkboxes $checked = array(); $signaturechecked = iif($vbulletin->userinfo['signature'] != '', 'checked="checked"'); // setup for preview display if (defined('PMPREVIEW')) { $postpreview =& $preview; $pm['message'] = htmlspecialchars_uni($pm['message']); construct_checkboxes($pm); } else { construct_checkboxes(array('savecopy' => true, 'parseurl' => true, 'signature' => iif($vbulletin->userinfo['signature'] !== '', true))); } $posticons = construct_icons($pm['iconid'], $vbulletin->options['privallowicons']); $editorid = construct_edit_toolbar($pm['message'], 0, 'privatemessage', iif($vbulletin->options['privallowsmilies'], 1, 0));
if ($_REQUEST['do'] == 'suggest' || $_REQUEST['do'] == 'create') { if ($_REQUEST['do'] == 'suggest' && defined('PHOTOPLOG_USER16') && $vbulletin->userinfo['userid']) { $photoplog['suggestcat'] = 1; $photoplog['dowhat'] = 'dosuggest'; $photoplog['dophrase'] = $vbphrase[photoplog_suggest_category]; } if ($_REQUEST['do'] == 'create' && defined('PHOTOPLOG_USER17') && $vbulletin->userinfo['userid']) { $photoplog['createcat'] = 1; $photoplog['dowhat'] = 'docreate'; $photoplog['dophrase'] = $vbphrase[photoplog_create_category]; } if (!$photoplog['suggestcat'] && !$photoplog['createcat']) { photoplog_index_bounce(); } require_once DIR . '/includes/functions_editor.php'; $photoplog['textareacols'] = fetch_textarea_width(); $photoplog_list_categories_row = $photoplog_list_categories; if ($_REQUEST['do'] == 'suggest') { $photoplog_list_categories_row[-1] = $vbphrase['photoplog_no_one']; } if ($_REQUEST['do'] == 'create') { $photoplog_list_categories_row[-1] = $vbphrase['photoplog_select_one']; foreach ($photoplog_ds_catopts as $photoplog_ds_catid => $photoplog_ds_value) { $photoplog_cat_opts = convert_bits_to_array($photoplog_ds_value['options'], $photoplog_categoryoptions); if (!$photoplog_cat_opts['openforsubcats']) { $photoplog_perm_not_allowed_bits[] = $photoplog_ds_catid; } } $photoplog_perm_not_allowed_bits = array_unique($photoplog_perm_not_allowed_bits); } if (!empty($photoplog_perm_not_allowed_bits)) {