public function __construct() { parent::__construct(); if (!Sentry::check()) { $this->message->set('danger', 'You must login to access this module', TRUE, 'message'); redirect(website_url('auth')); } }
<div class="input-group m-b-20"> <span class="input-group-addon"><i class="zmdi zmdi-male"></i></span> <div class="fg-line"> <?php echo form_input($password); ?> </div> </div> <div class="clearfix"></div> <div class="checkbox"> <label> <input type="checkbox" name="remember_me" value="1"> <i class="input-helper"></i> Keep me signed in </label> </div> <button type="submit" class="btn btn-login btn-danger btn-float"><i class="zmdi zmdi-arrow-forward"></i></button> <ul class="login-navigation"> <li data-block="#l-forget-password" class="bgm-orange"><a href="<?php echo website_url('auth/forgot_password'); ?> ">Forgot Password?</a></li> </ul> <?php echo form_close(); ?> </div>
public function remove($encoded_id) { $id = base64_decode(urldecode($encoded_id)); if (empty($id)) { redirect(website_url('users')); } if (!empty($id)) { // Delete user record $row = $this->client_model->deleteUser($id); $this->message->set('success', 'Client deleted successfully', TRUE, 'message'); redirect(website_url('users')); } }
<fieldset> <label for="email">URL</label> <input class="pure-input-1" name="URL" type="text" placeholder="Enter your URL here" required> <div class="pure-u-1-2" style="width:49%;"> <label for="language">Language</label> <select name="lang" class="pure-u-1"> <?php language_list(); ?> </select> </div> <div class="pure-u-1-2"> <label for="language">Website</label> <select name="website" class="pure-u-1"> <?php website_url(); ?> </select> </div> <!-- <label for="uwords">Unique words (Empty to ignore a field)</label> <div class="pure-u-1-2" style="width:49%;"> <input class="pure-input-1" type="text" placeholder="Minimum unique words"> </div> <div class="pure-u-1-2"> <input class="pure-input-1" type="text" placeholder="Maximum unique words"> </div> <label for="uwords">Sentance length (Empty to ignore a field)</label> <div class="pure-u-1-2" style="width:49%;"> <input class="pure-input-1" type="text" placeholder="Minimum length">
public function logout() { Sentry::logout(); redirect(website_url('auth')); }
</div> </div> </div> </div> <!-- /.row --> <?php echo form_input($client_country_code); ?> <div class="form-group"> <label for="inputLastName" class="col-lg-2 col-md-2 col-sm-4 control-label"></label> <div class="col-lg-4 col-md-4 col-sm-8"> <button type="submit" class="btn btn-primary">Submit</button> <a href="<?php echo website_url('clients'); ?> " class="btn btn-primary" href="">Cancel</a> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> <?php if (isset($result) && !empty($result)) { ?> <?php
<a href="#"><i class="zmdi zmdi-input-antenna"></i> Privacy Settings</a> </li> <li> <a href="#"><i class="zmdi zmdi-settings"></i> Settings</a> </li> <li> <a href="<?php echo website_url('auth/logout'); ?> "><i class="zmdi zmdi-time-restore"></i> Logout</a> </li> </ul> </div> <ul class="main-menu"> <li class="active"> <a href="index-2.html"><i class="zmdi zmdi-home"></i> Home</a> </li> <li class="sub-menu"> <a href="#"><i class="zmdi zmdi-format-underlined"></i> Users</a> <ul> <li><a href="textual-menu.html">Groups</a></li> <li><a href="<?php echo website_url('users'); ?> ">Users</a></li> </ul> </li> </ul> </aside>
</li> <li> <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie"> <img src="img/browsers/ie.png" alt=""> <div>IE (New)</div> </a> </li> </ul> </div> <p>Sorry for the inconvenience!</p> </div> <![endif]--> <!-- Javascript Libraries --> <input type="hidden" id="website_url" value="<?php echo website_url(); ?> "> <script src="<?php echo base_url('assets/vendors/bower_components/jquery/dist/jquery.min.js'); ?> "></script> <script src="<?php echo base_url('assets/vendors/bower_components/bootstrap/dist/js/bootstrap.min.js'); ?> "></script> <script src="<?php echo base_url('assets/vendors/bower_components/flot/jquery.flot.js'); ?> "></script> <script src="<?php
echo $this->message->display(); ?> <!-- End Messages--> <?php $attributes = array('id' => 'forgot', 'autocomplete' => 'off', 'role' => 'form'); ?> <?php echo form_open(current_url(), $attributes); ?> <div class="input-group m-b-20"> <span class="input-group-addon"><i class="zmdi zmdi-email"></i></span> <div class="fg-line"> <?php echo form_input($email); ?> </div> </div> <button type="submit" class="btn btn-login btn-danger btn-float"><i class="zmdi zmdi-arrow-forward"></i></button> <ul class="login-navigation"> <li data-block="#l-login" class="bgm-green"><a href="<?php echo website_url('auth'); ?> ">Login<a/></li> </ul> <?php echo form_close(); ?> </div>