PHP Classes

File: teste.php

Recommend this page to a friend!
  Classes of Vinicius Teixeira Souza   Secure Passwords Generator   teste.php   Download  
File: teste.php
Role: Example script
Content type: text/plain
Description: Arquivo que demonstra o uso da classe
Class: Secure Passwords Generator
Generate random text to use as passwords
Author: By
Last change:
Date: 9 years ago
Size: 926 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>