PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Vinicius Teixeira Souza   Secure Passwords Generator   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Arquivo de Demonstração
Class: Secure Passwords Generator
Generate random text to use as passwords
Author: By
Last change:
Date: 9 years ago
Size: 896 bytes
 

Contents

Class file image Download
<?php
   
include_once 'config/config.php';
    include_once
'class/senha.class.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>SENHAS SEGURAS / SECURE PASSWORDS</title>
    </head>
    <body>
        <?php
           
/*
             * Declarãção do objeto
             * Declaration of object
             */
           
$ob = new Passwords();

           
/*
             * Chamadas de métodos
             * Call of methods
             */
           
echo $ob->generatePassword($NIVEL_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_MUITO_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_SUPER_SEGURO) . "<br>";
            echo
$ob->generatePassword($NIVEL_SEGURO_EXTREMO) . "<br>";
       
?>
</body>
</html>