[eluser]Ngulo[/eluser]
Basically i have this configuration in my system directory view and controller folders
Code:
-System
-Application
-Controllers
Admin-
-Home.php (default)
-Login.php (login action)
-Admin.php
-Views
Admin-
-Home_view.php (here is the login form)
-Admin_view.php
the views are home_view.php
Code:
<div id="form">
<?php
echo form_open('admin/login');?>
<strong>Username</strong><br>
<input type="text" name="username" size="40" maxlength="30" /><br>
<strong> Password</strong><br>
<input type="text" name="password" size="40" maxlength="30" />
<br></br>
<br>
<input type="submit" value="Login"/>
</form>
<?php echo $this->session->flashdata('errore_login');?>
</div>
admin_view.php
Code:
<?php if($this->session->userdata('messaggio_upload')){echo $this->session->userdata('messaggio_upload');} ?>
the fact is that I only let users with root username and password then you're right, the library validation form may not serve
home.php serves on the redirect if the session exists ('administrator') to skip the form and enter directly into admin.php
do not know if I said, excuse my English
thank you