Guest User

Untitled

a guest
Jun 10th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. class Controller_Users extends Controller
  4. {
  5.  
  6.     public function Index( $args )
  7.     {
  8.        
  9.     }
  10.  
  11.     public function Users()
  12.     {
  13.        
  14.     }
  15.  
  16.     public function AccountGenerator()
  17.     {
  18.         Acl::allow ( "dev" ) ;
  19.         $indsAll = Md_Egy_Units_Inds_Inds::qryAllGet() ;
  20.  
  21.         foreach ( $indsAll as $ind )
  22.         {
  23.             $username = "inds" . $ind[ 'code' ] ;
  24.             $password = $ind[ 'code' ] ;
  25.  
  26.             $idUsers = Md_Auth_Users::qryInsert ( $username , $password ) ;
  27.             Md_Egy_Units_Inds_Users::qryInsert ( $idUsers , $ind[ 'id_inds' ] ) ;
  28.         }
  29.         Template::set ( "indsAll" , $indsAll ) ;
  30.         Template::layout ( array( "Eg/Units/Inds/Inds/AccountGenerator" ) ) ;
  31.     }
  32.  
  33. }
Add Comment
Please, Sign In to add comment