Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859" />
- </head>
- <title>
- TEST
- </title>
- <style>
- html, body {
- overflow:hidden;
- margin: 0;
- padding: 0;
- text-align: center;
- }
- #all {
- margin: auto;
- height:100%;
- width: 90%;
- text-align: left;
- }
- #NAGLOWEK {
- height: 15%;
- background-color: #006600;
- }
- #MENU {
- height: 80%;
- width: 15%;
- float: left;
- overflow: hidden;
- background-color: #66FF66;
- }
- #TRESC {
- height: 80%;
- width: 85%;
- float: left;
- overflow: hdden;
- background-color: #fff;
- }
- #STOPKA {
- height: 5%;
- clear: both;
- width: 100%;
- background-color: #006600;
- }
- </style>
- </head>
- <body>
- <div id="all">
- <div id="NAGLOWEK">Nagłówek szablonu
- </div>
- <div id="MENU">Menu nawigacyjne</div>
- <div id="TRESC">
- <form action="elo.php" method="POST">
- Strona: <input type="text" name="pole">
- <button>CHUJ</button>
- </form>
- <?php
- $page = $_SERVER['PHP_SELF'];
- $sec = "0.3";
- header("Refresh: $sec; url=$page");
- $dni_tygodnia = array( 'Niedziela', 'Poniedzialek', 'Wtorek', 'Sroda', 'Czwartek', 'Piatek', 'Sobota' );
- $date = date( "w" );
- echo 'dzisiaj jest: ' . $dni_tygodnia[ $date ];
- $elo = "";
- for ($m=0;$m<10;$m++){
- $c[$m] = rand ( 1, 255 );
- }
- $r = rand ( 1, 255 );
- $g = rand ( 1, 255 );
- $b = rand ( 1, 255 );
- echo "<body style=background-color:rgb($r,$g,$b)>";
- function passwordGenerator($length) {
- $uppercase = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'R', 'S', 'T', 'U', 'W', 'Y', 'Z');
- $lowercase = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'w', 'y', 'z');
- $number = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
- $password = NULL;
- for ($i = 0; $i < $length; $i++) {
- $password .= $uppercase[rand(0, count($uppercase) - 1)];
- $password .= $lowercase[rand(0, count($lowercase) - 1)];
- $password .= $number[rand(0, count($number) - 1)];
- }
- return substr($password, 0, $length);
- }
- $myPassword = passwordGenerator(8);
- echo '<p>Moje wygenerowane hasło: <strong>' . $myPassword . '</strong></p>' . "\n";
- for ($t = 0; $t < 100; $t++){
- $myPassword = passwordGenerator(8);
- $tab[$t] = $myPassword ;
- }
- for ($m = 0; $m < 10; $m++){
- echo $tab[$m].'<br />';
- }
- ?>
- </div>
- <div id="STOPKA">Stopka serwisu</div>
- </div>
- </body>
- <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement