Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Controller_Users extends Controller
- {
- public function Index( $args )
- {
- }
- public function Users()
- {
- }
- public function AccountGenerator()
- {
- Acl::allow ( "dev" ) ;
- $indsAll = Md_Egy_Units_Inds_Inds::qryAllGet() ;
- foreach ( $indsAll as $ind )
- {
- $username = "inds" . $ind[ 'code' ] ;
- $password = $ind[ 'code' ] ;
- $idUsers = Md_Auth_Users::qryInsert ( $username , $password ) ;
- Md_Egy_Units_Inds_Users::qryInsert ( $idUsers , $ind[ 'id_inds' ] ) ;
- }
- Template::set ( "indsAll" , $indsAll ) ;
- Template::layout ( array( "Eg/Units/Inds/Inds/AccountGenerator" ) ) ;
- }
- }
Add Comment
Please, Sign In to add comment