/[web]/planet/common/admin/changepassword.php
ViewVC logotype

Contents of /planet/common/admin/changepassword.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1619 - (show annotations) (download)
Mon Aug 13 10:45:23 2012 UTC (11 years, 8 months ago) by dams
File size: 384 byte(s)
- Import moonmoon
- Create repo per langs

1 <?php
2 require_once dirname(__FILE__).'/inc/auth.inc.php';
3
4 if (isset($_POST['password']) && ('' != $_POST['password'])){
5 $out = '<?php $login="admin"; $password="'.md5($_POST['password']).'"; ?>';
6 file_put_contents(dirname(__FILE__).'/inc/pwd.inc.php', $out);
7 die("Password changed. <a href='administration.php'>Login</a>");
8 } else {
9 die('Can not change password');
10 }

  ViewVC Help
Powered by ViewVC 1.1.30