Skip to content
Snippets Groups Projects
pwreset.php 1.78 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?php
    include_once(INCLUDE_DIR.'staff/login.header.php');
    defined('OSTSCPINC') or die('Invalid path');
    $info = ($_POST && $errors)?Format::htmlchars($_POST):array();
    ?>
    
    <div id="loginBox">
    
        <div class="tape"></div>
        <div id="blur">
            <div id="background"></div>
        </div>
    
        <h1 id="logo"><a href="index.php">
            <span class="valign-helper"></span>
            <img src="logo.php?login" alt="osTicket :: <?php echo __('Agent Password Reset');?>" />
        </a></h1>
    
        <h3><?php echo Format::htmlchars($msg); ?></h3>
        <form action="pwreset.php" method="post">
            <?php csrf_token(); ?>
            <input type="hidden" name="do" value="sendmail">
            <fieldset>
                <input type="text" name="userid" id="name" value="<?php echo
    
                $info['userid']; ?>" placeholder="<?php echo __('Email or Username'); ?>" autocorrect="off"
    
                    autocapitalize="off">
            </fieldset>
    
            <input class="submit" type="submit" name="submit" value="<?php echo __('Send Email'); ?>"/>
    
        <div id="company">
            <div class="content">
    
    Jared Hancock's avatar
    Jared Hancock committed
                <?php echo __('Copyright'); ?> &copy; <?php echo Format::htmlchars($ost->company) ?: date('Y'); ?>
    
    <div id="poweredBy"><?php echo __('Powered by'); ?>
        <a href="http://www.osticket.com" target="_blank">
            <img alt="osTicket" src="images/osticket-grey.png" class="osticket-logo">
        </a>
    </div>
        <script>
        document.addEventListener('DOMContentLoaded', function() {
            if (undefined === window.getComputedStyle(document.documentElement).backgroundBlendMode) {
                document.getElementById('background-compat').style.display = 'block';
                document.getElementById('loginBox').style.backgroundColor = 'white';
            }
        });
        </script>
    
    </body>
    </html>