Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/password.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michele Brodoloni  >  PHP Dialog  >  examples/password.php  >  Download  
File: examples/password.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Dialog
Create console based UIs with the dialog program
Author: By
Last change:
Date: 2 years ago
Size: 280 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php

require_once '../include/class.dialog.php';

$dialog Dialog::factory('password', array(
    
'backtitle' => 'Password'
));

$dialog->setCaption('Password:')
       ->
showAsterisks(true);

$pwd $dialog->show();

system('clear');
echo 
"\n\nPassword: '$pwd'\n\n";