HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: //dev/fd/7/feedback.php
<?php

function irp_ui_feedback() {
    global $irp;

    $irp->Form->prefix='Feedback';
    if($irp->Check->nonce('irp_feedback', 'irp_feedback')) {
        $irp->Check->email('email');
        $irp->Check->value('body');

        if(!$irp->Check->hasErrors()) {
            $irp->Options->setFeedbackEmail($irp->Check->of('email'));
            $id=-1;
            if($irp->Check->of('track', 0)) {
                $id=$irp->Tracking->sendTracking(TRUE);
            }
            $irp->Check->data['tracking_id']=$id;
            $irp->Check->data['plugin']=IRP_PLUGIN_SLUG;
            $data=$irp->Utils->remotePost('feedback', $irp->Check->data);
            if($data) {
                $irp->Options->pushSuccessMessage('FeedbackSuccess');
            } else {
                $irp->Options->pushErrorMessage('FeedbackError');
            }
        }
    }
    ?>
    <br>
    <h2><?php $irp->Lang->P('FeedbackHeader')?></h2>
    <?php
    $irp->Options->writeMessages();

    $irp->Form->formStarts();
    $irp->Form->text('email', $irp->Options->getFeedbackEmail());
    $irp->Form->textarea('body', '', array('rows'=>5));

    $irp->Form->leftLabels=FALSE;
    $irp->Form->checkbox('track');
    $irp->Form->leftLabels=TRUE;

    $irp->Form->nonce('irp_feedback', 'irp_feedback');
    $irp->Form->submit('Send');
    $irp->Form->formEnds();
}