Not a dynamic page
This commit is contained in:
parent
885829c2e4
commit
6adbaafe9c
2 changed files with 81 additions and 120 deletions
|
@ -1,82 +1,82 @@
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Password Generator</title>
|
<title>Password Generator</title>
|
||||||
<link href="css/html5reset-1.6.1.css" rel="stylesheet" type="text/css" />
|
<link href="css/html5reset-1.6.1.css" rel="stylesheet" type="text/css" />
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<script src="js/head.min.js"></script>
|
<script src="js/head.min.js"></script>
|
||||||
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div id="box">
|
<div id="box">
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<h1>Passwdgen v1.0</h1>
|
<h1>Passwdgen v1.0</h1>
|
||||||
</div>
|
</div>
|
||||||
<div id="generate">
|
<div id="generate">
|
||||||
<form id="generate">
|
<form id="generate">
|
||||||
<div class="form_row">
|
<div class="form_row">
|
||||||
<label for="root">Root Domain:</label>
|
<label for="root">Root Domain:</label>
|
||||||
<input type="text" id="root" name="root" />
|
<input type="text" id="root" name="root" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form_row">
|
<div class="form_row">
|
||||||
<label for="master">Master Password:</label>
|
<label for="master">Master Password:</label>
|
||||||
<input type="password" id="master" name="master" autocomplete="off" />
|
<input type="password" id="master" name="master" autocomplete="off" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form_row">
|
<div class="form_row">
|
||||||
<button type="button" id="copy">Generate and Copy to Clipboard</button>
|
<button type="button" id="copy">Generate and Copy to Clipboard</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<input type="text" id="password" readyonly="readyonly" tabindex="-1" />
|
<input type="text" id="password" readyonly="readyonly" tabindex="-1" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
head.js('https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js');
|
head.js('https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js');
|
||||||
head.js('js/jquery.corner.min.js');
|
head.js('js/jquery.corner.min.js');
|
||||||
head.js('js/jquery.zclip.min.js');
|
head.js('js/jquery.zclip.min.js');
|
||||||
head.js('js/jquery.md5.min.js');
|
head.js('js/jquery.md5.min.js');
|
||||||
head.js('js/rules.js');
|
head.js('js/rules.js');
|
||||||
|
|
||||||
head.ready(function() {
|
head.ready(function() {
|
||||||
$('input').corner('round 4px');
|
$('input').corner('round 4px');
|
||||||
$('button').corner('round 4px');
|
$('button').corner('round 4px');
|
||||||
$('#box').corner('round bottom');
|
$('#box').corner('round bottom');
|
||||||
|
|
||||||
|
|
||||||
$('#generate input').change(function() {
|
$('#generate input').change(function() {
|
||||||
var root = $('#root').val();
|
var root = $('#root').val();
|
||||||
var master = $('#master').val()
|
var master = $('#master').val()
|
||||||
var hash = $.md5(root + master);
|
var hash = $.md5(root + master);
|
||||||
|
|
||||||
hash = hash.replace(/[a-f]/, function(alpha) {
|
hash = hash.replace(/[a-f]/, function(alpha) {
|
||||||
return alpha.toUpperCase();
|
return alpha.toUpperCase();
|
||||||
});
|
});
|
||||||
|
|
||||||
if(root in special) {
|
if(root in special) {
|
||||||
$('#password').val(special[root](hash));
|
$('#password').val(special[root](hash));
|
||||||
} else {
|
} else {
|
||||||
$('#password').val(hash);
|
$('#password').val(hash);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#copy').zclip({
|
$('#copy').zclip({
|
||||||
path: 'http://zeroclipboard.googlecode.com/svn-history/r10/trunk/ZeroClipboard.swf',
|
path: 'http://zeroclipboard.googlecode.com/svn-history/r10/trunk/ZeroClipboard.swf',
|
||||||
copy: function() {
|
copy: function() {
|
||||||
return $('#password').val()
|
return $('#password').val()
|
||||||
},
|
},
|
||||||
afterCopy: function() {}
|
afterCopy: function() {}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
39
sites.sql
39
sites.sql
|
@ -1,39 +0,0 @@
|
||||||
-- phpMyAdmin SQL Dump
|
|
||||||
-- version 3.4.5
|
|
||||||
-- http://www.phpmyadmin.net
|
|
||||||
--
|
|
||||||
-- Host: localhost
|
|
||||||
-- Generation Time: Dec 06, 2011 at 08:33 PM
|
|
||||||
-- Server version: 5.5.16
|
|
||||||
-- PHP Version: 5.3.8
|
|
||||||
|
|
||||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
|
||||||
SET time_zone = "+00:00";
|
|
||||||
|
|
||||||
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
||||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
||||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
||||||
/*!40101 SET NAMES utf8 */;
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Database: `temp`
|
|
||||||
--
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Table structure for table `pg_sites`
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `pg_sites` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`site` varchar(255) NOT NULL,
|
|
||||||
`max` int(11) NOT NULL,
|
|
||||||
`special` int(11) NOT NULL,
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
Loading…
Reference in a new issue