PATH:
home
/
sudairsocs
/
www
/
forum
/
Themes
/
default
<?php /** * Simple Machines Forum (SMF) * * @package SMF * @author Simple Machines https://www.simplemachines.org * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * * @version 2.1.0 */ //------------------------------------------------------------------------------ /* This template contains two humble sub templates - main. Its job is pretty simple: it collects the information we need to actually send the topic. The report sub template gets shown from: '?action=reporttm;topic=##.##;msg=##' '?action=reporttm;u=#' It should submit to: '?action=reporttm;topic=' . $context['current_topic'] . '.' . $context['start'] '?action=reporttm;u=#' It only needs to send the following fields: comment: an additional comment to give the moderator. sc: the session id, or $context['session_id']. */ /** * The main "report this to the moderator" page */ function template_main() { global $context, $txt; // Want to see your master piece? echo ' <div id="preview_section"', isset($context['preview_message']) ? '' : ' class="hidden"', '> <div class="cat_bar"> <h3 class="catbg"> <span>', $txt['preview'], '</span> </h3> </div> <div class="windowbg"> <div class="post" id="preview_body"> ', empty($context['preview_message']) ? '<br>' : $context['preview_message'], ' </div> </div> </div>'; echo ' <div id="report_form"> <form action="', $context['submit_url'], '" method="post" accept-charset="', $context['character_set'], '"> <input type="hidden" name="', $context['report_type'], '" value="', $context['reported_item'], '"> <div class="cat_bar"> <h3 class="catbg">', $context['page_title'], '</h3> </div> <div class="windowbg">'; if (!empty($context['post_errors'])) { echo ' <div id="error_box" class="errorbox"> <ul id="error_list">'; foreach ($context['post_errors'] as $key => $error) echo ' <li id="error_', $key, '" class="error">', $error, '</li>'; echo ' </ul>'; } else echo ' <div id="error_box" class="errorbox hidden">'; echo ' </div>'; echo ' <p class="noticebox">', $context['notice'], '</p> <dl class="settings" id="report_post"> <dt> <label for="report_comment">', $txt['enter_comment'], '</label>: </dt> <dd> <textarea type="text" id="report_comment" name="comment" rows="5">', $context['comment_body'], '</textarea> </dd> </dl> <input type="submit" name="preview" value="', $txt['preview'], '" class="button"> <input type="submit" name="save" value="', $txt['report_submit'], '" class="button"> <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> </div><!-- .windowbg --> </form> </div><!-- #report_form -->'; } ?>
[+]
..
[-] index.template.php~
[edit]
[-] license.txt
[edit]
[+]
languages
[-] index.template.php
[edit]
[-] SplitTopics.template.php
[edit]
[-] Register.template.php~
[edit]
[-] index.php
[edit]
[+]
images
[-] ManageNews.template.php
[edit]
[+]
fonts
[-] BoardIndex.template.php
[edit]
[-] ManageMail.template.php
[edit]
[-] PersonalMessage.template.php~
[edit]
[-] Calendar.template.php
[edit]
[-] Who.template.php
[edit]
[-] Reports.template.php
[edit]
[-] Printpage.template.php
[edit]
[-] Memberlist.template.php~
[edit]
[-] Display.template.php~
[edit]
[-] ManageScheduledTasks.template.php
[edit]
[-] ManageLanguages.template.php
[edit]
[-] SendTopic.template.php
[edit]
[-] Likes.template.php
[edit]
[-] Xml.template.php~
[edit]
[-] ReportedContent.template.php
[edit]
[-] Notify.template.php
[edit]
[-] Memberlist.template.php
[edit]
[-] ManagePaid.template.php
[edit]
[-] ModerationCenter.template.php
[edit]
[-] Recent.template.php
[edit]
[-] ManageMembergroups.template.php
[edit]
[-] ManageCalendar.template.php
[edit]
[-] Errors.template.php
[edit]
[-] Themes.template.php
[edit]
[-] Post.template.php
[edit]
[-] GenericList.template.php
[edit]
[-] Poll.template.php
[edit]
[-] ManageMembers.template.php
[edit]
[-] Admin.template.php
[edit]
[+]
scripts
[-] Login.template.php~
[edit]
[-] GenericControls.template.php
[edit]
[-] PersonalMessage.template.php
[edit]
[-] Admin.template.php~
[edit]
[-] Settings.template.php
[edit]
[-] Display.template.php
[edit]
[-] ReportToMod.template.php
[edit]
[-] Wireless.template.php
[edit]
[-] MessageIndex.template.php
[edit]
[-] Login.template.php
[edit]
[-] Reminder.template.php
[edit]
[-] ManageNews.template.php~
[edit]
[-] Search.template.php
[edit]
[-] ManageAttachments.template.php
[edit]
[-] Search.template.php~
[edit]
[-] Packages.template.php
[edit]
[-] Profile.template.php
[edit]
[-] ManageMaintenance.template.php
[edit]
[-] GenericMenu.template.php
[edit]
[-] Wireless.template.php~
[edit]
[-] ManageSearch.template.php
[edit]
[-] Notify.template.php~
[edit]
[-] MoveTopic.template.php
[edit]
[-] GenericControls.template.php~
[edit]
[-] Profile.template.php~
[edit]
[+]
css
[-] ManageSmileys.template.php
[edit]
[-] Compat.template.php
[edit]
[-] ManageBoards.template.php
[edit]
[-] Xml.template.php
[edit]
[-] ManageBans.template.php
[edit]
[-] Agreement.template.php
[edit]
[-] Register.template.php
[edit]
[-] Stats.template.php
[edit]
[-] ManagePermissions.template.php
[edit]
[-] Help.template.php
[edit]