} } $photoplog_toolbartype = $do_bbcode ? is_wysiwyg_compatible(-1, 'fe') : 0; if ($photoplog_toolbartype != 2) { $photoplog['description'] = $photoplog_file_info['description']; } // special character and link stuff for the editors $photoplog['description'] = str_replace('src="images/smilies/', 'src="' . $vbulletin->options['bburl'] . '/images/smilies/', $photoplog['description']); $photoplog['description'] = htmlspecialchars_uni($photoplog['description']); // yep this is how to get the description in $messagearea = str_replace("</textarea>", $photoplog['description'] . "</textarea>", $messagearea); ($hook = vBulletinHook::fetch_hook('photoplog_edit_fields')) ? eval($hook) : false; eval('$photoplog_field_title = "' . fetch_template('photoplog_field_title') . '";'); eval('$photoplog_field_description = "' . fetch_template('photoplog_field_description') . '";'); $photoplog_custom_field = ''; photoplog_make_custom_fields($photoplog_file_catid, $photoplog_fielddata); $photoplog['catid'] = $photoplog_file_catid; photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']); $photoplog_hslink1 = 'file_' . substr($vbulletin->options['photoplog_highslide_medium_thumb'], 0, 1) . 'link'; $photoplog_hslink2 = 'file_' . substr($vbulletin->options['photoplog_highslide_medium_thumb'], -1, 1) . 'link'; $photoplog['do_highslide'] = 0; if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') { $photoplog['do_highslide'] = 1; } $photoplog['hslink1'] = $photoplog['file_slink']; $photoplog['hslink2'] = $photoplog['file_llink']; if ($vbulletin->options['photoplog_highslide_active'] && $photoplog['do_highslide']) { $photoplog['hslink1'] = $photoplog[$photoplog_hslink1]; $photoplog['hslink2'] = $photoplog[$photoplog_hslink2]; } ($hook = vBulletinHook::fetch_hook('photoplog_edit_form')) ? eval($hook) : false;
$photoplog['upload_box'] .= "<br /><br /><span class=\"smallfont\">" . $vbphrase['photoplog_upload_file_from_url_link'] . "</span>"; } else { $photoplog['upload_box'] = "<span class=\"smallfont\">" . $vbphrase['photoplog_upload_file_from_url_link'] . "</span>"; } } while ($photoplog_url_cnt < $photoplog_url_count) { $photoplog_url_cnt++; $photoplog['upload_box'] .= "<br /><input class=\"bginput\" type=\"text\" name=\"userlink[]\" size=\"40\" />"; } } ($hook = vBulletinHook::fetch_hook('photoplog_upload_fields')) ? eval($hook) : false; $photoplog['title'] = ''; eval('$photoplog_field_title = "' . fetch_template('photoplog_field_title') . '";'); eval('$photoplog_field_description = "' . fetch_template('photoplog_field_description') . '";'); $photoplog_custom_field = ''; photoplog_make_custom_fields($photoplog_file_catid); $photoplog['catid'] = $photoplog_file_catid; $photoplog['diffuser_row'] = 0; if ($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanuploadasdifferentuser']) { $photoplog['diffuser_row'] = 1; } $photoplog['ftp_import'] = ''; if ($photoplog_ftp_import_flag == 1) { $photoplog_directory_name = PHOTOPLOG_BWD . "/" . $vbulletin->options['photoplog_upload_dir'] . "/" . $vbulletin->userinfo['userid']; if (!is_dir($photoplog_directory_name)) { @mkdir($photoplog_directory_name, 0777); @chmod($photoplog_directory_name, 0777); if ($photoplog_handle = @fopen($photoplog_directory_name . "/index.html", "w")) { $photoplog_blank = ''; @fwrite($photoplog_handle, $photoplog_blank); @fclose($photoplog_handle);