Location: PHPKode > projects > OpenBizMap > obm2007.1/mydata/script/sys_reset.txt
<?php
/*
OpenDataBag - Data Web Interface
Copyright (C) 2004 Nawara

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

$change=get('change');

if($rand_password)
{
  ?>
    <table style="width:450px; border:#888 1px solid; background: #fff; margin: 20px auto 20px auto;">
      <tr>
        <td rowspan="3"><div style=" background:#fff; border-right:#aaa 1px solid; margin:0 10px 0 0; text-align:center; width:70px; height:150px;"><img style="margin:5px;" src="<?php echo cfg_images_path; ?>/login.gif" /></div></td>
        <td colspan="2"><h1><?php myecho('Reset Password'); ?></h1><p style="text-align:justify; margin-right:10px;"><?php myecho('User password was reset.'); ?></p></td>
      </tr>

      <tr>
        <td style="text-align:center;"><?php myecho('New Password'); ?></td>
        <td><strong><?php echo($rand_password); ?></strong><br /><br /><br /></td>
      </tr>

      <tr>
        <td style="text-align:right; padding:5px;" colspan="3">
        </td>
      </tr>
    </table>
  <?php


}
else
{
  echo('<form id="form1" action="index.php" method="post">');
  echo('<div><input name="odb_run" type="hidden" value="forgot"></input>');
  echo('<input name="odb_sys" type="hidden" value="reset"></input>');

  if(file_exists(cfg_sso_path.'/temp/antibot/'.$sid))
  {
    $antibot=file_get_contents(cfg_sso_path.'/temp/antibot/'.$sid);
    echo('<input name="odb_antibot" type="hidden" value="'.$antibot.'"></input>');
  }
  ?>
    <table style="width:450px; border:#888 1px solid; background: #fff; margin: 20px auto 20px auto;">
      <tr>
        <td rowspan="3"><div style=" background:#fff; border-right:#aaa 1px solid; margin:0 10px 0 0; text-align:center; width:70px; height:180px;"><img style="margin:5px;" src="<?php echo cfg_images_path; ?>/login.gif" /></div></td>
        <td colspan="2"><h1><?php myecho('Reset Password'); ?></h1><p style="text-align:justify; margin-right:10px;"><?php myecho('You can reset any password. New password will be sent to the user. Please use this option carefully.'); ?></p></td>
      </tr>

      <tr>
        <td style="text-align:center;"><?php myecho('Enter username'); ?></td>
        <td><input type="text" name="odb_username" value="<?php if(!strpos(USERNAME,'Guest')) echo USERNAME; ?>">
        </td>
      </tr>

      <tr>
        <td style="text-align:right; padding:5px;" colspan="3">
          <input class="submit" type="submit" value="<?php myecho('Reset password'); ?>" />
        </td>
      </tr>
    </table>
  <?php

  echo('</div></form>');
}
?>
Return current item: OpenBizMap